]>
Commit | Line | Data |
---|---|---|
bfa2e39d AC |
1 | 2011-08-30 Yannick Moy <moy@adacore.com> |
2 | ||
3 | * exp_aggr.adb, exp_ch11.adb, exp_prag.adb: Remove early exit during | |
4 | expansion in Alfa mode. | |
5 | * exp_ch6.adb, exp_ch6.ads (Expand_Actuals): Make subprogram public | |
6 | * exp_alfa.adb, exp_alfa.ads: New package defining light expansion for | |
7 | Alfa mode. | |
8 | * gnat1drv.adb (Adjust_Global_Switches): Update Comment. | |
9 | * sem_res.adb: Ditto. | |
bd34109a | 10 | * gcc-interface/Make-lang.in: Update dependencies. |
bfa2e39d AC |
11 | |
12 | 2011-08-30 Thomas Quinot <quinot@adacore.com> | |
13 | ||
14 | * g-socket.ads: Minor documentation adjustment. | |
15 | ||
a0347839 AC |
16 | 2011-08-30 Robert Dewar <dewar@adacore.com> |
17 | ||
18 | * exp_ch9.adb, s-tassta.adb, s-secsta.adb: Minor reformatting. | |
19 | ||
20 | 2011-08-30 Yannick Moy <moy@adacore.com> | |
21 | ||
22 | * exp_ch6_light.adb, exp_ch6_light.ads, exp_attr_light.adb, | |
23 | exp_attr_light.ads, exp_ch7_light.adb, exp_ch7_light.ads, | |
24 | exp_light.adb, exp_light.ads, exp_prag.adb, expander.adb, | |
25 | gnat1drv.adb, exp_ch11.adb, exp_ch6.adb, exp_ch6.ads, exp_aggr.adb: | |
26 | Revert change which introduced files for "light" | |
27 | expansion, to be replaced by a single file for Alfa expansion. | |
28 | ||
3597c0e9 RD |
29 | 2011-08-30 Robert Dewar <dewar@adacore.com> |
30 | ||
31 | * opt.ads, s-soflin.adb, exp_ch9.adb, sem_res.adb: Update comment. | |
32 | Minor code reorg/reformatting. | |
33 | ||
da94696d AC |
34 | 2011-08-30 Yannick Moy <moy@adacore.com> |
35 | ||
36 | * opt.adb, opt.ads (Full_Expander_Active): New function defines a | |
37 | common shorthand for (Expander_Active and not ALFA_Mode) that can be | |
38 | used for testing full expansion, that is active expansion not in the | |
39 | reduced mode for Alfa | |
40 | * exp_ch4.adb, exp_ch9.adb, exp_disp.adb, sem_ch10.adb, sem_ch12.adb, | |
41 | sem_ch6.adb, sem_ch9.adb, sem_res.adb: Use newly defined "flag" instead | |
42 | of the verbose (Expander_Active and not ALFA_Mode) | |
43 | ||
44 | 2011-08-30 Tristan Gingold <gingold@adacore.com> | |
45 | ||
46 | * s-parame-vms-alpha.ads, s-parame-hpux.ads, s-tassta.adb, | |
47 | s-tarest.adb, s-parame-vms-ia64.ads, s-soflin.adb, s-secsta.adb, | |
5b8ca141 TG |
48 | s-secsta.ads, s-parame.ads, s-parame-vxworks.ads, s-parame-ae653.ads: |
49 | Renames Ratio to Percentage, and Sec_Stack_Ratio to Sec_Stack_Percentage | |
da94696d | 50 | |
c199ccf7 AC |
51 | 2011-08-30 Gary Dismukes <dismukes@adacore.com> |
52 | ||
53 | * sem_res.adb (Valid_Conversion): Revise test for implicit anonymous | |
54 | access conversions to check that the conversion is a rewritten node, | |
55 | rather than just having Comes_From_Source set to False, which wasn't | |
56 | sufficient. | |
57 | ||
58 | 2011-08-30 Robert Dewar <dewar@adacore.com> | |
59 | ||
60 | * exp_ch9.adb, sem_ch9.adb, sem_ch6.adb, exp_disp.adb, | |
61 | g-socket.ads: Minor reformatting. | |
62 | ||
63 | 2011-08-30 Thomas Quinot <quinot@adacore.com> | |
64 | ||
65 | * sem_util.adb: Minor reformatting. | |
66 | ||
67 | 2011-08-30 Tristan Gingold <gingold@adacore.com> | |
68 | ||
69 | * raise-gcc.c: Never catch exception if _UA_FORCE_UNWIND flag is set, | |
70 | to be compliant with the ABI. | |
71 | ||
dff99e1a AC |
72 | 2011-08-30 Hristian Kirtchev <kirtchev@adacore.com> |
73 | ||
74 | * sem_ch12.adb (Check_Private_View): Exchange the private and full view | |
75 | of a designated type when the related access type is an actual in an | |
76 | instance. This ensures that the full view of designated type is | |
77 | available when inside the body of the instance. | |
78 | ||
79 | 2011-08-30 Ed Schonberg <schonberg@adacore.com> | |
80 | ||
81 | * sem_util.adb (May_Be_Lvalue): To determine whether a reference may be | |
82 | in a position to be modified, a slice is treated like an indexed | |
83 | component. | |
84 | ||
63be2a5a AC |
85 | 2011-08-30 Thomas Quinot <quinot@adacore.com> |
86 | ||
87 | * s-oscons-tmplt.c, g-socket.ads: Adjust maximum allowed value for | |
88 | field tv_sec in struct timeval. | |
89 | ||
90 | 2011-08-30 Yannick Moy <moy@adacore.com> | |
91 | ||
92 | * exp_ch9.adb, exp_disp.adb, sem_ch9.adb, sem_res.adb: Protect several | |
93 | blocks of code doing full expansion, previously only guarded by | |
94 | Expander_Active, by anding the test that ALFA_Mode is not set | |
95 | ||
96 | 2011-08-30 Ed Schonberg <schonberg@adacore.com> | |
97 | ||
98 | * sem_ch6.adb (Analyze_Return_Type): If the return type is incomplete, | |
99 | add the function to the list of private dependents, for subsequent | |
100 | legality check on Taft amendment types. | |
101 | * sem_ch12.adb (Analyze_Formal_Incomplete_Type): Initialize | |
102 | Private_Dependents, as for other incomplete types. | |
103 | * sem_util.adb (Wrong_Type): Avoid cascaded errors when a | |
104 | Taft-amendment type is used as the return type of a function. | |
105 | ||
dd54644b JM |
106 | 2011-08-30 Javier Miranda <miranda@adacore.com> |
107 | ||
108 | * sem_ch3.adb (Check_Abstract_Overriding): Code cleanup: replace code | |
109 | which emits an error by a call to a new routine which report the error. | |
110 | * exp_ch9.adb (Build_Wrapper_Spec): Build the wrapper even if the | |
111 | entity does not cover an existing interface. | |
112 | * errout.ads, errout.adb (Error_Msg_PT): New routine. Used to factorize | |
113 | code. | |
114 | * sem_ch6.adb (Check_Conformance): Add specific error for wrappers of | |
115 | protected procedures or entries whose mode is not conformant. | |
116 | (Check_Synchronized_Overriding): Code cleanup: replace code which emits | |
117 | an error by a call to a new routine which report the error. | |
118 | ||
d3ba478e AC |
119 | 2011-08-30 Robert Dewar <dewar@adacore.com> |
120 | ||
121 | * gnat_rm.texi: Minor change. | |
122 | * exp_attr_light.adb: Minor reformatting. | |
123 | ||
124 | 2011-08-30 Ed Schonberg <schonberg@adacore.com> | |
125 | ||
126 | * sem_ch3.adb: Patch inheritance of aspects in | |
127 | Complete_Private_Subtype, to avoid infinite loop. | |
128 | ||
c01817d2 AC |
129 | 2011-08-30 Javier Miranda <miranda@adacore.com> |
130 | ||
131 | * sem_ch3.adb (Add_Internal_Interface_Entities): If serious errors have | |
132 | been reported and a subprogram covering an interface primitive is not | |
133 | found then skip generating the internal entity. Done to avoid crashing | |
134 | the frontend. | |
135 | (Check_Abstract_Overriding): Change text of error of wrong formal of | |
136 | protected subprogram or entry. Done for consistency to emit exactly the | |
137 | same error reported by Check_Synchronized_Overriding. In addition, the | |
138 | error is restricted to protected types (bug found working on AI05-0090) | |
139 | ||
140 | 2011-08-30 Yannick Moy <moy@adacore.com> | |
141 | ||
142 | * exp_aggr.adb, exp_ch11.adb, exp_prag.adb: Remove early exit during | |
143 | expansion in Alfa mode. | |
144 | * exp_ch6.adb, exp_ch6.ads (Expand_Actuals): Make subprogram public. | |
145 | * exp_light.adb, exp_light.ads: New package defining light expansion. | |
146 | * expander.adb (Expand): Call light expansion in Alfa mode | |
147 | * exp_ch6_light.adb, exp_ch6_light.ads: Light expansion of chapter 6 | |
148 | constructs. | |
149 | * exp_ch7_light.adb, exp_ch7_light.ads: Light expansion of chapter 7 | |
150 | constructs. | |
151 | * exp_attr_light.adb, exp_attr_light.ads: Light expansion of attributes | |
152 | * gnat1drv.adb (Adjust_Global_Switches): Comment | |
153 | ||
154 | 2011-08-30 Yannick Moy <moy@adacore.com> | |
155 | ||
156 | * lib-xref-alfa.adb: Minor refactoring. | |
157 | ||
158 | 2011-08-30 Yannick Moy <moy@adacore.com> | |
159 | ||
160 | * exp_ch9.adb (Expand_Entry_Barrier): Do not perform expansion in Alfa | |
161 | mode. | |
162 | * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not perform | |
163 | expansion in Alfa mode. | |
164 | * sem_ch9.adb (Analyze_Entry_Body): Do not perform expansion in Alfa | |
165 | mode. | |
166 | ||
167 | 2011-08-30 Robert Dewar <dewar@adacore.com> | |
168 | ||
169 | * debug_a.adb: Update comment. | |
170 | ||
996c8821 RD |
171 | 2011-08-30 Robert Dewar <dewar@adacore.com> |
172 | ||
173 | * exp_ch5.adb, sem_ch3.adb, sem_ch5.adb, einfo.adb, checks.adb, | |
174 | sem_util.adb, sem_util.ads, sem_res.adb, s-stposu.adb, sem_attr.adb, | |
175 | exp_ch4.adb, exp_ch6.adb, lib-xref-alfa.adb, | |
176 | sem_ch8.adb, sem_disp.adb, exp_ch3.adb: Minor reformatting | |
177 | ||
178 | 2011-08-30 Robert Dewar <dewar@adacore.com> | |
179 | ||
180 | * gnat_rm.texi: Add section on C.6(16) implementation advice for pragma | |
181 | volatile. | |
182 | ||
3647ca26 HK |
183 | 2011-08-30 Hristian Kirtchev <kirtchev@adacore.com> |
184 | ||
185 | * exp_ch3.adb (Expand_Freeze_Array_Type): Correct the call to | |
186 | Build_Finalization_Master by supplying an insertion node and enclosing | |
187 | scope. In its old version, the call did not generate a finalization | |
188 | master. | |
189 | (Expand_Freeze_Record_Type): Add local variable Has_AACC. Add code to | |
190 | recognize anonymous access-to-controlled components. Rewrite the | |
191 | machinery which creates finalization masters to service anonymous | |
192 | access-to-controlled components of a record type. In its current state, | |
193 | only one heterogeneous master is necessary to handle multiple anonymous | |
194 | components. | |
195 | (Freeze_Type): Comment reformatting. | |
196 | * rtsfind.ads: Add RE_Set_Is_Heterogeneous to tables RE_Id and | |
197 | RE_Unit_Table. | |
198 | * s-stposu.adb (Allocate_Any_Controlled): Rewrite the machinery which | |
199 | associates TSS primitive Finalize_Address with either the master itself | |
200 | or with the internal hash table depending on the mode of operation of | |
201 | the master. | |
202 | ||
6d4e4fbc JM |
203 | 2011-08-30 Javier Miranda <miranda@adacore.com> |
204 | ||
205 | * exp_ch3.adb (Make_Eq_If): If the etype of the _parent component is an | |
206 | interface type then do not generate code to compare this component. | |
207 | Required since they have no components and their equality operator is | |
208 | abstract. | |
209 | ||
d15f9422 AC |
210 | 2011-08-30 Steve Baird <baird@adacore.com> |
211 | ||
212 | * sem_util.ads (Deepest_Type_Access_Level): New function; for the type | |
213 | of a saooaaat (i.e, a stand-alone object of an anonymous access type), | |
214 | returns the (static) accessibility level of the object. Otherwise, the | |
215 | same as Type_Access_Level. | |
216 | (Dynamic_Accessibility_Level): New function; given an expression which | |
217 | could occur as the rhs of an assignment to a saooaaat (i.e., an | |
218 | expression of an access-to-object type), return the new value for the | |
219 | saooaaat's associated Extra_Accessibility object. | |
220 | (Effective_Extra_Accessibility): New function; same as | |
221 | Einfo.Extra_Accessibility except that object renames are looked through. | |
222 | * sem_util.adb | |
223 | (Deepest_Type_Access_Level): New function; see sem_util.ads description. | |
224 | (Dynamic_Accessibility_Level): New function; see sem_util.ads | |
225 | description. | |
226 | (Effective_Extra_Accessibility): New function; see sem_util.ads | |
227 | description. | |
228 | * einfo.ads (Is_Local_Anonymous_Access): Update comments. | |
229 | (Extra_Accessibility): Update comments. | |
230 | (Init_Object_Size_Align): New procedure; same as Init_Size_Align | |
231 | except RM_Size field (which is only for types) is unaffected. | |
232 | * einfo.adb | |
233 | (Extra_Accessibility): Expand domain to allow objects, not just formals. | |
234 | (Set_Extra_Accessibility): Expand domain to allow objects, not just | |
235 | formals. | |
236 | (Init_Size): Add assertion that we are not trashing the | |
237 | Extra_Accessibility attribute of an object. | |
238 | (Init_Size_Align): Add assertion that we are not trashing the | |
239 | Extra_Accessibility attribute of an object. | |
240 | (Init_Object_Size_Align): New procedure; see einfo.ads description. | |
241 | * sem_ch3.adb (Find_Type_Of_Object): Set Is_Local_Anonymous_Access | |
242 | differently for the type of a (non-library-level) saooaaat depending | |
243 | whether Ada_Version < Ada_2012. This is the only point where Ada_Version | |
244 | is queried in this set of changes - everything else (in particular, | |
245 | setting of the Extra_Accessibility attribute in exp_ch3.adb) is | |
246 | driven off of the setting of the Is_Local_Anonymous_Access attribute. | |
247 | The special treatment of library-level saooaaats is an optimization, | |
248 | not required for correctnesss. This is based on the observation that the | |
249 | Ada2012 rules (static and dynamic) for saooaaats turn out to be | |
250 | equivalent to the Ada2005 rules in the case of a library-level saooaaat. | |
251 | * exp_ch3.adb | |
252 | (Expand_N_Object_Declaration): If Is_Local_Anonymous_Access is | |
253 | false for the type of a saooaaat, declare and initialize its | |
254 | accessibility level object and set the Extra_Accessibility attribute | |
255 | of the saooaaat to refer to this object. | |
256 | * checks.adb (Apply_Accessibility_Check): Add Ada 2012 saooaaat support. | |
257 | * exp_ch4.adb (Expand_N_In): Replace some Extra_Accessibility calls with | |
258 | calls to Effective_Extra_Accessibility in order to support | |
259 | renames of saooaaats. | |
260 | (Expand_N_Type_Conversion): Add new local function, | |
261 | Has_Extra_Accessibility, and call it when determining whether an | |
262 | accessibility check is needed. | |
263 | It returns True iff Present (Effective_Extra_Accessibility (Id)) would | |
264 | evaluate to True (without raising an exception). | |
265 | * exp_ch5.adb | |
266 | (Expand_N_Assignment_Statement): When assigning to an Ada2012 | |
267 | saooaaat, update its associated Extra_Accessibility object (if | |
268 | it has one). This includes an accessibility check. | |
269 | * exp_ch6.adb (Add_Call_By_Copy_Code): When parameter copy-back updates | |
270 | a saooaaat, update its Extra_Accessibility object too (if it | |
271 | has one). | |
272 | (Expand_Call): Replace a couple of calls to Type_Access_Level | |
273 | with calls to Dynamic_Access_Level to handle cases where | |
274 | passing a literal (any literal) is incorrect. | |
275 | * sem_attr.adb (Resolve_Attribute): Handle the static accessibility | |
276 | checks associated with "Saooaat := Some_Object'Access;"; this must | |
277 | be rejected if Some_Object is declared in a more nested scope | |
278 | than Saooaat. | |
279 | * sem_ch5.adb (Analyze_Assignment): Force accessibility checking for an | |
280 | assignment to a saooaaat even if Is_Local_Anonymous_Access | |
281 | returns False for its type (indicating a 2012-style saooaaat). | |
282 | * sem_ch8.adb | |
283 | (Analyze_Object_Renaming): Replace a call to Init_Size_Align | |
284 | (which is only appropriate for objects, not types) with a call | |
285 | of Init_Object_Size_Align in order to avoid trashing the | |
286 | Extra_Accessibility attribute of a rename (the two attributes | |
287 | share storage). | |
288 | * sem_res.adb | |
289 | (Valid_Conversion) Replace six calls to Type_Access_Level with | |
290 | calls to Deepest_Type_Access_Level. This is a bit tricky. For an | |
291 | Ada2012 non-library-level saooaaat, the former returns library level | |
292 | while the latter returns the (static) accessibility level of the | |
293 | saooaaat. A type conversion to the anonymous type of a saooaaat | |
294 | can only occur as part of an assignment to the saooaaat, so we | |
295 | know that such a conversion must be in a lhs context, so Deepest | |
296 | yields the result that we need. If such a conversion could occur, | |
297 | say, as the operand of an equality operator, then this might not | |
298 | be right. Also add a test so that static accessibilty checks are | |
299 | performed for converting to a saooaaat's type even if | |
300 | Is_Local_Anonymous_Access yields False for the type. | |
301 | ||
302 | 2011-08-30 Javier Miranda <miranda@adacore.com> | |
303 | ||
304 | * sem_disp.adb (Check_Dispatching_Operation): Complete condition that | |
305 | controls generation of a warning associated with late declaration of | |
306 | dispatching functions. Required to avoid generating spurious | |
307 | warnings. | |
308 | ||
6cce2156 GD |
309 | 2011-08-30 Gary Dismukes <dismukes@adacore.com> |
310 | ||
311 | * sem_ch6.adb (Check_Return_Subtype_Indication): Issue error if the | |
312 | return object has an anonymous access type and the function's type is | |
313 | a named access type. | |
314 | * sem_ch8.adb (Analyze_Object_Renaming): Suppress error about renaming | |
315 | conversions on implicit conversions, since such conversions can occur | |
316 | for anonymous access cases due to expansion. Issue error for attempt | |
317 | to rename an anonymous expression as an object of a named access type. | |
318 | * sem_res.ads (Valid_Conversion): Add defaulted parameter Report_Errs, | |
319 | to indicate whether this function should report errors on invalid | |
320 | conversions. | |
321 | * sem_res.adb (Resolve): For Ada 2012, in the case where the type of | |
322 | the expression is of an anonymous access type and the expected type is | |
323 | a named general access type, rewrite the expression as a type | |
324 | conversion, unless this is an expression of a membership test. | |
325 | (Valid_Conversion.Error_Msg_N): New procedure that conditions the | |
326 | calling of Error_Msg_N on new formal Report_Errs. | |
327 | (Valid_Conversion.Error_Msg_NE): New procedure that conditions the | |
328 | calling of Error_Msg_NE on new formal Report_Errs. | |
329 | (Valid_Conversion): Move declaration of this function to the package | |
330 | spec, to allow calls from membership test processing. For Ada 2012, | |
331 | enforce legality restrictions on implicit conversions of anonymous | |
332 | access values to general access types, disallowing such conversions in | |
333 | cases where the expression has a dynamic accessibility level (access | |
334 | parameters, stand-alone anonymous access objects, or a component of a | |
335 | dereference of one of the first two cases). | |
336 | * sem_type.adb (Covers): For Ada 2012, allow an anonymous access type | |
337 | in the context of a named general access expected type. | |
338 | * exp_ch4.adb Add with and use of Exp_Ch2. | |
339 | (Expand_N_In): Add processing for membership tests applied to | |
340 | expressions of an anonymous access type. First, Valid_Conversion is | |
341 | called to check whether the test is statically False, and then the | |
342 | conversion is expanded to test that the expression's accessibility | |
343 | level is no deeper than that of the tested type. In the case of | |
344 | anonymous access-to-tagged types, a tagged membership test is applied | |
345 | as well. | |
346 | (Tagged_Membership): Extend to handle access type cases, applying the | |
347 | test to the designated types. | |
348 | * exp_ch6.adb (Expand_Call): When creating an extra actual for an | |
349 | accessibility level, and the actual is a 'Access applied to a current | |
350 | instance, pass the accessibility level of the type of the current | |
351 | instance rather than applying Object_Access_Level to the prefix. Add a | |
352 | ??? comment, since this level isn't quite right either (will eventually | |
353 | need to pass an implicit level parameter to init procs). | |
354 | ||
747de90b AC |
355 | 2011-08-30 Bob Duff <duff@adacore.com> |
356 | ||
357 | * s-taskin.ads: Minor comment fix. | |
358 | ||
359 | 2011-08-30 Ed Schonberg <schonberg@adacore.com> | |
360 | ||
361 | * sem_res.adb (Check_Parameterless_Call): If the node is a selected | |
362 | component and the selector is a dispatching operation, check if it is | |
363 | a prefixed call before rewriting as a parameterless function call. | |
364 | ||
cdc4cc65 JJ |
365 | 2011-08-29 Jakub Jelinek <jakub@redhat.com> |
366 | ||
367 | * gcc-interface/Makefile.in (../stamp-gnatlib1-$(RTSDIR)): Copy | |
368 | tsystem.h into $(RTSDIR) instead of rts. | |
369 | ||
226a7fa4 AC |
370 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
371 | ||
372 | * sem_ch10.adb, a-coorse.adb, exp_dist.adb, exp_ch3.adb: Minor | |
373 | reformatting. | |
374 | * gcc-interface/Make-lang.in: Update dependencies. | |
375 | ||
376 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
377 | ||
378 | * alfa.ads (Name_Of_Heap_Variable): New constant name. | |
379 | * lib-xref-alfa.adb, lib-xref.adb, lib-xref.ads (Drefs): New global | |
380 | table to hold dereferences. | |
381 | (Add_ALFA_Xrefs): Take into account dereferences as special | |
382 | reads/writes to the variable "HEAP". | |
383 | (Enclosing_Subprogram_Or_Package): Move subprogram here. | |
384 | (Generate_Dereference): New procedure to store a read/write dereferencew | |
385 | in the table Drefs. | |
386 | * put_alfa.adb (Put_ALFA): Use different default than (0,0) used for | |
387 | the special "HEAP" var. | |
388 | * sem_ch4.adb (Analyze_Explicit_Dereference): Store read dereference | |
389 | in ALFA mode. | |
390 | * sem_util.adb (Note_Possible_Modification): Store write dereference | |
391 | in ALFA mode. | |
392 | ||
dfbcb149 HK |
393 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
394 | ||
395 | * exp_ch3.adb (Freeze_Type): Generate an accessibility check which | |
396 | ensures that the level of the subpool access type is not deeper than | |
397 | that of the pool object. | |
398 | * sem_util.adb (Object_Access_Level): Expand to handle defining | |
399 | identifiers. | |
400 | * sem_res.adb (Resolve_Allocator): Add a guard to avoid examining the | |
401 | subpool handle name of a rewritten allocator. | |
402 | ||
1df4f514 AC |
403 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
404 | ||
405 | * impunit.adb, exp_ch4.adb, s-finmas.adb: Minor reformatting. | |
406 | ||
407 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
408 | ||
409 | * exp_dist.adb (TC_Rec_Add_Process_Element): For a choice with multiple | |
410 | values, we generate multiple triples of parameters in the TypeCode. | |
411 | Bump Choice_Index for each such triple so that a subsequent default | |
412 | choice is associated with the correct index in the typecode. | |
413 | ||
414 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
415 | ||
416 | * a-cdlili.adb (Iterate): Initialize properly an iterator over a null | |
417 | container. | |
418 | (First, Last): Handle properly an iterator over a null container. | |
419 | ||
420 | 2011-08-29 Bob Duff <duff@adacore.com> | |
421 | ||
422 | * sem_ch10.adb (Analyze_With_Clause,Install_Withed_Unit): Abandon | |
423 | processing if we run across a node with no Scope. This can happen if | |
424 | we're with-ing an library-level instance, and that instance got errors | |
425 | that caused "instantiation abandoned". | |
426 | * sem_util.adb (Unit_Declaration_Node): Make it more robust, by raising | |
427 | an exception instead of using Assert, so it won't go into an infinite | |
428 | loop, even when assertions are turned off. | |
429 | ||
430 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
431 | ||
432 | * a-coorse.adb: Proper handling of empty ordered sets. | |
433 | ||
14f0f659 AC |
434 | 2011-08-29 Johannes Kanig <kanig@adacore.com> |
435 | ||
436 | * debug.adb: Add comments. | |
437 | ||
8027b455 AC |
438 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
439 | ||
440 | * a-except.adb, a-except-2005.adb: Minor comment rewording and | |
441 | reformatting. | |
442 | ||
443 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
444 | ||
445 | * sem_ch3.adb (Array_Type_Declaration): Remove insertion of | |
446 | declaration for Itypes in Alfa mode. | |
447 | ||
d85fd922 AC |
448 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
449 | ||
450 | * a-cdlili.ads, a-coinve.ads, a-coorma.adb, a-coorma.ads, s-tassta.adb, | |
451 | a-cborma.adb, a-cborma.ads, a-cohama.ads, a-coorse.ads, a-cbhama.ads, | |
452 | a-cborse.ads, a-cobove.adb, a-cobove.ads, a-cbhase.ads: Minor | |
453 | reformatting. | |
454 | ||
455 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
456 | ||
457 | * exp_ch7.adb, exp_ch7.ads (Build_Exception_Handler): Move its spec to | |
458 | package spec. | |
459 | * exp_intr.adb (Expand_Unc_Deallocation): Use Build_Exception_Handler. | |
460 | * a-except.adb, a-except-2005.adb (Rcheck_22): Do not defer aborts | |
461 | while raising PE. | |
462 | ||
fd3d2680 AC |
463 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
464 | ||
465 | * a-cbhama.adb, a-cbhama.ads: Minor reformatting. | |
466 | ||
467 | 2011-08-29 Javier Miranda <miranda@adacore.com> | |
468 | ||
469 | * sem_ch8.adb (Analyze_Subprogram_Renaming): Complete support for | |
470 | renamings of formal subprograms when the actual for a formal type is | |
471 | class-wide. | |
472 | ||
dfbf013f MH |
473 | 2011-08-29 Matthew Heaney <heaney@adacore.com> |
474 | ||
475 | * a-cbhama.ads, a-cbhase.ads (Move): Clear Source following assignment | |
476 | to Target. | |
477 | ||
478 | 2011-08-29 Matthew Heaney <heaney@adacore.com> | |
479 | ||
480 | * a-cborma.ads, a-cborse.ads (Cursor): Default-initialize all | |
481 | components of record type. | |
482 | * a-cborma.adb, a-cborse.adb (Move): Clear Source following assignmentw | |
483 | to Target. | |
484 | ||
a6dd3a54 ES |
485 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> |
486 | ||
487 | * a-cbhama.adb, a-cbhama.ads, a-cborma.adb, a-cborma.ads, a-cobove.adb, | |
488 | a-cobove.ads, a-coorma.adb, a-coorma.ads: Add iterator machinery to | |
489 | container packages. | |
490 | ||
c54796e0 AC |
491 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
492 | ||
493 | * sem_ch3.adb, sem_util.adb, gnat1drv.adb, s-parint.ads: Minor | |
494 | reformatting. | |
495 | ||
496 | 2011-08-29 Matthew Heaney <heaney@adacore.com> | |
497 | ||
498 | * a-cbhama.ads, a-cbhase.ads (Cursor): Default-initialize all | |
499 | components of record type. | |
500 | ||
501 | 2011-08-29 Bob Duff <duff@adacore.com> | |
502 | ||
503 | * s-tassta.adb (Task_Wrapper): Handle and ignore exceptions propagated | |
504 | by the termination handler. | |
505 | ||
9fd9d2be AC |
506 | 2011-08-29 Yannick Moy <moy@adacore.com> |
507 | ||
508 | * sem_ch3.adb (Array_Type_Declaration): Create declarations for Itypes | |
509 | created in Alfa mode, instead of inserting artificial declarations of | |
510 | non-Itypes in the tree. | |
511 | * sem_util.adb, sem_util.ads (Itype_Has_Declaration): New function to | |
512 | know if an Itype has a corresponding declaration, as defined in | |
513 | itypes.ads. | |
514 | ||
515 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
516 | ||
517 | * gnat1drv.adb: Minor rewrite. | |
518 | ||
519 | 2011-08-29 Bob Duff <duff@adacore.com> | |
520 | ||
521 | * s-tasuti.adb (Make_Passive): Work around race condition in | |
522 | Make_Independent, which can cause Wait_Count to be zero. So instead of | |
523 | asserting that Wait_Count > 0, and then decrementing it, decrement it | |
524 | only if Wait_Count > 0. | |
525 | * s-taskin.ads (Wait_Count, Alive_Count, Awake_Count): All of these | |
526 | should be nonnegative, so declare them Natural instead of Integer. | |
527 | ||
833eaa8a AC |
528 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
529 | ||
530 | * exp_ch5.adb, sem_ch3.adb, a-cihama.adb, a-cihama.ads, exp_ch7.adb, | |
531 | sem_ch5.adb, a-ciorse.adb, a-ciorse.ads, sem_ch12.adb, a-cidlli.adb, | |
532 | a-cidlli.ads, sem_util.adb, sem_res.adb, gnat1drv.adb, a-except.adb, | |
533 | a-except.ads, a-except-2005.ads, sem_ch4.adb, exp_disp.adb, | |
534 | exp_aggr.adb, sem_ch13.adb, par-ch3.adb: Minor reformatting. | |
535 | ||
536 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
537 | ||
538 | * s-auxdec-vms-alpha.adb: Add comments, remove some HT before labels. | |
539 | ||
540 | 2011-08-29 Vadim Godunko <godunko@adacore.com> | |
541 | ||
542 | * s-parint.ads: Minor comment clarification. | |
543 | ||
544 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
545 | ||
546 | * prj.adb (Initialize): Make sure that new reserved words after Ada 95 | |
547 | may be used as identifiers. | |
548 | ||
549 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
550 | ||
551 | * a-coinho.ads: Minor reformating. | |
552 | ||
3a613a36 AC |
553 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> |
554 | ||
555 | * exp_ch5.adb (Expand_Iterator_Loop): Handle properly a loop over a | |
556 | container of a derived type. | |
557 | ||
3a613a36 AC |
558 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> |
559 | ||
560 | * a-cidlli.adb, a-cidlli.ads, a-cihama.adb, a-cihama.ads, | |
561 | a-ciorse.adb, a-ciorse.ads: Add iterator machinery to containers. | |
562 | ||
14848f57 AC |
563 | 2011-08-29 Pascal Obry <obry@adacore.com> |
564 | ||
565 | * exp_disp.adb: Minor comment fix. | |
566 | (Make_Disp_Asynchronous_Select_Body): Properly initialize out parameters | |
567 | to avoid warnings when compiling with -Wall. | |
568 | (Make_Disp_Conditional_Select_Body): Likewise. | |
569 | (Make_Disp_Timed_Select_Body): Likewise. | |
570 | ||
571 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
572 | ||
573 | * sem_ch12.adb (Analyze_Formal_Subprogram_Declaration): If default is | |
574 | an entity name, generate reference for it. | |
575 | ||
576 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
577 | ||
578 | * exp_ch5.adb (Expand_Iterator_Loop): Uniform handling of "X of S" | |
579 | iterator form. | |
580 | * sem_util.adb (Is_Iterator, Is_Reversible_Iterator): Yield True for | |
581 | the class-wide type. | |
582 | * sem_ch5.adb: Move some rewriting to the expander, where it belongs. | |
583 | ||
584 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
585 | ||
586 | * sem_ch8.adb (Check_Constrained_Object): Do not create an actual | |
587 | subtype for an object whose type is an unconstrained union. | |
588 | ||
589 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
590 | ||
591 | * par-ch3.adb (P_Array_Type_Definiation, P_Component_Items): "aliased" | |
592 | is allowed in a component definition, by AI95-406. | |
593 | ||
594 | 2011-08-29 Matthew Heaney <heaney@adacore.com> | |
595 | ||
596 | * a-chtgbo.adb (Generic_Iteration): Use correct overloading of Next. | |
597 | ||
598 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> | |
599 | ||
600 | * a-except-2005.adb: Alphabetize all routines. | |
601 | (Triggered_By_Abort): New routine. | |
602 | * a-except-2005.ads (Triggered_By_Abort): New routine. | |
603 | * a-except.adb Alphabetize all routines. | |
604 | (Triggered_By_Abort): New routine. | |
605 | * a-except.ads (Triggered_By_Abort): New routine. | |
606 | * exp_ch7.adb: Update all comments involving the detection of aborts in | |
607 | finalization code. | |
608 | (Build_Object_Declarations): Do not generate code to detect the | |
609 | presence of an abort at the start of finalization code, use a runtime | |
610 | routine istead. | |
611 | * rtsfind.ads: Add RE_Triggered_By_Abort to tables RE_Id and | |
612 | RE_Unit_Table. | |
613 | * sem_res.adb (Resolve_Allocator): Emit a warning when attempting to | |
614 | allocate a task on a subpool. | |
615 | * s-stposu.adb: Add library-level flag Finalize_Address_Table_In_Use. | |
616 | The flag disables all actions related to the maintenance of | |
617 | Finalize_Address_Table when subpools are not in use. | |
618 | (Allocate_Any_Controlled): Signal the machinery that subpools are in | |
619 | use. | |
620 | (Deallocate_Any_Controlled): Do not call Delete_Finalize_Address which | |
621 | performs costly task locking when subpools are not in use. | |
622 | ||
57a8057a AC |
623 | 2011-08-29 Yannick Moy <moy@adacore.com> |
624 | ||
625 | * gnat1drv.adb (Adjust_Global_Switches): Restore expansion of tagged | |
626 | types and dispatching calls in Alfa mode. | |
627 | * lib-xref-alfa.adb (Collect_ALFA): Rewrite computation of | |
628 | correspondance between body and spec scopes, to reuse utility functions | |
629 | (Traverse_Declarations_Or_Statements): Protect access to body for stub | |
630 | by testing the presence of the library unit for the body | |
631 | * sem_ch6.adb (Set_Actual_Subtypes): take into account that in Alfa | |
632 | mode the expansion of accept statements is skipped | |
633 | * sem_util.adb, sem_util.ads (Unique_Entity): New function returning | |
634 | the unique entity corresponding to the one returned by | |
635 | Unique_Defining_Entity applied to the enclosing declaration of the | |
636 | argument. | |
637 | ||
638 | 2011-08-29 Bob Duff <duff@adacore.com> | |
639 | ||
640 | * treepr.ads: Improve debugging facilities. pn(x) no longer crashes in | |
641 | gdb when x is not a node (it can be a node list, name_id, etc). pp is | |
642 | an alias for pn. ppp is an alias for pt. | |
643 | ||
644 | 2011-08-29 Javier Miranda <miranda@adacore.com> | |
645 | ||
646 | * exp_aggr.adb (Expand_Record_Aggregate): Use the top-level enclosing | |
647 | aggregate to take a consistent decision on the need to convert into | |
648 | assignments aggregates that initialize constant objects. | |
649 | ||
650 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> | |
651 | ||
652 | * exp_ch4.adb (Expand_Allocator_Expression): Add a call to | |
653 | Build_Allocate_Deallocate_Proc in order to handle allocation of | |
654 | non-controlled objects on subpools. | |
655 | * impunit.adb: Remove s-finmas and s-spsufi since they were never meant | |
656 | to be end-user visible. | |
657 | * s-finmas.adb: Add with and use clause for System.HTable. | |
658 | Add an instantiation of Simple_HTable which provides a mapping between | |
659 | the address of a controlled object and the corresponding | |
660 | Finalize_Address used to clean up the object. The table is used when a | |
661 | master is operating in heterogeneous mode. | |
662 | (Attach): Explain why the input node is not verified on being already | |
663 | attached. | |
664 | (Delete_Finalize_Address): New routine. | |
665 | (Detach): Add pragma Assert which ensures that a node is already | |
666 | attached. | |
667 | (Finalize): Add local variable Cleanup. Rewrite the iteration scheme | |
668 | since nodes are no longer removed on traversal. Explain why node | |
669 | detachment is undesirable in this case. | |
670 | (Get_Finalize_Address): New routine. | |
671 | (Hash): New routine. | |
672 | (Is_Empty_List): Removed. | |
673 | (pm): Renamed to Print_Master. Add output for discriminant | |
674 | Is_Homogeneous. | |
675 | Comment reformatting. | |
676 | (Set_Finalize_Address (Address, Finalize_Address_Ptr)): New routine. | |
677 | * s-finmas.ads: Various comments additions / improvements. | |
678 | Type Finalization_Master has a discriminant which determines the mode of | |
679 | operation. | |
680 | (Delete_Finalize_Address): New routine. | |
681 | (Get_Finalize_Address): New routine. | |
682 | (pm): Renamed to Print_Master. | |
683 | (Set_Finalize_Address (Address, Finalize_Address_Ptr)): New routine. | |
684 | * s-stposu.adb: Add with clause for System.Address_Image; Add with and | |
685 | use clause for System.IO. | |
686 | (Allocate_Any_Controlled): Add machinery to set TSS primitive | |
687 | Finalize_Address depending on the mode of allocation and the mode of | |
688 | the master. | |
689 | (Deallocate_Any_Controlled): Remove the relation pair object - | |
690 | Finalize_Address regardless of the master mode. Add comment explaining | |
691 | the reason. | |
692 | (Detach): Ensure that fields Prev and Next are null after detachment. | |
693 | (Finalize_Pool): Remove local variable Next_Ptr. Rewrite the iteration | |
694 | scheme to check whether the list of subpools is empty. There is no | |
695 | longer need to store the next subpool or advance the current pointer. | |
696 | (Is_Empty_List): New routine. | |
697 | (Print_Pool): New routine. | |
698 | (Print_Subpool): New routine. | |
699 | * s-stposu.ads: Various comments additions / improvements. | |
700 | Field Master of type Root_Subpool is now a heterogeneous collection. | |
701 | (Print_Pool): New routine. | |
702 | (Print_Subpool): New routine. | |
703 | ||
704 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
705 | ||
706 | * exp_ch5.adb (Expand_N_Iterator_Loop): Implement Ada2012 loop iterator | |
707 | forms, using aspects of container types. | |
708 | * sem_ch3.adb (Find_Type_Name): Preserve Has_Delayed_Aspects and | |
709 | Has_Implicit_Dereference flags, that may be set on the partial view. | |
710 | * sem_ch4.adb (Process_Overloaded_Indexed_Component): Prefix may be a | |
711 | container type with an indexing aspect. | |
712 | (Analyze_Quantified_Expression): Analyze construct with expansion | |
713 | disabled, because it will be rewritten as a loop during expansion. | |
714 | (Try_Container_Indexing): The prefix itself may be a container type | |
715 | with an indexing aspect, as with a vector of vectors. | |
716 | * sem_ch5.adb (Analyze_Iteration_Scheme): In a generic context, analyze | |
717 | the original doamin of iteration, for name capture. | |
718 | (Analyze_Iterator_Specification): If the domain is an expression that | |
719 | needs finalization, create a separate declaration for it. | |
720 | For an iterator with "of" retrieve default iterator info from aspect of | |
721 | container type. For "in" iterator, retrieve type of Iterate function. | |
722 | * sem_ch13.adb (Check_Iterator_Function): Fix typo. | |
723 | (Check_Aspect_At_End_Of_Declaration): Make type unfrozen before | |
724 | analysis, to prevent spurious errors about late attributes. | |
725 | * sprint.adb: Handle quantified expression with either loop or iterator | |
726 | specification. | |
727 | * a-convec.ads, a-convec.adb: Iterate function returns a reversible | |
728 | iterator. | |
729 | ||
ddf67a1d AC |
730 | 2011-08-29 Vincent Celier <celier@adacore.com> |
731 | ||
732 | * make.adb (Scan_Make_Arg): Take any option as is in packages Compiler, | |
733 | Binder or Linker of the main project file. | |
734 | ||
735 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
736 | ||
737 | * inline.adb (Add_Scopes_To_Clean): Exclude any entity within a generic | |
738 | unit. | |
739 | ||
740 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
741 | ||
742 | * exp_ch9.adb: Partial revert of previous change for Alfa mode | |
743 | ||
744 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
745 | ||
746 | * exp_ch11.adb: Minor expansion of comment. | |
747 | ||
748 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
749 | ||
750 | * lib-xref-alfa.adb (Add_ALFA_Scope): Treat generic entities. | |
751 | ||
752 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
753 | ||
754 | * sem_res.adb (Resolve_Arithmetic_Op): If the node has a universal | |
755 | interpretation, set the type before resolving the operands, because | |
756 | legality checks on an exponention operand need to know the type of the | |
757 | context. | |
758 | ||
759 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
760 | ||
761 | * sem_ch12.adb (Analyze_Package_Instantiation): Do not set delayed | |
762 | cleanups on a master if the instance is within a generic unit. | |
763 | Complement to the corresponding fix to inline.adb for K520-030. | |
764 | ||
765 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
766 | ||
767 | * exp_ch7.adb (Build_Raise_Statement): Raise PE instead of the current | |
768 | occurrence. | |
769 | * exp_intr.adb: Minor comment fix. | |
770 | ||
771 | 2011-08-29 Bob Duff <duff@adacore.com> | |
772 | ||
773 | * sem_ch13.adb (Analyze_Aspect_Specifications): Fix cases where | |
774 | Delay_Required was used as an uninitialized variable. | |
775 | ||
690943fc RD |
776 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
777 | ||
778 | * a-cdlili.adb, a-cdlili.ads, a-coinve.adb, a-coinve.ads, | |
779 | sem_util.adb, sem_util.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, | |
780 | a-coorse.ads, aspects.ads, sem_ch8.adb: Minor reformatting. | |
781 | ||
9f0ee988 TQ |
782 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
783 | ||
784 | * system-freebsd-x86_64.ads (Backend_Overflow_Checks): Set true True. | |
785 | Remove unused variables. | |
786 | ||
3e24afaa AC |
787 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> |
788 | ||
789 | * sem_res.adb: Remove Build_Explicit_Dereference. | |
790 | * sem_util.adb, sem_util.ads (Build_Explicit_Dereference): Moved here | |
791 | from sem_res.adb, used in analysis of additional constructs. | |
792 | (Is_Iterator, Is_Reversible_Iterator): New predicates for Ada2012 | |
793 | expansion of iterators. | |
794 | (Is_Object_Reference): Recognize variables rewritten as explicit | |
795 | dereferences in Ada2012. | |
796 | * snames.ads-tmpl: Add Has_Element, Forward_Iterator, | |
797 | Reversible_Iterator names, for expansion of Ada2012 iterators. | |
798 | * aspects.ads, aspects.adb (Find_Aspect): Utility. | |
799 | * a-cdlili.ads, a-cdlili.adb: Add new iterator machinery to doubly | |
800 | linked list container. | |
801 | * a-coinve.ads, a-coinve.adb: Ditto for indefinite vector containers. | |
802 | * a-coorse.ads, a-coorse.adb: Ditto for ordered sets. | |
803 | ||
804 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
805 | ||
806 | * a-cohama.adb, a-cohama.ads: Add iterator primitives to hashed map | |
807 | containers. | |
808 | ||
809 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
810 | ||
811 | * make.adb (Gnatmake): Get the maximum number of simultaneous | |
812 | compilation processes after the Builder switches has been scanned, as | |
813 | there may include -jnn. | |
814 | ||
815 | 2011-08-29 Matthew Heaney <heaney@adacore.com> | |
816 | ||
817 | * a-chtgbo.adb (Generic_Equal): Use correct overloading of Next. | |
818 | ||
819 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
820 | ||
821 | * gnatcmd.adb (GNATCmd): On OpenVMS, truncate the length of | |
822 | GNAT_DRIVER_COMMAND_LINE to 255. | |
823 | ||
824 | 2011-08-29 Pascal Obry <obry@adacore.com> | |
825 | ||
826 | * freeze.adb, sem_ch8.adb, a-convec.adb, a-convec.ads: Minor | |
827 | reformatting and style fix (class attribute casing). | |
828 | ||
829 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
830 | ||
831 | * exp_ch11.adb: Yet another case where expansion should be common | |
832 | between CodePeer and Alfa. | |
833 | ||
834 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
835 | ||
836 | * exp_ch9.adb: Partial revert of previous change for Alfa mode. | |
837 | ||
838 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
839 | ||
840 | * sem_ch6.adb (Matches_Limited_With_View): The limited views of an | |
841 | incomplete type and its completion match. | |
842 | ||
3ddd922e AC |
843 | 2011-08-29 Yannick Moy <moy@adacore.com> |
844 | ||
845 | * exp_ch13.adb: Adjust previous change. | |
846 | ||
847 | 2011-08-29 Robert Dewar <dewar@adacore.com> | |
848 | ||
849 | * sem_prag.adb, prj.adb, sem_util.adb, sem_res.adb, gnat1drv.adb, | |
850 | exp_ch4.adb, sem_ch8.adb: Minor code reorganization | |
851 | Minor reformatting. | |
852 | ||
444acbdd AC |
853 | 2011-08-29 Emmanuel Briot <briot@adacore.com> |
854 | ||
855 | * make.adb, prj.adb, prj.ads (Compute_All_Imported_Projects): Also | |
856 | initialize aggregated projects. | |
857 | ||
858 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
859 | ||
860 | * sem_ch8.adb (Find_Renamed_Entity): Within an instance, use scope | |
861 | depth of candidates to resolve a potentially spurious ambiguity between | |
862 | two visible subprograms. | |
863 | ||
e0296583 AC |
864 | 2011-08-29 Yannick Moy <moy@adacore.com> |
865 | ||
866 | * sem_prag.adb (Analyze_Pragma): Allow Test_Case pragma without | |
867 | Requires/Ensures. | |
868 | * sem_util.adb (Get_Ensures_From_Test_Case_Pragma, | |
869 | Get_Requires_From_Test_Case_Pragma): Allow Test_Case pragma without | |
870 | Requires/Ensures. | |
871 | ||
872 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> | |
873 | ||
874 | * gnat1drv.adb (Adjust_Global_Switches): Improve previous change. | |
875 | Add comment. | |
876 | ||
877 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
878 | ||
879 | * sem_res.adb: Minor reformatting. | |
880 | ||
69794413 JK |
881 | 2011-08-29 Johannes Kanig <kanig@adacore.com> |
882 | ||
883 | * exp_ch4.adb (Expand_Quantified_Expression): Do not expand in ALFA | |
884 | mode. | |
885 | * gnat1drv.adb (Adjust_Global_Switches): Set | |
886 | Use_Expressions_With_Actions to False in ALFA mode. | |
887 | * sem_res.adb (Resolve_Quantified_Expression): Simpler treatment in | |
888 | ALFA mode. | |
889 | ||
59e6b23c AC |
890 | 2011-08-29 Yannick Moy <moy@adacore.com> |
891 | ||
892 | * exp_ch13.adb (Expand_N_Freeze_Entity): Do nothing in Alfa mode. | |
893 | * exp_ch9.adb: Do not expand tasking constructs in Alfa mode. | |
894 | * gnat1drv.adb (Adjust_Global_Switches): Suppress the expansion of | |
895 | tagged types and dispatching calls in Alfa mode. | |
896 | ||
897 | 2011-08-29 Javier Miranda <miranda@adacore.com> | |
898 | ||
899 | * sem_ch3.adb (Process_Discriminants): Add missing check to ensure that | |
900 | we do not report an error on an Empty node. | |
901 | ||
902 | 2011-08-29 Geert Bosch <bosch@adacore.com> | |
903 | ||
904 | * Makefile.rtl (GNATRTL_NONTASKING_OBJECTS): Add a-nllrar.o, | |
905 | a-nlrear.o and a-nurear.o. | |
906 | ||
907 | 2011-08-29 Robert Dewar <dewar@adacore.com> | |
908 | ||
909 | * freeze.adb: Minor code reorganization. | |
910 | Minor reformatting. | |
911 | * sem_util.adb, errout.adb, exp_ch11.adb, a-ngrear.adb, s-gearop.adb, | |
912 | sem_ch6.adb: Minor reformatting | |
913 | ||
914 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
915 | ||
916 | * s-except.ads, s-except.adb: Provide dummy body. | |
917 | ||
918 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
919 | ||
920 | * sem_warn.adb (Within_Postcondition): Take into account the case of | |
921 | an Ensures component in a Test_Case. | |
922 | ||
4d792549 AC |
923 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
924 | ||
925 | * s-excdeb.ads, s-excdeb.adb: New files, created from s-except. | |
926 | * rtsfind.ads (RTU_Id): Replaces System_Exceptions by | |
927 | System_Exceptions_Debug | |
928 | (RE_Unit_Table): Search RE_Local_Raise in System_Exceptions_Debug | |
929 | * a-except.adb: With and use System.Exceptions_Debug instead of | |
930 | System.Exceptions. | |
931 | * a-except-2005.adb: Likewise. | |
932 | * s-assert.adb: Likewise. | |
933 | * s-except.adb, s-except.ads: Move debugging hooks to s-excdeb. | |
934 | * Makefile.rtl: Add s-excdeb. Adjust compilation rule. | |
935 | * gcc-interfaces/Makefile.in, gcc-interface/Make-lang.in: Add | |
936 | s-excdeb. Update dependencies. | |
937 | (GNATRTL_LINEARALGEBRA_OBJS): Remove a-nlrear.o a-nurear.o a-nllrar.o | |
938 | as these no longer need external libraries. | |
939 | ||
940 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
941 | ||
942 | * sem_res.adb (Resolve_Op_Expon): Additional check to reject an | |
943 | exponentiation operator on universal values in a context that requires | |
944 | a fixed-point type. | |
945 | ||
946 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
947 | ||
948 | * raise-gcc.c (personnality_routine): Fix thinko. Set Ada occurrence | |
949 | before calling notify_handled_exception. | |
950 | * a-exextr.adb: Fix comment. | |
951 | ||
b254da66 AC |
952 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
953 | ||
954 | * exp_ch4.adb (Expand_Allocator_Expression): Add code to set attribute | |
955 | Finalize_Address of the access type's finalization master. | |
956 | (Expand_N_Allocator): Add code to set attribute Finalize_Address of the | |
957 | access type's finalization master. Add a guard to prevent | |
958 | Associated_Storage_Pool from being set on .NET/JVM. | |
959 | * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Add code to set | |
960 | attribute Finalize_Address of the access type's finalization master. | |
961 | * exp_ch7.adb (Make_Finalize_Address_Call): New routine. | |
962 | * exp_ch7.ads (Make_Finalize_Address_Call): New routine. | |
963 | * rtsfind.ads: Add RE_Set_Finalize_Address to tables RE_Id and | |
964 | RE_Unit_Table. | |
965 | * s-finmas.adb: Add with clause for System.Address_Image. Add with and | |
966 | use clause for System.IO | |
967 | (Detach): Relax the assertion, to be reinstated later. | |
968 | (Finalize): Rewrite the iteration loop to avoid pointer comparison. | |
969 | Relax the assertion on Finalize_Address, to be reinstated later. | |
970 | (Is_Empty_List): New routine. | |
971 | (pm): New debug routine. | |
972 | (Set_Finalize_Address): New routine. | |
973 | * s-finmas.ads (pm): New debug routine. | |
974 | (Set_Finalize_Address): New routine. | |
975 | * s-stposu.adb (Allocate_Any_Controlled): Code reformatting. | |
976 | ||
977 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
978 | ||
979 | * a-exexpr-gcc.adb (GCC_Exception_Access, GNAT_GCC_Exception_Access): | |
980 | Remove convention C. | |
981 | ||
982 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
983 | ||
984 | * s-taprop-vms.adb (Get_Exc_Stack_Addr): Remove. | |
985 | (Initialize_TCB): Remove Exc_Stack_Ptr initialization. | |
986 | (Finalize_TCB): Remove its finalization. | |
987 | (Initialize): Remove assignment of GET_Exc_Stack_Addr | |
988 | * s-soflin.adb (NT_Exc_Stack): Remove | |
989 | (Get_Exc_Stack_Addr_NT): Likewise. | |
990 | (Get_Exc_Stack_Addr_Soft): Likewise. | |
991 | * s-soflin.ads (Get_Exc_Stack_Addr_NT): Remove. | |
992 | (Get_Exc_Stack_Addr): Likewise. | |
993 | (Get_Exc_Stack_Addr_Soft): Likewise | |
994 | * s-taspri-vms.ads (Exc_Stack_T): Remove. | |
995 | (Exc_Stack_Ptr_T): Likewise. | |
996 | (Private_Data): Remove Exc_Stack_Ptr component. | |
997 | ||
998 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
999 | ||
1000 | * raise-gcc.c (get_ip_from_context): New function. Factorize code. | |
1001 | ||
1002 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
1003 | ||
1004 | * gnat_ugn.texi: Fix aix and x86-solaris info for run-time. | |
1005 | ||
1006 | 2011-08-29 Geert Bosch <bosch@adacore.com> | |
1007 | ||
1008 | * s-gearop.ads (Back_Substitute, Diagonal, Forward_Eliminate, | |
1009 | L2_Norm, Swap_Column): New generic subprograms | |
1010 | * s-gearop.adb (Back_Substitute, Diagonal, Forward_Eliminate, | |
1011 | L2_Norm, Swap_Column): Implement new subprograms in order to | |
1012 | eliminate dependency on BLAS and LAPACK libraries in | |
1013 | Ada.Numerics.Generic_Real_Arrays and eventually also the complex | |
1014 | version. Forward_Eliminate/Back_Substitute can be used to put a | |
1015 | matrix in row echelon or reduced row echelon form using partial | |
1016 | pivoting. | |
1017 | * a-ngrear.adb: (Back_Substitute, Diagonal, Forward_Eleminate, | |
1018 | Swap_Column): Instantiate from System.Generic_Array_Operations. | |
1019 | ("*", "abs"): Implement by instantiation from Generic_Array_Operations. | |
1020 | (Sqrt): Local function for simple computation of square root without | |
1021 | adding dependencies on Generic_Elementary_Functions. | |
1022 | (Swap): New subprogram to exchange floating point numbers. | |
1023 | (Inverse): Reimplement using Jordan-Gauss elimination. | |
1024 | (Jacobi): New procedure implementing Jacobi's method for computation | |
1025 | of eigensystems, based on Rutishauser's implementation. | |
1026 | (L2_Norm): Implement directly using the inner product. | |
1027 | (Sort_Eigensystem): Sort eigenvalue/eigenvector pairs in order of | |
1028 | decreasing eigenvalue as required by the Ada RM. | |
1029 | (Swap_Column): New helper procedure for Sort_Eigensystem. | |
1030 | Remove with of System.Generic_Real_BLAS and System.Generic_Real_LAPACK. | |
1031 | Add with of Ada.Containers.Generic_Anonymous_Array_Sort, for | |
1032 | Sort_Eigensystems. | |
1033 | ||
1034 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1035 | ||
1036 | * put_scos.adb (Put_SCOs): Do not emit a newline for an empty | |
1037 | statements line. | |
1038 | ||
60370fb1 AC |
1039 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
1040 | ||
1041 | * s-finmas.adb (Finalize): Check Finalize_Address of the master rather | |
1042 | than the current node. | |
1043 | * s-finmas.ads: Move field Finalize_Address from type FM_Node to | |
1044 | Finalization_Master. The list headers have two fields instead of three. | |
1045 | This should fix alignment issue but subpool allocations are now | |
1046 | unusable. Alphabetize subprograms. | |
1047 | * s-stposu.adb (Allocate_Any_Controlled): Use the offset rather than | |
1048 | the size of the header when converting the beginning of the object to | |
1049 | a FM_Node. Set the master's Finalize_Address attribute if not already | |
1050 | set. | |
1051 | (Deallocate_Any_Controlled): Use the offset rather than the size of the | |
1052 | header when converting the beginning of the object to a FM_Node. | |
1053 | ||
1054 | 2011-08-29 Gary Dismukes <dismukes@adacore.com> | |
1055 | ||
1056 | * exp_ch11.adb (Expand_N_Raise_Statement): Don't suppress expansion of | |
1057 | reraise when compiling for CodePeer. | |
1058 | ||
1059 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> | |
1060 | ||
1061 | * a-iteint.ads, Makefile.rtl: Add missing compilation of a-iteint.ads, | |
1062 | now needed by a-convec.adb. Fix warning. | |
1063 | ||
1064 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> | |
1065 | ||
1066 | * exp_util.adb (Build_Allocate_Deallocate_Proc): Add a guard for the | |
1067 | processing of TSS routine Finalize_Address when compiling in | |
1068 | CodePeer_Mode. | |
1069 | ||
1070 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1071 | ||
1072 | * a-strunb.ads, einfo.ads, g-comlin.ads, sem_ch6.adb, | |
1073 | sem_warn.adb: Minor reformatting. | |
1074 | ||
1075 | 2011-08-29 Emmanuel Briot <briot@adacore.com> | |
1076 | ||
1077 | * prj-conf.adb (Get_Config_Switches): Also collect the list of | |
1078 | languages from aggregated projects. | |
1079 | ||
1080 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
1081 | ||
1082 | * lib-xref-alfa.adb, lib-xref.ads (Traverse_Declarations_Or_Statements, | |
1083 | Traverse_Handled_Statement_Sequence, Traverse_Package_Body, | |
1084 | Traverse_Package_Declaration, Traverse_Subprogram_Body, | |
1085 | Traverse_Compilation_Unit): Add a parameter Inside_Stubs so that bodies | |
1086 | for stubs are traversed too when parameter is set | |
1087 | (Traverse_All_Compilation_Units): Traverse without going inside stubs | |
1088 | (Traverse_Declarations_Or_Statements): Do the special traversing for | |
1089 | stubs when required. | |
1090 | * sem_util.adb, sem_util.ads (Get_Body_From_Stub): New function to | |
1091 | return subprogram or package body from stub. | |
1092 | (Is_Subprogram_Stub_Without_Prior_Declaration): New function to detect | |
1093 | stubs without prior subprogram decl. | |
1094 | ||
1095 | 2011-08-29 Vasiliy Fofanov <fofanov@adacore.com> | |
1096 | ||
1097 | * gnat_ugn.texi: Fix typo. | |
1098 | ||
e9c9d122 HK |
1099 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
1100 | ||
1101 | * s-stposu.adb (Allocate_Any_Controlled): Reimplement the mechanism | |
1102 | which accounts for size vs alignment issues and calculates the size of | |
1103 | the list header. | |
1104 | (Deallocate_Any_Controlled): Ditto. | |
1105 | (Nearest_Multiple_Rounded_Up): New routine. | |
1106 | ||
25ebc085 AC |
1107 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
1108 | ||
1109 | * a-exstat.adb (String_To_EO): Do no set Cleanup_Flag. | |
1110 | * a-exexda.adb (Set_Exception_C_Msg): Ditto. | |
1111 | (Set_Exception_Msg): Ditto. | |
1112 | * a-exexpr-gcc.adb (Setup_Current_Excep): Ditto. Do not set | |
1113 | Private_Data. | |
1114 | * a-except.adb, a-except-2005.adb (Save_Occurrence_No_Private): Remove. | |
1115 | Use Save_Occurrence instead of Save_Occurrence_No_Private. | |
1116 | (Raise_With_Msg): Remove Cleanup_Flag. | |
1117 | * a-except.ads, a-except-2005.ads (Exception_Occurrence): Remove | |
1118 | Clean_Flag and Private_Data components. | |
1119 | ||
1120 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
1121 | ||
1122 | * freeze.adb (Freeze_Record_Type): Ignore packing in Alfa mode, like | |
1123 | in CodePeer mode. | |
1124 | * sem_ch3.adb (Signed_Integer_Type_Declaration): Correct the generation | |
1125 | of an explicitly declared type, so that the base types of the original | |
1126 | type and this generated type are the same, and a "type" (not a subtype | |
1127 | like previously). | |
1128 | * errout.adb (Special_Msg_Delete): Do not issue messages "Size too | |
1129 | small" in Alfa mode, like in CodePeer mode. | |
1130 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore rep | |
1131 | clauses in Alfa mode. | |
1132 | ||
1133 | 2011-08-29 Javier Miranda <miranda@adacore.com> | |
1134 | ||
1135 | * exp_ch6.ads, exp_ch6.adb (Is_Null_Procedure): Move the spec of this | |
1136 | function to the package spec. | |
1137 | * sem_ch6.adb (Find_Corresponding_Spec, New_Overloaded_Entity): For | |
1138 | internally generated bodies of null procedures locate the internally | |
1139 | generated spec enforcing mode conformance. | |
1140 | (Is_Interface_Conformant): Ensure that the controlling formal of the | |
1141 | primitives match. | |
1142 | ||
1143 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1144 | ||
1145 | * sem_prag.adb (Analyze_Pragma, case Inline): In an instance, do not | |
1146 | reject the pragma if it appears to apply to a formal subprogram. | |
1147 | ||
1148 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1149 | ||
1150 | * exp_ch4.adb (Expand_Allocator_Expression): Use consistent name for | |
1151 | inner expression, to prevent double evaluation. | |
1152 | ||
590549fb AC |
1153 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
1154 | ||
1155 | * a-exexpr.adb (Propagate_Exception): Remove all the parameters as | |
1156 | they were unused. | |
1157 | * a-exexpr-gcc.adb (Propagate_Exception): Ditto. | |
1158 | * a-except-2005.adb (Propagate_Exception): Adjust spec. | |
1159 | (Raise_Current_Excep): Adjust call. | |
1160 | (Raise_From_Signal_Handler): Call now simply call Raise_Current_Excep. | |
1161 | ||
1162 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1163 | ||
1164 | * exp_disp.adb: Minor reformatting. | |
1165 | ||
62380e66 TG |
1166 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
1167 | ||
1168 | * a-exexpr.adb (Setup_Exception): Removed. | |
1169 | * a-exexpr-gcc.adb (Setup_Exception): Removed. | |
1170 | * a-except.adb (Exception_Propagation): Removed. | |
1171 | * a-except-2005.adb (Setup_Exception): Removed. | |
1172 | (Reraise): Remove call to Setup_Exception. | |
1173 | (Reraise_Occurrence): Ditto. | |
1174 | (Reraise_Occurrence_Always): Ditto. | |
1175 | (Reraise_Occurrence_No_Defer): Ditto. | |
1176 | (Transfer_Occurrence): Ditto. | |
1177 | * a-exexda.adb (Set_Exception_C_Msg): Remove call to Setup_Exception. | |
1178 | (Set_Exception_Msg): Ditto. | |
1179 | ||
c95aa61c AC |
1180 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1181 | ||
1182 | * a-convec.adb, exp_disp.adb: Minor reformatting. | |
1183 | ||
1184 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
1185 | ||
1186 | * a-exexpr-gcc.adb (GNAT_GCC_Exception_Access): Set to convention C. | |
1187 | ||
624e1688 AC |
1188 | 2011-08-29 Gary Dismukes <dismukes@adacore.com> |
1189 | ||
1190 | * exp_ch3.adb (Build_Record_Init_Proc.Build_Init_Procedure): Set | |
1191 | Exception_Handlers to No_List instead of Empty_List in the case where | |
1192 | there are no handlers. | |
1193 | ||
1194 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
1195 | ||
1196 | * gcc-interface/gigi.h (enum standard_datatypes): Add | |
1197 | ADT_reraise_zcx_decl | |
1198 | (reraise_zcx_decl): New macro. | |
1199 | * gcc-interface/trans.c (gnu_incoming_exc_ptr): New variable. | |
1200 | (gigi): Set reraise_zcx_decl. | |
1201 | (Exception_Handler_to_gnu_zcx): Save and restore gnu_incoming_exc_ptr. | |
1202 | (gnat_to_gnu): Handle N_Raise_Statement. | |
1203 | ||
7134062a AC |
1204 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1205 | ||
1206 | * sem_ch6.adb, exp_ch3.adb, s-stposu.adb, a-undesu.ads, | |
1207 | a-undesu.adb: Minor reformatting. | |
1208 | ||
1209 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1210 | ||
1211 | * exp_disp.adb (Check_Premature_Freezing): When building a dispatch | |
1212 | table, accept an unfrozen untagged component if it is an actual for a | |
1213 | formal incomplete type. | |
1214 | * a-convec.ads, a-convec.adb: Instantiate Ada.Iterator_Interfaces to | |
1215 | provide new iterator forms over vectors. | |
1216 | Introduce type Iterator in package body to implement operations of | |
1217 | Reversible_Iterator interface. | |
1218 | * a-iteint.ads: Make package pure so it is usable with new container | |
1219 | packages, that are categorized Remote_Types. | |
1220 | ||
ca5af305 AC |
1221 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1222 | ||
1223 | * a-exexpr-gcc.adb, a-synbar.adb, sem_ch13.adb: Minor reformatting. | |
1224 | ||
1225 | 2011-08-29 Bob Duff <duff@adacore.com> | |
1226 | ||
1227 | * sem_aggr.adb (Resolve_Aggr_Expr): Call this routine even in the case | |
1228 | of <>, because this is the routine that checks for dimensionality | |
1229 | errors (for example, for a two-dimensional array, (others => <>) should | |
1230 | be (others => (others => <>)). | |
1231 | ||
1232 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> | |
1233 | ||
1234 | * impunit.adb: Add new run-time units. | |
1235 | * freeze.adb, exp_ch7.ads, exp_ch7.adb, exp_util.ads, exp_util.adb, | |
1236 | s-stposu.ads, s-stposu.adb: Code clean up. | |
1237 | Handle protected class-wide or task class-wide types | |
1238 | Handle C/C++/CIL/Java types. | |
1239 | * s-spsufi.adb, s-spsufi.ads: New files. | |
1240 | ||
5accd7b6 AC |
1241 | 2011-08-29 Yannick Moy <moy@adacore.com> |
1242 | ||
1243 | * sem_ch13.adb (Analyze_Aspect_Specifications): Reject test-case on | |
1244 | library-level subprogram. | |
1245 | * sem_prag.adb (Check_Test_Case): Stricter rules for test-case | |
1246 | placement. | |
1247 | (Analyze_Pragma): Change name "Normal" for "Nominal" in test-case | |
1248 | component. | |
1249 | * snames.ads-tmpl: Change name "Normal" for "Nominal" in test-case | |
1250 | component. | |
1251 | * gnat_rm.texi: Update doc for Test_Case pragma. | |
1252 | ||
1253 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
1254 | ||
1255 | * a-exexpr-gcc.adb (Unwind_Exception): Remove default value, made it | |
1256 | convention C. | |
1257 | (GCC_Exception_Access): New type. | |
1258 | (Unwind_DeleteException): New imported procedure | |
1259 | (Foreign_Exception): Import it. | |
1260 | (GNAT_GCC_Exception): Simply have the occurrence inside. | |
1261 | (To_GCC_Exception): New function. | |
1262 | (To_GNAT_GCC_Exception): New function. | |
1263 | (GNAT_GCC_Exception_Cleanup): New procedure.. | |
1264 | (Propagate_GCC_Exception): New procedure. | |
1265 | (Reraise_GCC_Exception): New procedure. | |
1266 | (Setup_Current_Excep): New procedure. | |
1267 | (CleanupUnwind_Handler): Change type of UW_Exception parameter. | |
1268 | (Unwind_RaiseException): Ditto. | |
1269 | (Unwind_ForcedUnwind): Ditto. | |
1270 | (Remove): Removed. | |
1271 | (Begin_Handler): Change type of parameter. | |
1272 | (End_Handler): Ditto. Now delete the exception if still present. | |
1273 | (Setup_Key): Removed. | |
1274 | (Is_Setup_And_Not_Propagated): Removed. | |
1275 | (Set_Setup_And_Not_Propagated): Ditto. | |
1276 | (Clear_Setup_And_Not_Propagated): Ditto. | |
1277 | (Save_Occurrence_And_Private): Ditto. | |
1278 | (EID_For): Add 'not null' constraint on parameter. | |
1279 | (Setup_Exception): Does nothing. | |
1280 | (Propagate_Exception): Simplified. | |
1281 | * exp_ch11.adb (Expand_N_Raise_Statement): In back-end exception model, | |
1282 | re-raise is not expanded anymore. | |
1283 | * s-except.ads (Foreign_Exception): New exception - placeholder for | |
1284 | non Ada exceptions. | |
1285 | * raise-gcc.c (__gnat_setup_current_excep): Declare | |
1286 | (CXX_EXCEPTION_CLASS): Define (not yet used) | |
1287 | (GNAT_EXCEPTION_CLASS): Define. | |
1288 | (is_handled_by): Handle foreign exceptions. | |
1289 | (PERSONALITY_FUNCTION): Call __gnat_setup_current_excep. | |
1290 | ||
1291 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
1292 | ||
1293 | * a-synbar.adb (Synchronous_Barrier): Some additional clarification. | |
1294 | ||
2ef48385 AC |
1295 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
1296 | ||
1297 | * a-synbar-posix.adb: Minor reformatting. | |
1298 | ||
1299 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
1300 | ||
1301 | * a-exetim-posix.adb, a-exetim-mingw.adb, a-exetim-mingw.ads, | |
1302 | a-exetim-default.ads (Interrupt_Clocks_Supported, | |
1303 | Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these | |
1304 | definitions to be compliant with AI-0171. The target systems do not | |
1305 | support separate account for the execution time of interrupt handlers. | |
1306 | ||
1307 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
1308 | ||
1309 | * a-synbar.adb (Wait): Change the order of evaluation of the conditions | |
1310 | in the barrier to put first the easiest to evaluate (and the one which | |
1311 | will be True more often). More efficient. | |
1312 | ||
1313 | 2011-08-29 Eric Botcazou <ebotcazou@adacore.com> | |
1314 | ||
1315 | * s-atocou-x86.adb: Fix constraint in machine code insertion. | |
1316 | ||
1317 | 2011-08-29 Bob Duff <duff@adacore.com> | |
1318 | ||
1319 | * aspects.ads, aspects.adb: Add new aspects for various pragmas and | |
1320 | attributes that are now aspects, as specified by AI05-0229-1. | |
1321 | * sem_ch13.adb (Analyze_Aspect_Specifications, | |
1322 | Check_Aspect_At_Freeze_Point): Analyze the new aspects. Turn them into | |
1323 | pragmas or attribute references, as appropriate. | |
1324 | ||
0db16b1e AC |
1325 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1326 | ||
1327 | * a-synbar.ads, a-synbar.adb, a-synbar-posix.adb, | |
1328 | a-synbar-posix.ads: Minor reformatting. | |
1329 | ||
1330 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
1331 | ||
1332 | * snames.ads-tmpl: Add name Force. | |
1333 | ||
978ffe02 AC |
1334 | 2011-08-29 Pascal Obry <obry@adacore.com> |
1335 | ||
1336 | * prj-nmsc.adb: Minor reformatting. | |
1337 | ||
1338 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
1339 | ||
1340 | * a-exetim.ads (Interrupt_Clocks_Supported, | |
1341 | Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these | |
1342 | definitions to be compliant with AI-0171. | |
1343 | ||
1344 | 2011-08-29 Robert Dewar <dewar@adacore.com> | |
1345 | ||
1346 | * a-ngelfu.adb: Add comments. | |
1347 | ||
718f39dc AC |
1348 | 2011-08-29 Geert Bosch <bosch@adacore.com> |
1349 | ||
1350 | * a-ngelfu.adb (Tan): Do not raise Constraint_Error if the argument is | |
1351 | the closest machine number to Pi / 2.0. | |
1352 | ||
1353 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
1354 | ||
1355 | * impunit.adb (Non_Imp_File_Names_12): Add a-synbar for new Ada 2012 | |
1356 | package Ada.Synchronous_Barriers. | |
1357 | * a-synbar.ads, a-synbar.adb, a-synbar-posix.ads, a-synbar-posix.adb: | |
1358 | Add new specs and bodies for Ada.Synchronous_Barriers. There is a | |
1359 | default implementation using protected objects and another one | |
1360 | a-synbar-posix using POSIX barriers as the underlying support. | |
1361 | * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for Linux (x86, | |
1362 | x86_64, ia64) and MIPS IRIX): Use the a-synbar-posix implementation of | |
1363 | Ada.Synchronous_Barriers which uses POSIX barriers (more efficient). | |
1364 | Clean up dependencies. | |
1365 | * Makefile.rtl (GNATRTL_TASKING_OBJS): Add a-synbar.o | |
1366 | ||
ee2e3f6b AC |
1367 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1368 | ||
1369 | * sem_ch7.adb, make.adb, sem_res.adb, exp_intr.adb, | |
1370 | exp_dist.adb: Minor code reorganization. | |
1371 | Minor reformatting. | |
1372 | ||
1373 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1374 | ||
1375 | * sem_cat.adb (Validate_RACW_Primitive): The return type of an RACW | |
1376 | primitive operation must support external streaming if it is not a | |
1377 | controlling access result. | |
1378 | ||
646e2823 AC |
1379 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
1380 | ||
1381 | * sinfo.ads, sem_ch7.adb: Minor reformatting. | |
1382 | ||
1383 | 2011-08-29 Bob Duff <duff@adacore.com> | |
1384 | ||
1385 | * sem_ch4.adb (Analyze_Allocator): Check No_Nested_Finalization | |
1386 | restriction on allocators, as required by AI05-0013-1. | |
1387 | * restrict.ads: Minor comment fix. | |
1388 | ||
5d59eef2 AC |
1389 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
1390 | ||
1391 | * a-exexpr.adb, a-except-2005.ads (Jmpbuf_Address): Move to a-exexpr.adb | |
1392 | (To_Jmpbuf_Address): Ditto | |
1393 | (builtin_longjmp): Ditto | |
1394 | ||
1395 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1396 | ||
1397 | * sem_res.adb: Minor reformatting. | |
1398 | ||
1399 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
1400 | ||
1401 | * make.adb (Gnatmake): Move special processing for VM targets after the | |
1402 | call to Get_Target_Parameters. | |
1403 | ||
1404 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1405 | ||
1406 | * sem_ch12.adb, par-ch12.adb: Minor reformatting. | |
1407 | ||
949a18cc AC |
1408 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
1409 | ||
1410 | * sem_res.adb (Resolve_Allocator): Implement Ada2012-B052. Detect cases | |
1411 | where an anonymous access discriminant of a limited designated type | |
1412 | appears in a non-immutably limited discriminated type and issue an | |
1413 | error message. Add local variable Desig_T and replace all occurrences | |
1414 | of Designated_Type. | |
1415 | ||
1416 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
1417 | ||
1418 | * a-rttiev.adb (Set_Handler): Update comment to indicate that our | |
1419 | implementation is compliant to RM D.15(15/2) after the modification | |
1420 | imposed by AI05-0094-1 (binding interpretation). | |
1421 | ||
cb25faf8 AC |
1422 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1423 | ||
1424 | * exp_ch9.adb, s-tasren.adb, exp_sel.adb, exp_sel.ads, exp_ch11.adb, | |
1425 | s-interr-hwint.adb, s-tpobop.adb, sem_ch13.adb: Minor reformatting. | |
1426 | ||
1427 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1428 | ||
1429 | * par-endh.adb (Check_End): For an END where it is mandatory to repeat | |
1430 | the scope name, do not report a missing label as a style violation (it | |
1431 | will be diagnosed as an illegality). | |
1432 | * exp_dist.adb (Add_Params_For_Variant_Components): Fix handling of | |
1433 | variant records: Get_Enum_Lit_From_Pos already returns a usage | |
1434 | occurrence of the literal, no need to use New_Occurrence_Of. Set Etype | |
1435 | on Expr in Integer_Literal case so that it can be used by | |
1436 | Build_To_Any_Call. | |
1437 | ||
1d10f669 AC |
1438 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
1439 | ||
1440 | * exp_sel.ads (Build_Abort_BLock_Handler): New function spec. | |
1441 | Adjust comment. | |
1442 | * exp_sel.adb (Build_Abort_Block): Use Build_Abort_Block_Handler. | |
1443 | (Build_Abort_Block_Handler): New function to build an Abort_Signal | |
1444 | exception handler. | |
1445 | * exp_ch9.adb (Expand_N_Asynchronous_Select): Call | |
1446 | Build_Abort_Block_Handler to build the exception handler. Do not | |
1447 | undefer aborts for the Abort_Signal exception handler if back-end | |
1448 | exception mechanism. | |
1449 | * exp_ch11.adb (Expand_Exception_Handlers): Do not undefer aborts if | |
1450 | back_end exceptions for all others and abort_signal. | |
1451 | * s-except.ads (ZCX_By_Default): New constant. | |
1452 | * a-except-2005.adb (Raise_Exception): Do not defer abort if ZCX. | |
1453 | (Raise_Exception_Always): Ditto. | |
1454 | (Raise_From_Signal_Handler): Ditto. | |
1455 | (Raise_With_Location_And_Msg): Ditto. | |
1456 | (Raise_With_Msg): Ditto. | |
1457 | (Reraise): Ditto. | |
1458 | (Reraise_Occurence): Ditto. | |
1459 | (Reraise_Occurrence_Always): Ditto. | |
1460 | * s-tasren.adb (Exceptional_Complete_Rendezvous): Defer aborts if ZCX. | |
1461 | * s-tpobop.adb: (Exceptional_Complete_Body): Undefer abort if ZCX. | |
1d10f669 AC |
1462 | |
1463 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1464 | ||
1465 | * sem_util.ads (Get_Enum_Lit_From_Pos): Clarify documentation. | |
1466 | ||
d986066d AC |
1467 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1468 | ||
1469 | * snames.adb-tmpl, sem_ch13.adb: Minor reformatting | |
1470 | Minor code reorganization. | |
1471 | ||
1472 | 2011-08-29 Bob Duff <duff@adacore.com> | |
1473 | ||
1474 | * usage.adb (-gnatwy): Fix documentation: this switch applies to Ada | |
1475 | 2012, not just Ada 2005. | |
1476 | ||
1477 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
1478 | ||
1479 | * gnat_ugn.texi: Indicate that when the compiler is called by gnatmake | |
1480 | with a project file or with gprbuid, if -gnatep= is specified, the | |
1481 | builder may need to be invoked with -x. | |
1482 | ||
1483 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
1484 | ||
1485 | * a-exexpr-gcc.adb: Minor comment fix. | |
1486 | ||
ff4f0ed0 AC |
1487 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1488 | ||
1489 | * sem_ch8.adb: Minor reformatting. | |
1490 | ||
1491 | 2011-08-29 Bob Duff <duff@adacore.com> | |
1492 | ||
1493 | * par-ch2.adb (P_Identifier): Warn that "some" is reserved in Ada 2012. | |
1494 | * par-ch4.adb (P_Quantified_Expression): Remove unnecessary code for | |
1495 | treating "some" as unreserved in earlier Ada versions. This is now | |
1496 | handled in Snames.Is_Keyword_Name. Parse "for some" using Tok_Some, | |
1497 | rather than Name_Some, since Tok_Some is now recognized as reserved. | |
1498 | * scans.adb (Initialize_Ada_Keywords): Handle Tok_Some like any other | |
1499 | reserved word. | |
1500 | * scans.ads: Minor comment fixes. | |
1501 | * snames.adb-tmpl (Is_Keyword_Name): Handle Ada 2012 reserved words as | |
1502 | for other language versions. | |
1503 | * scn.adb (Scan_Reserved_Identifier): Remove unnecessary code for | |
1504 | treating "some" as unreserved in earlier Ada versions. This is now | |
1505 | handled in Snames.Is_Keyword_Name. | |
1506 | * par-ch3.adb (P_Defining_Identifier): Warn that "some" is reserved in | |
1507 | Ada 2012. | |
1508 | (P_Subtype_Mark_Resync): Remove unnecessary code for treating "some" as | |
1509 | unreserved in earlier Ada versions. This is now handled in | |
1510 | Snames.Is_Keyword_Name. | |
1511 | * snames.ads-tmpl (Ada_2012_Reserved_Words): Handle Ada 2012 reserved | |
1512 | words as for other language versions. | |
1513 | * gnat_ugn.texi (-gnatwy): Fix documentation: this switch applies to | |
1514 | Ada 2012, not just Ada 2005. | |
1515 | ||
d941cee6 AC |
1516 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> |
1517 | ||
1518 | * sem_ch13.adb: Additional semantic checks for aspects involved in | |
1519 | iterators. | |
1520 | ||
1521 | 2011-08-29 Matthew Heaney <heaney@adacore.com> | |
1522 | ||
1523 | * a-comutr.ads, a-comutr.adb, a-cimutr.ads, a-cimutr.adb, | |
1524 | a-cbmutr.ads, a-cbmutr.adb (Find_In_Subtree): Remove superfluous | |
1525 | Container parameter. | |
1526 | (Ancestor_Find): ditto. | |
1527 | ||
b970af39 TQ |
1528 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
1529 | ||
1530 | * par-endh.adb: Minor reformatting. | |
d941cee6 | 1531 | |
92db5dee AC |
1532 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
1533 | ||
1534 | * a-exexpr-gcc.adb (Unwind_Action) Rewrite as an integer with constants. | |
1535 | (GNAT_GCC_Exception): Remove N_Cleanups_To_Trigger component. | |
1536 | (Adjust_N_CLeanups_For): Remove. | |
1537 | (CleanupUnwind_Handler): Call Unhandled_Exception_Terminate when end of | |
1538 | stack is reached. | |
1539 | (Propgate_Exception): Adjust. | |
1540 | * raise-gcc.c: Add a few static/const. | |
1541 | (Adjust_N_Cleanups_For): Remove declaration. | |
1542 | (PERSONALITY_FUNCTION): Remove code dealing with N_Cleanups_To_Trigger. | |
1543 | ||
1544 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1545 | ||
1546 | * sem_ch8.adb: Use type of function return when rewriting as object | |
1547 | declaration. | |
1548 | ||
1378bf10 AC |
1549 | 2011-08-29 Gary Dismukes <dismukes@adacore.com> |
1550 | ||
1551 | * sem_type.adb: Minor reformatting. | |
1552 | ||
1553 | 2011-08-29 Robert Dewar <dewar@adacore.com> | |
1554 | ||
1555 | * makeutl.adb: Minor reformatting. | |
1556 | ||
1557 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1558 | ||
1559 | * sem_ch8.adb (Analyze_Object_Renaming): If the renamed object is a | |
1560 | function call of a limited type, the expansion of the renaming is | |
1561 | complicated by the presence of various temporaries and subtypes that | |
1562 | capture constraints of the renamed object. | |
1563 | Rewrite node as an object declaration, whose expansion is simpler. | |
1564 | Given that the object is limited there is no copy involved and no | |
1565 | performance hit. | |
1566 | ||
164e06c6 AC |
1567 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1568 | ||
1569 | * exp_ch5.adb, sinfo.ads, make.adb, s-pooglo.adb, sem_ch12.adb, | |
1570 | freeze.adb, sem_ch6.adb, par-ch12.adb: Minor reformatting. | |
1571 | ||
1572 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
1573 | ||
1574 | * system-darwin-x86.ads, system-linux-s390x.ads, system-linux-alpha.ads, | |
1575 | system-tru64.ads, system-irix-n32.ads, system-vxworks-arm.ads, | |
1576 | system-linux-hppa.ads, system-linux-s390.ads, | |
1577 | system-solaris-sparcv9.ads, system-mingw.ads, system-linux-ia64.ads, | |
1578 | system-vms_64.ads, system-vxworks-sparcv9.ads, system-linux-ppc.ads, | |
1579 | system-aix64.ads, system-lynxos-ppc.ads, system-linux-sh4.ads, | |
1580 | system-solaris-x86.ads, system-linux-x86_64.ads, system-linux-x86.ads, | |
1581 | system-vxworks-ppc.ads, system-hpux.ads, system-darwin-ppc.ads, | |
1582 | system-solaris-sparc.ads, system-lynxos-x86.ads, | |
1583 | system-vxworks-m68k.ads, system-hpux-ia64.ads, system-irix-o32.ads, | |
1584 | system-solaris-x86_64.ads, system-mingw-x86_64.ads, | |
1585 | system-vxworks-mips.ads, system-linux-sparc.ads, system-vms-ia64.ads, | |
1586 | system-freebsd-x86.ads, system-aix.ads, system-darwin-x86_64.ads, | |
1587 | system-vxworks-x86.ads: Remove GCC_ZCX_Support | |
1588 | * s-taprop-posix.adb, s-taprop-irix.adb, s-taprop-vxworks.adb, | |
1589 | s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb: Ditto. | |
1590 | * opt.ads: Adjust comment. | |
1591 | * targparm.ads, targparm.adb: Remove GCC_ZCX_Support_On_Target. | |
1592 | * gnat1drv.adb: Do not check for GCC_ZCX_Support_On_Target. | |
1593 | * system.ads: Move GCC_ZCX_Support to obsolete entries. | |
1594 | ||
1595 | 2011-08-29 Emmanuel Briot <briot@adacore.com> | |
1596 | ||
1597 | * makeutl.adb (Do_Complete): Resolve symbolic links when a relative | |
1598 | file name is specified on the gnatmake or gprbuild command line, and | |
1599 | before we search for that file in the project. | |
1600 | ||
1601 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1602 | ||
1603 | * sem_type.adb (Within_Instance): New predicate in Collect_Interps, | |
1604 | used to determine whether a possible interpretation for an overloadable | |
1605 | entity is declared within the current instantiation and should be | |
1606 | included in the candidate set. | |
1607 | ||
1608 | 2011-08-29 Vasiliy Fofanov <fofanov@adacore.com> | |
1609 | ||
1610 | * gnat_rm.texi, gnat_ugn.texi: Clean ups. | |
1611 | ||
97216ca8 ES |
1612 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> |
1613 | ||
1614 | * sem_res.adb (Resolve_Actuals): Use base type to determine whether an | |
1615 | access subtype is access_to_subprogram, when applying checks for | |
1616 | RM 3.10.2 (27). | |
1617 | ||
d3cb4cc0 AC |
1618 | 2011-08-29 Matthew Heaney <heaney@adacore.com> |
1619 | ||
1620 | * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Splice_Subtree): Only check | |
1621 | for sibling when common parent. | |
1622 | ||
1623 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1624 | ||
1625 | * get_scos.adb: Literals of Pragma_Id are pragma names prefixed with | |
1626 | "pragma_". | |
1627 | ||
1628 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1629 | ||
1630 | * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Enable freeze actions | |
1631 | for the return type when in ASIS mode. | |
1632 | ||
1633 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
1634 | ||
1635 | * make.adb (Gnatmake): Get the default search dirs, then the target | |
1636 | parameters after getting the Builder switches, as the Builder switches | |
1637 | may include --RTS= and that could change the default search dirs. | |
1638 | ||
1639 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> | |
1640 | ||
1641 | * exp_ch7.adb (Make_Adjust_Call): Rewrite to mimic the structure of | |
1642 | Make_Final_Call. Move the processing for class-wide types before the | |
1643 | processing for derivations from [Limited_]Controlled. | |
1644 | (Make_Final_Call): Move the processing for class-wide types before the | |
1645 | processing for derivations from [Limited_]Controlled. | |
1646 | * s-stposu.adb (Allocate_Any_Controlled): Correct the membership check. | |
1647 | Add code to account for alignments larger than the list header. Add a | |
1648 | comment illustrating the structure of the allocated object + padding + | |
1649 | header. | |
1650 | (Deallocate_Any_Controlled): Add code to account for alignments larger | |
1651 | than the list header. | |
1652 | ||
1653 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1654 | ||
1655 | * sinfo.ads, sinfo.adb: New node kind | |
1656 | N_Formal_Incomplete_Type_Definition, related flags. | |
1657 | par-ch12.adb (P_Formal_Type_Declaration, G_Formal_Type_Definition): | |
1658 | Parse formal incomplete types. | |
1659 | * sem.adb (Analyze): Formal_Incomplete_Type_Definitions are handled in | |
1660 | sem_ch12. | |
1661 | * sem_ch7.adb (Analyze_Package_Specification, Unit_Requires_Body): | |
1662 | Formal incomplete types do not need completion. | |
1663 | * sem_ch12.adb (Analyze_Formal_Incomplete_Type, | |
1664 | Validate_Incomplete_Type_Instance): New procedures to handle formal | |
1665 | incomplete types. | |
1666 | * freeze.adb (Freeze_Entity): Do not freeze the subtype of an actual | |
1667 | that corresponds to a formal incomplete type. | |
1668 | * sprint.adb: Handle formal incomplete type declarations. | |
1669 | * exp_util.adb (Insert_Actions): An incomplete_type_definition is not | |
1670 | an insertion point. | |
1671 | ||
d3f70b35 AC |
1672 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
1673 | ||
1674 | * a-fihema.ads, a-fihema.adb: Unit removed. | |
1675 | * a-undesu.ads, a-undesu.adb: New unit implementing | |
1676 | Ada.Unchecked_Deallocate_Subpool. | |
1677 | * einfo.adb: Remove Associated_Collection from the node usage. | |
1678 | Add Finalization_Master to the node usage. | |
1679 | (Associated_Collection): Removed. | |
1680 | (Finalization_Master): New routine. | |
1681 | (Set_Associated_Collection): Removed. | |
1682 | (Set_Finalization_Master): New routine. | |
1683 | (Write_Field23_Name): Remove Associated_Collection from the output. Add | |
1684 | Finalization_Master to the output. | |
1685 | * einfo.ads: Remove attribute Associated_Collection and its uses in | |
1686 | entities. | |
1687 | Add new attribute Finalization_Master along with its uses in entitites. | |
1688 | (Associated_Collection): Removed along with its pragma import. | |
1689 | (Finalization_Master): New routine along with a pragma import. | |
1690 | (Set_Associated_Collection): Removed along with its pragma import. | |
1691 | (Set_Finalization_Master): New routine along with a pragma import. | |
1692 | * exp_ch3.adb (Expand_Freeze_Array_Type): Replace call to | |
1693 | Build_Finalization_Collection with Build_Finalization_Master. | |
1694 | (Expand_Freeze_Record_Type): Move the generation of Finalize_Address | |
1695 | before the bodies of the predefined routines. Add comment explaining | |
1696 | this. Replace call to Build_Finalization_Collection with | |
1697 | Build_Finalization_Master. | |
1698 | (Freeze_Type): Replace call to Build_Finalization_Collection with | |
1699 | Build_Finalization_Master. | |
1700 | (Make_Finalize_Address_Body): Comment reformatting. | |
1701 | (Make_Predefined_Primitive_Specs): Code reformatting. | |
1702 | (Stream_Operation_OK): Update comment mentioning finalization | |
1703 | collections. Replace RE_Finalization_Collection with | |
1704 | RE_Finalization_Master. | |
1705 | * exp_ch4.adb (Complete_Controlled_Allocation): Replace call to | |
1706 | Associated_Collection with Finalization_Master. Replace call to | |
1707 | Build_Finalization_Collection with Build_Finalization_Master. | |
1708 | (Expand_Allocator_Expression): Replace call to Associated_Collection | |
1709 | with Finalization_Master. Replace call to Set_Associated_Collection with | |
1710 | Set_Finalization_Master. Remove the generation of | |
1711 | Set_Finalize_Address_Ptr. | |
1712 | (Expand_N_Allocator): Replace call to Associated_Collection with | |
1713 | Finalization_Master. Remove the generation of Set_Finalize_Address_Ptr. | |
1714 | * exp_ch6.adb (Add_Collection_Actual_To_Build_In_Place_Call): Renamed to | |
1715 | Add_Finalization_Master_Actual_To_Build_In_Place_Call. Update the | |
1716 | comment on usage. Replace call to Needs_BIP_Collection with | |
1717 | Needs_BIP_Finalization_Master Remplace BIP_Collection with | |
1718 | BIP_Finalization_Master. Update all comments which mention finalization | |
1719 | collections. Replace Associated_Collection with | |
1720 | Finalization_Master. Replace Build_Finalization_Collection with | |
1721 | Build_Finalization_Master. | |
1722 | (BIP_Formal_Suffix): Update BIP_Collection's case. | |
1723 | (Build_Heap_Allocator): Update the related comment. Rename local | |
1724 | variable Collect to Fin_Mas_Id and update its occurrences. Update | |
1725 | comments which mention finalization collections. Replace | |
1726 | Set_Associated_Collection with Set_Finalization_Master. | |
1727 | (Expand_Call): Update the code which detects a special piece of library | |
1728 | code for .NET/JVM. | |
1729 | (Make_Build_In_Place_Call_In_Allocator): Replace the call to | |
1730 | Add_Collection_Actual_To_Build_In_Place_Call with | |
1731 | Add_Finalization_Master_Actual_To_Build_In_Place_Call. Remove the code | |
1732 | which generates a call to Make_Set_Finalize_Address_Ptr_Call. | |
1733 | (Make_Build_In_Place_Call_In_Anonymous_Context): Replace call to | |
1734 | Add_Collection_Actual_To_Build_In_Place_Call with | |
1735 | Add_Finalization_Master_Actual_To_Build_In_Place_Call. | |
1736 | (Make_Build_In_Place_Call_In_Assignment): Replace call to | |
1737 | Add_Collection_Actual_To_Build_In_Place_Call with | |
1738 | Add_Finalization_Master_Actual_To_Build_In_Place_Call. | |
1739 | (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master. | |
1740 | * exp_ch6.ads: Rename BIP_Collection to BIP_Finalization_Master. | |
1741 | (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master. | |
1742 | * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Update comment on usage. | |
1743 | Rename local variable Collect to Fin_Mas_Id and update its occurrences. | |
1744 | Replace call to Set_Associated_Collection with Set_Finalization_Master. | |
1745 | (Build_Finalization_Collection): Renamed to Build_Finalization_Master. | |
1746 | Replace the call to Associated_Collection with Finalization_Master. | |
1747 | Rename local variable Coll_Id to Fin_Mas_Id and update its occurrences. | |
1748 | Update the way finalization master names are generated. Update the | |
1749 | retrieval of the correct access type which will carry the pool and | |
1750 | master attributes. | |
1751 | (Make_Final_Call): Reimplement the way [Deep_]Finalize is retrieved. | |
1752 | (Make_Finalize_Address_Body): Abstract types do not need | |
1753 | Finalize_Address. Code reformatting. | |
1754 | (Make_Finalize_Address_Stmts): Update comment on usage. | |
1755 | (Make_Set_Finalize_Address_Ptr_Call): Removed. | |
1756 | (Process_Declarations): Update comments. | |
1757 | * exp_ch7.ads (Build_Finalization_Collection): Renamed to | |
1758 | Build_Finalization_Master. Update associated comment. | |
1759 | (Make_Set_Finalize_Address_Ptr_Call): Removed. | |
1760 | * exp_ch13.adb: Update comments which mention finalization collections. | |
1761 | (Expand_N_Free_Statement): Replace the call to Associated_Collection | |
1762 | with Finalization_Master. | |
1763 | * exp_util.adb (Build_Allocate_Deallocate_Proc): Reimplemented to | |
1764 | create calls to routines Allocate_Any_Controlled and | |
1765 | Deallocate_Any_Controlled. | |
1766 | (Find_Finalize_Address): New routine. | |
1767 | (Is_Allocate_Deallocate_Proc): Update the RTE entities used in the | |
1768 | comparison. | |
1769 | (Requires_Cleanup_Actions): Update the comment on freeze node | |
1770 | inspection. | |
1771 | * exp_util.ads: Remove comment on generated code for | |
1772 | Build_Allocate_Deallocate_Proc. The code is now quite complex and it | |
1773 | is better to simply look in the body. | |
1774 | * freeze.adb (Freeze_All): Update the comment of finalization | |
1775 | collections. Replace the call to Associated_Collection with | |
1776 | Finalization_Master. Replace the call to Build_Finalization_Collection | |
1777 | with Build_Finalization_Master. | |
1778 | * impunit.adb: Add a-undesu and s-stposu to the list of units. | |
1779 | * Makefile.rtl: Add files a-undesu, s-finmas and s-stposu. Remove file | |
1780 | a-fihema. | |
1781 | * rtsfind.adb (Get_Unit_Name): Remove the processing for children of | |
1782 | Ada.Finalization. Add processing for children of System.Storage_Pools. | |
1783 | * rtsfind.ads: Remove the naming of second level children of | |
1784 | Ada.Finalization. | |
1785 | Remove Ada_Finalization_Heap_Management from the list of units. | |
1786 | Remove subtype Ada_Finalization_Child. | |
1787 | Remove the following subprogram entities: | |
1788 | ||
1789 | RE_Allocate | |
1790 | RE_Deallocate | |
1791 | RE_Finalization_Collection | |
1792 | RE_Finalization_Collection_Ptr | |
1793 | RE_Set_Finalize_Address_Ptr | |
1794 | ||
1795 | Add the naming of second level children of System.Storage_Pools. | |
1796 | Add System_Finalization_Masters and System_Storage_Pools_Subpools to | |
1797 | the list of units. | |
1798 | Add subtype System_Storage_Pools_Child. | |
1799 | Add the following subprogram entities to System.Finalization_Masters: | |
1800 | ||
1801 | RE_Finalization_Master | |
1802 | RE_Finalization_Master_Ptr | |
1803 | ||
1804 | Add the following subprogram entities to System.Storage_Pools.Subpools: | |
1805 | ||
1806 | RE_Allocate_Any_Controlled | |
1807 | RE_Deallocate_Any_Controlled | |
1808 | RE_Root_Storage_Pool_With_Subpools | |
1809 | RE_Root_Subpool | |
1810 | RE_Subpool_Handle | |
1811 | ||
1812 | Move the following subprogram entities from | |
1813 | Ada.Finalization.Heap_Management to System.Finalization_Masters: | |
1814 | ||
1815 | RE_Add_Offset_To_Address | |
1816 | RE_Attach | |
1817 | RE_Base_Pool | |
1818 | RE_Detach | |
1819 | ||
1820 | * sem_ch3.adb (Access_Type_Declaration): Replace the call to | |
1821 | Set_Associated_Collection with Set_Finalization_Master. | |
1822 | * sem_ch6.adb (Create_Extra_Formals): Update the way extra formal | |
1823 | BIP_Finalization_Master is created. | |
1824 | * s-finmas.adb: New unit System.Finalization_Masters. | |
1825 | * s-finmas.ads: New unit System.Finalization_Masters. | |
1826 | * s-stopoo.ads, s-stopoo.adb: Minor code reformatting. | |
1827 | * s-stposu.ads, s-stposu.adb: New unit implementing | |
1828 | System.Storage_Pools.Subpools. | |
1829 | ||
1830 | 2011-08-29 Bob Duff <duff@adacore.com> | |
1831 | ||
1832 | * tbuild.adb: Add assertion. | |
1833 | ||
8c889ae4 AC |
1834 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
1835 | ||
1836 | * s-pooglo.adb: Minor reformatting. | |
1837 | ||
1838 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1839 | ||
1840 | * exp_ch5.adb (Expand_N_Assignment_Statement): if the left-hand side is | |
1841 | an indexed component of a packed array whose element type is a record | |
1842 | with a representation clause different from that of the right-hand | |
1843 | side, generate a temporary to minimuze the number of bit-field | |
1844 | operations generated. | |
1845 | ||
1846 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1847 | ||
1848 | * exp_util.adb (Insert_Actions): Use clauses can be part of lists of | |
1849 | declarations, and thus are likely insertion points for actions. | |
1850 | ||
1851 | 2011-08-29 Bob Duff <duff@adacore.com> | |
1852 | ||
1853 | * einfo.ads: Minor comment fix. | |
1854 | ||
1a07a71a AC |
1855 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1856 | ||
1857 | * frontend.adb, gnat1drv.adb: Minor reformatting. | |
1858 | ||
1859 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
1860 | ||
1861 | * s-pooglo.adb (Allocate, Deallocate): Take into account the alignment. | |
1862 | * a-fihema.adb (Allocate, Deallocate): Ditto. Possibly add padding | |
1863 | space in front of the header. | |
1864 | ||
4bcd6411 JK |
1865 | 2011-08-29 Johannes Kanig <kanig@adacore.com> |
1866 | ||
1867 | * frontend.adb (Frontend): Exit after creating Standard package when | |
1868 | -gnatd.H is present. | |
1869 | * gnat1drv.adb (Gnat1drv): Call Backend right away when -gnatd.H is | |
1870 | present. | |
1871 | ||
f0f88eb6 RD |
1872 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1873 | ||
1874 | * exp_ch9.adb, mlib-prj.adb, prj.adb, prj.ads, ttypes.ads, sem_ch4.adb, | |
1875 | makeutl.adb, makeutl.ads, atree.ads, snames.adb-tmpl, | |
1876 | snames.ads-tmpl: Minor reformatting. | |
1877 | ||
3e37be71 PG |
1878 | 2011-08-29 Philippe Gil <gil@adacore.com> |
1879 | ||
1880 | * prj.adb (Reset_Units_In_Table): New procedure. | |
1881 | Reset units to avoid access to freed memory. | |
1882 | ||
94fb7608 AC |
1883 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
1884 | ||
1885 | * get_scos.adb: When reading a P statement SCO without a pragma name | |
1886 | (from an older ALI file), ensure that the Pragma_Name component is set | |
1887 | to Unknown_Pragma (not left uninitialized). | |
1888 | ||
1889 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
1890 | ||
1891 | * makeutl.adb (Get_Directories): New procedure moved from Buildgpr and | |
1892 | modified to compute correctly the object path of a SAL project that is | |
1893 | extending another library project. | |
1894 | (Write_Path_File): New procedure. | |
1895 | * makeutl.ads (Directories): New table moved from Buildgpr | |
1896 | (Get_Directories): New procedure moved from Buildgpr | |
1897 | (Write_Path_File): New procedure | |
1898 | * mlib-prj.adb (Build_Library): Use Makeutl.Get_Directories to set the | |
1899 | paths before binding SALs, instead of Set_Ada_Paths. | |
1900 | * prj-env.adb (Set_Path_File_Var): Procedure has been moved to package | |
1901 | Prj. | |
1902 | * prj.adb (Set_Path_File_Var): New procedure moved from Prj.Env | |
1903 | (Current_Source_Path_File_Of): New function | |
1904 | (Set_Current_Object_Path_File_Of): New procedure | |
1905 | (Current_Source_Object_File_Of): New function | |
1906 | (Set_Current_Object_Path_File_Of): New procedure | |
1907 | * prj.ads (Set_Path_File_Var): New procedure moved from Prj.Env | |
1908 | (Current_Source_Path_File_Of): New function | |
1909 | (Set_Current_Object_Path_File_Of): New procedure | |
1910 | (Current_Source_Object_File_Of): New function | |
1911 | (Set_Current_Object_Path_File_Of): New procedure | |
1912 | ||
1913 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1914 | ||
1915 | * exp_ch5.adb (Expand_N_Assignment_Statement): For an assignment to a | |
1916 | packed entity, use a bit-field assignment only if there is no change of | |
1917 | representation. | |
1918 | ||
c5ecd6b7 AC |
1919 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
1920 | ||
1921 | * rtsfind.ads, exp_ch3.adb (In_Runtime): Minor code improvement, use | |
1922 | Is_RTU instead of using Chars comparisons. | |
1923 | ||
1924 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1925 | ||
1926 | * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do not create a | |
1927 | temporary object if the actual is constrained, and the discriminants | |
1928 | read from the stream don't match. | |
1929 | ||
1930 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
1931 | ||
1932 | * sem_attr.adb, exp_attr.adb: Add handling of | |
1933 | Attribute_System_Allocator_Alignment | |
1934 | * snames.ads-tmpl: Add Name_System_Allocator_Alignment and | |
1935 | Attribute_System_Allocator_Alignment. | |
1936 | * ttypes.ads, get_targ.ads: Add Get_System_Allocator_Alignment. | |
1937 | * gcc-interface/targtyps.c, gcc-interface/utils2.c, | |
1938 | gcc-interface/gigi.h: Renames get_target_default_allocator_alignment to | |
1939 | get_target_system_allocator_alignment. | |
1940 | ||
1941 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> | |
1942 | ||
1943 | * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update | |
1944 | dependencies. | |
1945 | ||
8abdac29 AC |
1946 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> |
1947 | ||
1948 | * exp_ch3.adb (In_Runtime): Fix typo. | |
1949 | ||
df170605 AC |
1950 | 2011-08-29 Bob Duff <duff@adacore.com> |
1951 | ||
1952 | * sem_ch4.adb (Analyze_Allocator): Analyze the subpool specification. | |
1953 | ||
1954 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1955 | ||
1956 | * exp_ch3.adb (Expand_N_Object_Declaration): If the entity is tagged | |
1957 | and a separate tag assignment is generated, ensure that the tag | |
1958 | assignment is analyzed. | |
1959 | ||
864a4236 ES |
1960 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> |
1961 | ||
1962 | * atree.ads, atree.adb (Copy_Separate_List): New function that applies | |
1963 | Copy_Separate_Tree to a list of nodes. Used to create disjoint copies | |
1964 | of statement lists that may contain local declarations. | |
df170605 AC |
1965 | * exp_ch9.adb (Expand_N_Timed_Entry_Call): Use Copy_Separate_List to |
1966 | duplicate the triggering statements needed for the expansion of this | |
1967 | construct, when the trigger is a dispatching call to a synchronized | |
1968 | primitive. | |
864a4236 | 1969 | |
7f394c1d AC |
1970 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> |
1971 | ||
1972 | * gnat_rm.texi: Add doc for 'Elab_Subp_Body. | |
1973 | * bindgen.adb: Add comments. | |
1974 | * snames.adb-tmpl (Is_Attribute_Name): Only recognize 'Elab_Subp_Body | |
1975 | in CodePeer mode. | |
1976 | ||
2c1a2cf3 RD |
1977 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1978 | ||
1979 | * exp_attr.adb: Minor reformatting. | |
1980 | Minor code reorganization and commenting. | |
1981 | * par_sco.adb, checks.adb, sem_attr.adb, get_scos.adb: Minor | |
1982 | reformatting. | |
1983 | ||
0bfc9a64 AC |
1984 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
1985 | ||
1986 | * get_scos.adb: Ignore chaining indicators not currently supported | |
1987 | by Ada. | |
1988 | ||
1989 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> | |
1990 | ||
1991 | * system.ads: Minor editing. | |
1992 | ||
1993 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> | |
1994 | ||
1995 | * bindgen.adb (Gen_Elab_Calls): Generate calls to subp'Elab_Subp_Body in | |
1996 | CodePeer mode. | |
1997 | * sem_attr.ads, sem_attr.adb, exp_Attr.adb, sem_ch6.adb: Add handling of | |
1998 | Attribute_Elab_Subp_Body. | |
1999 | * snames.ads-tmpl (Attribute_Elab_Subp_Body, Name_Elab_Subp_Body): New. | |
2000 | * sem_util.adb: Update comments. | |
2001 | ||
828d4cf0 TQ |
2002 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
2003 | ||
2004 | * par_sco.adb, scos.adb, scos.ads, put_scos.adb, get_scos.adb: Record | |
2005 | pragma name for each SCO statement corresponding to a pragma. | |
2006 | ||
5cd7bb15 AC |
2007 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> |
2008 | ||
2009 | * opt.ads: Minor editing. | |
2010 | ||
2011 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
2012 | ||
2013 | * gnat1drv.adb (Adjust_Global_Switches): Remove options for ALFA mode | |
2014 | that only made sense for CodePeer mode. | |
2015 | ||
2016 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
2017 | ||
2018 | * targparm.ads (Support_64_Bit_Divides_On_Target): Remove this flag | |
2019 | which is no longer used. | |
2020 | * targparm.adb (S64, S64_Str, Get_Target_Parameters): Remove the | |
2021 | handling of the 64-bit division check. | |
2022 | * exp_ch4.adb (Expand_N_Op_Divide): Remove the check for 64-bit | |
2023 | division available. | |
2024 | * system*.ads (Support_64_Bit_Divides): Remove this flag which is no | |
2025 | longer used. | |
2026 | ||
2027 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
2028 | ||
2029 | * get_scos.adb: Minor reformatting. | |
2030 | ||
25b589cb AC |
2031 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
2032 | ||
2033 | * exp_util.adb (Process_Statements_For_Controlled_Objects): Whenever a | |
2034 | statement list is wrapped in a block, the block is explicitly analyzed | |
2035 | in order to properly redecorate the entities and create a servicing | |
2036 | finalizer. | |
2037 | ||
2038 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
2039 | ||
2040 | * sinfo.ads, sinfo.adb (Zero_Cost_Handling): Remove. | |
2041 | (Set_Zero_Cost_Handling): Remove. | |
2042 | ||
2043 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
2044 | ||
2045 | * par_sco.adb, scos.ads, put_scos.adb, get_scos.adb: Minor reformatting | |
2046 | ||
1197ddb1 AC |
2047 | 2011-08-29 Geert Bosch <bosch@adacore.com> |
2048 | ||
2049 | * s-vaflop-vms-alpha.adb (Neg_F): Use subtraction instead of negation | |
2050 | instruction, as the latter may produce -0.0, which is not a valid VAX | |
2051 | F float number. | |
2052 | (Neg_G): Likewise for VAX F float. | |
2053 | ||
2054 | 2011-08-29 Robert Dewar <dewar@adacore.com> | |
2055 | ||
2056 | * exp_util.adb: Minor reformatting. | |
2057 | ||
2058 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
2059 | ||
2060 | * sem_ch3.adb: Minor comment update. | |
2061 | ||
2062 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
2063 | ||
2064 | * checks.adb (Apply_Type_Conversion_Checks): Use the Underlying_Type of | |
2065 | the operand type. | |
2066 | ||
2067 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
2068 | ||
2069 | * par_sco.adb (Traverse_Declarations_Or_Statements): Do not flush | |
2070 | current statement sequence on a generic instantiation or a subprogram | |
2071 | declaration. | |
2072 | ||
8f66cda7 AC |
2073 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
2074 | ||
2075 | * sem_type.adb, einfo.ads, freeze.adb, exp_ch4.adb, sem_ch13.adb: | |
2076 | Minor reformatting. | |
2077 | ||
2078 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> | |
2079 | ||
2080 | * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)): | |
2081 | Correct the check which involves the freeze node of a controlled or | |
2082 | access-to-controlled type. | |
2083 | ||
2084 | 2011-08-29 Geert Bosch <bosch@adacore.com> | |
2085 | ||
2086 | * sem_warn.adb (Check_Code_Statement): Remove check for consecutive Asm | |
2087 | statements. | |
2088 | * s-vaflop-vms-alpha.adb: Remove bogus Volatile => True arguments from | |
2089 | Asm statements. | |
2090 | ||
cf161d66 AC |
2091 | 2011-08-29 Yannick Moy <moy@adacore.com> |
2092 | ||
2093 | * sem_ch3.adb (Array_Type_Declaration): Insert a subtype declaration | |
2094 | for every index type and component type that is not a subtype_mark. | |
2095 | (Process_Subtype): Set Etype of subtype. | |
2096 | ||
2097 | 2011-08-29 Robert Dewar <dewar@adacore.com> | |
2098 | ||
2099 | * a-cbmutr.adb, a-cimutr.adb, a-comutr.adb, prj-nmsc.adb: Minor code | |
2100 | reorganization. Minor reformatting. | |
2101 | ||
7cc83cd8 AC |
2102 | 2011-08-29 Steve Baird <baird@adacore.com> |
2103 | ||
2104 | * exp_ch4.adb (Expand_N_Op_Expon): Suppress N_Op_Expon node expansion | |
2105 | for CodePeer and ALFA modes. | |
2106 | ||
2107 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
2108 | ||
2109 | * sem_type.adb (Collect_Interps): Within an instance, collect a homonym | |
2110 | that comes from an enclosing scope if it is not the renaming of an | |
2111 | actual, to handle properly a spurious ambiguity in an instance. | |
2112 | ||
76af4137 AC |
2113 | 2011-08-29 Eric Botcazou <ebotcazou@adacore.com> |
2114 | ||
2115 | * sem_ch13.adb (Alignment_Check_For_Esize_Change): Rename to... | |
2116 | (Alignment_Check_For_Size_Change): ...this. Add SIZE parameter and | |
2117 | use it instead of the Esize of the first parameter. | |
2118 | (Analyze_Attribute_Definition_Clause) <Object_Size>: Adjust call to | |
2119 | above change. | |
2120 | <Size>: Likewise. Call it for composite types on the RM size. | |
2121 | ||
2122 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
2123 | ||
2124 | * exp_ch4.adb (Expand_N_Op_Not): Do not expand not on array. | |
2125 | * sem_util.adb (Unique_Name): Correct behaviour for names of | |
2126 | compilation units. | |
2127 | ||
9b20e59b AC |
2128 | 2011-08-29 Yannick Moy <moy@adacore.com> |
2129 | ||
2130 | * sem_prag.adb (Check_Precondition_Postcondition): In formal | |
2131 | verification mode, analyze pragma expression for correctness, for | |
2132 | pre/post on library-level subprogram, as it is not expanded later. | |
2133 | ||
2134 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
2135 | ||
2136 | * exp_aggr.adb (Expand_Array_Aggregate): Do not expand array aggregates | |
2137 | in formal verification. | |
2138 | ||
2139 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
2140 | ||
2141 | * sem_util.adb: Minor reformatting. | |
2142 | * freeze.adb, sem_ch13.adb: Fix comment: Bit_Order is an attribute, | |
2143 | there's no pragma. | |
2144 | * par_sco.ads, par_sco.adb: Update comments. | |
2145 | ||
2146 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
2147 | ||
2148 | * einfo.adb, einfo.ads: Remove flag Is_Postcondition_Proc and | |
2149 | associated getter/setter. | |
2150 | * sem_ch6.adb: Remove reference to Is_Postcondition_Proc. | |
2151 | ||
2152 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
2153 | ||
2154 | * prj-attr.adb: New Compiler attribute Dependency_Kind and Language_Kind | |
2155 | * prj-conf.adb: Add_Default_GNAT_Naming_Scheme: Add a package Compiler | |
2156 | with declarations for Language_Kind and Dependency_Kind for Ada. | |
2157 | * prj-nmsc.adb (Check_Unit_Name): New name of procedure Check_Ada_Name | |
2158 | (Process_Compiler): Take into account the new attributes Dependency_Kind | |
2159 | and Language_Kind. | |
2160 | (Check_Configuration): Check if language kind is unit based, not if the | |
2161 | language name is Ada. | |
2162 | (Process_Exceptions_Unit_Based): Ditto | |
2163 | (Add_Language): Remove default additions of language and dependency kind | |
2164 | * prj.ads: Minor comment change | |
2165 | * snames.ads-tmpl: New standard names Dependency_Kind and Language_Kind | |
2166 | ||
2167 | 2011-08-29 Johannes Kanig <kanig@adacore.com> | |
2168 | ||
2169 | * debug.adb: Update comments. | |
2170 | ||
c5bc3df6 JM |
2171 | 2011-08-24 Joseph Myers <joseph@codesourcery.com> |
2172 | ||
2173 | * gcc-interface/Make-lang.in (CFLAGS-ada/tracebak.o) | |
2174 | (CFLAGS-ada/targext.o, CFLAGS-ada/cio.o, CFLAGS-ada/init.o) | |
2175 | (CFLAGS-ada/initialize.o, CFLAGS-ada/raise.o): New. | |
2176 | (ada/tracebak.o, ada/targext.o, ada/cio.o, ada/init.o) | |
2177 | (ada/initialize.o, ada/raise.o): Remove explicit compilation rules. | |
2178 | ||
e3aa9eba RO |
2179 | 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2180 | ||
2181 | * gcc-interface/Makefile.in (PICFLAG_FOR_TARGET): New. | |
2182 | (GNATLIBCFLAGS_FOR_C): Replace | |
2183 | TARGET_LIBGCC2_CFLAGS by PICFLAG_FOR_TARGET. | |
2184 | (gnatlib-shared-default, gnatlib-shared-dual-win32) | |
2185 | (gnatlib-shared-win32, gnatlib-shared-darwin, gnatlib-shared) | |
2186 | (gnatlib-sjlj, gnatlib-zcx): Likewise. | |
2187 | ||
f446d60e EB |
2188 | 2011-08-07 Eric Botcazou <ebotcazou@adacore.com> |
2189 | ||
2190 | * gcc-interface/Makefile.in (raise-gcc.o): Fix previous change. | |
2191 | ||
588c8f48 EB |
2192 | * gcc-interface/gigi.h (enumerate_modes): Fix formatting. |
2193 | ||
2194 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Revert latest change. | |
2195 | ||
28d711bf NR |
2196 | 2011-08-05 Nicolas Roche <roche@adacore.com> |
2197 | ||
2198 | * gcc-interface/Makefile.in: Don't use directly ../xgcc to build shared | |
2199 | libgnat. Use rather the value of GCC_FOR_TARGET. Fix issue with | |
2200 | canadian cross. | |
2201 | * gcc-interface/Make-lang.in: Add support for canadian cross setting. | |
2202 | ||
993f8920 AC |
2203 | 2011-08-05 Matthew Heaney <heaney@adacore.com> |
2204 | ||
2205 | * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Child_Count, Child_Depth): | |
2206 | subprogram bodies declared out-of-order. | |
2207 | ||
2208 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
2209 | ||
2210 | * sem_util.adb (Unique_Name): only prefix with "standard" the names of | |
2211 | entities directly in package Standard, otherwise skip the standard | |
2212 | prefix. | |
2213 | ||
9b3956dd RD |
2214 | 2011-08-05 Robert Dewar <dewar@adacore.com> |
2215 | ||
2216 | * a-cbmutr.adb: Minor reformatting | |
2217 | (Allocate_Node): refactor node allocation algorithm | |
2218 | ||
2219 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
2220 | ||
2221 | * opt.ads, opt.adb (Debug_Pragmas_Disabled): New switch. | |
2222 | * sem_prag.adb (Analyze_Pragma, case Debug_Policy): Implement Disable | |
2223 | mode. | |
2224 | (Analyze_Pragma, case Check_Policy): Ditto. | |
2225 | * sem_prag.ads (Check_Disabled): New function | |
2226 | * snames.ads-tmpl: Add Name_Disable. | |
2227 | ||
2228 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
2229 | ||
2230 | * gnat_rm.texi: Document implementation-defined policy DISABLE for | |
2231 | pragmas Assertion_Policy, Check_Policy, Debug_Policy. | |
2232 | ||
79e705d6 AC |
2233 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> |
2234 | ||
2235 | * sem_prag.adb (Analyze_Pragma, case Inline): reject an Inline pragma | |
2236 | that appears in a generic formal part and applies to a formal | |
2237 | subprogram. | |
2238 | ||
2239 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
2240 | ||
2241 | * a-cbmutr.ads: Minor reformatting. | |
2242 | ||
23b6deca AC |
2243 | 2011-08-05 Matthew Heaney <heaney@adacore.com> |
2244 | ||
2245 | * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Read): do not use T'Valid | |
2246 | to check count, check sign of value instead. | |
2247 | * a-comutr.adb, a-cimutr.adb (Write): return immediately if tree empty | |
2248 | (Copy_Subtree): allocate copy of source element | |
2249 | (Equal_Subtree): compare elements, not access objects | |
2250 | ||
2251 | 2011-08-05 Vincent Celier <celier@adacore.com> | |
2252 | ||
2253 | * gnat_ugn.texi: Fix VMS alternative. | |
2254 | ||
a2773bd3 AC |
2255 | 2011-08-05 Thomas Quinot <quinot@adacore.com> |
2256 | ||
2257 | * sem_ch11.adb: Add comment. | |
2258 | ||
2259 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
2260 | ||
2261 | * exp_util.adb: Minor comment fix. | |
2262 | ||
2263 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
2264 | ||
2265 | * scng.adb (Error_Unterminated_String): Improve flag position when | |
2266 | comma present. | |
2267 | ||
2268 | 2011-08-05 Matthew Heaney <heaney@adacore.com> | |
2269 | ||
2270 | * Makefile.rtl, impunit.adb: Added a-cbmutr.ad[sb] (bounded multiway | |
2271 | tree containers). | |
2272 | * a-cbmutr.ads, a-cbmutr.adb: This is the new Ada 2012 unit for bounded | |
2273 | multiway tree containers. | |
2274 | ||
2275 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
2276 | ||
2277 | * styleg.adb (Check_Comment): Implement comment spacing of 1 or 2 | |
2278 | * stylesw.adb: Implement -gnatyC to control comment spacing | |
2279 | * stylesw.ads (Style_Check_Comments_Spacing): New switch (set by | |
2280 | -gnatyc/C). | |
2281 | * usage.adb: Add line for -gnatyC. | |
2282 | ||
2283 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
2284 | ||
f446d60e | 2285 | * gnat_ugn.texi: Document -gnatyC. |
a2773bd3 AC |
2286 | * vms_data.ads: Implement COMMENTS1/COMMENTS2 (retaining COMMENTS as a |
2287 | synonym for COMMENTS2). | |
2288 | ||
dedac3eb RD |
2289 | 2011-08-05 Robert Dewar <dewar@adacore.com> |
2290 | ||
2291 | * par_sco.adb, sem_ch3.adb, scos.ads, a-iteint.ads, sem_ch12.adb, | |
2292 | a-cimutr.adb, a-cimutr.ads, sem_util.ads, sem_res.adb, a-fihema.adb, | |
2293 | sem_ch4.adb, lib-xref-alfa.adb, exp_disp.adb, a-comutr.adb, | |
2294 | a-comutr.ads, lib-xref.adb: Minor reformatting. | |
2295 | ||
2296 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
2297 | ||
2298 | * sem_ch11.adb (Analyze_Raise_Statement): Kill assignment to formal | |
2299 | warning if there is an exception handler present. | |
2300 | ||
7c62a85a AC |
2301 | 2011-08-05 Pascal Obry <obry@adacore.com> |
2302 | ||
2303 | * a-iteint.ads: Fix copyright year. | |
2304 | ||
2305 | 2011-08-05 Thomas Quinot <quinot@adacore.com> | |
2306 | ||
2307 | * par_sco.adb (Traverse_Declarations_Or_Statements): Do not generate a | |
2308 | statement SCO for a USE clause or a representation clause. | |
2309 | ||
2310 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
2311 | ||
2312 | * lib-xref-alfa.adb (Collect_ALFA): generate the proper relation | |
2313 | between body and spec for stub. | |
2314 | (Detect_And_Add_ALFA_Scope): take into account subprogram stub | |
2315 | * lib-xref.adb (Enclosing_Subprogram_Or_Package): in the case of a | |
2316 | pragma precondition or postcondition, for which the enclosing | |
2317 | subprogram or package in the AST is not the desired one, return empty. | |
2318 | ||
e49208a9 AC |
2319 | 2011-08-05 Thomas Quinot <quinot@adacore.com> |
2320 | ||
2321 | * g-expect.adb: Minor reformatting. | |
2322 | ||
2323 | 2011-08-05 Bob Duff <duff@adacore.com> | |
2324 | ||
2325 | * a-fihema.adb: Comment out OS_Lib. | |
2326 | ||
2327 | 2011-08-05 Matthew Heaney <heaney@adacore.com> | |
2328 | ||
2329 | * Makefile.rtl, impunit.adb: Added a-c[oi]mutr.ad[sb] | |
2330 | (unbounded multiway tree containers) and a-iteint.ads. | |
2331 | * a-comutr.ads, a-comutr.adb: | |
2332 | This is the new Ada 2012 unit for unbounded multiway tree containers | |
2333 | * a-cimutr.ads, a-cimutr.adb | |
2334 | This is the new Ada 2012 unit for indefinite multiway tree containers | |
2335 | * a-iteint.ads: New file. | |
2336 | ||
201cdb74 RO |
2337 | 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2338 | ||
f446d60e | 2339 | * gcc-interface/Makefile.in (raise-gcc.o): Search $(srcdir)/../libgcc. |
201cdb74 | 2340 | |
d50f4827 AC |
2341 | 2011-08-05 Bob Duff <duff@adacore.com> |
2342 | ||
2343 | * sinfo.ads, sinfo.adb (Subpool_Handle_Name): New attribute for | |
2344 | subpools. | |
2345 | * par-ch4.adb (P_Allocator): Parse new subpool specification syntax. | |
2346 | ||
2347 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
2348 | ||
2349 | * sem_ch4.adb (Try_Container_Indexing): New procedure to implement the | |
2350 | general indexing aspects of Ada2012. Called when analyzing indexed | |
2351 | components when other interpretations fail. | |
2352 | * sem_ch8.adb (Find_Direct_Name): check for implicit dereference only | |
2353 | in an expression context where overloading is meaningful. This excludes | |
2354 | the occurrence in an aspect specification (efficiency only). | |
2355 | * sem_attr.adb (Analyze_Attribute): indicate that the attributes | |
2356 | related to iterators can be set by an attribute specification, but | |
2357 | cannot be queried. | |
2358 | * sem_ch13.adb (Analyze_Aspect_Specifications): handle | |
2359 | Constant_Indexing and Variable_Indexing. | |
2360 | (Check_Indexing_Functions): New procedure to perform legality checks. | |
2361 | Additional semantic checks at end of declarations. | |
2362 | ||
efe05dfc AC |
2363 | 2011-08-05 Sergey Rybin <rybin@adacore.com> |
2364 | ||
2365 | * tree_io.ads: Update ASIS_Version_Number because of the change of the | |
2366 | order of calling Tree_Write/Tree_Read routines made for aspects. | |
2367 | ||
2368 | 2011-08-05 Bob Duff <duff@adacore.com> | |
2369 | ||
2370 | * a-fihema.adb (Finalize): Fix race condition. | |
2371 | ||
5f9cdefe AC |
2372 | 2011-08-05 Yannick Moy <moy@adacore.com> |
2373 | ||
2374 | * sem_ch12.adb (Analyze_Package_Instantiation, | |
2375 | Need_Subprogram_Instance_Body): do not generate instance bodies in ALFA | |
2376 | mode. | |
2377 | ||
2378 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
2379 | ||
2380 | * sem_type.adb (Specific_Type): in an instance, the type-specific | |
2381 | operand of an equality check that involves null may have a private | |
2382 | type. Use full view to determine legality of construct. | |
2383 | ||
822868aa AC |
2384 | 2011-08-05 Vincent Celier <celier@adacore.com> |
2385 | ||
2386 | * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to | |
2387 | delete or close the file when the call to gnatmake was successful. | |
2388 | ||
2389 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
2390 | ||
2391 | * gnat1drv.adb (Adjust_Global_Switches): in ALFA mode, set | |
2392 | Global_Discard_Names. | |
2393 | ||
2394 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
2395 | ||
2396 | * sinfo.ads: comments on use of entity field for aspect specifications. | |
2397 | ||
2398 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
2399 | ||
2400 | * sem_ch12.adb (Reset_Entity): If the entity field of the associated | |
2401 | node is not itself an entity but a selected component, it is a | |
2402 | rewritten parameterless call to an en enclosing synchronized operation, | |
2403 | and this expansion will be performed again in the instance, so there is | |
2404 | no global information to preserve. | |
2405 | ||
44a10091 AC |
2406 | 2011-08-05 Javier Miranda <miranda@adacore.com> |
2407 | ||
2408 | * exp_disp.adb (Set_All_DT_Position): Cleanup code and improve support | |
2409 | for renamings of predefined primitives. | |
2410 | (In_Predef_Prims_DT): New subprogram. | |
2411 | ||
2412 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
2413 | ||
2414 | * sem_util.adb, sem_util.ads (Check_Implicit_Dereference): If a | |
2415 | possible interpretation of name is a reference type, add an | |
2416 | interpretation that is the designated type of the reference | |
2417 | discriminant of that type. | |
2418 | * sem_res.adb (resolve): If the interpretation imposed by context is an | |
2419 | implicit dereference, rewrite the node as the deference of the | |
2420 | reference discriminant. | |
2421 | * sem_ch3.adb (Analyze_Subtype_Declaration, Build_Derived_Record_Type, | |
2422 | Build_Discriminated_Subtype): Inherit Has_Implicit_Dereference from | |
2423 | parent type or base type. | |
2424 | * sem_ch4.adb (Process_Indexed_Component, | |
2425 | Process_Overloaded_Indexed_Component, Indicate_Name_And_Type, | |
2426 | Analyze_Overloaded_Selected_Component, Analyze_Selected_Component): | |
2427 | Check for implicit dereference. | |
2428 | (List_Operand_Interps): Indicate when an implicit dereference is | |
2429 | ambiguous. | |
2430 | * sem_ch8.adb (Find_Direct_Name): Check for implicit dereference. | |
2431 | ||
2432 | 2011-08-05 Thomas Quinot <quinot@adacore.com> | |
2433 | ||
2434 | * scos.ads: Update documentation of SCO table. Pragma statements can now | |
2435 | be marked as disabled (using 'p' instead of 'P' as the statement kind). | |
2436 | * par_sco.ads, par_sco.adb: Implement the above change. | |
2437 | (Process_Decisions_Defer): Generate a P decision for the first parameter | |
2438 | of a dyadic pragma Debug. | |
2439 | * sem_prag.adb (Analyze_Pragma, case Debug): Mark pragma as enabled if | |
2440 | necessary. | |
2441 | * put_scos.adb: Code simplification based on above change. | |
2442 | ||
bb3c784c AC |
2443 | 2011-08-05 Robert Dewar <dewar@adacore.com> |
2444 | ||
2445 | * sem_ch3.adb, gnatcmd.adb, switch-c.adb, exp_attr.adb, make.adb, | |
2446 | bindgen.adb, einfo.adb, sem_ch12.adb, sem_attr.adb, a-fihema.adb, | |
2447 | a-fihema.ads, sem_elab.adb, sem_elab.ads, aspects.adb, opt.ads, | |
2448 | prj-conf.adb, sem_ch13.adb, s-ficobl.ads: Minor reformatting | |
2449 | ||
2450 | 2011-08-05 Bob Duff <duff@adacore.com> | |
2451 | ||
2452 | * a-stunau.ads, g-spipat.adb: Update comments. | |
2453 | ||
36f686f9 BD |
2454 | 2011-08-05 Bob Duff <duff@adacore.com> |
2455 | ||
2456 | * a-fihema.ads: Minor comment fix. | |
2457 | * a-fihema.adb (Allocate, Deallocate): Assert that the alignment is | |
2458 | correct. | |
2459 | (Attach, Detach): Remove some unnecessary code. | |
2460 | (Finalize): Remove Node_Ptr_To_Address, replace with a constant. | |
2461 | ||
7882673f BD |
2462 | 2011-08-05 Bob Duff <duff@adacore.com> |
2463 | ||
2464 | * a-fihema.ads, a-fihema.adb (Finalization_Collection): Avoid heap | |
2465 | allocation for Objects component. This simplifies the code somewhat. It | |
2466 | is also a little more efficient in the not-so-unusual case where there | |
2467 | are no controlled objects allocated. | |
2468 | Make Finalization_Started flag atomic. | |
2469 | (Finalize): Avoid unnecessary detachment of items from the list. | |
2470 | (pcol): Minor cleanup. | |
2471 | ||
d34cd274 AC |
2472 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> |
2473 | ||
2474 | * sem_ch12.adb (Analyze_Formal_Package_Declaration): reject a formal | |
2475 | package whose name is the same as that of the generic unit, or its | |
2476 | ultimate prefix. | |
2477 | ||
2478 | 2011-08-05 Bob Duff <duff@adacore.com> | |
2479 | ||
2480 | * a-fihema.adb, a-fihema.ads: Minor comment improvements. | |
2481 | * sem_ch3.adb, exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb: | |
2482 | Minor comment fixes. | |
2483 | ||
00332244 AC |
2484 | 2011-08-05 Arnaud Charlet <charlet@adacore.com> |
2485 | ||
2486 | * make.adb (Linking_Phase): No longer need to set source search path | |
2487 | before calling gnatlink in CodePeer mode. | |
2488 | * gnatlink.adb (Gnatlink): No longer pass -gnat83/95/05/12 switch to | |
2489 | gcc in CodePeer mode, since the binder generated file no longer has a | |
2490 | 'with Main'. | |
2491 | * switch.ads, switch.adb (Is_Language_Switch): Removed. | |
2492 | * switch-c.adb: Update comment. | |
2493 | ||
2494 | 2011-08-05 Thomas Quinot <quinot@adacore.com> | |
2495 | ||
2496 | * exp_strm.adb, bindgen.adb, s-ficobl.ads: Minor reformatting. | |
2497 | ||
2498 | 2011-08-05 Nicolas Roche <roche@adacore.com> | |
2499 | ||
2500 | * gnat_ugn.texi: Fix minor syntax error issue. | |
2501 | ||
2502 | 2011-08-05 Vincent Celier <celier@adacore.com> | |
2503 | ||
2504 | * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to | |
2505 | delete or close the file when the call to gnatmake returns a non | |
2506 | successful return code. | |
2507 | ||
2508 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
2509 | ||
2510 | * exp_ch4.adb (Expand_N_Type_Conversion): When expanding a predicate | |
2511 | check, indicate that the copy of the original node does not come from | |
2512 | source, to prevent an infinite recursion of the expansion. | |
2513 | ||
2514 | 2011-08-05 Johannes Kanig <kanig@adacore.com> | |
2515 | ||
2516 | * debug.adb: document switch -gnatd.G for gnat2why, which deactivates | |
2517 | VC generation for subprogram bodies. | |
2518 | ||
2519 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
2520 | ||
2521 | * einfo.ads: Typo. | |
2522 | * sem_ch3.adb (Signed_Integer_Type_Declaration): in ALFA mode, define | |
2523 | the base type with the smallest allowed base type. | |
2524 | ||
2525 | 2011-08-05 Sergey Rybin <rybin@adacore.com> | |
2526 | ||
2527 | * tree_gen.adb, tree_in.adb, aspects.adb: Fix tree read-write for | |
2528 | aspects. | |
2529 | ||
2530 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
2531 | ||
2532 | * sem_ch12.ads: minor comment updates. | |
2533 | ||
2534 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
2535 | ||
2536 | * sem_ch12.adb (Analyze_Formal_Package_Declaration): in an | |
2537 | instantiation and a formal package the compiler generates a package | |
2538 | renaming declaration so that the generic name within the declaration | |
2539 | is interpreted as a renaming of the instance. At the end of a formal | |
2540 | package declaration, this renaming must become invisible. | |
2541 | ||
0da80d7d AC |
2542 | 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com> |
2543 | ||
2544 | * exp_ch7.adb (Is_Init_Call): Reimplemented to avoid character | |
2545 | comparison and rely on concrete entities instead. | |
2546 | ||
2547 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
2548 | ||
2549 | * einfo.ads, einfo.adb (Has_Implicit_Dereference): new flag on types | |
2550 | and discriminants, to indicate that the type has an access discriminant | |
2551 | that supports implicit dereference. | |
2552 | * snames.ads-tmpl: Add names of aspects and attributes related to | |
2553 | Ada2012 iterators: constant_indexing, default_iterator, | |
2554 | iterator_element, implicit_dereference, variable_indexing. | |
2555 | * aspects.ads, aspects.adb: entries for iterator-related aspects. | |
2556 | * sem_ch13.adb (Analyze_aspect_specifications): dummy entries for | |
2557 | iterator-related aspects. | |
2558 | * sem_attr.adb, exp_attr.adb Dummy entries for iterator-related aspects. | |
2559 | ||
2560 | 2011-08-05 Sergey Rybin <rybin@adacore.com> | |
2561 | ||
2562 | * gnat_ugn.texi, vms_data.ads: Extend the subsection about coupling | |
2563 | metrics in gnatmetric to cover new kinds of coupling mentrics. | |
2564 | ||
2565 | 2011-08-05 Steve Baird <baird@adacore.com> | |
2566 | ||
2567 | * bindgen.adb (Gen_CodePeer_Wrapper): Call Ada_Main_Program instead | |
2c7f9cc0 | 2568 | of calling the user-defined main subprogram. |
0da80d7d AC |
2569 | (Gen_Main): Declare Ada_Main_Program and (if CodePeer_Mode |
2570 | is set) Call_Main_Subprogram ahead of, as opposed to | |
2571 | inside of, Main. | |
2572 | (Gen_Output_File_Ada): Remove CodePeer_Mode-conditional | |
2573 | generation of a "with" of the user-defined main subprogram. | |
2574 | Remove CodePeer_Mode-conditional call to Gen_CodePeer_Wrapper | |
2575 | (which is now called from Gen_Main instead). | |
2576 | ||
73242473 AC |
2577 | 2011-08-05 Emmanuel Briot <briot@adacore.com> |
2578 | ||
2579 | * projects.texi: Added reference to the Makefile package. | |
2580 | ||
2581 | 2011-08-05 Thomas Quinot <quinot@adacore.com> | |
2582 | ||
2583 | * exp_ch7.adb: Minor comment rewording. | |
2584 | ||
2585 | 2011-08-05 Ed Falis <falis@adacore.com> | |
2586 | ||
2587 | * env.c: Fix comment. | |
2588 | ||
2589 | 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com> | |
2590 | ||
2591 | * sem_elab.adb (Is_Finalization_Procedure): Reimplemented to avoid | |
2592 | character comparison and rely on concrete entities instead. | |
2593 | ||
97ed5872 AC |
2594 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> |
2595 | ||
2596 | * sem_ch3.adb: (Check_Private_Overriding): better error message, | |
2597 | suggested by AI95-0068. | |
2598 | ||
2599 | 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com> | |
2600 | ||
2601 | * exp_ch7.adb (Find_Last_Init): Use Next_Suitable_Statement to retrieve | |
2602 | the two potential initialization calls. This accounts for any | |
2603 | access-before-elaboration checks which may precede the initialization | |
2604 | calls. | |
2605 | (Next_Suitable_Statement): New routine. Returns the next real statement | |
2606 | after the input node while skipping generated checks. | |
2607 | * sem_elab.adb (Check_A_Call): New formal parameter In_Init_Proc along | |
2608 | with comment on usage. | |
2609 | Do not generate Elaborate_All when the trigger is a finalization call | |
2610 | coming from a type init proc. | |
2611 | (Check_Elab_Call): Propagate the initialization procedure context to | |
2612 | subsequent calls to Check_A_Call. | |
2613 | (Check_Internal_Call_Continue): Propagate the initialization procedure | |
2614 | context to subsequent calls to Check_Elab_Call. | |
2615 | (Is_Finalization_Procedure): New routine. Returns True if the input | |
2616 | entity denotes a [Deep_]Finalize routine. | |
2617 | * sem_elab.ads (Check_Elab_Call): New formal parameter In_Init_Proc | |
2618 | along with comment on usage. | |
2619 | ||
2620 | 2011-08-05 Vadim Godunko <godunko@adacore.com> | |
2621 | ||
2622 | * s-atocou.ads: Add list of supported platforms. | |
2623 | ||
2624 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
2625 | ||
2626 | * sem_prag.adb, restrict.adb: Correct style for or'ing Boolean variables | |
2627 | ||
2628 | * opt.ads (Disable_ALI_File): new Boolean flag | |
2629 | * lib-writ.adb (Write_ALI): when Disable_ALI_File is set, do nothing | |
2630 | ||
2631 | 2011-08-05 Ed Falis <falis@adacore.com> | |
2632 | ||
2633 | * env.c (__gnat_environ): Fix includes for RTPs and VTHREADS so that | |
2634 | environ is properly defined. | |
2635 | ||
2636 | 2011-08-05 Vincent Celier <celier@adacore.com> | |
2637 | ||
2638 | * make.adb (Compilation_Phase): Exit immediately when all objects have | |
2639 | been found up to date, to avoid multiple exit messages. | |
2640 | * prj-nmsc.adb (Add_Source): Allow duplicate source file names in the | |
2641 | same project for languages with no compiler. | |
2642 | * gnat_ugn.texi: Document compiler switch -gnateI and gnatmake switch | |
2643 | -eI. | |
9aff36e9 RD |
2644 | 2011-08-05 Robert Dewar <dewar@adacore.com> |
2645 | ||
2646 | * exp_ch7.ads, sem_type.adb, make.adb, sem_prag.adb, sem_util.adb, | |
2647 | sem_util.ads, sem_attr.adb, restrict.ads, sem_ch6.adb, prj-conf.adb, | |
2648 | prj-conf.ads, s-atocou.ads, s-atocou.adb, s-atocou-x86.adb, | |
2649 | s-atocou-builtin.adb: Minor reformatting. | |
2650 | ||
406935b6 AC |
2651 | 2011-08-05 Yannick Moy <moy@adacore.com> |
2652 | ||
2653 | * exp_ch7.adb (Establish_Transient_Scope): in formal verification mode, | |
2654 | if the node to wrap is a pragma check, this node and enclosed | |
2655 | expression are not expanded, so do not apply any transformations here. | |
2656 | * exp_prag.adb (Expand_Pragma_Check): document the need to avoid | |
2657 | introducing transient scopes. | |
2658 | ||
2659 | 2011-08-05 Jose Ruiz <ruiz@adacore.com> | |
2660 | ||
2661 | * adaint.c (__gnat_set_writable, __gnat_set_readable, | |
2662 | __gnat_set_executable, __gnat_set_non_writable, __gnat_set_non_readable, | |
2663 | __gnat_copy_attribs): On VxWorks 6.x and later, the required chmod | |
2664 | routine is available, so we use the default implementation of these | |
2665 | functions. | |
2666 | * s-os_lib.ads (Copy_File, Copy_Time_Stamps): Document that there is | |
2667 | support for copying attributes on VxWorks 6. | |
2668 | ||
2669 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
2670 | ||
2671 | * debug.adb: Remove use of -gnatd.D. | |
2672 | * gnat1drv.adb (Adjust_Global_Switches): adjust switches for ALFA mode | |
2673 | * opt.ads: Simplify variables for ALFA mode, to keep one only | |
2674 | * restrict.adb, sem_prag.adb: Adapt treatment done for CodePeer mode | |
2675 | to ALFA mode. | |
2676 | ||
2677 | 2011-08-05 Vincent Celier <celier@adacore.com> | |
2678 | ||
2679 | * prj-conf.adb (Do_Autoconf): Look also for --RTS in | |
2680 | Builder'Default_Switches. | |
2681 | ||
2682 | 2011-08-05 Vincent Celier <celier@adacore.com> | |
2683 | ||
2684 | * makeusg.adb: Add lines for --create-map-file switches. | |
2685 | ||
2686 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
2687 | ||
2688 | * freeze.adb (Freeze_Entity): For a subprogram, if a type in the | |
2689 | profile is incomplete and the full view is available, replace it with | |
2690 | the full view. | |
2691 | * sem_ch6.adb (Possible_Freeze): if a type in the profile is | |
2692 | incomplete, freezing the subprogram is delayed until the full view is | |
2693 | frozen. | |
2694 | * sem_type.adb (Disambiguate): an ambiguity between a user-defined | |
2695 | fixed-point multiplication operator and the predefined operator is | |
2696 | resolved in favor of the user-defined one. | |
2697 | ||
96c891b3 RO |
2698 | 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2699 | ||
2700 | * init.c [__alpha__ && __osf__] (__gnat_error_handler): Use | |
2701 | CONST_CAST. | |
2702 | ||
276e7ed0 AC |
2703 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> |
2704 | ||
2705 | * sem_util.ads, sem_unit.adb (Type_Without_Stream_Operation): determine | |
2706 | whether a type lacks user-defined Read or Write operations, or has a | |
2707 | component that lacks them. | |
2708 | * sem_attr.adb (Check_Stream_Attribute): if restriction | |
2709 | No_Default_Stream_Attributes is active, verify that all subcomponent | |
2710 | types of the target have user-defined stream operations, and report | |
2711 | error otherwise. | |
2712 | * exp_ch3.adb (Stream_Operqtion_OK): use Type_Without_Stream_Operation. | |
2713 | * exp_strm.adb: Build_Elementary_Input_Call, | |
2714 | Build_Elementary_Write_Call): remove checks for restriction | |
2715 | No_Default_Stream_Attributes, now checked in semantics. | |
2716 | ||
2717 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
2718 | ||
2719 | * prj-conf.ads, prj-conf.adb (Do_Autoconf): If there is no --RTS | |
2720 | switches on the command line, look for all valid --RTS switches in the | |
2721 | Builder switches and for each language use the first runtime name found | |
2722 | to invoke gprconfig. | |
2723 | (Get_Or_Create_Configuration_File): Warn if --RTS is specified on the | |
2724 | command line and there is no auto-configuration. | |
2725 | (Runtime_Name_Set_For): New function. | |
2726 | ||
2727 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
2728 | ||
2729 | * exp_ch7.adb (Build_Object_Declarations): Do not generate the | |
2730 | elaborate initialization expression for variable Abort when processing | |
2731 | a package body or a declaration. | |
2732 | (Create_Finalizer): Propagate the package context when creating the | |
2733 | exception-related variables. | |
2734 | * exp_ch7.ads (Build_Object_Declarations): New formal parameter | |
2735 | For_Package along with usage comment. | |
2736 | ||
19172ae9 AC |
2737 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
2738 | ||
2739 | * gcc-interface/Makefile.in: Clean up targets. | |
2740 | Enable new package for atomic counters and copy-on-write implementation | |
2741 | of unbounded strings on x86 platforms. | |
2742 | * gcc-interface/Make-lang.in: Update dependencies. | |
2743 | ||
0319cacc AC |
2744 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
2745 | ||
2746 | * exp_ch7.adb: Minor reformatting. | |
2747 | ||
2748 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
2749 | ||
2750 | * exp_strm.adb: Minor reformatting. | |
2751 | ||
2752 | 2011-08-04 Vadim Godunko <godunko@adacore.com> | |
2753 | ||
2754 | * s-atocou.adb: Replace by dummy version and use on targets where atomic | |
2755 | operations are not supported. | |
2756 | * s-atocou-builtin.adb: Renamed from s-atocou.adb. | |
2757 | * s-atocou-x86.adb: New file. | |
2758 | * Makefile.rtl: Add s-atocou.o file | |
2759 | ||
2760 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
2761 | ||
2762 | * make.adb (Compile): Move setting of CodePeer_Mode to ... | |
2763 | (Compilation_Phase): ... here. | |
2764 | (Scan_Make_Arg): Now bind and link by default in CodePeer mode. | |
2765 | ||
2766 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
2767 | ||
2768 | * Make-generated.in: Fix minor typo in comment. | |
2769 | ||
26e7e1a0 AC |
2770 | 2011-08-04 Thomas Quinot <quinot@adacore.com> |
2771 | ||
2772 | * gnatls.adb: Use Prj.Env.Initialize_Default_Project_Path to retrieve | |
2773 | the project path. | |
2774 | ||
2775 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
2776 | ||
2777 | * a-coinho.adb: Minor reformatting. | |
2778 | ||
2779 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
2780 | ||
2781 | * a-coinho.ads: Minor reformatting. | |
2782 | ||
2783 | 2011-08-04 Vadim Godunko <godunko@adacore.com> | |
2784 | ||
2785 | * s-atocou.ads, s-atocou.adb: New files. | |
2786 | * a-strunb-shared.ads, a-strunb-shared.adb, a-stwiun-shared.ads, | |
2787 | a-stwiun-shared.adb, a-stzunb-shared.ads, a-stzunb-shared.adb: Remove | |
2788 | direct use of GCC's atomic builtins and replace them by use of new | |
2789 | atomic counter package. | |
2790 | ||
2791 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
2792 | ||
2793 | * exp_strm.adb: better error message for No_Default_Stream_Attributes. | |
2794 | ||
2795 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
2796 | ||
2797 | * a-tags.adb (Unregister_Tag): Replace the complex address arithmetic | |
2798 | with a call to Get_External_Tag. | |
2799 | * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on | |
2800 | subprogram usage. Remove the guard against package declarations and | |
2801 | bodies since Build_Cleanup_Statements is no longer invoked in that | |
2802 | context. | |
2803 | (Build_Components): Initialize Tagged_Type_Stmts when the context | |
2804 | contains at least one library-level tagged type. | |
2805 | (Build_Finalizer): New local variables Has_Tagged_Types and | |
2806 | Tagged_Type_Stmts along with associated comments on usage. Update the | |
2807 | logic to include tagged type processing. | |
2808 | (Create_Finalizer): Insert all library-level tagged type unregistration | |
2809 | code before the jump block circuitry. | |
2810 | (Expand_N_Package_Body): Remove the call to Build_Cleanup_Statements. | |
2811 | (Expand_N_Package_Declaration): Remove the call to | |
2812 | Build_Cleanup_Statements. | |
2813 | (Process_Tagged_Type_Declaration): New routine. Generate a call to | |
2814 | unregister the external tag of a tagged type. | |
2815 | (Processing_Actions): Reimplemented to handle tagged types. | |
2816 | (Process_Declarations): Detect the declaration of a library-level | |
2817 | tagged type and carry out the appropriate actions. | |
2818 | (Unregister_Tagged_Types): Removed. The machinery has been directly | |
2819 | merged with Build_Finalizer. | |
2820 | ||
7483c888 AC |
2821 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
2822 | ||
2823 | * bindgen.ads, gnatlink.adb, sem_ch4.adb, gnatbind.adb, put_alfa.adb, | |
2824 | gnatls.adb, exp_ch3.adb: Minor reformatting. | |
2825 | ||
2826 | 2011-08-04 Marc Sango <sango@adacore.com> | |
2827 | ||
2828 | * sem_attr.adb (Analyze_Attribute): Replace the message | |
2829 | "invisible attribute of}" of the spark restriction violation in | |
2830 | attribute reference by the simple message "invisible attribute of type". | |
2831 | Indeed, the node value Error_Msg_Node_1 used is in conflit with the | |
2832 | two insertion characters: '&' and '}'. | |
2833 | ||
2834 | 2011-08-04 Vadim Godunko <godunko@adacore.com> | |
2835 | ||
2836 | * impunit.adb (Non_Imp_File_Names_12): Add "a-coinho". | |
2837 | * a-coinho.ads, a-coinho.adb: New file. | |
2838 | * Makefile.rtl: Add Ada.Containers.Indefinite_Holders. | |
2839 | ||
5207696c AC |
2840 | 2011-08-04 Nicolas Roche <roche@adacore.com> |
2841 | ||
2842 | * alfa_test.adb: Not all ali files are containing alfa information even | |
2843 | if compiled with -gnatd.F. So suppress warning about missing ALFA | |
2844 | information. | |
2845 | ||
2846 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
2847 | ||
2848 | * lib-xref-alfa.adb (Add_ALFA_Scope): use non-empty unique name for | |
2849 | scope. | |
2850 | * put_alfa.adb: Check that scope name is not empty. | |
2851 | ||
2852 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
2853 | ||
2854 | * exp_ch3.adb (Stream_Operation_Ok): new predicate | |
2855 | Needs_Elementary_Stream_Operation, to determine whether user-defined | |
2856 | Read and Write attributes are available for the elementary components | |
2857 | of the given type. If only the predefined attributes are available, | |
2858 | then when restriction No_Default_Stream_Attributes is active the | |
2859 | predefined stream attributes for the composite type cannot be created. | |
2860 | ||
2861 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
2862 | ||
2863 | * bindgen.adb: Fix obsolete comments and names from Ada/C days. | |
2864 | Put routines in alpha order | |
2865 | ||
2bd2d858 JR |
2866 | 2011-08-04 Jose Ruiz <ruiz@adacore.com> |
2867 | ||
2868 | * gcc-interface/Makefile.in: Remove xenomai specific versions of system. | |
2869 | * gcc-interface/Make-lang.in: Update dependencies. | |
2870 | ||
8fae6016 AC |
2871 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
2872 | ||
2873 | * gcc-interface/lang.opt: Add AdaWhy language, simimlar to Ada. | |
2874 | * gcc-interface/lang-specs.h: Add handling of AdaWhy specs (calls | |
2875 | gnat1why). | |
2876 | ||
a54d0eb4 AC |
2877 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
2878 | ||
2879 | * sem_ch3.adb, make.adb, a-cohata.ads, sem_prag.adb, makeutl.adb, | |
2880 | lib-xref-alfa.adb: Minor reformatting. | |
2881 | ||
2882 | 2011-08-04 Marc Sango <sango@adacore.com> | |
2883 | ||
2884 | * sem_ch12.adb (Analyze_Generic_Package_Declaration, | |
2885 | Analyze_Generic_Subprogram_Declaration, Analyze_Package_Instantiation, | |
2886 | Analyze_Subprogram_Instantiation): Check absence of generic in SPARK | |
2887 | mode. | |
2888 | ||
2889 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
2890 | ||
2891 | * bindgen.adb (Gen_Adainit_C): Remove. | |
2892 | (Gen_Adafinal_C): Ditto. | |
2893 | (Gen_Elab_Externals_C): Ditto. | |
2894 | (Gen_Elab_Calls_C): Ditto. | |
2895 | (Gen_Elab_Order_C): Ditto. | |
2896 | (Gen_Elab_Defs_C): Ditto. | |
2897 | (Gen_Finalize_Library_C): Ditto. | |
2898 | (Gen_Finalize_Library_Defs_C): Ditto. | |
2899 | (Gen_Main_C): Ditto. | |
2900 | (Gen_Output_File_C): Ditto. | |
2901 | (Gen_Restrictions_C): Ditto. | |
2902 | (Gen_Versions_C): Ditto. | |
2903 | (Write_Info_Ada_C): Ditto. | |
2904 | (Gen_Object_Files_Options): Call WBI instead of Write_Info_Ada_C | |
2905 | (Gen_Output_File): Do not force Ada_Bind_File anymore. | |
2906 | Always call Gen_Output_File_Ada. | |
2907 | * gnatlink.adb (Begin_Info): Now a constant. | |
2908 | (End_Info): Ditto. | |
2909 | (Ada_Bind_File): Remove | |
2910 | (Process_Args): Do not handle -A/-C. Remove not Ada_Bind_File cases. | |
2911 | * switch-b.adb (Scan_Binder_Switches): Do not handle -C. | |
2912 | * gnatbind.adb (Gnatbind): Remove not Ada_Bind_File cases. | |
2913 | * opt.ads (Ada_Bind_File): Remove. | |
2914 | ||
2915 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
2916 | ||
2917 | * projects.texi: Document target-specific directory in default project | |
2918 | path for gnatmake. | |
2919 | ||
2920 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
2921 | ||
2922 | * gnatls.adb, prj-env.adb: Add $prefix/share/gpr to default project | |
2923 | path in all cases . | |
2924 | ||
24558db8 AC |
2925 | 2011-08-04 Yannick Moy <moy@adacore.com> |
2926 | ||
2927 | * sem_ch3.adb, sem_ch5.adb, sem_util.adb, sem_ch4.adb, sem_ch8.adb, | |
2928 | opt.ads, lib-xref.ads: Code clean up. | |
2929 | ||
2930 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
2931 | ||
2932 | * gnat_rm.texi: Update description of Test_Case | |
2933 | * gnat_ugn.texi: Typo. | |
2934 | ||
2935 | 2011-08-04 Ed Falis <falis@adacore.com> | |
2936 | ||
2937 | * adaint.c (__gnat_get_number_of_cpus): fix typo in last checkin. | |
2938 | ||
2939 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
2940 | ||
2941 | * exp_ch4.adb (Suitable_Element): Skip field _parent on .NET/JVM when | |
2942 | it is of type Root_Controlled. This action eliminates fields Prev and | |
2943 | Next from type equality. | |
2944 | ||
2945 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
2946 | ||
2947 | * lib-xref-alfa.adb: Correct typo. | |
2948 | ||
2949 | 2011-08-04 Matthew Heaney <heaney@adacore.com> | |
2950 | ||
2951 | * a-cohata.ads (Hash_Table_Type): default-initialize the Nodes | |
2952 | component. | |
2953 | ||
1f9939b5 AC |
2954 | 2011-08-04 Yannick Moy <moy@adacore.com> |
2955 | ||
2956 | * sem_prag.adb (Check_Arg_Is_String_Literal): remove useless procedure | |
2957 | (Analyze_Pragma): allow static string expression for name of Test_Case, | |
2958 | instead of simply string literals. | |
2959 | * sem_util.adb (Get_Name_From_Test_Case_Pragma): adapt to static string | |
2960 | expressions. | |
2961 | ||
2962 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
2963 | ||
2964 | * makeutl.adb (Complete_Mains.Find_File_Add_Extension): Use canonical | |
2965 | case suffixes to find truncated main sources. | |
2966 | ||
2967 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
2968 | ||
2969 | * impunit.adb (Non_Imp_File_Names_95): Add g-tastus. | |
2970 | s-stusta.adb (Compute_All_Task): Use Put_Line instead of Put. | |
2971 | (Compute_Current_Task): Ditto. | |
2972 | ||
2973 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
2974 | ||
2975 | * gnat_ugn.texi: Mention GNAT.Task_Stack_Usage. | |
2976 | ||
2977 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
2978 | ||
2979 | * lib-xref-alfa.adb (Is_Global_Constant): new function that detects | |
2980 | library-level constant. | |
2981 | (Add_ALFA_Xrefs): ignore global constants in ALFA xref. | |
2982 | * sem_res.adb (Resolve_Actuals): do not add cross-reference to Formal | |
2983 | used as selector of parameter association, in ALFA mode. | |
2984 | ||
15d8a51d AC |
2985 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
2986 | ||
2987 | * exp_ch5.adb, exp_ch7.adb, exp_util.adb, bindgen.adb, sem_prag.adb, | |
2988 | s-tassta.adb, exp_ch4.adb, exp_disp.adb, s-stausa.adb: Minor | |
2989 | reformatting. | |
2990 | ||
2991 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
2992 | ||
2993 | * make.adb (Linking_Phase): Set source search path before calling | |
2994 | gnatlink in CodePeer mode. | |
2995 | ||
f46faa08 AC |
2996 | 2011-08-04 Javier Miranda <miranda@adacore.com> |
2997 | ||
2998 | * exp_ch7.adb (Expand_N_Package_Body, Expand_N_Package_Declaration): | |
2999 | Remove code which takes care of building TSDs. | |
3000 | * rtsfind.ads (RE_Check_Interface_Conversion): New entity. | |
3001 | * exp_ch4.adb (Apply_Accessibility_Check): Add support for generating | |
3002 | the accessibility check in VM targets. | |
3003 | * exp_disp.adb (Make_VM_TSD): Spec moved to exp_disp.ads | |
3004 | (Building_Static_DT): Now returns false for VM targets. | |
3005 | (Build_VM_TSDs): Removed. | |
3006 | (Expand_Interface_Conversion): Generate missing runtime check for | |
3007 | conversions to interface types whose target type is unknown at compile | |
3008 | time. | |
3009 | (Make_VM_TSD): Add missing code to disable the generation of calls to | |
3010 | Check_TSD if the tagged type is not defined at library level, or not | |
3011 | has a representation clause specifying its external tag, or -gnatdQ is | |
3012 | active. | |
3013 | * exp_disp.ads (Build_VM_TSDs): Removed. | |
3014 | (Make_VM_TSDs): Spec relocated from exp_disp.adb | |
3015 | * sem_disp.adb (Check_Dispatching_Operation): No code required to | |
3016 | register primitives in the dispatch tables in VM targets. | |
3017 | * exp_ch3.adb (Expand_N_Object_Declaration): Remove wrong expansion of | |
3018 | initialization of class-wide interface objects in VM targets. | |
3019 | (Expand_Freeze_Record_Type): For VM targets call Make_VM_TSD (instead | |
3020 | of Make_DT). | |
3021 | ||
3022 | 2011-08-04 Jerome Lambourg <lambourg@adacore.com> | |
3023 | ||
3024 | * gnatlink.adb (Gnatlink): Correct missleading error message displayed | |
3025 | when dotnet-ld cannot be found. | |
3026 | ||
3027 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
3028 | ||
3029 | * bindgen.adb: Simplify significantly generation of binder body file in | |
3030 | CodePeer mode. | |
3031 | * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Prevent assert failure | |
3032 | when compiling binder generated file in CodePeer mode (xxx'Elab_Spec | |
3033 | not expanded). | |
3034 | ||
2ba7e31e AC |
3035 | 2011-08-04 Yannick Moy <moy@adacore.com> |
3036 | ||
3037 | * sem_prag.adb, sem.ads: Code cleanup. | |
3038 | ||
3039 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
3040 | ||
3041 | * s-tassta.adb (Task_Wrapper): Rewrite the dynamic stack usage part. | |
3042 | * s-stausa.adb, s-stausa.ads: Major rewrite. Now provides accurate | |
3043 | results if possible. | |
3044 | * s-stusta.adb (Print): Adjust after changes in s-stausa. | |
3045 | * gnat_ugn.texi: Update dynamic stack usage section. | |
3046 | ||
3047 | 2011-08-04 Steve Baird <baird@adacore.com> | |
3048 | ||
3049 | * bindgen.adb (Gen_CodePeer_Wrapper): new procedure. | |
3050 | Generate (if CodePeer_Mode is set) a "wrapper" subprogram which | |
3051 | contains only a call to the user-defined main subprogram. | |
3052 | (Gen_Main_Ada) - If CodePeer_Mode is set, then | |
3053 | call the "wrapper" subprogram instead of directly | |
3054 | calling the user-defined main subprogram. | |
3055 | ||
3056 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
3057 | ||
3058 | * exp_ch5.adb (Expand_N_Case_Statement): Check the statements of all | |
3059 | alternatives of a case statement for controlled objects. Rename local | |
3060 | variable A to Dead_Alt. | |
3061 | (Expand_N_If_Statement): Check the then and else statements of an if | |
3062 | statement for controlled objects. Check the then statements of all | |
3063 | elsif parts of an if statement for controlled objects. | |
3064 | (Expand_N_Loop_Statement): Check the statements of a loop for controlled | |
3065 | objects. | |
3066 | * exp_ch7.adb (Process_Transient_Objects): Rewrite the condition which | |
3067 | detects a loop associated with the expansion of an array object. | |
3068 | Augment the processing of the loop statements to account for a possible | |
3069 | wrap done by Process_Statements_For_Controlled_Objects. | |
3070 | * exp_ch9.adb (Expand_N_Asynchronous_Select): Check the triggering | |
3071 | statements and abortable part of an asynchronous select for controlled | |
3072 | objects. | |
3073 | (Expand_N_Conditional_Entry_Call): Check the else statements of a | |
3074 | conditional entry call for controlled objects. | |
3075 | (Expand_N_Selective_Accept): Check the alternatives of a selective | |
3076 | accept for controlled objects. | |
3077 | (Expand_N_Timed_Entry_Call): Check the entry call and delay | |
3078 | alternatives of a timed entry call for controlled objects. | |
3079 | * exp_ch11.adb (Expand_Exception_Handlers): Check the statements of an | |
3080 | exception handler for controlled objects. | |
3081 | * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)): | |
3082 | Add formal parameter Nested_Constructs along with its associated | |
3083 | comment. | |
3084 | (Requires_Cleanup_Actions (Node_Id)): Update all calls to | |
3085 | Requires_Cleanup_Actions. | |
3086 | (Process_Statements_For_Controlled_Objects): New routine. | |
3087 | * exp_util.ads (Process_Statements_For_Controlled_Objects): New | |
3088 | routine. Inspect a node which contains a non-handled sequence of | |
3089 | statements for controlled objects. If such an object is found, the | |
3090 | statements are wrapped in a block. | |
3091 | ||
1bf773bb AC |
3092 | 2011-08-04 Bob Duff <duff@adacore.com> |
3093 | ||
3094 | * sem_type.adb (Covers): If T2 is a subtype of a class-wide type, we | |
3095 | need to compare with Class_Wide_Type (T2), in order to get at the | |
3096 | original class-wide type node. | |
3097 | * sem_type.ads (Covers): Improve the comment. | |
3098 | * einfo.ads (Class_Wide_Type): Improve the comment. | |
3099 | * exp_intr.adb (Expand_Unc_Deallocation): Remove unnecessary setting of | |
3100 | the type of the Deref. | |
3101 | ||
3102 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3103 | ||
3104 | * gnat_rm.texi: Document that Test_Case pragma can only appear on | |
3105 | separate declarations. | |
3106 | * sem_prag.adb (procedure Check_Identifier_Is_One_Of): new procedure to | |
3107 | check identifier of pragma argument. | |
3108 | (Chain_TC): check that no other test case associated to the same entity | |
3109 | share the same name. | |
3110 | (Check_Test_Case): disallow test case inside subprogram body | |
3111 | (Analyze_Pragma): correct call to check identifier and not argument | |
3112 | * sem_util.adb, sem_util.ads (Get_Name_From_Test_Case_Pragma): new | |
3113 | function gets name from test case pragma. | |
3114 | ||
dac3bede YM |
3115 | 2011-08-04 Yannick Moy <moy@adacore.com> |
3116 | ||
3117 | * gnat_rm.texi: Document new pragma and aspect. | |
3118 | * aspects.adb, aspects.ads (Aspect_Id): new value Aspect_Test_Case | |
3119 | (No_Duplicates_Allowed): new constant array defining whether duplicates | |
3120 | aspects of each kind can appear on the same declaration. | |
3121 | * einfo.adb, einfo.ads (Spec_PPC_List): replace field with Contract | |
3122 | field, which points to a node holding the previous Spec_PPC_List. | |
3123 | * exp_ch9.adb, sem_ch6.adb, sem_prag.adb: Reach to Spec_PPC_List | |
3124 | through the indirection with Contract. | |
3125 | * exp_util.adb (Insert_Actions): raise Program_Error on N_Contract node | |
3126 | * par-prag.adb (Prag): do nothing on Test_Case pragma | |
3127 | * sem.adb (Analyze): abort on N_Contract, on which Analyze should not | |
3128 | be called directly. | |
3129 | * sem_attr.adb (Analyze_Attribute): allow attribute 'Result in | |
3130 | component Ensures of Test_Case. | |
3131 | * sem_ch12.adb, sem_ch6.adb, sem_ch9.adb | |
3132 | (Analyze_Generic_Subprogram_Declaration, | |
3133 | Analyze_Subprogram_Instantiation, | |
3134 | Analyze_Abstract_Subprogram_Declaration, | |
3135 | Analyze_Subprogram_Body_Helper, | |
3136 | Analyze_Subprogram_Specification, Analyze_Entry_Declaration): | |
3137 | insert contract in subprogram node at point of definition | |
3138 | * sem_ch13.adb | |
3139 | (Aspect_Loop): do not raise error on duplicate Test_Case aspect | |
3140 | (Analyze_Aspect_Specifications): analyze Test_Case aspect and create | |
3141 | corresponding pragma | |
3142 | (Check_Aspect_At_Freeze_Point): raise Program_Error on Test_Case aspect | |
3143 | * sem_ch3.adb (Analyze_Declarations): insert analysis of test-cases, | |
3144 | similar to the analysis of pre/post | |
3145 | (Derive_Subprogram): insert contract in subprogram node at point of | |
3146 | derivation. | |
3147 | * sem_prag.adb, sem_prag.ads | |
3148 | (Check_Arg_Is_String_Literal, Check_Identifier): | |
3149 | new checking procedures to be called in treatment of pragmas | |
3150 | (Check_Test_Case): new procedure to check that a Test_Case aspect or | |
3151 | pragma is well-formed. This does not check currently that 'Result is | |
3152 | used only in the Ensures component of a Test_Case. | |
3153 | (Analyze_Pragma): add case for Test_Case | |
3154 | (Analyze_TC_In_Decl_Part): pre-analyze the Requires and Ensures | |
3155 | components of a Test_Case. | |
3156 | (Preanalyze_TC_Args): new procedure to preanalyze the boolean | |
3157 | expressions in the 3rd (and 4th if present) arguments of a Test_Case | |
3158 | pragma, treated as spec expressions. | |
3159 | (Sig_Flags): add value -1 for Test_Case. | |
3160 | * sem_util.adb, sem_util.ads (Get_Ensures_From_Test_Case_Pragma, | |
3161 | Get_Requires_From_Test_Case_Pragma): getters for both expression | |
3162 | components of a Test_Case. | |
3163 | * sinfo.adb, sinfo.ads (N_Contract): new kind of node used as | |
3164 | indirection between an entry or [generic] subprogram entity and its | |
3165 | pre/post + test-cases. | |
3166 | (Spec_PPC_List, Spec_TC_List, Set_Spec_PPC_List, Set_Spec_TC_List): | |
3167 | get/set for fields of an N_Contract node. | |
3168 | * snames.ads-tmpl (Name_Test_Case, Name_Ensures, Name_Mode, | |
3169 | Name_Normal, Name_Requires, Name_Robustness, Pragma_Test_Case): new | |
3170 | names and pragma for Test_Case. | |
3171 | * sprint.adb (Sprint_Node): raise Program_Error on N_Contract node | |
3172 | ||
6a2e5d0f AC |
3173 | 2011-08-04 Vincent Celier <celier@adacore.com> |
3174 | ||
3175 | * gnat_ugn.texi: Improve documentation of gnatmake switch | |
3176 | --source-info-file=. | |
3177 | ||
3178 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
3179 | ||
3180 | * exp_ch7.adb (Make_Final_Call): Add local variable Atyp (assertion | |
3181 | type). Initialize Atyp to the appropriate type which is later checked | |
3182 | for completion. Rewrite the assertion associated with private type | |
3183 | completion. | |
3184 | ||
3185 | 2011-08-04 Ed Falis <falis@adacore.com> | |
3186 | ||
3187 | * adaint.c: Add call to vxCpuConfiguredGet for VxWorks SMP to | |
3188 | initialize the number of CPUs. | |
3189 | ||
3190 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3191 | ||
3192 | * sem_type.adb (Disambiguate): New subsidiary routine | |
3193 | In_Same_Declaration_List, to implement AI05-0020: a user-defined | |
3194 | equality on an anonymous access type whose designated type is private | |
3195 | does not lead to an ambiguity with the universal access equality | |
3196 | operator in the body or child units of the defining package. The same | |
3197 | is true for a multiplication operator on a private type completed with | |
3198 | a fixed-point-type. | |
3199 | ||
3200 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
3201 | ||
3202 | * opt.ads (Init_Or_Norm_Scalars_Config): Removed. | |
3203 | (Normalize_Scalars_Config): Removed. | |
3204 | * opt.adb | |
3205 | (Register_Opt_Config_Switches): Remove registering config values of | |
3206 | Init_Or_Norm_Scalars_Config and Normalize_Scalars_Config. | |
3207 | (Restore_Opt_Config_Switches): Remove code which restores the values of | |
3208 | Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of | |
3209 | Init_Or_Norm_Scalars. | |
3210 | (Save_Opt_Config_Switches): Remove code which saves values of | |
3211 | Init_Or_Norm_Scalars and Normalize_Scalars. | |
3212 | (Set_Opt_Config_Switches): Remove code which restores config values of | |
3213 | Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of | |
3214 | Init_Or_Norm_Scalars. | |
3215 | ||
3216 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3217 | ||
3218 | * frontend.adb (Frontend): remove previous patch to avoid full | |
3219 | qualification in ALFA mode. | |
3220 | * lib-xref-alfa.adb (Add_ALFA_Xrefs): use unique name for variables. | |
3221 | * sem_util.adb, sem_util.ads (Unique_Name): new function to define a | |
3222 | unique name for an entity, which could be used to identify the entity | |
3223 | across compilation units. | |
3224 | ||
3225 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3226 | ||
3227 | * prj-env.adb | |
3228 | (Initialize_Default_Project_Path): Add target specific directory | |
3229 | ($prefix/$target/lib/gnat) in front of project path in all cases | |
3230 | (making gnatmake's behaviour consistent with gprbuild). | |
3231 | * gnatcmd.adb, make.adb, prj-makr.adb, clean.adb: | |
3232 | Pass target name from Sdefault to project subsystem. | |
3233 | * gnatls.adb: Show new target specific default project directory. | |
3234 | ||
3235 | 2011-08-04 Johannes Kanig <kanig@adacore.com> | |
3236 | ||
3237 | * cstand.adb: Add Information to Identifier in Standard | |
3238 | (Identifer_For): Set Entity to the corresponding entity | |
3239 | ||
483361a6 AC |
3240 | 2011-08-04 Sergey Rybin <rybin@adacore.com> |
3241 | ||
3242 | * gnat_ugn.texi: Update doc on gnatcheck. | |
3243 | ||
3244 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3245 | ||
3246 | * lib-xref-alfa.adb (Add_ALFA_Xrefs): correct definition of ranges of | |
3247 | xrefs in a scope. | |
3248 | ||
3249 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3250 | ||
3251 | * exp_prag.adb (Expand_Pragma_Check): in ALFA mode, return without | |
3252 | performing expansion. | |
3253 | * sem_ch6.adb (Analyze_Subprogram_Body_Helper, | |
3254 | Analyze_Generic_Subprogram_Body): protect call to Process_PCCs so that | |
3255 | it is not called in ALFA mode. | |
3256 | ||
ef5569c6 AC |
3257 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3258 | ||
3259 | * make.adb, osint.adb, osint.ads (Reset_Command_Line_Files): not used | |
3260 | after all, so removed. | |
3261 | ||
3262 | 2011-08-04 Sergey Rybin <rybin@adacore.com> | |
3263 | ||
3264 | * vms_data.ads: Add missing VMS qualifiers. | |
3265 | ||
1ab4a286 EB |
3266 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3267 | ||
3268 | * make.adb, makeutl.adb, osint.adb, osint.ads (Check_Mains): rebuild | |
3269 | the list of files on the command line after processing it through | |
3270 | Complete_Mains. | |
3271 | ||
7ae0d98c AC |
3272 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> |
3273 | ||
3274 | * exp_ch7.adb (Build_Raise_Statement): Remove the specialized | |
3275 | processing for .NET/JVM. These targets can now benefit from | |
3276 | Raise_From_Controlled_Operation and they share the same processing with | |
3277 | standard targets. | |
3278 | (Establish_Transient_Scope): Remove the restriction for .NET/JVM. | |
3279 | These targets need transient scopes in order to properly finalize short | |
3280 | lived controlled objects. | |
3281 | (Make_Handler_For_Ctrl_Operation): Remove the specialized processing for | |
3282 | NET/JVM. These targets can now benefit from | |
3283 | Raise_From_Controlled_Operation and they share the same processing with | |
3284 | standard targets. | |
3285 | ||
3286 | 2011-08-04 Geert Bosch <bosch@adacore.com> | |
3287 | ||
3288 | * tracebak.c (STOP_FRAME): Stop at any next pointer outside the stack | |
3289 | ||
3290 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3291 | ||
3292 | * exp_aggr.adb (Has_Visible_Private_Ancestor): subsidiary routine to | |
3293 | Expand_Record_Aggregate, to determine whether aggregate must be | |
3294 | expanded into assignments. This is the case if the ancestor part is | |
3295 | private, regarless of the setting of the flag Has_Private_Ancestor. | |
3296 | ||
3297 | 2011-08-04 Ed Falis <falis@adacore.com> | |
3298 | ||
3299 | * vxaddr2line.adb: Add support for e500v2 and for Linux hosts | |
3300 | ||
3301 | 2011-08-04 Bob Duff <duff@adacore.com> | |
3302 | ||
3303 | * sinfo.ads: Fix comment. | |
3304 | ||
3305 | 2011-08-04 Steve Baird <baird@adacore.com> | |
3306 | ||
3307 | * bindgen.adb (Get_Ada_Main_Name): If CodePeer_Mode is set, then | |
3308 | choose a package name in much the same way as is | |
3309 | done for JGNAT when VM_Target /= No_VM, except that | |
3310 | a slightly more distinctive prefix string is used. | |
3311 | ||
3312 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
3313 | ||
3314 | * makeutl.adb (Complete_Mains): no longer accept unit names on the | |
3315 | gnatmake command line. | |
3316 | This behavior was never documented (and was supported only because of | |
3317 | an early bug in the code). This case might lead to ambiguous cases | |
3318 | (between unit names and truncated base names without suffixes). | |
3319 | ||
87729e5a AC |
3320 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> |
3321 | ||
3322 | * a-tags.ads, a-tags.adb (Unregister_Tag): New routine. | |
3323 | Remove the external tag of a tagged type from the internal hash table. | |
3324 | * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on the | |
3325 | expanded usage of the routine. Strenghten the check for Is_Master. Add | |
3326 | processing for tagged types. | |
3327 | (Build_Finalizer): Create all the necessary lists used in finalizer | |
3328 | creation when the processed context is a package that may contain | |
3329 | tagged types. | |
3330 | (Expand_Cleanup_Actions): Rename the call to Has_Controlled_Objects to | |
3331 | Requires_Cleanup_Actions. | |
3332 | (Expand_N_Package_Body): Package bodies may need clean up code | |
3333 | depending on whether they contain tagged types. | |
3334 | (Expand_N_Package_Declaration): Package declarations may need clean up | |
3335 | code depending on whether they contain tagged types. | |
3336 | (Unregister_Tagged_Types): New routine. Search through a list of | |
3337 | declarations or statements, looking for non-abstract Ada tagged types. | |
3338 | For each such type, generate code to unregister the external tag. | |
3339 | * exp_util.adb (Has_Controlled_Objects (Node_Id)): Renamed to | |
3340 | Requires_Cleanup_Actions. | |
3341 | (Requires_Cleanup_Actions (List_Id, Boolean)): New routine. Search | |
3342 | through a list of declarations or statements looking for non-abstract | |
3343 | Ada tagged types or controlled objects. | |
3344 | * exp_util.ads (Has_Controlled_Objects (Node_Id)): Renamed to | |
3345 | Requires_Cleanup_Actions. | |
3346 | (Has_Controlled_Objects (List_Id, Boolean)): Removed. | |
3347 | * rtsfind.ads: Add entry RE_Unregister_Tag to tables RE_Id and | |
3348 | RE_Unit_Table. | |
3349 | ||
3350 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
3351 | ||
3352 | * prj-env.adb (For_All_Source_Dirs.For_Project): Check if project Prj | |
3353 | has Ada sources, not project Project, because if the root project | |
3354 | Project has no sources of its own, all projects will be deemed without | |
3355 | sources. | |
3356 | ||
3357 | 2011-08-04 Gary Dismukes <dismukes@adacore.com> | |
3358 | ||
3359 | * bindgen.adb (Gen_Adainit_Ada): Move the generation of the declaration | |
3360 | of the No_Param_Proc acc-to-subp type used for initialization of | |
3361 | __gnat_finalize_library_objects so that it's declared at library level | |
3362 | rather than nested inside of the adainit routine. | |
3363 | ||
3364 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
3365 | ||
3366 | * exp_disp.adb (Make_DT): Generate code to check the external tag ONLY | |
3367 | if the tagged type has a representation clause which specifies its | |
3368 | external tag. | |
3369 | ||
3370 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3371 | ||
3372 | * einfo.ads, einfo.adb (Has_Private_Ancestor): now a flag on types. | |
3373 | Remove previous procedure with that name. | |
3374 | * sem_ch3.adb (Build_Derived_Record_Type): set Has_Private_Ancestor | |
3375 | when appropriate. | |
3376 | * sem_aggr.adb (Resolve_Extension_Aggregate): if the ancestor part is a | |
3377 | subtype mark, the ancestor cannot have unknown discriminants. | |
3378 | (Resolve_Record_Aggregate): if the type has invisible components | |
3379 | because of a private ancestor, the aggregate is illegal. | |
3380 | ||
3381 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
3382 | ||
3383 | * switch-m.adb (Normalize_Compiler_Switches): Recognize and take into | |
3384 | account switches -gnat2005, -gnat12 and -gnat2012. | |
3385 | ||
3386 | 2011-08-04 Bob Duff <duff@adacore.com> | |
3387 | ||
3388 | * s-tasdeb.ads: Minor comment fix. | |
3389 | ||
3390 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
3391 | ||
3392 | * gnatlink.adb (Gnatlink): Pass -gnat83/95/05/12 switch to gcc in | |
3393 | CodePeer mode. | |
3394 | * switch.ads, switch.adb (Is_Language_Switch): New function. | |
3395 | ||
3396 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
3397 | ||
3398 | * switch-c.adb: Minor comment addition. | |
3399 | ||
3400 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
3401 | ||
3402 | * vms_conv.adb (Process_Argument): Fail graciously when qualifier | |
3403 | ending with '=' is followed by a space (missing file name). | |
3404 | ||
3405 | 2011-08-04 Pascal Obry <obry@adacore.com> | |
3406 | ||
3407 | * g-regist.ads: Fix size of HKEY on x86_64-windows. | |
3408 | ||
3409 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3410 | ||
3411 | * sem_ch12.adb (Analyze_Associations): New routine | |
3412 | Check_Overloaded_Formal_Subprogram to reject a formal package when | |
3413 | there is a named association or a box initialisation for an overloaded | |
3414 | formal subprogram of the corresponding generic. | |
3415 | ||
3416 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3417 | ||
3418 | * alfa.ads (ALFA_Xref_Record): add component for type of entity | |
3419 | * get_alfa.adb, put_alfa.adb: Read and write new component of | |
3420 | cross-reference. | |
3421 | * lib-xref-alfa.adb (Collect_ALFA): generate new component. | |
3422 | ||
88f47280 AC |
3423 | 2011-08-04 Pascal Obry <obry@adacore.com> |
3424 | ||
3425 | * urealp.adb: Minor reformatting. | |
3426 | ||
3427 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
3428 | ||
3429 | * exp_ch7.adb (build_finalizer.process_declarations.processing_actions): | |
3430 | Handle the case when Cleanup_Protected_Object returns Empty. | |
3431 | ||
3432 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3433 | ||
3434 | * frontend.adb (Frontend): only qualify names in non-ALFA mode | |
3435 | ||
3436 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3437 | ||
3438 | * sem_ch4.adb (Try_Class_Wide_Operation): if the context is a procedure | |
3439 | call, ignore functions. | |
3440 | ||
05c53a69 GB |
3441 | 2011-08-04 Geert Bosch <bosch@adacore.com> |
3442 | ||
3443 | * urealp.adb (Equivalent_Decimal_Exponent): Avoid the use of floating | |
3444 | point. | |
3445 | ||
23cc1ace EB |
3446 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3447 | ||
3448 | * makeutl.adb (Compute_Builder_Switches): no longer accept a unit name | |
3449 | as an index for Builder'Switches. This conforms to the documentation. | |
3450 | * make.adb (Insert_Project_Sources): avoid duplicate code | |
3451 | ||
cef14201 AC |
3452 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3453 | ||
3454 | * makeutl.adb (Complete_Mains): if the user has passed a relative file | |
3455 | name on the command line (for instance "../dummy"), never assume it can | |
3456 | be a unit name. | |
3457 | ||
3458 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
3459 | ||
3460 | * bindgen.adb: Remove code the reference or create the | |
3461 | Break_Start/__gnat_break_start procedure. | |
3462 | * s-stalib.adb (Break_Start): Removed. | |
3463 | ||
e2fee30d EB |
3464 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3465 | ||
3466 | * make.adb, makeutl.adb, makeutl.ads (Compute_Builder_Switches): now | |
3467 | shared with gprbuild. | |
3468 | ||
2d395256 AC |
3469 | 2011-08-04 Yannick Moy <moy@adacore.com> |
3470 | ||
3471 | * par-ch4.adb (P_Primary): preferentially issue an error message about | |
3472 | a missing parenthesis arount a conditional or case expression in Ada | |
3473 | 2012 mode, if we detect that the alignment is not correct for a | |
3474 | statement. | |
3475 | ||
3476 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
3477 | ||
3478 | * exp_ch7.adb (Process_Declarations): Do not consider the result of a | |
3479 | tag-to-class-wide conversion as needing finalization actions. | |
3480 | * exp_util.adb (Has_Controlled_Objects): Do not consider the result of | |
3481 | a tag-to-class-wide conversion as needing finalization actions. | |
3482 | (Is_Finalizable_Transient): The result of a tag-to-class-wide | |
3483 | conversion does not need finalization actions. | |
3484 | (Is_Tag_To_CW_Conversion): New routine. | |
3485 | * exp_util.ads (Is_Tag_To_CW_Conversion): New routine. Determines | |
3486 | whether an object is the result of a tag-to-class-wide conversion. | |
3487 | ||
3488 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3489 | ||
3490 | * sem_ch13.adb (Analyze_Aspect_Specifications): correct order in which | |
3491 | the left-hand-side and right-hand-side of a conjunct are inserted when | |
3492 | translating a pre- or postcondition | |
3493 | * sem_ch6.adb: Correct typo in comment | |
3494 | ||
3495 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3496 | ||
3497 | * gnat_rm.texi: Ravenscar does not prohibit dependence on | |
3498 | Unchecked_Conversion and Unchecked_Deallocation. | |
3499 | ||
3500 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3501 | ||
3502 | * make.adb: Minor reformatting. | |
3503 | ||
767ab2fd EB |
3504 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3505 | ||
3506 | * prj.adb, prj.ads, makeutl.adb (Complete_Mains): search for the | |
3507 | sources in the project and its imported projects, but not in the whole | |
3508 | tree. | |
3509 | ||
8fb3f5df AC |
3510 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3511 | ||
3512 | * make.adb: Remove debug trace. | |
3513 | ||
3514 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
3515 | ||
3516 | * makeutl.adb (Do_Complete): Get the absolute path name of a relative | |
3517 | path in canonical form, to be able to compare path names on platforms | |
3518 | such as Windows or Darwin. | |
3519 | ||
3520 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3521 | ||
3522 | * par_sco.adb (Traverse_Declarations_Or_Statements.Set_Statement_Entry): | |
3523 | For a pragma (statement with C1 = 'P'), record the sloc of the pragma. | |
3524 | * scos.ads: Update documentation accordingly. | |
3525 | * put_scos.adb (Output_SCO_Line): Omit statement SCOs for disabled | |
3526 | pragmas. | |
3527 | ||
9515740f AC |
3528 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> |
3529 | ||
3530 | * sem_attr.adb (Bad_Attribute_For_Predicate): flag illegal use of | |
3531 | attribute only if prefix type is scalar. | |
3532 | ||
3533 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
3534 | ||
3535 | * make.adb, makeutl.adb, prj-env.adb (Check_Mains): put back support | |
3536 | in gnatmake for specifying mains on the command line that do not belong | |
3537 | to the main project. These mains must currently all belong to the same | |
3538 | project, though. | |
3539 | (Ultimate_Extension_Of): removed, since duplicated | |
3540 | Ultimate_Extending_Project. | |
3541 | ||
92966893 AC |
3542 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
3543 | ||
3544 | * make.adb (Do_Codepeer_Globalize_Step): Removed. Use CodePeer_Mode | |
3545 | instead. | |
3546 | (CodePeer_Mode_String): New. | |
3547 | (Linking_Phase, Binding_Phase): Call gnatlink with -P switch in | |
3548 | CodePeer mode. | |
3549 | (Scan_Make_Arg): Do not disable binding/linking phase in CodePeer mode. | |
3550 | * bindgen.adb (Gen_Elab_Calls_Ada): Ignore subprograms in CodePeer | |
3551 | mode, since no useful elaboration subprogram is needed by CodePeer. | |
3552 | * gnatlink.adb (Gnatlink): Add support for -P switch (CodePeer mode). | |
3553 | In this mode, compile binder file with -gnatC and do stop after this | |
3554 | step. | |
3555 | ||
3556 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
3557 | ||
3558 | * exp_ch7.adb: Minor comment fix. | |
3559 | ||
5969611f RD |
3560 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
3561 | ||
3562 | * exp_ch7.adb, make.adb, sem_ch10.adb, bindgen.adb, sem_res.adb, | |
3563 | exp_ch4.adb, makeutl.adb: Minor reformatting. | |
3564 | ||
6367dd30 AC |
3565 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3566 | ||
3567 | * make.adb, makeutl.adb, makeutl.ads (Make): major refactoring. | |
3568 | Create several new subprograms to move code out of Make. This makes the | |
3569 | code more readable, removes code duplication, and is a preparation work | |
3570 | for adding support for aggregate projects. | |
3571 | ||
3572 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
3573 | ||
3574 | * s-po32gl.ads, s-po32gl.adb: New files. | |
3575 | * exp_ch7.ads (Get_Global_Pool_For_Access_Type): New function. | |
3576 | * exp_ch7.adb (Get_Global_Pool_For_Access_Type): New function. | |
3577 | (Build_Finalization_Collection): Use it. | |
3578 | * exp_ch4.adb (Complete_Controlled_Allocation): Ditto. | |
3579 | * rtsfind.ads: System_Pool_32_Global, Re_Global_Pool_32_Object: New | |
3580 | literals. | |
3581 | * gcc-interface/Makefile.in: Use s-po32gl.o on VMS. | |
3582 | * gcc-interface/Make-lang.in: Update dependencies. | |
3583 | ||
cd8bfe35 EB |
3584 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3585 | ||
3586 | * makeutl.adb (Complete_Mains): add support for specs with no suffix on | |
3587 | the command line. | |
3588 | ||
7db29ea7 EB |
3589 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3590 | ||
3591 | * make.adb, makeutl.adb (Complete_Mains): if a main specified on the | |
3592 | command line is not a file name, also check whether it could be a unit | |
3593 | name. | |
3594 | ||
d9b056ea AC |
3595 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> |
3596 | ||
3597 | * bindgen.adb (Gen_Finalize_Library_Ada): Factor out code to generate | |
3598 | the header of the finalization routine. | |
3599 | If the unit has no finalizer but is a body whose spec has one, then | |
3600 | generate the decrement of the elaboration entity only. | |
3601 | If the unit has a finalizer and is a spec, then do not generate the | |
3602 | decrement of the elaboration entity. | |
3603 | (Gen_Finalize_Library_C): Likewise. | |
3604 | ||
3605 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
3606 | ||
3607 | * exp_ch7.adb (Alignment_Of): New subsidiary routine. | |
3608 | (Bounds_Size_Expression): Removed. | |
3609 | (Double_Alignment_Of): New subsidiary routine. | |
3610 | (Make_Finalize_Address_Stmts): New local variable Index_Typ. Account | |
3611 | for a hole in the dope vector of unconstrained arrays due to different | |
3612 | index and element alignments. | |
3613 | ||
3614 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3615 | ||
3616 | * sem_res.adb (Resolve_Allocator): diagnose task allocator that will | |
3617 | raise program_error because body has not been seen yet. | |
3618 | ||
3619 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3620 | ||
3621 | * sem_ch10.adb (Analyze_With_Clause): Protect against child unit with | |
3622 | an unresolved name. | |
3623 | ||
3624 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
3625 | ||
3626 | * makeutl.adb (Do_Complete): Check absolute paths in canonical forms | |
3627 | ||
3628 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3629 | ||
3630 | * alfa.adb, alfa.ads (Unique_Defining_Entity): move function from here | |
3631 | * sem_util.adb, sem_util.ads (Unique_Defining_Entity): ...to here | |
3632 | ||
3633 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3634 | ||
3635 | * sem_ch12.adb (Analyze_Package_Instantiation): Do not omit body for | |
3636 | instantiation in RCI. | |
3637 | ||
3638 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
3639 | ||
3640 | * make.adb: Share more code with gprbuild | |
3641 | ||
f5fc5b9d AC |
3642 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3643 | ||
3644 | * projects.texi: Added documentation for the IDE'Gnat project file | |
3645 | attribute. | |
3646 | ||
3647 | 2011-08-04 Nicolas Roche <roche@adacore.com> | |
3648 | ||
3649 | * gnat_rm.texi: Minor editing. | |
3650 | ||
3651 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
3652 | ||
3653 | * bindgen.adb (Gen_Adafinal_Ada): Do not differentiate the main case | |
3654 | and the library case for VM targets. | |
3655 | (Gen_Adainit_Ada): Likewise. | |
3656 | ||
3657 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
3658 | ||
3659 | * g-altive.ads: Minor comment updates. | |
3660 | * prj-nmsc.adb: Minor reformatting. | |
3661 | ||
3662 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
3663 | ||
3664 | * opt.ads | |
3665 | (Normalize_Scalars_Config): Value of the configuration switch set by | |
3666 | pragma Normalize_Scalars when it appears in the gnat.adc file. | |
3667 | (Normalize_Scalars): New field for record Config_Switches_Type. Used | |
3668 | to save and restore settings of this pragma. | |
3669 | * opt.adb | |
3670 | (Register_Opt_Config_Switches, Save_Opt_Config_Switches, | |
3671 | Restore_Opt_Config_Switches): Add missing support for Normalize_Scalars. | |
3672 | ||
3673 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
3674 | ||
3675 | * gnat_ugn.texi: Document gnatlink options -M and -M=mapfile | |
3676 | ||
0c4683cf AC |
3677 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
3678 | ||
3679 | * makeutl.adb: Minor reformatting. | |
3680 | ||
3681 | 2011-08-04 Olivier Hainque <hainque@adacore.com> | |
3682 | ||
3683 | * g-altive.ads: Update comments to reflect that only the soft | |
3684 | binding is available today. | |
3685 | ||
2598ee6d RD |
3686 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
3687 | ||
3688 | * bindgen.adb, einfo.adb, sem_ch12.adb, s-tasren.adb, sem_res.adb, | |
3689 | makeutl.adb, prj-nmsc.adb, opt.ads, prj-env.adb: Minor reformatting | |
3690 | * gcc-interface/Make-lang.in: Update dependencies. | |
3691 | ||
c2db4b32 AC |
3692 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
3693 | ||
3694 | * prj-env.adb: Remove local debug traces. | |
3695 | ||
3696 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3697 | ||
3698 | * checks.adb (Apply_Float_Conversion_Check): correct a typo where Lo_OK | |
3699 | was used instead of Hi_OK, which could cause a read of an uninitialized | |
3700 | value later on. Detected while working on the new warning. | |
3701 | * exp_ch9.adb (Expand_N_Entry_Declaration): remove useless assignment | |
3702 | to local variable. | |
3703 | * sem_ch5.adb (Analyze_Assignment): set the last assignment component | |
3704 | in more cases, in order to detect more unreferenced values. | |
3705 | * sem_util.adb, sem_util.ads (Get_Enclosing_Object): return enclosing | |
3706 | object for expression, if any. | |
3707 | ||
3708 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> | |
3709 | ||
3710 | * exp_intr.adb (Expand_Binary_Operator_Call): Look at the RM size of | |
3711 | the operand types instead of the Esize. | |
3712 | ||
3713 | 2011-08-04 Steve Baird <baird@adacore.com> | |
3714 | ||
3715 | * switch-b.adb (Scan_Binder_Switches): Add -P binder switch, used to | |
3716 | enable CodePeer_Mode. | |
3717 | * bindusg.adb (Display): Add help message describing -P binder switch. | |
3718 | * gnat_ugn.texi: Document -P binder switch. | |
3719 | * bindgen.adb (Gen_Main_Ada): If CodePeer_Mode is set, then call the | |
3720 | user-defined main program directly. | |
3721 | (Gen_Output_File_Ada): If CodePeer_Mode is set, generate a with of the | |
3722 | user-defined main program in the context clause of the package body. | |
3723 | ||
ad05f2e9 AC |
3724 | 2011-08-04 Yannick Moy <moy@adacore.com> |
3725 | ||
3726 | * alfa.adb, alfa.ads (Get_Entity_For_Decl): remove function, partial | |
3727 | duplicate of Defining_Entity | |
3728 | (Get_Unique_Entity_For_Decl): rename function into | |
3729 | Unique_Defining_Entity | |
3730 | * einfo.adb, einfo.ads (Is_In_ALFA, Body_Is_In_ALFA): remove flags | |
3731 | (Formal_Proof_On): remove synthesized flag | |
3732 | * cstand.adb, sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, | |
3733 | sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_res.adb, sem_util.adb, | |
3734 | sem_util.ads, stand.ads: Remove treatment associated to entities in ALFA | |
3735 | * sem_prag.adb (Analyze_Pragma): remove special treatment for pragma | |
3736 | Annotate (Formal_Proof) | |
3737 | ||
3738 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
3739 | ||
3740 | * prj-env.adb (Create_Config_Pragmas_File): fix handling of multi-unit | |
3741 | source files with non-standard naming schemes, in imported projects | |
3742 | ||
756ef2a0 AC |
3743 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3744 | ||
3745 | * makeutl.adb (Complete_Mains): when a multi-unit source file is | |
3746 | specified on the gprbuild command line, we need to compile all units | |
3747 | within that file, not just the first one we find | |
3748 | Fix error message for mains that are not found. | |
3749 | ||
3750 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3751 | ||
3752 | * sem_ch6.adb: Update comment. | |
3753 | * sem_ch12.adb: Minor reformatting. | |
3754 | ||
3755 | 2011-08-04 Bob Duff <duff@adacore.com> | |
3756 | ||
3757 | * s-tasren.adb (Task_Do_Or_Queue): Previous code was reading | |
3758 | Acceptor.Terminate_Alternative without locking Acceptor, which causes a | |
3759 | race condition whose symptom is to fail to lock Parent. That, in turn, | |
3760 | causes Parent.Awake_Count to be accessed without locking Parent, which | |
3761 | causes another race condition whose symptom is that Parent.Awake_Count | |
3762 | can be off by 1 (either too high or too low). The solution is to lock | |
3763 | Parent unconditionally, and then lock Acceptor, before reading | |
3764 | Acceptor.Terminate_Alternative. | |
3765 | ||
4fdebd93 AC |
3766 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
3767 | ||
3768 | * debug.adb: Update comment. | |
3769 | ||
3770 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
3771 | ||
3772 | * par_sco.adb, exp_util.adb, make.adb, a-tags.adb, sem_prag.adb, | |
3773 | sem_util.adb, sem_attr.adb, exp_ch4.adb, g-comlin.adb, g-comlin.ads, | |
3774 | exp_ch6.adb: Minor reformatting. | |
3775 | ||
3776 | 2011-08-04 Gary Dismukes <dismukes@adacore.com> | |
3777 | ||
3778 | * gnat_ugn.texi: Add sentence about the case of compile-time-detected | |
3779 | checks for -gnateE. | |
3780 | ||
3781 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3782 | ||
3783 | * gnat_rm.texi: update Ravenscar desription to reflect Ada2012 RM. | |
3784 | ||
3785 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3786 | ||
3787 | * sinfo.ads: Minor reformatting. | |
3788 | ||
3789 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
3790 | ||
3791 | * makeutl.adb, makeutl.ads, prj-nmsc.adb (Complete_Mains): report error | |
3792 | even if there is no location. | |
3793 | ||
6aaa0587 ES |
3794 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> |
3795 | ||
3796 | * sem_res.adb, sem_ch4.adb: move check for restriction | |
3797 | No_Task_Hierarchy to resolve_allocator. | |
3798 | ||
35a1c212 AC |
3799 | 2011-08-04 Thomas Quinot <quinot@adacore.com> |
3800 | ||
3801 | * sinfo.adb, sinfo.ads, sem_prag.adb, sem_ch12.adb (Pragma_Enabled): | |
3802 | This flag of N_Pragma nodes is not used, remove it as well as all of | |
3803 | the associated circuitry. | |
3804 | ||
3805 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
3806 | ||
3807 | * exp_disp.adb (Make_DT): Switch -gnatdQ disables the generation of the | |
3808 | runtime check on duplicated externa tags | |
3809 | * debug.adb Document switch -gnatdQ. | |
3810 | ||
3811 | 2011-08-04 Gary Dismukes <dismukes@adacore.com> | |
3812 | ||
3813 | * a-fihema.ads: Minor typo fix. | |
3814 | ||
3815 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3816 | ||
3817 | * sem_ch10.adb: Minor comment update. | |
3818 | ||
3819 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
3820 | ||
3821 | * einfo.adb: Update the node field usage to reflect the renaming of | |
3822 | Return_Flag to Return_ Flag_Or_Transient_Decl. | |
3823 | (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl. | |
3824 | (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl. | |
3825 | (Write_Field15_Name): Change Return_Flag to | |
3826 | Return_Flag_Or_Transient_Decl. | |
3827 | * einfo.ads: Rename node field Return_Flag to | |
3828 | Return_Flag_Or_Transient_Decl. Update the associated comment and all | |
3829 | occurrences in entities. | |
3830 | (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl. Update | |
3831 | associated Inline pragma. | |
3832 | (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl. Update | |
3833 | associated Inline pragma. | |
3834 | * exp_ch4.ads, exp_ch4.adb (Expand_N_Expression_With_Actions): New | |
3835 | routine. | |
3836 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Update the calls to | |
3837 | Return_Flag and Set_Return_Flag. | |
3838 | * exp_ch7.adb (Process_Declarations): Add code to recognize hook | |
3839 | objects generated for controlled transients declared inside an | |
3840 | Exception_With_Actions. Update the calls to Return_Flag. | |
3841 | (Process_Object_Declaration): Add code to add a null guard for hook | |
3842 | objects generated for controlled transients declared inside an | |
3843 | Exception_With_Actions. Update related comment. | |
3844 | * exp_util.adb (Has_Controlled_Objects): Add code to recognize hook | |
3845 | objects generated for controlled transients declared inside an | |
3846 | Exception_With_Actions. Update the calls to Return_Flag. | |
3847 | * expander.adb (Expand): Add new case for N_Expression_With_Actions. | |
3848 | ||
3849 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3850 | ||
3851 | * sem_util.adb:(Wrong_Type): Improve error message on a one-element | |
3852 | positional aggregate. | |
3853 | ||
3854 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
3855 | ||
3856 | * par_sco.adb (Process_Decisions.Output_Header): Check and record pragma | |
3857 | SLOC only for pragmas. | |
3858 | ||
3859 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
3860 | ||
3861 | * projects.texi: Minor typo fix. | |
3862 | ||
3863 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
3864 | ||
3865 | * prj-nmsc.adb (Check_File): Minor change to traces, to help debugging | |
3866 | on case-sensitive file systems. | |
3867 | ||
c2873f74 TQ |
3868 | 2011-08-04 Thomas Quinot <quinot@adacore.com> |
3869 | ||
3870 | * put_scos.adb (Put_SCOs): Do not emit decision SCO for an X decision | |
3871 | nested in a disabled pragma. | |
3872 | * scos.ads, scos.adb, par_sco.ads, par_sco.adb: Record sloc of | |
3873 | enclosing pragma, if any, for X decisions. | |
3874 | ||
3875 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3876 | ||
3877 | * sem_prag.adb: Minor reformatting. | |
3878 | ||
46414266 VC |
3879 | 2011-08-04 Vincent Celier <celier@adacore.com> |
3880 | ||
3881 | * a-tags.adb (Check_TSD): Avoid concatenation of strings, as it is not | |
3882 | allowed in no run time mode. | |
3883 | ||
3884 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
3885 | ||
3886 | * make.adb (Check): When -gnatc is used, check for the source file | |
3887 | inside the ALI file with a canonical case file name. | |
3888 | ||
afab164f EB |
3889 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3890 | ||
3891 | * g-comlin.adb, g-comlin.ads (Add_Switch): Put back support for | |
3892 | overriding the separator. | |
3893 | ||
fe0ec02f AC |
3894 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
3895 | ||
3896 | * sem_aggr.adb, par_sco.adb, sem_type.adb, exp_util.adb, exp_ch9.adb, | |
3897 | prj-nmsc.adb, sem_ch13.adb, exp_strm.adb: Minor reformatting. | |
3898 | ||
3899 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
3900 | ||
3901 | * gnat_rm.texi: Minor documentation fix for pragma Annotate. | |
3902 | ||
3903 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3904 | ||
3905 | * sem_attr.adb (Analyze_Attribute): add check during pre-analysis that | |
3906 | 'Result only appears in postcondition of function. | |
3907 | ||
3908 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3909 | ||
3910 | * a-tags.adb (Check_TSD): When raising PROGRAM_ERROR for a duplicated | |
3911 | external tag, include the value of the external tag in the exception | |
3912 | message. | |
3913 | ||
0180fd26 AC |
3914 | 2011-08-04 Yannick Moy <moy@adacore.com> |
3915 | ||
3916 | * sem_attr.adb (Result): modify error message for misplaced 'Result | |
3917 | ||
3918 | 2011-08-04 Sergey Rybin <rybin@adacore.com> | |
3919 | ||
3920 | * gnat_rm.texi (pragma Annotate): Fix syntax description to make it | |
3921 | clear that the second argument must be an identifier. | |
3922 | ||
3923 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3924 | ||
3925 | * exp_ch9.adb (Build_Barrier_Function): When compiling with | |
3926 | -fpreserve-control-flow, insert an IF statement on the barrier | |
3927 | condition to ensure that a conditional branch instruction is generated. | |
3928 | ||
3929 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
3930 | ||
3931 | * prj-part.adb, prj.adb, prj.ads, prj-tree.ads | |
3932 | (Processing_Flags.Ignore_Missing_With): new flag. | |
3933 | ||
3934 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
3935 | ||
3936 | * prj-nmsc.adb (Find_Sources, Path_Name_Of): Fix handling of | |
3937 | Source_List_File on case-insensitive systems where the file is actually | |
3938 | on a case-sensitive file system (NFS,...). | |
3939 | ||
3940 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
3941 | ||
3942 | * sem_ch6.adb (Analyze_Function_Return): In a rare case where a | |
3943 | function return contains a controlled [extension] aggregate and the | |
3944 | return statement is not part of a handled sequence of statements, wrap | |
3945 | the return in a block. This ensures that all controlled temporaries | |
3946 | generated during aggregate resolution will be picked up by the | |
3947 | finalization machinery. | |
3948 | ||
3949 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3950 | ||
3951 | * sem_aggr.adb (Resolve_Aggregate): If aggregate has box-initialized | |
3952 | components, freeze type before resolution, to ensure that default | |
3953 | initializations are present for all components. | |
3954 | * sem_res.adb (Resolve_Actuals): the designated object of an | |
3955 | accces-to-constant type is a legal actual in a call to an | |
3956 | initialization procedure. | |
3957 | ||
3958 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
3959 | ||
3960 | * exp_util.adb (Extract_Renamed_Object): Add N_Type_Conversion and | |
3961 | N_Unchecked_Type_Conversion to the possible containers of a renamed | |
3962 | transient variable. | |
3963 | ||
78efd712 AC |
3964 | 2011-08-04 Yannick Moy <moy@adacore.com> |
3965 | ||
3966 | * par-ch13.adb (Aspect_Specifications_Present): recognize | |
3967 | "with Identifier'Class =>" as an aspect, so that a meaningful warning | |
3968 | is issued in Strict mode. | |
3969 | * par.adb: Fix typos in comments. | |
3970 | ||
3971 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3972 | ||
3973 | * sem_attr.adb (Result): modify error message to take into account Post | |
3974 | aspect when compiling Ada 2012 (or newer) code. | |
3975 | ||
3976 | 2011-08-04 Nicolas Roche <roche@adacore.com> | |
3977 | ||
3978 | * env.c (__gnat_clearenv): Avoid use of dynamic size array in order to | |
2c7f9cc0 | 3979 | remove need for GCC exceptions. |
78efd712 AC |
3980 | |
3981 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
3982 | ||
3983 | * makeutl.adb (Do_Complete): Call Debug_Output with the name of the | |
3984 | project, not the source file name. | |
3985 | * prj.adb (Find_Sources.Look_For_Sources): If the source has been | |
3986 | excluded, continue looking. This excluded source will only be returned | |
3987 | if there is no other source with the same base name that is not locally | |
3988 | removed. | |
3989 | ||
3990 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3991 | ||
3992 | * sem_res.adb (Resolve_Intrinsic_Operator): if the result type is | |
3993 | private and one of the operands is a real literal, use a qualified | |
3994 | expression rather than a conversion which is not meaningful to the | |
3995 | back-end. | |
3996 | ||
0170a691 AC |
3997 | 2011-08-04 Yannick Moy <moy@adacore.com> |
3998 | ||
3999 | * sem_ch13.adb (Aspect_Loop): when an aspect X and its classwise | |
4000 | corresponding aspect X'Class are allowed, proceed with analysis of the | |
4001 | aspect instead of skipping it. | |
4002 | ||
4003 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
4004 | ||
4005 | * s-flocon.adb, s-flocon.ads: Add a body for s-flocon.ads | |
4006 | This will allow to have an Ada implementation for the subprogram. | |
4007 | ||
deb4f5ba ES |
4008 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> |
4009 | ||
4010 | * sem_ch3.adb (Analyze_Full_Type_Declaration): If the declaration is a | |
4011 | completion and aspects are present, apply them to the entity for the | |
4012 | type which is currently the partial view, but which is the one that | |
4013 | will be frozen. | |
4014 | * sem_ch13.adb (Analyze_Aspect_Specifications): if the predicate | |
4015 | applies to a partial view, indicate that the full view has predicates | |
4016 | and delayed aspects. | |
4017 | (Replace_Type_Reference): Handle properly predicates that apply to the | |
4018 | full view of a private completion. | |
4019 | ||
fc893455 AC |
4020 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> |
4021 | ||
4022 | * layout.adb (Layout_Type): For composite types, do not set Esize. | |
4023 | * freeze.adb (Set_Small_Size): Remove test on alignment and do not | |
4024 | set Esize. | |
4025 | (Size_Known): Look at the RM size of components instead of the Esize. | |
4026 | (Freeze_Record_Type): Look at the RM size instead of the Esize to | |
4027 | issue warning and activate Implicit_Packing. | |
4028 | (Freeze_Entity): Likewise. Do not issue a warning for alias/atomic | |
4029 | if the Esize is not known. | |
4030 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause) <Size>: Set Esize | |
4031 | for elementary types only. | |
4032 | (Analyze_Record_Representation_Clause): Look at the RM size instead | |
4033 | of the Esize to issue errors. | |
4034 | * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set Esize if it | |
4035 | is not known. | |
4036 | <E_Record_Type>: Look at the RM size instead of the Esize. Remove | |
2c7f9cc0 | 4037 | obsolete block. |
fc893455 AC |
4038 | Look at the RM size instead of the Esize for types if the latter is |
4039 | not known. | |
4040 | (gnat_to_gnu_field): Use Known_Esize instead of Known_Static_Esize. | |
4041 | ||
4042 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
4043 | ||
4044 | * sem_type.adb: proper handling of equality not involving anonymous | |
4045 | access types. | |
4046 | ||
b37d5bc6 AC |
4047 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> |
4048 | ||
4049 | * exp_ch7.adb (Create_Finalizer): Remove local variables Spec_Nod and | |
4050 | Vis_Decls. When creating a library-level finalizer for a package spec, | |
4051 | both the declaration and body of the finalizer are inserted either in | |
4052 | the visible or private declarations of the package spec. | |
4053 | ||
4054 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
4055 | ||
4056 | * sem_ch3.adb (Derive_Subprograms): Complete assertion to request the | |
4057 | use of the full-view of a type when invoking Is_Ancestor. | |
4058 | * sem_type.adb (Is_Ancestor): For consistency, when the traversal of | |
4059 | the full-view of private parents is requested, then use also the | |
4060 | full-view of the parent of the first derivation. | |
4061 | ||
7ab4d95a AC |
4062 | 2011-08-04 Tristan Gingold <gingold@adacore.com> |
4063 | ||
4064 | * s-taprop-vxworks.adb (Enter_Task): Use System.Float_Control.Reset | |
4065 | instead of the locally imported procedure. | |
4066 | * s-taprop-mingw.adb (Enter_Task): Ditto. | |
4067 | * s-valrea.adb (Scan_Real): Ditto. | |
4068 | * s-imgrea.adb (Set_Image_Real): Ditto. | |
4069 | * s-flocon.ads: Make the package pure. | |
4070 | ||
4071 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
4072 | ||
4073 | * sinfo.ads, sinfo.adb (Debug_Statement, Set_Debug_Statement): Remove. | |
4074 | * tbuild.ads, tbuild.adb (Make_Pragma): Adjust accordingly. | |
4075 | * sinfo-cn.ads, sinfo-cn.adb (Change_Name_To_Procedure_Call_Statement): | |
4076 | New subprogram, moved here from... | |
4077 | * par.adb, par-ch5.adb (P_Statement_Name): ... here. | |
4078 | * par-prag.adb (Par.Prag, case Pragma_Debug): Do not perform any | |
4079 | rewriting of the last argument into a procedure call statement here... | |
4080 | * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): ...do it there | |
4081 | instead. | |
4082 | ||
4083 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
4084 | ||
4085 | * par_sco.adb: Minor reformatting. | |
4086 | ||
51c400f5 AC |
4087 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
4088 | ||
4089 | * erroutc.adb: Minor reformatting. | |
4090 | ||
4091 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
4092 | ||
4093 | * par_sco.adb: Comment update. | |
4094 | ||
4095 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
4096 | ||
4097 | * s-flocon.ads: New file. | |
4098 | * g-flocon.ads: Now a renaming of s-flocon. | |
4099 | * Makefile.rtl: Add s-flocon.o | |
4100 | ||
6a49f110 AC |
4101 | 2011-08-04 Javier Miranda <miranda@adacore.com> |
4102 | ||
4103 | * exp_strm.adb (Build_Array_Input_Function): if the array type is | |
4104 | constrained, do not attempt to build a subtype of it. | |
4105 | ||
4106 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
4107 | ||
4108 | * errout.ads Change comments: remove 'R'M as an example where quotes | |
4109 | are needed; add ALFA as another case where quotes are not needed | |
4110 | * erroutc.adb (Set_Msg_Insertion_Reserved_Word): add ALFA as another | |
4111 | case where quotes are not needed. | |
4112 | * sem_ch11.adb, sem_ch13.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, | |
4113 | sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_prag.adb, sem_res.adb: | |
4114 | Remove all occurrences of 'A'L'F'A | |
4115 | ||
4116 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
4117 | ||
4118 | * sem_ch13.adb: check legality of invariant pragma. | |
4119 | ||
a4640a39 AC |
4120 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> |
4121 | ||
4122 | * bindgen.adb: Add comments. | |
4123 | ||
4124 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
4125 | ||
4126 | * einfo.adb, einfo.ads: Free Flag254 and make Formal_Proof_On a | |
4127 | synthesized flag. | |
4128 | * sem_prag.adb (Analyze_Pragma): record the pragma Annotate | |
4129 | (Formal_Proof, On/Off) in the Rep_Item list of the current subprogram. | |
4130 | ||
4131 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
4132 | ||
4133 | * exp_ch7.adb, exp_ch6.adb, sem_ch3.adb, layout.adb, sem_ch5.adb, | |
4134 | osint-c.ads, sem_util.ads, gnat1drv.adb, targparm.ads, sem_ch6.adb, | |
4135 | sem_ch13.adb, s-pooloc.adb: Minor reformatting. | |
4136 | ||
39ade2f9 AC |
4137 | 2011-08-04 Thomas Quinot <quinot@adacore.com> |
4138 | ||
4139 | * s-pooloc.ads, s-pooglo.ads: Minor reformatting | |
4140 | ||
4141 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
4142 | ||
4143 | PR ada/47880 | |
4144 | * s-pooloc.adb (Deallocate): Fix the case of deallocating the only | |
4145 | allocated object. | |
4146 | ||
4147 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
4148 | ||
4149 | * einfo.ads, exp_ch4.adb: Minor reformatting. | |
4150 | ||
4151 | 2011-08-04 Jerome Lambourg <lambourg@adacore.com> | |
4152 | ||
4153 | * back_end.ads (Gen_Or_Update_Object_File): Add more comments. | |
4154 | ||
7efc3f2d AC |
4155 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> |
4156 | ||
4157 | * exp_ch4.adb (Expand_Composite_Equality): code cleanup: use component | |
4158 | type in all cases to compute list of primitive operations, because full | |
4159 | view may be an itype that is not attached to the list of declarations. | |
4160 | ||
4161 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> | |
4162 | ||
4163 | * bindgen.adb (Gen_Adafinal_Ada): Generate an early return if the | |
4164 | library has already been finalized. | |
4165 | (Gen_Adafinal_C): Likewise. | |
4166 | (Gen_Adainit_Ada): Generate an early return if the library has | |
4167 | already been elaborated. | |
4168 | (Gen_Adainit_C): Likewise. | |
4169 | (Gen_Output_File_Ada): Generate an elaboration flag. | |
4170 | (Gen_Output_File_C): Likewise. | |
4171 | ||
f65df609 HK |
4172 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> |
4173 | ||
4174 | * exp_ch4.adb (Expand_Allocator_Expression): Disable the generation of | |
4175 | Set_Finalize_Address_Ptr for CodePeer because Finalize_Address was not | |
4176 | built in the first place. | |
4177 | (Expand_N_Allocator): Disable the generation of Set_Finalize_Address_Ptr | |
4178 | for CodePeer because Finalize_Address was not built to begin with. | |
4179 | * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Ditto. | |
4180 | ||
a0fb8fe8 AC |
4181 | 2011-08-04 Pascal Obry <obry@adacore.com> |
4182 | ||
4183 | * adaint.c (__gnat_tmp_name): Use current process id to create temp | |
4184 | filenames, this ensures unicity of filenames across processes. | |
4185 | ||
4186 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
4187 | ||
4188 | * bindgen.adb (Gen_Finalize_Library_Ada): Rename generated routine | |
4189 | Raise_Controlled to Raise_From_Controlled_Operation. Update the | |
4190 | signature of Raise_From_Controlled_Operation by adding flag From_Abort. | |
4191 | Add False as the actual to From_Abort in the generated call to | |
4192 | Raise_From_Controlled_Operation. | |
4193 | ||
4194 | 2011-08-04 Jerome Lambourg <lambourg@adacore.com> | |
4195 | ||
4196 | * osint-c.ads, osint-c.adb (Set_Library_Info_Name): Move to declaration | |
4197 | so that the ali file name can be retrieved from outside of this package. | |
4198 | * back_end.ads, back_end.adb (Gen_Or_Update_Object_File): New method | |
4199 | doing nothing in the general case, but used to update the object file | |
4200 | timestamp if directly generated by the backend. | |
4201 | * gnat1drv.adb (Gnat1drv): Make sure the object file's timestamp is set | |
4202 | to a later time than the ali file one. | |
4203 | ||
9534ab17 AC |
4204 | 2011-08-04 Yannick Moy <moy@adacore.com> |
4205 | ||
4206 | * einfo.adb, einfo.ads (Formal_Proof_On): new flag set on subprogram | |
4207 | entities whose body contains an Annotate pragma which forces formal | |
4208 | proof on this body. | |
4209 | * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, | |
4210 | sem_ch6.adb, sem_ch9.adb, sem_res.adb: Adapt call to | |
4211 | Mark_Non_ALFA_Subprogram to pass in a message and node. | |
4212 | * sem_prag.adb (Analyze_Pragma): add treatment of pragma Annotate | |
4213 | (Forma_Proof, On) which sets the flag Formal_Proof_On in the | |
4214 | surrounding subprogram. | |
4215 | * sem_util.adb, sem_util.ads (Mark_Non_ALFA_Subprogram, | |
4216 | Mark_Non_ALFA_Subprogram_Unconditional): if the subprogram being marked | |
4217 | as not in ALFA is annotated with Formal_Proof being On, then an error | |
4218 | is issued based on the additional parameters for message and node. | |
4219 | * snames.ads-tmpl (Name_Formal_Proof): new name for annotation. | |
4220 | * gcc-interface/Make-lang.in: Update dependencies. | |
4221 | ||
4222 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
4223 | ||
4224 | * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Do not generate | |
4225 | Finalize_Address when CodePeer is enabled. | |
4226 | ||
4227 | 2011-08-04 Pascal Obry <obry@adacore.com> | |
4228 | ||
4229 | * adaint.c (__gnat_tmp_name): Use _tempnam() instead of tempnam() as | |
4230 | the latter returns a pointer to a static buffer which is deallocated | |
4231 | at the end of the routine. | |
4232 | ||
5c0e97dd AC |
4233 | 2011-08-04 Yannick Moy <moy@adacore.com> |
4234 | ||
4235 | * sem_ch3.adb (Array_Type_Declaration): move test for type in ALFA | |
4236 | after index creation; mark unconstrained base array type generated as | |
4237 | being in/not in ALFA as well | |
4238 | (Make_Index): mark subtype created as in/not in ALFA | |
4239 | * sem_ch5.adb (Analyze_Iteration_Scheme): mark entity for iterating | |
4240 | over a loop as in/not in ALFA, depending on its type and form of loop | |
4241 | iteration. | |
4242 | ||
4243 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
4244 | ||
4245 | * exp_ch7.adb (Build_Object_Declarations): Initialize flag Abort | |
4246 | directly to False on .NET and JVM. | |
4247 | ||
7a93c64b YM |
4248 | 2011-08-04 Yannick Moy <moy@adacore.com> |
4249 | ||
4250 | * sem_ch3.adb (Constrain_Enumeration, Constrain_Integer): remove | |
4251 | constraint that subtype must come from source code to be in ALFA, so | |
4252 | that anonymous subtypes can be in ALFA too. | |
4253 | ||
e9a1ed9b YM |
4254 | 2011-08-04 Yannick Moy <moy@adacore.com> |
4255 | ||
4256 | * sem_ch3.adb (Analyze_Object_Declaration): remove obsolete addition of | |
4257 | reference for ALFA mode. | |
4258 | * lib-xref-alfa.adb, lib-xref.ads (Traverse_Compilation_Unit): make | |
4259 | procedure public so as to use it from formal verification back-end. | |
4260 | ||
8e293fbd AC |
4261 | 2011-08-04 Jerome Lambourg <lambourg@adacore.com> |
4262 | ||
4263 | * g-comlin.adb (For_Each_Simple_Switch.Is_In_Config): Remove the | |
4264 | invalid checks of the Parameter, making Remove_Switch not working | |
4265 | correctly. | |
4266 | ||
4267 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
4268 | ||
4269 | * targparm.ads: Update header: no run-time exception is needed on this | |
4270 | file. | |
4271 | ||
4272 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
4273 | ||
4274 | * a-fihema.adb: Use System.IO instead of GNAT.IO | |
4275 | ||
4276 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
4277 | ||
4278 | * sem_ch3.adb (Access_Definition): Anonymous access to subprogram types | |
4279 | are forbidden in Compiler_Unit mode. | |
4280 | ||
cfae2bed AC |
4281 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
4282 | ||
4283 | * sem_util.adb: Minor reformatting. | |
4284 | ||
4285 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
4286 | ||
4287 | * bindgen.adb (Gen_Finalize_Library_Ada): Update the import string for | |
4288 | library-level finalizers. | |
4289 | (Gen_Finalize_Library_C): Update the import string for library-level | |
4290 | finalizers. | |
4291 | (Gen_Finalize_Library_Defs_C): Update the definition name of a | |
4292 | library-level finalizer. | |
4293 | * exp_ch7.adb: Remove with and use clauses for Stringt. | |
4294 | (Create_Finalizer): Remove local variables Conv_Name, Prag_Decl, | |
4295 | Spec_Decl. Add local variable Body_Id. The names of library-level | |
4296 | finalizers are now manually fully qualified and are no longer external. | |
4297 | A single name is now capable of servicing .NET, JVM and non-VM targets. | |
4298 | Pragma Export is no longer required to provide visibility for the name. | |
4299 | (Create_Finalizer_String): Removed. | |
4300 | (New_Finalizer_Name): New routine which mimics New_..._Name. | |
4301 | ||
01f0729a AC |
4302 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> |
4303 | ||
4304 | * sem_elab.adb (Check_Internal_Call_Continue): Change the type of the | |
4305 | elaboration counter to Standard_Short_Integer. | |
4306 | * sem_util.adb (Build_Elaboration_Entity): Likewise. | |
4307 | * bindgen.adb (Gen_Elab_Externals_Ada): Adjust to above change. | |
4308 | (Gen_Elab_Externals_C): Likewise. | |
4309 | ||
4310 | 2011-08-04 Ed Falis <falis@adacore.com> | |
4311 | ||
4312 | * system-vxworks-arm.ads, system-vxworks-sparcv9.ads, | |
4313 | system-vxworks-ppc.ads, system-vxworks-m68k.ads, | |
4314 | system-vxworks-mips.ads, system-vxworks-x86.ads | |
4315 | (Always_Compatible_Rep): set to False for all VxWorks targets. | |
4316 | ||
2c1b72d7 AC |
4317 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
4318 | ||
4319 | * par_sco.adb, prj-proc.adb, make.adb, bindgen.adb, prj.adb, prj.ads, | |
4320 | makeutl.adb, makeutl.ads, prj-nmsc.adb, exp_ch5.adb, exp_ch12.adb, | |
4321 | exp_ch7.ads, exp_util.ads, sem_util.ads, g-comlin.ads, exp_ch6.adb, | |
4322 | exp_ch6.ads, lib-xref.ads, exp_ch7.adb, exp_util.adb, exp_dist.adb, | |
4323 | exp_strm.adb, gnatcmd.adb, freeze.adb, g-comlin.adb, lib-xref-alfa.adb, | |
4324 | sem_attr.adb, sem_prag.adb, sem_util.adb, sem_elab.adb, sem_ch8.adb, | |
4325 | sem_ch11.adb, sem_eval.adb, sem_ch13.adb, sem_disp.adb, a-fihema.adb: | |
4326 | Minor reformatting and code reorganization. | |
4327 | ||
4328 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
4329 | ||
4330 | * projects.texi: Added doc for aggregate projects. | |
4331 | ||
824e9320 AC |
4332 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
4333 | ||
4334 | * prj-proc.adb, prj-nmsc.adb, prj-env.adb (Process_Declarative_Items): | |
4335 | Add support for overriding the Project_Path in aggregate projects. | |
4336 | ||
4337 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
4338 | ||
4339 | * a-cofove.ads: Minor reformatting. | |
4340 | ||
4341 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
4342 | ||
4343 | * exp_ch7.adb (Build_Adjust_Or_Finalize_Statements): Update the comment | |
4344 | on the generated code. | |
4345 | (Build_Finalize_Statements): Update the comment on the generated code. | |
4346 | (Build_Initialize_Statements): Update the comment on the generated code. | |
4347 | (Build_Object_Declarations): Add local variable Result. The object | |
4348 | declarations are now built in sequence. | |
4349 | * rtsfind.ads: Add RE_Exception_Occurrence_Access to tables RE_Id and | |
4350 | RE_Unit_Table. | |
4351 | ||
4352 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
4353 | ||
4354 | * checks.adb, alfa.adb, alfa.ads: Minor reformatting. | |
4355 | ||
4356 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> | |
4357 | ||
4358 | * einfo.ads (Elaboration_Entity): Document new definition and use. | |
4359 | (Elaboration_Entity_Required): Adjust to above change. | |
4360 | * exp_attr.adb (Expand_N_Attribute_Reference): Likewise. | |
4361 | * exp_ch12.adb: And with and use for Snames. | |
4362 | (Expand_N_Generic_Instantiation): Test 'Elaborated attribute. | |
4363 | * exp_util.adb (Set_Elaboration_Flag): Likewise. | |
4364 | * sem_attr.adb (Analyze_Attribute) <Check_Library_Unit>: Delete. | |
4365 | <Check_Unit_Name>: Deal with N_Expanded_Name. | |
4366 | <Attribute_Elaborated>: Extend to all unit names. | |
4367 | * sem_elab.adb: And with and use for Uintp. | |
4368 | (Check_Internal_Call_Continue): Adjust to Elaboration_Entity change. | |
4369 | * sem_util.ads (Build_Elaboration_Entity): Adjust comment. | |
4370 | * sem_util.adb (Build_Elaboration_Entity): Change type to Integer. | |
4371 | * bindgen.adb (Gen_Elab_Externals_Ada): New local subprogram taken | |
4372 | from Gen_Adainit_Ada. | |
4373 | (Gen_Elab_Externals_C): Likewise, but taken from Gen_Adainit_C. | |
4374 | (Gen_Adafinal_Ada): Remove redundant test. In the non-main program | |
4375 | case, do not call System.Standard_Library.Adafinal; instead call | |
4376 | finalize_library if needed. | |
4377 | (Gen_Adafinal_C): Likewise. | |
4378 | (Gen_Adainit_Ada): Do not set SSL.Finalize_Library_Objects in the | |
4379 | non-main program case. | |
4380 | (Gen_Adainit_C): Generate a couple of external declarations here. | |
4381 | In the main program case, set SSL.Finalize_Library_Objects. | |
4382 | (Gen_Elab_Calls_Ada): Adjust to Elaboration_Entity change. | |
4383 | (Gen_Elab_Calls_C): Likewise. | |
4384 | (Gen_Finalize_Library_Ada): Likewise. Skip SAL interface units. | |
4385 | (Gen_Finalize_Library_C): Likewise. Generate a full function. | |
4386 | (Gen_Main_C): Put back call to Ada_Final and don't finalize library | |
4387 | objects here. | |
4388 | (Gen_Output_File_Ada): Generate pragma Linker_Destructor for Ada_Final | |
4389 | if -a is specified. Call Gen_Elab_Externals_Ada. Move around call to | |
4390 | Gen_Adafinal_Ada. | |
4391 | (Gen_Output_File_C): Generate __attribute__((destructor)) for Ada_Final | |
4392 | if -a is specified. Call Gen_Elab_Externals_C. Remove useless couple | |
2c7f9cc0 | 4393 | of external declarations. Call Gen_Finalize_Library_C. |
824e9320 | 4394 | |
316d9d4f EB |
4395 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
4396 | ||
4397 | * prj.adb, prj.ads, makeutl.adb, makeutl.ads (Complete_Mains, | |
4398 | Compute_Compilation_Phases): new subprogram. | |
4399 | (Builder_Data, Builder_Project_Tree_Data): new subprogram and type | |
4400 | The number of mains as well as the various compilation phases that | |
4401 | need to be run are now project tree specific, since various | |
4402 | aggregated trees might have different requirements. In particular, | |
4403 | they do not all require bind or link phases. | |
4404 | ||
9434c32e EB |
4405 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
4406 | ||
4407 | * prj.adb, prj.ads, makeutl.adb, makeutl.ads, prj-env.adb | |
4408 | (Project_Tree_Appdata): New type. | |
4409 | It is now possible to associate application-specific data to a project | |
4410 | tree. In particular, this is used in the gprbuild builder to avoid a | |
4411 | number of global tables and htables, especially now that there can be | |
4412 | several project trees loaded at once because of aggregate projects. | |
4413 | (Debug_Name): new procedure. | |
4414 | * projects.texi: Clarify syntax of "**" for Source_Dirs | |
4415 | ||
41ba34db EB |
4416 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
4417 | ||
4418 | * prj.ads, makeutl.adb, makeutl.ads (Queue.Insert): now also inserts | |
4419 | the "roots" for a main. | |
4420 | (Fill_From_Project): add support for aggregate projects. Main units | |
4421 | in aggregated projects are now automatically added in the list of | |
4422 | files to build (although this fails later on in gprbuild, because | |
4423 | these files are not using the root proejct tree, so this needs | |
4424 | further cleanup) | |
4425 | * gcc-interface/Make-lang.in: Update dependencies. | |
4426 | ||
fccd42a9 AC |
4427 | 2011-08-03 Yannick Moy <moy@adacore.com> |
4428 | ||
4429 | * sem_ch4.adb (Analyze_Conditional_Expression): only allow boolean | |
4430 | conditional expression in ALFA. | |
4431 | * sem_res.adb (Resolve_Conditional_Expression): mark non-boolean | |
4432 | expressions as not in ALFA. | |
4433 | ||
4434 | 2011-08-03 Robert Dewar <dewar@adacore.com> | |
4435 | ||
4436 | * a-cofove.adb: Minor reformatting. | |
4437 | ||
4438 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
4439 | ||
4440 | * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads | |
4441 | (Insert_Project_Sources, Insert_withed_Sources_For): moved from the | |
4442 | gprbuild sources. | |
4443 | These packages are more logically placed in the Queue package, since | |
4444 | they manipulate the queue. It is also likely that they can be adapted | |
4445 | for gnatmake, thus sharing more code. | |
4446 | (Finish_Program, Fail_Program): moved from the gprbuild sources, so | |
4447 | that we could move the above. | |
4448 | ||
4449 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
4450 | ||
4451 | * errutil.adb (Finalize): clean up the list of error messages on exit. | |
4452 | Calling this subprogram multiple times will no longer show duplicate | |
4453 | error messages on stderr. | |
4454 | ||
4455 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
4456 | ||
4457 | * g-comlin.adb, g-comlin.ads (Set_Command_Line): ignore the parameter | |
4458 | Getopt_Switches when we have already define a command line | |
4459 | configuration. | |
4460 | ||
5e8c8e44 YM |
4461 | 2011-08-03 Yannick Moy <moy@adacore.com> |
4462 | ||
4463 | * sem_ch11.adb (Analyze_Raise_xxx_Error): do not mark such nodes as not | |
4464 | in ALFA. Instead, they are considered as assertions to prove. | |
4465 | * sem_ch4.adb (Analyze_Conditional_Expression): do not always mark such | |
4466 | nodes as not in ALFA. Instead, include conditional expressions in ALFA | |
4467 | if they have no ELSE part, or if they occur in pre- and postconditions, | |
4468 | where the Condition cannot have side-effects in ALFA | |
4469 | (Analyze_Membership_Op): do not mark such nodes as not in ALFA | |
4470 | (Analyze_Type_Conversion): do not always mark such nodes as not in ALFA. | |
4471 | Instead, include type conversion between scalar types in ALFA. | |
4472 | * sem_ch6.adb (Process_Formals): correctly mark a parameter in ALFA | |
4473 | if-and-only-if its type is in ALFA. | |
4474 | ||
5ffe0bab AC |
4475 | 2011-08-03 Thomas Quinot <quinot@adacore.com> |
4476 | ||
4477 | * scos.adb, get_scos.adb, put_scos.adb | |
4478 | New code letter for decisions: G (entry guard) | |
4479 | * par_sco.adb | |
4480 | (Traverse_Subprogram_Body): Rename to... | |
4481 | (Traverse_Subprogram_Or_Task_Body): New subrpogram. | |
4482 | (Traverse_Protected_Body): New subprogram | |
4483 | (Traverse_Declarations_Or_Statements): Add traversal of task bodies, | |
4484 | protected bodies and entry bodies. | |
4485 | ||
4486 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
4487 | ||
4488 | * einfo.adb, einfo.ads (Is_Postcondition_Proc): new flag for procedure | |
4489 | entities with get/set subprograms, which is set on procedure entities | |
4490 | generated by the compiler for a postcondition. | |
4491 | * sem_ch6.adb (Process_PPCs): set new flag on postcondition procedures | |
4492 | * alfa.adb, alfa.ads (Get_Entity_For_Decl): new function returning the | |
4493 | entity for a declaration | |
4494 | (Get_Unique_Entity_For_Decl): new function returning an entity which | |
4495 | represents a declaration, so that matching spec and body have the same | |
4496 | entity. | |
4497 | ||
4498 | 2011-08-03 Robert Dewar <dewar@adacore.com> | |
4499 | ||
4500 | * a-except-2005.adb, a-cfhama.adb, a-cfhase.adb, a-cfhase.ads, | |
4501 | a-cforma.adb, a-cforse.ads, a-cforse.adb: Minor reformatting | |
4502 | ||
4503 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
4504 | ||
4505 | * lib-xref-alfa.adb (Detect_And_Add_ALFA_Scope): make the subprogram | |
4506 | library-level because retriction No_Implicit_Dynamic_Code in the | |
4507 | front-end prevents its definition as a local subprogram | |
4508 | (Traverse_Compilation_Unit): extract new procedure from Add_ALFA_File, | |
4509 | for reuse in other contexts | |
4510 | (Traverse_Declarations_Or_Statements, | |
4511 | Traverse_Handled_Statement_Sequence, Traverse_Package_Body, | |
4512 | Traverse_Package_Declaration, Traverse_Subprogram_Body): make all these | |
4513 | procedures take a callback parameter to be called on all declarations | |
4514 | * lib-xref.ads | |
4515 | (Traverse_All_Compilation_Units): new generic function to traverse a | |
4516 | compilation unit and call a callback parameter on all declarations | |
4517 | ||
f9ad6b62 AC |
4518 | 2011-08-03 Javier Miranda <miranda@adacore.com> |
4519 | ||
4520 | * sem_prag.adb (Process_Interface_Name): Allow duplicated export names | |
4521 | in Java since they are always enclosed in a namespace that | |
4522 | differentiates them, and overloaded entities are supported by the VM. | |
4523 | ||
4524 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
4525 | ||
4526 | * checks.adb (Determine_Range): If a computed bound of an operation is | |
4527 | outside the range of the base type of the expression, and overflow | |
4528 | checks are enabled, the result is unknown and cannot be used for any | |
4529 | subsequent constant folding. | |
4530 | * sem_eval.adb (Compile_Time_Compare): if the bounds of one operand are | |
4531 | unknown, so is the result of the comparison. | |
4532 | ||
4533 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> | |
4534 | ||
4535 | * a-except-2005.adb (Raise_From_Controlled_Operation): Add new formal | |
4536 | From_Abort. When finalization was triggered by an abort, propagate | |
4537 | Standard'Abort_Signal rather than Program_Error. | |
4538 | * a-except-2005.ads (Raise_From_Controlled_Operation): Add new formal | |
4539 | From_Abort. | |
4540 | * a-except.adb (Raise_From_Controlled_Operation): Add new formal | |
4541 | From_Abort. When finalization was triggered by an abort, propagate | |
4542 | Standard'Abort_Signal rather than Program_Error. | |
4543 | * a-except.ads:(Raise_From_Controlled_Operation): Add new formal | |
4544 | From_Abort. | |
4545 | * exp_ch7.adb:(Build_Adjust_Or_Finalize_Statements): New local variable | |
4546 | Abort_Id. Update the calls to Build_Object_Declarations and | |
4547 | Build_Raise_Statement to include Abort_Id. | |
4548 | (Build_Adjust_Statements): New local variable Abort_Id. Update the | |
4549 | calls to Build_Object_Declarations and Build_Raise_Statement to include | |
4550 | Abort_Id. | |
4551 | (Build_Finalize_Statements): New local variable Abort_Id. Update the | |
4552 | calls to Build_Object_Declarations and Build_Raise_Statement to include | |
4553 | Abort_Id. | |
4554 | (Build_Components): Create an entity for Abort_Id when exceptions are | |
4555 | allowed on the target. | |
4556 | (Build_Finalizer): New local variable Abort_Id. | |
4557 | (Build_Initialize_Statements): New local variable Abort_Id. Update the | |
4558 | calls to Build_Object_Declarations and Build_Raise_Statement to include | |
4559 | Abort_Id. | |
4560 | (Build_Object_Declarations): Add new formal Abort_Id. Create the | |
4561 | declaration of flag Abort_Id to preserve the original abort status | |
4562 | before finalization code is executed. | |
4563 | (Build_Raise_Statement): Add new formal Abort_Id. Pass Abort_Id to | |
4564 | runtime routine Raise_From_Controlled_Operation. | |
4565 | (Create_Finalizer): Update the call to Build_Raise_Statement to include | |
4566 | Abort_Id. Update the call to Build_Object_Declarations to include | |
4567 | Abort_Id. Update the layout of the finalizer body. | |
4568 | (Make_Handler_For_Ctrl_Operation): Add an actual for From_Abort. | |
4569 | (Process_Transient_Objects): New local variable Abort_Id. Remove the | |
4570 | clunky code to create all flags and objects related to | |
4571 | exception propagation and replace it with a call to | |
4572 | Build_Object_Declarations. Update the call to Build_Raise_Statement to | |
4573 | include Abort_Id. | |
4574 | * exp_ch7.ads (Build_Object_Declarations): Moved from body to spec. | |
4575 | Add new formal Abort_Id and associated comment on its use. | |
4576 | (Build_Raise_Statement): Add new formal Abort_Id and associated comment | |
4577 | on its use. | |
4578 | * exp_intr.adb (Expand_Unc_Deallocation): New local variable Abort_Id. | |
4579 | Remove the clunky code to create all flags and objects related to | |
4580 | exception propagation and replace it with a call to | |
4581 | Build_Object_Declarations. Update the call to Build_Raise_Statement. | |
4582 | ||
4583 | 2011-08-03 Eric Botcazou <ebotcazou@adacore.com> | |
4584 | ||
4585 | * s-tassta.adb: Fix minor typos. | |
4586 | ||
4587 | 2011-08-03 Robert Dewar <dewar@adacore.com> | |
4588 | ||
4589 | * rtsfind.ads, makeutl.ads, prj.ads, prj.adb, make.adb, | |
4590 | lib-writ.adb, makeutl.adb, s-soflin.ads, clean.adb: Minor reformatting. | |
4591 | ||
1cdfa9be AC |
4592 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> |
4593 | ||
4594 | * exp_ch7.adb (Create_Finalizer): Treat freeze nodes in similar fashion | |
4595 | to packages. This ensures that the finalizer body will not end up | |
4596 | inside the freeze node. | |
4597 | (Process_Declarations): Add code to detect whether a freeze node has a | |
4598 | nested finalization collection. | |
4599 | ||
4600 | 2011-08-03 Pascal Obry <obry@adacore.com> | |
4601 | ||
4602 | * g-awk.adb, g-awk.ads: Make GNAT.AWK API compatible with Ada 2005. | |
4603 | (Current_Session): Return a not null access to Session_Type. | |
4604 | (Default_Session): Likewise. | |
4605 | ||
243cae0a AC |
4606 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
4607 | ||
4608 | * a-cfdlli.adb, bindgen.adb, exp_ch4.adb, exp_ch13.adb, sem_warn.adb, | |
4609 | exp_ch3.adb, exp_ch3.ads: Minor reformatting. | |
4610 | ||
4611 | 2011-08-03 Pascal Obry <obry@adacore.com> | |
4612 | ||
4613 | * g-awk.ads: Minor comment fix. | |
4614 | ||
4615 | 2011-08-03 Sergey Rybin <rybin@adacore.com> | |
4616 | ||
4617 | * tree_io.ads (ASIS_Version_Number): Update because of the changes in | |
4618 | the tree structure related to discriminant constraints. | |
4619 | Original_Discriminant cannot be used any more for computing the | |
4620 | defining name for the reference to a discriminant. | |
4621 | ||
4622 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
4623 | ||
4624 | * sem_disp.adb (Is_Tag_Indeterminate): If the return type of the | |
4625 | function is not visibly tagged, this is not a dispatching call and | |
4626 | therfore is not Tag_Indeterminate, even if the function is marked as | |
4627 | dispatching on result. | |
4628 | ||
f553e7bc AC |
4629 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> |
4630 | ||
4631 | * exp_ch13.adb: Add with and use clauses for Restrict and Rident. | |
4632 | (Expand_N_Free_Statement): Add a guard to protect against run-times | |
4633 | which do not support controlled types. | |
4634 | * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Add a guard to protect | |
4635 | against run-times which do not support controlled types. | |
4636 | * exp_ch4.adb (Complete_Controlled_Allocation): Add a guard to protect | |
4637 | against run-times which do not support controlled types. | |
4638 | * exp_ch7.adb (Build_Finalization_Collection): Add a guard to protect | |
4639 | against run-times which do not support controlled types. | |
4640 | * exp_util.adb (Needs_Finalization): Code reformatting. Add a guard to | |
4641 | protect against run-times which do not support controlled types. | |
4642 | ||
4643 | 2011-08-03 Eric Botcazou <ebotcazou@adacore.com> | |
4644 | ||
4645 | * exp_intr.adb: Put back with and use clauses for Exp_Ch11. | |
4646 | (Expand_Unc_Deallocation): Expand the AT_END handler at the very end. | |
4647 | ||
e4982b64 AC |
4648 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> |
4649 | ||
4650 | * exp_ch5.adb (Expand_Iterator_Loop): indicate that the cursor is | |
4651 | modified in the source, to prevent spurious warnings when compiling | |
4652 | with -gnatg. | |
4653 | ||
4654 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
4655 | ||
4656 | * a-except-2005.adb: Minor reformatting. | |
4657 | ||
4658 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
4659 | ||
4660 | * sem_warn.adb (Check_One_Unit): if the only mention of a withed unit | |
4661 | is a renaming declaration in the private part of a package, do not emit | |
4662 | a warning that the with_clause could be moved because the renaming may | |
4663 | be used in the body or in a child unit. | |
4664 | ||
4665 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> | |
4666 | ||
4667 | * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): | |
4668 | Propagate the Comes_From_Source attribute from the original return | |
4669 | object to the renaming. | |
4670 | ||
4671 | 2011-08-03 Jose Ruiz <ruiz@adacore.com> | |
4672 | ||
4673 | * exp_ch7.adb (Build_Raise_Statement): Do not call | |
4674 | Raise_From_Controlled_Operation when this routine is not present in | |
4675 | the run-time library. | |
4676 | (Cleanup_Protected_Object, Cleanup_Task): For restricted run-time | |
4677 | libraries (Ravenscar), tasks are non-terminating, and protected objects | |
4678 | and tasks can only appear at library level, so we do not want | |
4679 | finalization of protected objects nor tasks. | |
4680 | * exp_intr.adb: Minor clarification in comment. | |
4681 | bindgen.adb (Gen_Adainit_Ada, Gen_Main_C, Gen_Output_File_Ada, | |
4682 | Gen_Output_File_C): Remove references to finalization of library-level | |
4683 | objects when using restricted run-time libraries. | |
4684 | ||
4685 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
4686 | ||
4687 | * sem_ch3.adb (Build_Discriminant_Constraints): Set | |
4688 | Original_Discriminant only if the parent type is a generic formal. | |
4689 | ||
deb8dacc HK |
4690 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> |
4691 | ||
4692 | * exp_ch13.adb: Add with and use clause for Targparm; | |
4693 | (Expand_N_Free_Statement): Prevent the generation of a custom | |
4694 | Deallocate on .NET/JVM targets since this requires pools and address | |
4695 | arithmetic. | |
4696 | * exp_ch4.adb (Expand_Allocator_Expression): When compiling for | |
4697 | .NET/JVM targets, attach the newly allocated object to the access | |
4698 | type's finalization collection. Do not generate a call to | |
4699 | Set_Finalize_Address_Ptr on .NET/JVM because this routine does not | |
4700 | exist in the runtime. | |
4701 | (Expand_N_Allocator): When compiling for .NET/JVM targets, do not | |
4702 | create a custom Allocate for object that do not require initialization. | |
4703 | Attach a newly allocated object to the access type's finalization | |
4704 | collection on .NET/JVM. | |
4705 | * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add special processing for | |
4706 | assignment of controlled types on .NET/JVM. The two hidden pointers | |
4707 | Prev and Next and stored and later restored after the assignment takes | |
4708 | place. | |
4709 | * exp_ch6.adb (Expand_Call): Add local constant Curr_S. Add specialized | |
4710 | kludge for .NET/JVM to recognize a particular piece of code coming from | |
4711 | Heap_Management and change the call to Finalize into Deep_Finalize. | |
4712 | * exp_ch7.adb (Build_Finalization_Collection): Allow the creation of | |
4713 | finalization collections on .NET/JVM only for types derived from | |
4714 | Controlled. Separate the association of storage pools with a collection | |
4715 | and only allow it on non-.NET/JVM targets. | |
4716 | (Make_Attach_Call): New routine. | |
4717 | (Make_Detach_Call): New routine. | |
4718 | (Process_Object_Declarations): Suppress the generation of | |
4719 | build-in-place return object clean up code on .NET/JVM since it uses | |
4720 | pools. | |
4721 | * exp_ch7.ads (Make_Attach_Call): New routine. | |
4722 | (Make_Detach_Call): New routine. | |
4723 | * exp_intr.adb Add with and use clause for Targparm. | |
4724 | (Expand_Unc_Deallocation): Detach a controlled object from a collection | |
4725 | on .NET/JVM targets. | |
4726 | * rtsfind.ads: Add entries RE_Attach, RE_Detach and | |
4727 | RE_Root_Controlled_Ptr to tables RE_Id and RE_Unit_Table. | |
4728 | * snames.ads-tmpl: Add name Name_Prev. Move Name_Prev to the special | |
4729 | names used in finalization. | |
4730 | ||
4731 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> | |
4732 | ||
4733 | * a-fihema.adb: Add with and use clauses for System.Soft_Links. | |
4734 | (Attach, Detach): Lock the current task when chaining an object onto a | |
4735 | collection. | |
4736 | ||
df3e68b1 HK |
4737 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> |
4738 | ||
4739 | * a-except.adb, a-except-2005.adb (Raise_From_Controlled_Operation): | |
4740 | Rewritten to create the message strings when the exception is not | |
4741 | raised by an abort during finalization. | |
4742 | * a-except.ads, a-except-2005.ads: Add pragma Export for procedure | |
4743 | Raise_From_Controlled_Operation and update its associated comment. | |
4744 | * a-fihema.ads, a-fihema.adb: New GNAT unit. | |
4745 | Ada.Finalization.Heap_Management provides key functionality | |
4746 | associated with controlled objects on the heap, their creation, | |
4747 | finalization and reclamation. Type Finalization_Collection is | |
4748 | effectively a wrapper which sits ontop of a storage pool and performs | |
4749 | all necessary bookkeeping for all the objects it contains. Each | |
4750 | access-to-controlled or access-to-class-wide type receives a collection | |
4751 | as part of its expansion. The compiler generates buffer code and | |
4752 | invokes Allocate / Deallocate to create and destroy allocated | |
4753 | controlled objects. | |
4754 | * a-finali.adb ("="): Removed. | |
4755 | * a-finali.ads ("="): Removed. Controlled types no longer carry hidden | |
4756 | fields Prev and Next. | |
4757 | * ali.adb (Scan_ALI): Add parsing code to process PF / Has_Finalizer. | |
4758 | A library unit with at least one controlled object on the library level | |
4759 | has a special finalizer which is invoked by the binder. To signal this, | |
4760 | ali files carry field PF. | |
4761 | * ali.ads: New field in type Unit_Record called Has_Finalizer. Add | |
4762 | associated comment on field usage. | |
4763 | * a-tags.adb (Get_RC_Offset): Removed. | |
4764 | (Needs_Finalization): New routine. | |
4765 | * a-tags.ads: Update the structure of the GNAT dispatch tables. | |
4766 | Dispatch tables now carry field Needs_Finalization which provides | |
4767 | runtime indication whether a type is controlled or has controlled | |
4768 | components or both. Remove field RC_Offset. | |
4769 | (Get_RC_Offset): Removed along with its associated pragma Export. | |
4770 | Since tagged types with controlled components no longer carry hidden | |
4771 | field _controller, the special mechanism to retrieve its location is no | |
4772 | longer needed. | |
4773 | (Needs_Finalization): New routine. | |
4774 | * atree.ads, atree.adb (Elist24): New routine. | |
4775 | (Set_Elist24): New routine. | |
4776 | * atree.h: Add a define clause for Elist24. | |
4777 | * bindgen.adb New library-level variable Lib_Final_Built. | |
4778 | (Gen_Adafinal_Ada): Reimplemented. Depending on the restrictions or the | |
4779 | presence of a VM target, the routine generates calls to the proper | |
4780 | library finalization routine. | |
4781 | (Gen_Adainit_Ada): Import Finalize_Library_Objects only on non-VM | |
4782 | targets. Set the correct library finalization routine depending on | |
4783 | whether the library has controlled objects or this is a VM compilation. | |
4784 | (Gen_Finalize_Library_Ada): New routine. This procedure generates calls | |
4785 | to library-level finalizers of compiled units in reverse order of | |
4786 | elaboration. It also produces exception management code and reraises a | |
4787 | potential exception after all units have been finalized. | |
4788 | (Gen_Finalize_Library_C): New routine. This procedure generates calls to | |
4789 | library-level finalizers of compiled units in reverse order of | |
4790 | elaboration. | |
4791 | (Gen_Finalize_Library_Defs_C): New routine. This procedure generates the | |
4792 | definitions of all library-level finalizers available to the compilation | |
4793 | (Gen_Main_Ada): Directly call Adafinal which now contails all target | |
4794 | dependent code. | |
4795 | (Gen_Main_C): Add new local constant Needs_Library_Finalization. Call | |
4796 | System.Standard_Library.Adafinal directly. If the library needs | |
4797 | finalization actions, create the sequence of finalization calls. | |
4798 | (Gen_Output_File_Ada): Alphabetize local variables and constants. | |
4799 | Generate a with clause for System.Soft_Links when compiling for a VM. | |
4800 | Remove the code which imports System.Standard_Library.Adafinal as | |
4801 | Do_Finalize. Generate the library finalization routine. | |
4802 | (Gen_Output_File_C): Add new local constant Needs_Library_Finalization. | |
4803 | If the library needs finalization actions, create all the definitions | |
4804 | of library- level finalizers. | |
4805 | (Has_Finalizer): New routine. Determines whether at least one compiled | |
4806 | unit has a library-level finalizer. | |
4807 | Add type Qualification_Mode. | |
4808 | (Set_Unit_Name): Add a formal which controls the replacement of a dot. | |
4809 | * einfo.adb: New usage of field 15 as Return_Flag. | |
4810 | Remove Finalization_Chain_Entity from the usages of field 19. | |
4811 | Remove Associated_Final_Chain from the usages of field 23. | |
4812 | New usage of field 23 as Associated_Collection. | |
4813 | New usage of field 24 as Finalizer. | |
4814 | New usage of flag 252 as Is_Processed_Transient. | |
4815 | (Associated_Final_Chain): Removed. | |
4816 | (Associated_Collection): New routine. | |
4817 | (Finalization_Chain_Entity): Removed. | |
4818 | (Finalizer): New routine. | |
4819 | (Is_Finalizer): New routine. | |
4820 | (Is_Processed_Transient): New routine. | |
4821 | (Return_Flag): New routine. | |
4822 | (Set_Associated_Final_Chain): Removed. | |
4823 | (Set_Associated_Collection): New routine. | |
4824 | (Set_Finalization_Chain_Entity): Removed. | |
4825 | (Set_Finalizer): New routine. | |
4826 | (Set_Is_Processed_Transient): New routine. | |
4827 | (Set_Return_Flag): New routine. | |
4828 | (Write_Entity_Flags): Include Is_Processed_Transient to the list of | |
4829 | displayed flags. | |
4830 | (Write_Field8_Name): Alphabetize the output. | |
4831 | (Write_Field11_Name): Alphabetize the output. | |
4832 | (Write_Field12_Name): Alphabetize the output. | |
4833 | (Write_Field13_Name): Alphabetize the output. | |
4834 | (Write_Field14_Name): Alphabetize the output. | |
4835 | (Write_Field15_Name): Alphabetize the output. | |
4836 | (Write_Field16_Name): Alphabetize the output. | |
4837 | (Write_Field17_Name): Alphabetize the output. | |
4838 | (Write_Field18_Name): Alphabetize the output. | |
4839 | (Write_Field19_Name): Alphabetize the output. Remove the output of | |
4840 | Finalization_Chain_Entity. | |
4841 | (Write_Field20_Name): Alphabetize the output. | |
4842 | (Write_Field21_Name): Alphabetize the output. | |
4843 | (Write_Field22_Name): Alphabetize the output. | |
4844 | (Write_Field23_Name): Alphabetize the output. Remove the output of | |
4845 | Associated_Final_Chain. Add output for Associated_Collection. | |
4846 | (Write_Field24_Name): Alphabetize the output. | |
4847 | (Write_Field25_Name): Add output for Finalizer. | |
4848 | (Write_Field26_Name): Alphabetize the output. | |
4849 | (Write_Field27_Name): Alphabetize the output. | |
4850 | (Write_Field28_Name): Alphabetize the output. | |
4851 | * einfo.ads: Add new field description for Associated_Collection and | |
4852 | its uses in nodes. | |
4853 | Remove Associated_Final_Chain and its uses in nodes. | |
4854 | Remove Finalization_Chain_Entity and its uses in nodes. | |
4855 | Add new field description for Finalizer and its uses in nodes. | |
4856 | Add new synthesized attribute Is_Finalizer. | |
4857 | Add new flag description for Is_Processed_Transient and its uses in | |
4858 | nodes. | |
4859 | Add new field description for Return_Flag and its uses in nodes. | |
4860 | (Associated_Final_Chain): Removed along with its pragma Inline. | |
4861 | (Associated_Collection): New routine and pragma Inline. | |
4862 | (Finalization_Chain_Entity): Removed along with its pragma Inline. | |
4863 | (Finalizer): New routine and pragma Inline. | |
4864 | (Is_Finalizer): New routine and pragma Inline. | |
4865 | (Is_Processed_Transient): New routine and pragma Inline. | |
4866 | (Return_Flag): New routine and pragma Inline. | |
4867 | (Set_Associated_Final_Chain): Removed along with its pragma Inline. | |
4868 | (Set_Associated_Collection): New routine and pragma Inline. | |
4869 | (Set_Finalization_Chain_Entity): Removed along with its pragma Inline. | |
4870 | (Set_Finalizer): New routine and pragma Inline. | |
4871 | (Set_Is_Processed_Transient): New routine and pragma Inline. | |
4872 | (Set_Return_Flag): New routine and pragma Inline. | |
4873 | * exp_aggr.adb: Alphabetize subprograms. | |
4874 | (Build_Array_Aggr_Code): Remove formal Flist and its associated comment. | |
4875 | (Build_Record_Aggr_Code): Remove formals Flist and Obj along with their | |
4876 | associated comments. Remove local variables External_Final_List and | |
4877 | Attach. | |
4878 | Rename Ctrl_Stuff_Done to Finalization_Done. Rename local variable A to | |
4879 | Ancestor. Remove the retrieval of finalization lists. Update the call to | |
4880 | Make_Adjust_Call. | |
4881 | (Convert_Aggr_In_Allocator): Remove the retrieval of finalization | |
4882 | lists. Update the call to Late_Expansion. | |
4883 | (Convert_Aggr_In_Assignment): Update the call to Late_Expansion. | |
4884 | (Convert_Aggr_In_Object_Decl): Update the call to Late_Expansion. | |
4885 | (Gen_Assign): Remove the retrieval of the finalization list used to | |
4886 | build the assignment. Update the calls to Make_Init_Call and | |
4887 | Make_Adjust_Call. | |
4888 | (Gen_Ctrl_Actions_For_Aggr): Renamed to Generate_Finalization_Actions. | |
4889 | Remove the mechanism to determine attachment levels and finalization | |
4890 | list retrieval. Remove the processing for coextensions. | |
4891 | (Init_Controller): Removed. Controllers no longer exist. | |
4892 | (Late_Expansion): Remove formals Flist and Obj along with their | |
4893 | associated comments. Update the calls to Build_Record_Aggr_Code and | |
4894 | Build_Array_Aggr_Code. | |
4895 | * exp_ch13.adb (Expand_N_Free_Statement): New routine. | |
4896 | (Expand_N_Freeze_Entity): Add special processing for finalizers which | |
4897 | appear in entry bodies, protected subprograms and task bodies. | |
4898 | * exp_ch13.ads (Expand_N_Free_Statement): New routine. | |
4899 | * exp_ch3.adb (Add_Final_Chain): Removed. | |
4900 | (Build_Array_Init_Proc): Alphabetize local variables. | |
4901 | (Build_Assignment): Alphabetize local variables. Update the call to | |
4902 | Maked_Adjust_Call. | |
4903 | (Build_Class_Wide_Master): Rename local variables to better reflect | |
4904 | their role. | |
4905 | (Build_Discriminant_Assignments): Code reformatting. | |
4906 | (Build_Init_Call_Thru): Code reformatting. | |
4907 | (Build_Init_Procedure): Code reformatting. Generate a special version | |
4908 | of Deep_Finalize which is capable of finalizing all initialized | |
4909 | components and ignore the rest. | |
4910 | (Build_Init_Statements): Rename local variables to better reflect their | |
4911 | role. | |
4912 | Reimplement the mechanism to include the creation and update of an index | |
4913 | variable called a "counter". It is used as a bookmark for tracing | |
4914 | initialized and non-initialized components. | |
4915 | (Build_Initialization_Call): Remove local variable Controller_Typ. | |
4916 | Alphabetize all local variables. Remove the initialization of the | |
4917 | record controller and update the call to Make_Init_Call. | |
4918 | (Build_Record_Init_Proc): Rename formal Pe to Rec_Ent. | |
4919 | New local variable Counter. | |
4920 | (Constrain_Array): Alphabetize. | |
4921 | (Expand_Freeze_Array_Type): Create a collection instead of a | |
4922 | finalization list. | |
4923 | (Expand_Freeze_Class_Wide_Type): New routine. Creates TSS primitive | |
4924 | Finalize_Address which is used in conjunction with allocated controlled | |
4925 | objects. | |
4926 | (Expand_N_Object_Declaration): Remove the creation of a finalization | |
4927 | list for anonymous access types. Update the calls to Make_Init_Call and | |
4928 | Make_Adjust_Call. | |
4929 | (Expand_Freeze_Record_Type): Remove local variable Flist. Remove the | |
4930 | retrieval of finalization lists. Remove the expansion of the record | |
4931 | controller. Create TSS primitive Finalize_Address used in conjunction | |
4932 | with controlled objects on the heap. Create finalization collections | |
4933 | for access-to-controlled record components. | |
4934 | (Expand_Record_Controller): Removed. | |
4935 | (Freeze_Type): Remove the freezing of record controllers. Freezing of | |
4936 | class-wide types now requires additional processing. Create | |
4937 | finalization collections for access-to-controlled types. | |
4938 | (Increment_Counter): New routine. | |
4939 | (Make_Counter): New routine. | |
4940 | (Make_Eq_If): Remove the mention of Name_uController. | |
4941 | (Make_Predefined_Primitive_Specs): There is no longer need to skip | |
4942 | types coming from System.Finalization_Root. | |
4943 | (Predef_Deep_Spec): Reimplemented to reflect the new parameter profiles. | |
4944 | (Predefined_Primitive_Bodies): There is no longer need to skip types | |
4945 | coming from System.Finalization_Root. | |
4946 | (Stream_Operation_OK): Do not generate stream routines for | |
4947 | type Ada.Finalization.Heap_Management.Finalization_Collection. | |
4948 | * exp_ch3.ads: Alphabetize subprograms. | |
4949 | * exp_ch4.adb: Remove with and use clause for Sem_Ch8. | |
4950 | Add with and use clause for Lib. | |
4951 | (Complete_Coextension_Finalization): Removed. | |
4952 | (Complete_Controlled_Allocation): New routine. Create a finalization | |
4953 | collection for anonymous access-to-controlled types. Create a custom | |
4954 | Allocate which interfaces with the back end and the machinery in | |
4955 | Heap_Management. | |
4956 | (Expand_Allocator_Expression): Add necessary calls to | |
4957 | Complete_Controlled_Allocation. Remove the retrieval of finalization | |
4958 | lists. Update the calls to Make_Adjust_Call. Generate a call to | |
4959 | Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate | |
4960 | the associated collection. | |
4961 | (Expand_N_Allocator): Remove the processing for dynamic coextensions. | |
4962 | Code clean up. Remove the retrieval of finalization lists and | |
4963 | attachment levels. | |
4964 | Update the call to Make_Init_Call. Generate a call to | |
4965 | Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate | |
4966 | the associated collection. | |
4967 | (Get_Allocator_Final_List): Removed. Finalization lists are not | |
4968 | available. | |
4969 | (Suitable_Element): Remove the mention of Name_uController. | |
4970 | * exp_ch5.adb: Remove with and use clauses for Ttypes and Uintp. | |
4971 | (Make_Tag_Ctrl_Assignment): Rewritten to simply do a finalization of | |
4972 | the left hand side, carry out the assignment and adjust the left hand | |
4973 | side. | |
4974 | * exp_ch6.adb (Add_Final_List_Actual_To_Build_In_Place_Call): Removed. | |
4975 | (Add_Collection_Actual_To_Build_In_Place_Call): New routine. | |
4976 | (BIP_Formal_Suffix): Rename BIP_Final_List and BIPfinallist to | |
4977 | BIP_Collection and BIPcollection. | |
4978 | (Build_Heap_Allocator): New routine used to allocate the return object | |
4979 | of a build-in-place function onto a collection. | |
4980 | (Expand_Ctrl_Function_Call): Moved from Exp_Ch7. | |
4981 | (Expand_Call): Do not replace direct calls to Deep routines with their | |
4982 | aliases. | |
4983 | (Expand_N_Extended_Return_Statement): Give all variables shorter names | |
4984 | and update their occurrences. Add a special return flag to monitor the | |
4985 | [ab]normal execution of the function. The flag is set right before the | |
4986 | return statement. | |
4987 | Rewrite the mechanism used to allocate a build-in-place return object | |
4988 | on the heap or on a storage pool. | |
4989 | (Is_Direct_Deep_Call): New routine. | |
4990 | (Make_Build_In_Place_Call_In_Allocator): Add a collection to a | |
4991 | build-in-place function call instead of a final list. Build a call to | |
4992 | Set_Finalize_Address_Ptr to decorate the associated collection. | |
4993 | (Make_Build_In_Place_Call_In_Anonymous_Context): Create a temporary in | |
4994 | order to name the build-in-place function call's result for later | |
4995 | finalization. Add a collection to a build-in-place function call | |
4996 | instead of a final list. | |
4997 | (Make_Build_In_Place_Call_In_Assignment): Add a collection to a | |
4998 | build-in-place function call instead of a final list. Remove the code | |
4999 | which moves one final list and transforms it into the actual in a | |
5000 | nested build-in-place call. | |
5001 | (Make_Build_In_Place_Call_In_Object_Declaration): Add a collection to a | |
5002 | build-in-place function call instead of a final list. | |
5003 | (Move_Final_List): Removed. | |
5004 | (Needs_BIP_Collection): New routine. | |
5005 | (Needs_BIP_Final_List): Removed. | |
5006 | * exp_ch6.ads: Replace BIP_Final_List with BIP_Collection in | |
5007 | enumeration type BIP_Formal_Kind. | |
5008 | Update the related comment. | |
5009 | (Needs_BIP_Collection): New routine. | |
5010 | (Needs_BIP_Final_List): Removed. | |
5011 | * exp_ch7.adb: Add with and use clauses for Elists, Exp_Ch6, Stringt | |
5012 | and Ttypes. Remove with and use clauses for Sem_Type. Alphabetize the | |
5013 | majority of subprograms in this unit. Add Name_Finalize_Address to | |
5014 | array Name_Of and TSS_Finalize_Address to array Deep_Name_Of. | |
5015 | (Build_Adjust_Or_Finalize_Statements): Create the adjust or finalization | |
5016 | statements for an array type. | |
5017 | (Build_Adjust_Statements): Create the adjust statements for a record | |
5018 | type. | |
5019 | (Build_Cleanup_Statements): New routine. A procedure which given any | |
5020 | construct containing asynchronous calls, references to _master, or is a | |
5021 | task body, a task allocation or a protected body produces the necessary | |
5022 | runtime calls to clean up these constructs. | |
5023 | (Build_Exception_Handler): New routine. | |
5024 | (Build_Final_List): Removed. | |
5025 | (Build_Finalization_Collection): New routine. A core procedure which | |
5026 | creates a collection to service heap allocated controlled objects | |
5027 | associated with an access-to-controlled type. | |
5028 | (Build_Finalize_Statements): Create the finalization statements for a | |
5029 | record types. | |
5030 | (Build_Finalizer): New routine. A core procedure which given any | |
5031 | construct with declarations and/or statements detects all objects which | |
5032 | need any type of clean up (controlled objects, protected objects) and | |
5033 | generates all necessary code to clean up the said objects in the proper | |
5034 | order. | |
5035 | (Build_Finalizer_Call): New routine. | |
5036 | (Build_Initialize_Statements): Create the initialization statements for | |
5037 | an array type. The generated routine contains code to finalize partially | |
5038 | initialized arrays. | |
5039 | (Build_Object_Declarations): New routine. | |
5040 | (Build_Raise_Statement): New routine. | |
5041 | (Clean_Simple_Protected_Objects): Removed. | |
5042 | (Controller_Component): Removed. | |
5043 | (Enclosing_Function): New routine. | |
5044 | (Expand_Cleanup_Actions): Create a finalizer for a construct which has | |
5045 | either declarations or statements or both. | |
5046 | (Expand_N_Package_Body): Create a finalizer for a non-generic package. | |
5047 | (Expand_N_Package_Declaration): Create a finalizer for a non-generic | |
5048 | package. | |
5049 | (Find_Final_List): Removed. | |
5050 | (Global_Flist_Ref): Removed. | |
5051 | (In_Finalization_Root): Removed. | |
5052 | (Insert_Actions_In_Scope_Around): Determine the range of the transient | |
5053 | scope in terms of tree nodes. Process all transient variables within | |
5054 | that range. | |
5055 | (Make_Adjust_Call): Rewritten. There is no longer an attach call | |
5056 | generated after the adjust. | |
5057 | (Make_Attach_Call): Removed. | |
5058 | (Make_Call): New routine. | |
5059 | (Make_Clean): Removed. | |
5060 | (Make_Deep_Array_Body): Rewritten to simply invoke the appropriate | |
5061 | build routines. | |
5062 | (Make_Deep_Proc): Rewritten to generate the new profile signature used | |
5063 | in Deep routines. | |
5064 | (Make_Deep_Record_Body): Rewritten to simply invoke the appropriate | |
5065 | build routines. | |
5066 | (Make_Final_Call): Modified to simply create a call to either | |
5067 | Deep_Finalize or Finalize. | |
5068 | (Make_Finalize_Address_Body): New routine. | |
5069 | (Make_Finalize_Address_Stmts): New routine. A function which produces | |
5070 | TSS primitive Finalize_Address used in conjunction with heap allocated | |
5071 | controlled objects. | |
5072 | (Make_Handler_For_Ctrl_Operation): Add specialized code for .NET/JVM. | |
5073 | (Make_Init_Call): Rewritten. There is no longer an attach call | |
5074 | generated after initialization. | |
5075 | (Make_Local_Deep_Finalize): New routine. | |
5076 | (Make_Set_Finalize_Address_Ptr_Call): New routine. | |
5077 | (Make_Transient_Block): Remove the finalization list retrieval and | |
5078 | manipulation. | |
5079 | (Needs_Finalization): Moved to Exp_Util. | |
5080 | (Parent_Field_Type): New routine. | |
5081 | (Preprocess_Components): New routine. | |
5082 | (Process_Transient_Objects): New routine. | |
5083 | (Wrap_HSS_In_Block): New routine. | |
5084 | (Wrap_Transient_Declaration): Remove finalization list management and | |
5085 | controller insertion. | |
5086 | (Wrap_Transient_Expression): Code reformatting. | |
5087 | (Wrap_Transient_Statement): Code reformatting. | |
5088 | * exp_ch7.ads (Build_Final_List): Removed. | |
5089 | (Build_Finalization_Collection): New routine. | |
5090 | (Build_Raise_Statement): New routine. | |
5091 | (Controller_Component): Removed. | |
5092 | (Expand_Ctrl_Function_Call): Moved to Exp_Ch6. | |
5093 | (Find_Final_List): Removed. | |
5094 | (In_Finalization_Root): Removed. | |
5095 | (Is_Simple_Protected_Type): Update related comment. | |
5096 | (Make_Adjust_Call): New parameter profile and associated comments. | |
5097 | (Make_Attach_Call): Removed. | |
5098 | (Make_Final_Call): New parameter profile and associated comments. | |
5099 | (Make_Finalize_Address_Body): New routine. | |
5100 | (Make_Init_Call): New parameter profile and associated comments. | |
5101 | (Make_Local_Deep_Finalize): New routine. | |
5102 | (Make_Set_Finalize_Address_Ptr_Call): New routine. | |
5103 | (Needs_Finalization): Moved to Exp_Util. | |
5104 | * exp_ch9.adb (Add_Object_Pointer): Code reformatting. | |
5105 | (Expand_N_Protected_Body): Remove the handling of finalization lists. | |
5106 | (Find_Protection_Type): Moved to Exp_Util. | |
5107 | * exp_disp.adb: Remove with and use clauses for Exp_Ch7. | |
5108 | (Make_DT): Update sequence of dispatch table initialization. Remove the | |
5109 | initialization of field RC_Offset. Add initialization of field Needs_ | |
5110 | Finalization. | |
5111 | * exp_intr.adb (Expand_Unc_Deallocation): Code reformatting. | |
5112 | Reimplement how an object is first finalized, then deallocated. | |
5113 | * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): | |
5114 | Code reformatting. | |
5115 | * exp_tss.ads: Add special suffix for TSS primitive Finalize_Address. | |
5116 | Register TSS_Finalize_Address with type TSS_Names. | |
5117 | * exp_util.adb (Build_Allocate_Deallocate_Proc): New routine. This core | |
5118 | procedure provides the interface between an allocation / deallocation | |
5119 | and the support machinery in Ada.Finalization.Heap_Management. | |
5120 | (Find_Init_Call): Code reformatting. | |
5121 | (Find_Init_Call_In_List): Code reformatting. | |
5122 | (Find_Protection_Type): Moved from Exp_Ch9. | |
5123 | (Find_Prim_Op): Reimplement to add preference of recovered primitive. | |
5124 | (Has_Controlled_Coextensions): Removed. | |
5125 | (Has_Controlled_Objects): New routine. | |
5126 | (In_Library_Level_Package_Body): New routine. | |
5127 | (Insert_Action_After): New routine. | |
5128 | (Is_Finalizable_Transient): New routine. This predicate determines | |
5129 | whether an object declaration is one of the many variants of controlled | |
5130 | transients. | |
5131 | (Is_Null_Access_BIP_Func_Call): New routine. | |
5132 | (Is_Non_BIP_Func_Call): New routine. | |
5133 | (Is_Related_To_Func_Return): New routine. | |
5134 | (Needs_Finalization): Moved from Exp_Ch7. | |
5135 | * exp_util.ads (Build_Allocate_Deallocate_Proc): New routine. | |
5136 | (Find_Protection_Type): Moved from Exp_Ch9. | |
5137 | (Has_Controlled_Coextensions): Removed. | |
5138 | (Has_Controlled_Objects): New routine. | |
5139 | (In_Library_Level_Package_Body): New routine. | |
5140 | (Insert_Action_After): New routine. | |
5141 | (Is_Finalizable_Transient): New routine. | |
5142 | (Is_Null_Access_BIP_Func_Call): New routine. | |
5143 | (Is_Non_BIP_Func_Call): New routine. | |
5144 | (Is_Related_To_Func_Return): New routine. | |
5145 | (Needs_Finalization): Moved from Exp_ch7. | |
5146 | * expander.adb (Expand): Add a case for N_Free_Statement. | |
5147 | * freeze.adb (Freeze_All): Replace the generation of a finalization | |
5148 | list with a collection for access-to-controlled types. | |
5149 | (Freeze_Entity): Code reformatting. | |
5150 | (Freeze_Record_Type): Remove the freezing of a record controller | |
5151 | component. | |
5152 | (Freeze_Subprogram): Code reformatting. | |
5153 | * inline.adb (Cleanup_Scopes): Remove the reset of the scope | |
5154 | finalization list. | |
5155 | * lib-writ.adb (Write_Unit_Information): Output "PF" when a package | |
5156 | has a library-level finalizer. | |
5157 | * lib-writ.ads: Add "PF" to the sequence of unit attributes. | |
5158 | * a-filico.ads, a-filico.adb, s-finimp.ads, s-finimp.adb: Removed. | |
5159 | * Makefile.rtl: Remove a-filico and s-finimp from the list of object | |
5160 | files. Add a-fihema to the list of object files. | |
5161 | * par-ch4.adb: | |
5162 | Alphabetize the associations in type Is_Parameterless_Attribute. | |
5163 | * rtsfind.ads: Ada.Finalization_List.Controller and | |
5164 | System.Finalization_Implementation are no longer a GNAT unit. | |
5165 | Update the range of type Ada_Finalization_Child. Remove the following | |
5166 | recoverable entities: | |
2c7f9cc0 | 5167 | |
df3e68b1 HK |
5168 | RE_Attach_To_Final_List |
5169 | RE_Deep_Tag_Attach | |
5170 | RE_Finalize_List | |
5171 | RE_Finalize_One | |
5172 | RE_Finalizable_Ptr_Ptr | |
5173 | RE_Global_Final_List | |
5174 | RE_Limited_Record_Controller | |
5175 | RE_List_Controller | |
5176 | RE_Move_Final_List | |
5177 | RE_Record_Controller | |
5178 | RE_Simple_List_Controller | |
2c7f9cc0 | 5179 | |
df3e68b1 | 5180 | Add the following recoverable entities: |
2c7f9cc0 | 5181 | |
df3e68b1 HK |
5182 | RE_Add_Offset_To_Address |
5183 | RE_Allocate | |
5184 | RE_Base_Pool | |
5185 | RE_Deallocate | |
5186 | RE_Exception_Identity | |
5187 | RE_Finalization_Collection | |
5188 | RE_Finalization_Collection_Ptr | |
5189 | RE_Needs_Finalization | |
5190 | RE_Save_Library_Occurrence | |
5191 | RE_Set_Finalize_Address_Ptr | |
5192 | RE_Set_Storage_Pool_Ptr | |
5193 | RE_Storage_Count | |
5194 | * sem_aggr.adb (Resolve_Record_Aggregate): Remove mention of | |
5195 | Name_uController. | |
5196 | * sem_aux.adb (First_Discriminant): Remove mention of Name_uController. | |
5197 | (First_Stored_Discriminant): Remove the mention of Name_uController. | |
5198 | * sem_aux.ads: Comment reformatting. | |
5199 | * sem_ch10.adb (Build_Chain): Signal the class-wide creation machinery | |
5200 | to redecorate an already existing class-wide type. | |
5201 | (Decorate_Tagged_Type): New parameter profile and associated comment. | |
5202 | Create a "shadow class-wide type" for a shadow entity. | |
5203 | * sem_ch11.adb (Analyze_Exception_Handlers): Remove the dubious setting | |
5204 | of the final chain along with the associated comment. | |
5205 | * sem_ch3.adb (Access_Type_Declaration): Add new local variable | |
5206 | Full_Desig and set it to the full view of the designated type. | |
5207 | Initialize the finalization collection to empty. | |
5208 | (Build_Derived_Record_Type): Alphabetize local variables. Code | |
5209 | reformatting. | |
5210 | (Collect_Fixed_Components): Remove the mention of Name_uController. | |
5211 | (Create_Constrained_Components): Remove the mention of Name_uController. | |
5212 | (Make_Class_Wide_Type): Add specialized code to redecorate an existing | |
5213 | class-wide type of a shadow entity. | |
5214 | (Process_Full_View): Update the machinery which marks type | |
5215 | Limited_Controlled's entity as limited. | |
5216 | * sem_ch4.adb (Analyze_One_Call): Code reformatting. | |
5217 | * sem_ch6.adb (Create_Extra_Formals): Do not generate a finalization | |
5218 | list, instead make a collection build-in-place formal. | |
5219 | * sem_ch8.adb (Analyze_Object_Renaming): Look at the available view of | |
5220 | a designated type in order to establish a match between the renaming | |
5221 | and the renamed entity. | |
5222 | (Find_Selected_Component): Add guard to prevent spurious exceptions | |
5223 | from being raised on .NET/JVM. | |
5224 | * sem_disp.adb (Check_Dispatching_Operation): Include Finalize_Address | |
5225 | to the list of primitive that need special processing. Update arrays | |
5226 | C_Names and D_Names. | |
5227 | (Replace_Types): Handle class-wide types. | |
5228 | * sem_elab.adb (Check_A_Call): Since Deep_Initialize now has a | |
5229 | different parameter profile, look at the first formal. | |
5230 | * sem_prag.adb: Remove with and use clauses for Exp_Ch7. Add with and | |
5231 | use clauses for Exp_Util. | |
5232 | * sem_res.adb: Remove with and use clauses for Elists. | |
5233 | (Propagate_Coextensions): Removed. | |
5234 | (Resolve_Allocator): Do not propagate the list of coextensions from one | |
5235 | allocator to another. | |
5236 | * sem_util.adb (Build_Actual_Subtype_Of_Component): Rename variable | |
5237 | Deaccessed_T to Desig_Typ. | |
5238 | (Enter_Name): Remove the mention of Name_uController. | |
5239 | (Gather_Components): Remove the mention of Name_uController. | |
5240 | (Incomplete_Or_Private_View): New routine. | |
5241 | (Is_Coextension_Root): Removed. | |
5242 | (Is_Fully_Initialized_Type): Remove the mention of Name_uController. | |
5243 | * sem_util.ads (Incomplete_Or_Private_View): New routine. | |
5244 | (Is_Coextension_Root): Removed. | |
5245 | * s-finroo.ads: Remove with clause for Ada.Unchecked_Conversion. | |
5246 | Controlled types are now derived from a null tagged record. Remove | |
5247 | types Finalizable_Ptr, Finalizable and Empty_Root_Controlled. | |
5248 | * sinfo.adb (Coextensions): Removed. | |
5249 | (Set_Coextensions): Removed. | |
5250 | * sinfo.ads: Remove Coextensions from the explanation of node fields | |
5251 | and its uses in nodes. | |
5252 | Update the field usage of N_Allocator. | |
5253 | (Coextensions): Removed along with its pragma Inline. | |
5254 | (Set_Coextensions): Removed along with its pragma Inline. | |
5255 | * snames.ads-tmpl: Remove names | |
2c7f9cc0 | 5256 | |
df3e68b1 HK |
5257 | Name_uClean |
5258 | Name_uController | |
5259 | Name_uFinal_List | |
5260 | Name_uLocal_Final_List | |
5261 | Name_Finalization_Root | |
5262 | Name_Next | |
5263 | Name_Prev | |
2c7f9cc0 | 5264 | |
df3e68b1 | 5265 | Add names |
2c7f9cc0 | 5266 | |
df3e68b1 HK |
5267 | Name_uFinalizer |
5268 | Name_Finalize_Address | |
5269 | * s-pooglo.adb (Allocate): Add overriding indicator. | |
5270 | (Deallocate): Add overriding indicator. | |
5271 | (Storage_Size): Add overriding indicator. | |
5272 | * s-soflin.adb (Adafinal_NT): Invoke Finalize_Library_Objects rather | |
5273 | than Finalize_Global_List. | |
5274 | (Null_Finalize_Global_List): Removed. | |
5275 | (Save_Library_Occurrence): New routine. | |
5276 | * s-soflin.ads: Remove variable Finalize_Global_List along with its | |
5277 | initialization. Add variable Finalize_Library_Objects along with its | |
5278 | pragma Export. Add variables Library_Exception and | |
5279 | Library_Exception_Set along with their pragma Export. | |
5280 | (Null_Finalize_Global_List): Removed. | |
5281 | (Save_Library_Occurrence): New routine. | |
5282 | * s-tassta.adb (Finalize_Global_Tasks): Call Finalize_Library_Objects | |
5283 | rather than Finalize_Global_List. | |
5284 | * tbuild.adb (Unchecked_Convert_To): Capture and set the parent field | |
5285 | of the constructed node. | |
5286 | ||
2ee06322 RO |
5287 | 2011-08-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
5288 | ||
5289 | * link.c: Include "auto-host.h" before system headers. | |
5290 | ||
f77b022b VC |
5291 | 2011-08-03 Vincent Celier <celier@adacore.com> |
5292 | ||
5293 | * make.adb (Gnatmake): Add to table Library_Projs only library projects | |
5294 | that are not extended. Do not check if a library project that is | |
5295 | extended should be regenerated. Do not add to table Library_Paths the | |
5296 | libraries that are in extended projects. Link only with libraries that | |
5297 | are in libray projects that are not extended. | |
5298 | * prj-nmsc.adb (Check_Library_Attributes): Do not reset flag Library | |
5299 | for a library project that is extended. | |
5300 | ||
0187b60e AC |
5301 | 2011-08-03 Gary Dismukes <dismukes@adacore.com> |
5302 | ||
5303 | * sem_ch6.adb (Find_Corresponding_Spec): When in an instance, skip | |
5304 | conforming subprogram renamings that appear to be completions if they | |
5305 | are not fully conformant. | |
5306 | Such renamings are homographs but not completions. | |
5307 | * sem_type.adb (Disambiguate): Handle disambiguation of overloaded | |
5308 | names in a subprogram renaming that appears in an instance. | |
5309 | ||
5310 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5311 | ||
5312 | * exp_util.adb (Expand_Subtype_From_Expr): if the type is limited but | |
5313 | not immutably limited, build actual subtype from expression to provide | |
5314 | proper bounds to caller. | |
5315 | ||
5316 | 2011-08-03 Gary Dismukes <dismukes@adacore.com> | |
5317 | ||
5318 | * sem_ch8.adb: Minor comment correction. | |
5319 | ||
5320 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
5321 | ||
5322 | * exp_strm.adb (Build_Array_Input_Function): In Ada 2005 mode, when | |
5323 | returning a limited array, use an extended return statement. | |
5324 | ||
5325 | 2011-08-03 Vincent Celier <celier@adacore.com> | |
5326 | ||
5327 | * make.adb (Initialize): If --subdirs= is used, but no project file is | |
5328 | specified, attempt to create the specify subdir if it does not already | |
5329 | exist and use it as the object directory as if -D had been specified. | |
5330 | ||
5331 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
5332 | ||
5333 | * s-tpopsp-vms.adb: New file. | |
5334 | * s-taprop-vms.adb: Put back ATCB_Key, since needed by this file on VMS. | |
5335 | * gcc-interfaces/Makefile.in: Use s-taprop-vms.adb on VMS. | |
5336 | ||
e280f981 AC |
5337 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
5338 | ||
5339 | * make.adb, makeutl.adb, makeutl.ads, clean.adb (Makeutl.Queue): new | |
5340 | package. | |
5341 | ||
5342 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
5343 | ||
5344 | * cstand.adb (Create_Standard): select Universal_Integer as an ALFA type | |
5345 | * sem_ch3.adb (Array_Type_Declaration): detect array types in ALFA | |
5346 | * sem_util.adb, sem_util.ads (Has_Static_Array_Bounds): new function to | |
5347 | detect that an array has static bounds. | |
5348 | ||
98c99a5a AC |
5349 | 2011-08-03 Thomas Quinot <quinot@adacore.com> |
5350 | ||
5351 | * exp_dist.adb: Minor reformatting. | |
5352 | ||
5353 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
5354 | ||
5355 | * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-vms.adb | |
5356 | (ATCB_Key): Removed, not always used. | |
5357 | ||
5358 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
5359 | ||
5360 | * gnatcmd.adb, make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads, | |
5361 | clean.adb, prj-conf.adb, prj-env.adb, prj-env.ads (Makeutl): remove | |
5362 | most remaining global variables. | |
5363 | ||
686d0984 AC |
5364 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
5365 | ||
5366 | * gnatcmd.adb, prj-proc.adb, mlib-prj.adb, prj.adb, makeutl.ads, | |
5367 | prj-util.adb, prj-util.ads, prj-conf.adb, prj-env.adb: Minor | |
5368 | reformatting. | |
5369 | ||
5370 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
5371 | ||
5372 | * exp_util.adb (Is_VM_By_Copy_Actual): Include N_Slide nodes as actuals | |
5373 | that must be passed by copy in VM targets. | |
5374 | ||
5375 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
5376 | ||
5377 | * prj.ads, prj-nmsc.adb (Files_Htable): removed this htable, which | |
5378 | duplicates a similar htable now in the project tree. | |
5379 | ||
5380 | 2011-08-03 Claire Dross <dross@adacore.com> | |
5381 | ||
5382 | * a-cfdlli.adb, a-cfhama.adb, a-cfhase.adb, a-cforma.adb, a-cforse.adb, | |
5383 | a-cofove.adb ("=", Length, Is_Empty, Clear, Assign, Copy, Element, | |
5384 | Replace_Element, Query_Element, Update_Element, Move, Insert, Prepend, | |
5385 | Append, Delete, Delete_First, Delete_Last, Reverse_Element, Swap, | |
5386 | Splice, First, First_Element, Last, Last_Element, Next, Previous, Find, | |
5387 | Reverse_Find, Contains, Has_Element, Iterate, Reverse_Iterate, Capacity, | |
5388 | Reserve_Length, Length, Strict_Equal, Left, Right): Data-structure | |
5389 | update. | |
5390 | ||
5391 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
5392 | ||
5393 | * s-taprop-posix.adb, s-taprop-linux.adb, s-taprop-tru64.adb | |
5394 | (ATCB_Key): Removed, not always used. | |
5395 | * s-tpopsp-posix.adb, s-tpopsp-posix-foreign.adb (ATCB_Key): Moved from | |
5396 | s-taprop-posix.adb. | |
5397 | * s-tpopsp-tls.adb: New file. | |
5398 | * gcc-interface/Makefile.in: Use TLS implementation of s-tpopsp.adb on | |
5399 | x86/x64/ia64/powerpc/sparc Linux. | |
5400 | ||
5401 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
5402 | ||
5403 | * system-aix.ads, system-aix64.ads: Set ZCX_By_Default to True. | |
5404 | * gcc-interface/Makefile.in: Switch to ZCX by default on AIX ports. | |
5405 | ||
5406 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
5407 | ||
5408 | * rtsfind.ads, exp_dist.adb, exp_dist.ads | |
5409 | (Build_From_Any_Call, Build_To_Any_Call, Build_TypeCode_Call): | |
5410 | Fix type selection for mapping integer types to PolyORB types. | |
5411 | ||
5412 | 2011-08-03 Bob Duff <duff@adacore.com> | |
5413 | ||
5414 | * sem_ch7.adb: Minor comment clarification. | |
5415 | ||
5416 | 2011-08-03 Bob Duff <duff@adacore.com> | |
5417 | ||
5418 | * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): If we get | |
5419 | an error analyzing a choice, skip further processing. Further | |
5420 | processing could cause a crash or cascade errors. | |
5421 | ||
40ecf2f5 EB |
5422 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
5423 | ||
5424 | * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, mlib-prj.adb, | |
5425 | prj.adb, prj.ads, makeutl.adb, makeutl.ads, clean.adb, prj-nmsc.adb, | |
5426 | prj-util.adb, prj-util.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, | |
5427 | prj-env.ads (Shared_Project_Tree_Data): new type | |
5428 | An aggregate project and its aggregated trees need to share the common | |
5429 | data structures used for lists of strings, packages,... This makes the | |
5430 | code simpler since otherwise we have to pass the root tree (also used | |
5431 | for the configuration file data) in addition to the current project | |
5432 | tree. This also avoids ambiguities as to which tree should be used. | |
5433 | And finally this saves a bit of memory. | |
5434 | (For_Every_Project_Imported): new parameter Tree. | |
5435 | Since aggregated projects are using a different tree, we need to let | |
5436 | the caller know which tree to use to manipulate the returned project. | |
5437 | ||
9fde638d RD |
5438 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
5439 | ||
5440 | * prj-proc.adb, exp_util.ads, exp_ch9.adb, make.adb, prj-ext.adb, | |
5441 | prj-ext.ads, alfa.ads, sem_ch4.adb, makeutl.adb, makeutl.ads, | |
5442 | lib-xref-alfa.adb, sem_cat.adb, exp_dist.adb, get_alfa.adb, | |
5443 | prj-env.adb, prj-env.ads, prj-tree.adb, alfa.ads: Minor reformatting. | |
5444 | ||
95eb8b69 AC |
5445 | 2011-08-03 Javier Miranda <miranda@adacore.com> |
5446 | ||
5447 | * exp_util.adb, sem_aux.adb, exp_util.ads, sem_aux.ads: | |
5448 | Move routine Is_VM_By_Copy_Actual from sem_aux to exp_util. | |
5449 | ||
5450 | 2011-08-03 Bob Duff <duff@adacore.com> | |
5451 | ||
5452 | * sem_ch8.adb (Is_Primitive_Operator_In_Use): Always check In_Use on | |
5453 | the Base_Type. | |
5454 | ||
5455 | 2011-08-03 Joel Brobecker <brobecker@adacore.com brobecker> | |
5456 | ||
5457 | * g-sha256.ads, g-sha512.ads, g-sha1.ads, g-sha224.ads, g-sha384.ads, | |
5458 | g-sehash.ads: Fix typo. Update header. | |
5459 | ||
5460 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
5461 | ||
5462 | * exp_ch6.adb (Expand_Actuals): Remove Ada_2005 guard on build-in-place | |
5463 | expansion. | |
5464 | ||
5465 | 2011-08-03 Gary Dismukes <dismukes@adacore.com> | |
5466 | ||
5467 | * sem_ch4.adb (Analyze_Overloaded_Selected_Component): Consider | |
5468 | prefixes of private types along with records, since the selector may be | |
5469 | a discriminant. | |
5470 | * sem_res.adb (Resolve_Selected_Component): Consider prefixes of | |
5471 | private types along with records, since the selector may be a | |
5472 | discriminant. | |
5473 | ||
92e77027 AC |
5474 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
5475 | ||
b2f7ebc1 | 5476 | * prj-pp.adb (Pretty_Print): Remove trailing blank line. |
92e77027 AC |
5477 | |
5478 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
5479 | ||
5480 | * sem_aux.adb (Is_VM_By_Copy_Actual): Fix wrong use of | |
5481 | Tagged_Type_Expansion. | |
5482 | ||
5483 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
5484 | ||
b2f7ebc1 GP |
5485 | * sem_res.adb (Resolve_Op_Concat_Arg): Do not issue a SPARK |
5486 | violation when the argument of concatenation is the name of a | |
5487 | constant. | |
92e77027 | 5488 | |
ab29a348 EB |
5489 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
5490 | ||
5491 | * prj-proc.adb, prj-ext.adb, prj-ext.ads, prj-env.adb, prj-env.ads, | |
5492 | prj-tree.adb, prj-tree.ads (Initialize_And_Copy, Copy): new subprograms | |
5493 | (Process_Declarative_Items): new parameter Child_Env. | |
5494 | ||
9466892f AC |
5495 | 2011-08-03 Yannick Moy <moy@adacore.com> |
5496 | ||
589ef536 GP |
5497 | * alfa.ads: Update format of ALFA section in ALI file in order to |
5498 | add a mapping from bodies to specs when both are present. | |
5499 | (ALFA_Scope_Record): Add components for spec file/scope. | |
5500 | * get_alfa.adb (Get_ALFA): Read the new file/scope for spec when | |
5501 | present. | |
5502 | * lib-xref-alfa.adb (Collect_ALFA): After all scopes have been | |
5503 | collected, fill in the spec information when relevant. | |
5504 | * put_alfa.adb (Put_ALFA): Write the new file/scope for spec when | |
9466892f AC |
5505 | present. |
5506 | ||
5507 | 2011-08-03 Eric Botcazou <ebotcazou@adacore.com> | |
5508 | ||
5509 | * inline.adb (Add_Inlined_Subprogram): Do not consider the enclosing | |
5510 | code unit to decide whether to add internally generated subprograms. | |
2c7f9cc0 | 5511 | |
9466892f AC |
5512 | 2011-08-03 Javier Miranda <miranda@adacore.com> |
5513 | ||
5514 | * sem_aux.ads, sem_aux.adb (Is_VM_By_Copy_Actual): New subprogram. | |
589ef536 GP |
5515 | * exp_ch9.adb (Build_Simple_Entry_Call): Handle actuals that must |
5516 | be handled by copy in VM targets. | |
9466892f AC |
5517 | |
5518 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
5519 | ||
589ef536 | 5520 | * make.adb, makeutl.adb, makeutl.ads (Make.Switches_Of): Share |
9466892f AC |
5521 | code with Makeutl.Get_Switches. |
5522 | * prj-tree.adb: Update comment. | |
5523 | ||
b5ea9143 AC |
5524 | 2011-08-03 Thomas Quinot <quinot@adacore.com> |
5525 | ||
5526 | * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Reject a remote | |
5527 | subprogram with a limited formal that does not support external | |
5528 | streaming. | |
5529 | ||
5530 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
5531 | ||
5532 | * get_alfa.adb (Get_ALFA): add missing Skip_Spaces at start of | |
5533 | continuation line | |
5534 | * lib-xref-alfa.adb (Add_ALFA_File): split removal of scopes that are | |
5535 | not from current unit in two phases, because it is not possible to | |
5536 | change the table while iterating over its content. | |
5537 | * put_alfa.adb (Put_ALFA): reset current file/scope at each new entity | |
5538 | ||
5539 | 2011-08-03 Sergey Rybin <rybin@adacore.com> | |
5540 | ||
5541 | * vms_data.ads: Add qualifier for gnatmetric --no-static-loop option | |
5542 | * gnat_ugn.texi: Update description of complexity metrics (gnatmetric) | |
5543 | ||
668a19bc ES |
5544 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> |
5545 | ||
5546 | * sem_res.adb (Resolve_Op_Concat_Arg): if the argument is an aggregate | |
5547 | and the component type is composite, this is ambiguous for predefined | |
5548 | concatenation, but if the node is not overloaded and the entity is a use | |
5549 | -defined function its profile can be used to resolve that aggregate. | |
5550 | ||
170b2989 AC |
5551 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
5552 | ||
5553 | * exp_ch4.adb: Minor code cleanup. | |
5554 | ||
5555 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
5556 | ||
5557 | * exp_dist.adb: Do not generate distribution stubs if serious errors | |
5558 | have been diagnosed. | |
5559 | ||
5560 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5561 | ||
5562 | * sem_ch4.adb (Try_Primitive_Operation): when checking the validity of | |
5563 | the first formal of a primitive operation, go to the base type to | |
5564 | handle properly an access to a derived type with constrained | |
5565 | discriminants. | |
5566 | * sem_type.adb (Disambiguate): an immediately visible operator hides a | |
5567 | user-defined function that is only use-visible. | |
170b2989 | 5568 | |
e917aec2 RD |
5569 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
5570 | ||
5571 | * sem_aggr.adb, sem_ch3.adb, lib.ads, gnatcmd.adb, prj-proc.adb, | |
5572 | make.adb, lib-writ.adb, prj-part.adb, prj-part.ads, prj-ext.adb, | |
5573 | fname-uf.adb, prj-ext.ads, prj.adb, prj.ads, sem_attr.adb, alfa.adb, | |
5574 | prj-makr.adb, errout.adb, makeutl.adb, makeutl.ads, restrict.ads, | |
5575 | sem_ch6.adb, g-pehage.adb, clean.adb, put_alfa.adb, lib-xref-alfa.adb, | |
5576 | prj-nmsc.adb, prj-nmsc.ads, sem_ch8.adb, prj-pars.ads, exp_aggr.adb, | |
5577 | prj-attr.ads, sem_ch13.adb, get_alfa.adb, prj-env.adb, prj-env.ads, | |
5578 | alfa_test.adb, prj-tree.adb, prj-tree.ads, einfo.ads: Minor reformatting | |
5579 | ||
5580 | 2011-08-03 Robert Dewar <dewar@adacore.com> | |
5581 | ||
5582 | * repinfo.adb (List_Mechanism): Add handling of | |
5583 | Convention_Ada_Pass_By_XXX. | |
5584 | * sem_mech.adb (Set_Mechanism): Ditto. | |
5585 | * sem_prag.adb (Process_Convention): Add entries for | |
5586 | Convention_Ada_Pass_By_XXX. | |
5587 | * snames.adb-tmpl, snames.ads-tmpl: Ditto. | |
5588 | ||
49bfcf43 AC |
5589 | 2011-08-03 Pascal Obry <obry@adacore.com> |
5590 | ||
5591 | * makeutl.adb: Minor reformatting. | |
5592 | ||
5593 | 2011-08-03 Vincent Celier <celier@adacore.com> | |
5594 | ||
5595 | * fname-uf.adb | |
5596 | (Get_File_Name) If the file cannot be found when there are no config | |
5597 | pragmas file and May_Fail is True, return No_File instead of the file | |
5598 | name, to be consistent. | |
5599 | ||
5600 | 2011-08-03 Pascal Obry <obry@adacore.com> | |
5601 | ||
5602 | * adaint.c (__gnat_is_executable_file_attr): Avoid access | |
5603 | to null pointer. | |
5604 | ||
5605 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
5606 | ||
5607 | * sem_ch13.adb | |
5608 | (Same_Representation): In VM targets the representation of arrays with | |
5609 | aliased components differs from arrays with non-aliased components. | |
5610 | ||
34798441 EB |
5611 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
5612 | ||
5613 | * prj-proc.adb, prj-attr.adb, prj-attr.ads (Get_Attribute_Index): do | |
5614 | not systematically lower case attribute indexes that contain no "." | |
5615 | Fix definition of several Naming attributes, which take | |
5616 | a unit name as index and therefore should be case insensitive. | |
5617 | Minor refactoring (reduce length of variable names). | |
5618 | ||
5619 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
5620 | ||
5621 | * makeutl.adb, makeutl.ads (Get_Switches): new subprogram. | |
5622 | ||
4437a530 EB |
5623 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
5624 | ||
5625 | * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb, | |
5626 | prj-part.ads, switch-m.adb, switch-m.ads, prj-makr.adb, clean.adb, | |
5627 | prj-pars.adb, prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb, | |
5628 | prj-tree.ads (Prj.Tree.Environment): new type. | |
5629 | ||
804fe3c4 EB |
5630 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
5631 | ||
5632 | * prj-proc.adb, prj.ads, makeutl.adb, makeutl.ads, prj-conf.adb, | |
5633 | prj-tree.adb, prj-tree.ads (Environment): new type. | |
5634 | ||
c565bc66 AC |
5635 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
5636 | ||
5637 | * prj-tree.ads: Remove unused variable. | |
5638 | ||
5639 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
5640 | ||
5641 | * restrict.adb (Restriction_Msg): set "SPARK" all in upper case for | |
5642 | issuing messages related to SPARK restriction violation. | |
5643 | ||
4ee646da AC |
5644 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> |
5645 | ||
5646 | * sem_ch6.adb: guard against error nodes in return statements. | |
5647 | ||
5648 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
5649 | ||
5650 | * errout.adb (Error_Msg_Internal): the main unit has not been read yet, | |
5651 | a warning can only appear on a configuration file, so emit warning | |
5652 | without further checks. | |
5653 | ||
5654 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
5655 | ||
5656 | * s-interr.ads: add overriding keyword. | |
5657 | ||
5658 | 2011-08-03 Geert Bosch <bosch@adacore.com> | |
5659 | ||
5660 | * exp_attr.adb: Fix minor typo. | |
5661 | ||
5662 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5663 | ||
5664 | * par-ch4.adb: improve error recovery. | |
5665 | ||
c0e538ad AC |
5666 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
5667 | ||
5668 | * prj-part.adb, prj-part.ads, prj-makr.adb, prj-pars.adb, prj-conf.adb, | |
5669 | prj-env.adb (Prj.Part.Parse): change parameter Always_Errout_Finalize | |
5670 | to Errout_Handling. | |
5671 | ||
5672 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
5673 | ||
5674 | * prj-dect.adb (Parse_Attribute_Declaration): make sure we can use | |
5675 | "external" as an attribute name in aggregate projects. | |
5676 | ||
5677 | 2011-08-03 Jose Ruiz <ruiz@adacore.com> | |
5678 | ||
5679 | * s-taprop-vxworks.adb: (Create_Task, Initialize): Ada 2012 pragma CPU | |
5680 | uses CPU numbers starting 1, while VxWorks uses CPU numbers starting | |
5681 | from 0, so we need to adjust. | |
5682 | ||
5683 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
5684 | ||
5685 | * prj-proc.adb, prj-ext.adb, prj-ext.ads, makeutl.adb, prj-tree.adb, | |
5686 | prj-tree.ads, gnatcmd.adb, clean.adb (External_References): new type. | |
5687 | ||
c4d67e2d AC |
5688 | 2011-08-03 Yannick Moy <moy@adacore.com> |
5689 | ||
5690 | * sem_ch6.adb (New_Overloaded_Entity): only issue error for SPARK | |
5691 | restriction on overloaded entity if the entity is not an operator. | |
5692 | ||
5693 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
5694 | ||
5695 | * sem_ch7.adb, sem_res.adb, sem_attr.adb, restrict.adb, | |
5696 | restrict.ads: Rename remaining Check_Formal_Restriction* into | |
5697 | Check_SPARK_Restriction*. | |
5698 | ||
5699 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
5700 | ||
5701 | * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, | |
5702 | prj-nmsc.ads, prj-err.adb (Project_Data): now discriminated on its | |
5703 | qualifier. | |
5704 | (Project_Empty): removed | |
5705 | (Empty_Project): new parameter Qualifier | |
5706 | This is used to have fields specific to aggregate projects, cleaner | |
5707 | New field to store the list of aggregated projects. | |
5708 | (Check_Aggregate_Project): removed | |
5709 | (Process_Aggregated_Projects, Free): new subprograms. | |
5710 | ||
3f5a8fee AC |
5711 | 2011-08-03 Olivier Hainque <hainque@adacore.com> |
5712 | ||
5713 | * tracebak.c (STOP_FRAME ppc AIX): Stop at null return address as well. | |
5714 | ||
5715 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5716 | ||
5717 | * sem_ch8.adb (Analyze_Object_Renaming): if the renamed object is an | |
5718 | explicit dereference of an unconstrained type, create a constrained | |
5719 | subtype for it, as is done for function calls that return an | |
5720 | unconstrained type. | |
5721 | ||
5722 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
5723 | ||
5724 | * g-pehage.adb (Finalize): Avoid possible double-free. | |
5725 | ||
5726 | 2011-08-03 Steve Baird <baird@adacore.com> | |
5727 | ||
5728 | * exp_attr.adb (Expand_N_Attribute_Reference): Don't expand | |
5729 | Elab_Spec/Body attrs in CodePeer_Mode. | |
5730 | ||
5731 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
5732 | ||
5733 | * exp_aggr.adb (Flatten): Convert to positional form aggregates whose | |
5734 | low bound is not known at compile time but they have no others choice. | |
5735 | Done because in this case the bounds can be obtained directly from the | |
5736 | aggregate. | |
5737 | ||
5738 | 2011-08-03 Ed Falis <falis@adacore.com> | |
5739 | ||
5740 | * s-tasinf-vxworks.ads: Update comment to reflect 0 indexing of CPUs | |
5741 | on VxWorks SMP. Remove unusable constant ANY_CPU. | |
5742 | ||
a96ca600 EB |
5743 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
5744 | ||
5745 | * gnatcmd.adb, make.adb, prj-part.adb, prj-part.ads, prj-makr.adb, | |
5746 | clean.adb, prj-nmsc.adb, prj-pars.adb, prj-conf.adb, prj-env.adb, | |
5747 | prj-env.ads (Prj.Env.Initialize_Default_Project_Path, | |
5748 | Prj.Env.Initialize_Empty): new subprograms | |
5749 | (Get_Env, Find_Project): remove parameter Target_Name. | |
5750 | ||
3e582869 AC |
5751 | 2011-08-03 Gary Dismukes <dismukes@adacore.com> |
5752 | ||
5753 | * sem_ch3.adb (Build_Derived_Record_Type): Test the Derive_Subps formal | |
5754 | as a condition for the delayed call to Derived_Subprograms done for the | |
5755 | case of the rewriting of a derived type that constrains the | |
5756 | discriminants of its parent type. | |
5757 | Avoids redundant subprogram derivations for private subtype derivations. | |
5758 | ||
5759 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
5760 | ||
5761 | * exp_aggr.adb (Init_Hidden_Discriminants): New subprogram of | |
5762 | Build_Record_Aggr_Code. | |
5763 | (Build_Record_Aggr_Code): Add missing support to initialize hidden | |
5764 | discriminants in extension aggregates. | |
5765 | ||
5766 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
5767 | ||
5768 | * prj-pp.adb (Print): also output project qualifiers, since in | |
5769 | particular "aggregate" is mandatory in an aggregate project. | |
5770 | ||
5771 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
5772 | ||
5773 | * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb: | |
5774 | (Debug_Output): new function. | |
5775 | ||
56e94186 AC |
5776 | 2011-08-03 Eric Botcazou <ebotcazou@adacore.com> |
5777 | ||
5778 | * gnat_ugn.texi: Document -Wstack-usage. | |
5779 | * gcc-interface/misc.c (enumerate_modes): Add guard for ghost FP modes. | |
5780 | ||
5781 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
5782 | ||
5783 | * sem_prag.adb Issue an error (not a warning) when a C++ type does not | |
5784 | have keyword LIMITED. | |
5785 | ||
5786 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
5787 | ||
5788 | * alfa.adb, alfa.ads, alfa_test.adb: New files. | |
5789 | * ali.adb (Known_ALI_Lines): add 'C' lines (SCO) and 'F' lines (ALFA) | |
5790 | (Scan_ALI): do not issue a fatal error if parsing known lines after Xref | |
5791 | section (does not happen in compiler, only if code directly calls | |
5792 | Scan_ALI). | |
5793 | * get_alfa.adb, get_alfa.ads: New files. | |
5794 | * lib-writ.adb, lib-writ.ads (Write_ALI): output ALFA information if | |
5795 | needed. | |
5796 | * lib-xref-alfa.adb: New file. | |
5797 | * lib-xref.adb, lib-xref.ads | |
5798 | (Xref_Entry): redefine information needed in cross-references for ALFA. | |
5799 | Push ALFA treatments in separated local package. | |
5800 | (Enclosing_Subpragram_Or_Package): treat specially subprogram | |
5801 | identifiers. Return entity of package body instead of spec. Return | |
5802 | Empty for a scope with no location. | |
5803 | (Generate_Reference): adapt to new components for ALFA information. | |
5804 | Remove the need for D references on definitions. | |
5805 | (Is_Local_Reference): moved to ALFA local package | |
5806 | (Output_References): extract subfunction as Extract_Source_Name | |
5807 | (Output_Local_References): remove procedure, replaced by filtering of | |
5808 | cross-references in package ALFA and printing in Put_ALFA. | |
5809 | (Write_Entity_Name): remove procedure | |
5810 | * lib.adb, lib.ads (Extract_Source_Name): extract here function to | |
5811 | print exact name of entity as it appears in source file | |
5812 | (Unit_Ref_Table): make type public for use in Lib.Xref.ALFA | |
5813 | * put_alfa.adb, put_alfa.ads: New files. | |
5814 | * xref_lib.adb (Search_Xref): protect read of cross-references against | |
5815 | reading other sections of the ALI file, in gnatxref | |
5816 | (Search): protect read of cross-references against reading other | |
5817 | sections of the ALI file, in gnatfind. | |
5818 | * gcc-interface/Make-lang.in: Update dependencies. | |
5819 | ||
5820 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
5821 | ||
5822 | * sem_ch3.adb: Minor reformatting. | |
5823 | ||
5824 | 2011-08-03 Jose Ruiz <ruiz@adacore.com> | |
5825 | ||
5826 | * s-inmaop-vxworks.adb (Setup_Interrupt_Mask): Do nothing instead of | |
5827 | raising an exception. | |
5828 | ||
5829 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5830 | ||
5831 | * sem_res.adb (Set_String_Literal_Subtype): if index type is an integer | |
5832 | type, always use 1 as the lower bound or string, even if lower bound of | |
5833 | context is not static, to handle properly null strings in a non-static | |
5834 | context. | |
5835 | ||
5836 | 2011-08-03 Bob Duff <duff@adacore.com> | |
5837 | ||
5838 | * sem_prag.adb (Resolve_Aggregate): An array aggregate with 'others' is | |
5839 | always legal on the right-hand side of an assignment statement; there | |
5840 | is always an applicable index constraint in this case. Therefore, the | |
5841 | check for Pkind = N_Assignment_Statement is now unconditional -- it | |
5842 | doesn't depend on whether Is_Constrained (Typ). | |
5843 | ||
4317e442 AC |
5844 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
5845 | ||
5846 | * exp_ch5.adb, sem_prag.adb, exp_ch4.adb: Minor reformatting. | |
5847 | ||
5848 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5849 | ||
5850 | * sem_ch3.adb (Build_Itype_Reference): do not create an itype reference | |
5851 | for an itype created within a generic unit. | |
5852 | ||
5853 | 2011-08-03 Eric Botcazou <ebotcazou@adacore.com> | |
5854 | ||
5855 | * gnat_ugn.texi (Switches for gcc): Make it clearer that -fno-inline | |
5856 | suppresses all inlining. | |
5857 | ||
53f29d4f AC |
5858 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
5859 | ||
5860 | * sem_ch3.adb, sem_res.adb, exp_ch13.adb, exp_disp.adb, | |
5861 | exp_aggr.adb: Minor reformatting. | |
5862 | ||
5863 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
5864 | ||
5865 | * exp_ch5.adb (Expand_N_Assignment_Statement): Do not force inlining of | |
5866 | tagged assignment when discriminant checks are suppressed. This is | |
5867 | useless and extremely costly in terms of static stack usage. | |
5868 | ||
5869 | 2011-08-03 Bob Duff <duff@adacore.com> | |
5870 | ||
5871 | * sem_prag.adb (Get_Base_Subprogram): Do not follow Alias for instances | |
5872 | of generics, because this leads to the wrong entity in the wrong scope, | |
5873 | causing (e.g.) pragma Export_Procedure to get an error if the entity is | |
5874 | an instance. | |
5875 | (Process_Interface_Name): Follow Alias for instances of generics, to | |
5876 | correct for the above change. | |
5877 | ||
5878 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5879 | ||
5880 | * exp_ch4.adb (Expand_N_Selected_Component): If the discriminant value | |
5881 | is an integer literal it is always safe to replace the reference. In | |
5882 | addition, if the reference appears in the generated code for an object | |
5883 | declaration it is necessary to copy because otherwise the reference | |
5884 | might be to the uninitilized value of the discriminant of the object | |
5885 | itself. | |
5886 | ||
5887 | 2011-08-03 Pascal Obry <obry@adacore.com> | |
5888 | ||
5889 | * adaint.c (__gnat_is_executable_file_attr): Fix Win32 circuitry when no | |
5890 | ACL used, in this case we want to check for ending .exe, not .exe | |
5891 | anywhere in the path. | |
5892 | ||
5893 | 2011-08-03 Sergey Rybin <rybin@adacore.com> | |
5894 | ||
5895 | * tree_io.ads (ASIS_Version_Number): Update because of the changes in | |
5896 | the tree structure (semantic decoration of references to record | |
5897 | discriminants). | |
5898 | ||
c0b11850 AC |
5899 | 2011-08-03 Gary Dismukes <dismukes@adacore.com> |
5900 | ||
5901 | * sem_aggr.adb (Analyze_Array_Aggregate): When checking the discrete | |
5902 | choices of a named array aggregate, bail out when any choices are | |
5903 | marked as Errors_Posted. | |
5904 | ||
5905 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5906 | ||
5907 | * exp_ch13.adb (Expand_N_Freeze_Entity): cleanup determination of scope | |
5908 | in which entity is frozen, to handle properly loop variables in | |
5909 | iterators. | |
5910 | ||
5911 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5912 | ||
5913 | * sem_res.adb (Set_String_Literal_Subtype): if the lower bound of the | |
5914 | subtype is not static, compute the upper bound using attributes, to | |
5915 | handle properly index types that are not integer types. | |
5916 | ||
5917 | 2011-08-03 Bob Duff <duff@adacore.com> | |
5918 | ||
5919 | * gnat_rm.texi, gnat_ugn.texi: Fix some dangling URLs. | |
5920 | Update copyright notice. | |
5921 | ||
5922 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5923 | ||
5924 | * sem_ch3.adb (Build_Discriminant_Constraints): Only use | |
5925 | Original_Discriminant if within an instance. | |
5926 | * sem_ch4.adb (Analyze_Selected_Component): Ditto. | |
5927 | ||
5928 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
5929 | ||
5930 | * einfo.ads: Minor reformatting. | |
5931 | ||
5932 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5933 | ||
5934 | * exp_disp.adb (Check_Premature_Freezing): diagnose the presence of a | |
5935 | composite type with an unfrozen subcomponent, in the profile of a | |
5936 | primitive operation. | |
5937 | ||
5c34e9cd AC |
5938 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
5939 | ||
5940 | * sem_util.ads, exp_aggr.adb, exp_ch3.adb: Minor reformatting. | |
5941 | ||
5942 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5943 | ||
5944 | * sem_ch3.adb (Analyze_Object_Declaration): if a constant object of an | |
5945 | unconstrained type with discriminants is initialized with an aggregate, | |
5946 | use the constrained subtype of the aggregate as the type of the object, | |
5947 | because it is immutable, and this allows the back-end to generate no | |
5948 | code for the object declaration. | |
5949 | ||
abcd9db2 AC |
5950 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
5951 | ||
5952 | * exp_ch4.adb (Optimize_Length_Check): Fix bad handling of case where | |
5953 | comparison operand is variable, and turns out to be zero or negative. | |
5954 | ||
5955 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
5956 | ||
5957 | * exp_intr.adb | |
5958 | (Expand_Dispatching_Constructor_Call): Disable expansion of | |
5959 | code required for native targets. Done to avoid generating | |
5960 | references to unavailable runtime entities in VM targets. | |
5961 | * exp_ch3.adb | |
5962 | (Expand_N_Object_Declaration): Add missing support to handle | |
5963 | the explicit initialization of class-wide interface objects. | |
5964 | Fix documentation. | |
5965 | ||
5966 | 2011-08-03 Matthew Heaney <heaney@adacore.com> | |
5967 | ||
5968 | * a-cobove.adb (Merge): Move source onto target, instead of using Assign | |
5969 | ||
5970 | 2011-08-03 Matthew Heaney <heaney@adacore.com> | |
5971 | ||
5972 | * a-cbdlli.adb (Splice): move source items from first to last | |
5973 | ||
5974 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
5975 | ||
5976 | * sem_util.ads: comment added. | |
5977 | ||
5978 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
5979 | ||
5980 | * exp_aggr.adb | |
5981 | (Expand_Record_Aggregate): In VM targets disable the expansion into | |
5982 | assignments of aggregates whose type is not known at compile time. | |
5983 | ||
b474d6c3 ES |
5984 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> |
5985 | ||
5986 | * exp_ch9.adb (Build_Renamed_Formal_Declaration): common procedure for | |
5987 | protected entries and task entries, to build the proper renaming | |
5988 | declaration for entry formals, used in debugging. | |
5989 | * exp_ch2.adb (Expand_Entry_Parameter): handle task and entry | |
5990 | parameters in the same way. | |
5991 | ||
0580d807 AC |
5992 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
5993 | ||
5994 | * a-direct.adb, sinfo.ads, exp_ch9.adb, scng.adb, sem_util.adb, | |
5995 | sem_util.ads, restrict.ads, par-prag.adb: Minor reformatting and/or | |
5996 | code reorganization. | |
5997 | ||
5998 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5999 | ||
6000 | * debug.adb: Debug flag d.P to suppress length comparison optimization | |
6001 | * exp_ch4.adb (Optimize_Length_Comparison): New routine to optimize | |
6002 | comparison of Length by comparing First/Last instead. | |
6003 | ||
6004 | 2011-08-02 Matthew Heaney <heaney@adacore.com> | |
6005 | ||
6006 | * a-cobove.ads: Code clean up. | |
6007 | ||
b191a125 AC |
6008 | 2011-08-02 Vincent Celier <celier@adacore.com> |
6009 | ||
6010 | * adaint.c (file_names_case_sensitive_cache): New static int. | |
6011 | (__gnat_get_file_names_case_sensitive): Cache the return value in | |
6012 | file_names_case_sensitive_cache at the first invocation, to avoid | |
6013 | multiple calls to getenv. | |
6014 | ||
6015 | 2011-08-02 Bob Duff <duff@adacore.com> | |
6016 | ||
6017 | * sem_ch12.adb (Validate_Derived_Type_Instance): Implement AI05-0218-1. | |
6018 | ||
316a0661 AC |
6019 | 2011-08-02 Yannick Moy <moy@adacore.com> |
6020 | ||
6021 | * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_prag.adb, sem.ads, | |
6022 | sem_util.adb, sem_util.ads, sem_res.adb, sem_ch2.adb, sem_ch4.adb, | |
6023 | sem_ch6.adb, sem_ch11.adb: Add semantic flag In_Pre_Post_Expression to | |
6024 | indicate that we are in a precondition or postcondition. This is used in | |
6025 | Mark_Non_ALFA_Subprogram (renaming of Mark_Non_ALFA_Subprogram_Body) to | |
6026 | decide whether to flag the spec or body of the current subprogram as | |
6027 | not in ALFA. | |
6028 | ||
6029 | 2011-08-02 Fabien Chouteau <chouteau@adacore.com> | |
6030 | ||
6031 | * impunit.adb: Add Ada.Execution_Time.Interrupts in the Ada2012 package | |
6032 | list. | |
6033 | * a-extiin.ads: New file. | |
6034 | ||
6035 | 2011-08-02 Bob Duff <duff@adacore.com> | |
6036 | ||
6037 | * a-direct.adb (Rename): Implement AI05-0231-1. In particular, Rename | |
6038 | now raises Name_Error instead of Use_Error in certain cases. The other | |
6039 | parts of this AI were already implemented properly. | |
6040 | ||
f9adb9d4 AC |
6041 | 2011-08-02 Vincent Celier <celier@adacore.com> |
6042 | ||
6043 | * link.c: Only import "auto-host.h" when building the gnattools. | |
6044 | ||
6045 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6046 | ||
6047 | * sem_util.adb: Inter-unit inlining does not work for a subprogram | |
6048 | which calls a local subprogram, so extract subprogram | |
6049 | from Mark_Non_ALFA_Subprogram_Body. | |
6050 | ||
6051 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6052 | ||
6053 | * exp_ch9.adb | |
6054 | (Extract_Dispatching_Call): If the type of the dispatching object is an | |
6055 | access type then return an explicit dereference in the Object out-mode | |
6056 | parameter. | |
6057 | ||
6058 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> | |
6059 | ||
6060 | * sem_ch3.adb (Analyze_Subtype_Declaration): Generate range | |
6061 | compatibility checks for all indexes of an array subtype, not just the | |
6062 | first. Reset Has_Dynamic_Range_Check on the subtype before each | |
6063 | potential check to ensure that Insert_Range_Checks will not elide any | |
6064 | of the dynamic checks. | |
6065 | ||
6066 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6067 | ||
6068 | * par-prag.ad (Process_Restrictions_Or_Restriction_Warnings): recognize | |
6069 | SPARK restriction at parsing time. | |
6070 | * scng.adb (Scan): Generate a token Tok_SPARK_Hide for a SPARK HIDE | |
6071 | directive only if the SPARK restriction is set for this unit. | |
6072 | ||
83f33150 YM |
6073 | 2011-08-02 Yannick Moy <moy@adacore.com> |
6074 | ||
6075 | * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb, sem_util.ads, | |
6076 | sem_res.adb, sem_ch2.adb, sem_ch4.adb, sem_ch6.adb, | |
6077 | sem_ch11.adb: Protect call to Current_Subprogram which might be costly | |
6078 | when repeated. Rename Current_Subprogram_Is_Not_In_ALFA into | |
6079 | Mark_Non_ALFA_Subprogram_Body. | |
6080 | Split body of Mark_Non_ALFA_Subprogram_Body to get body small and | |
6081 | inlined. | |
6082 | ||
7b98672f YM |
6083 | 2011-08-02 Yannick Moy <moy@adacore.com> |
6084 | ||
6085 | * sem_res.adb: Protect calls to Matching_Static_Array_Bounds which | |
6086 | might be costly. | |
6087 | ||
052e0603 AC |
6088 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
6089 | ||
6090 | * exp_ch9.adb, exp_sel.adb, restrict.ads, exp_disp.adb, erroutc.ads, | |
6091 | exp_ch3.adb: Minor reformatting. | |
6092 | ||
6093 | 2011-08-02 Emmanuel Briot <briot@adacore.com> | |
6094 | ||
6095 | * adaint.c (__gnat_locate_exec_on_path): only returns executable | |
6096 | files, not any regular file. | |
6097 | (__gnat_locate_file_with_predicate): new subprogram. | |
6098 | ||
6099 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6100 | ||
6101 | * sinfo.adb, sinfo.ads: Restrict the use of flags | |
6102 | Has_Dynamic_Length_Check and Has_Dynamic_Range_Check to expression | |
6103 | nodes, plus N_Subtype_Declaration for the 2nd one. | |
6104 | ||
4fbad0ba AC |
6105 | 2011-08-02 Sergey Rybin <rybin@adacore.com> |
6106 | ||
6107 | * gnat_rm.texi: Ramification of pragma Eliminate documentation | |
6108 | - fix bugs in the description of Source_Trace; | |
6109 | - get rid of UNIT_NAME; | |
6110 | ||
052e0603 AC |
6111 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
6112 | ||
6113 | * exp_ch9.adb | |
6114 | (Build_Dispatching_Requeue): Adding support for VM targets | |
6115 | since we cannot directly reference the Tag entity. | |
6116 | * exp_sel.adb (Build_K): Adding support for VM targets. | |
6117 | (Build_S_Assignment): Adding support for VM targets. | |
6118 | * exp_disp.adb | |
6119 | (Default_Prim_Op_Position): In VM targets do not restrict availability | |
6120 | of predefined interface primitives to compiling in Ada 2005 mode. | |
6121 | (Is_Predefined_Interface_Primitive): In VM targets this service is not | |
6122 | restricted to compiling in Ada 2005 mode. | |
6123 | (Make_VM_TSD): Generate code that declares and initializes the OSD | |
6124 | record. Needed to support dispatching calls through synchronized | |
6125 | interfaces. | |
6126 | * exp_ch3.adb | |
6127 | (Make_Predefined_Primitive_Specs): Enable generation of predefined | |
6128 | primitives associated with synchronized interfaces. | |
6129 | (Make_Predefined_Primitive_Bodies): Enable generation of predefined | |
6130 | primitives associated with synchronized interfaces. | |
6131 | ||
6132 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6133 | ||
6134 | * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of | |
6135 | statements hidden in SPARK if preceded by the HIDE directive | |
6136 | (Parse_Exception_Handlers): mark each exception handler in a sequence of | |
6137 | exception handlers as hidden in SPARK if preceded by the HIDE directive | |
6138 | * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK | |
6139 | if starting with the HIDE directive | |
6140 | * par-ch7.adb (P_Package): mark a package body hidden in SPARK if | |
6141 | starting with the HIDE directive; mark the declarations in a private | |
6142 | part as hidden in SPARK if the private part starts with the HIDE | |
6143 | directive | |
6144 | * restrict.adb, restrict.ads | |
6145 | (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK | |
6146 | (Is_In_Hidden_Part_In_SPARK): new function which returns whether its | |
6147 | argument node belongs to a part which is hidden in SPARK | |
6148 | (Check_SPARK_Restriction): do not issue violations on nodes in hidden | |
6149 | parts in SPARK; protect the possibly costly call to | |
6150 | Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on | |
6151 | * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration | |
6152 | * scng.adb (Accumulate_Token_Checksum_GNAT_6_3, | |
6153 | Accumulate_Token_Checksum_GNAT_5_03): add case for new token | |
6154 | Tok_SPARK_Hide. | |
6155 | (Scan): recognize special comment starting with '#' and followed by | |
6156 | SPARK keyword "hide" as a HIDE directive. | |
6157 | ||
6158 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6159 | ||
6160 | * types.ads, erroutc.ads: Minor reformatting. | |
6161 | ||
6162 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
6163 | ||
6164 | * link.c: Add response file support for cross platforms. | |
6165 | ||
6166 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6167 | ||
6168 | * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression | |
6169 | in an association, set parent field of copy before partial analysis. | |
6170 | * sem_res.adb (Resolve_Slice): create reference to itype only when | |
6171 | expansion is enabled. | |
6172 | ||
6173 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6174 | ||
6175 | * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set | |
6176 | for new flag denoting which subprogram bodies are in ALFA | |
6177 | * restrict.adb, sem_ch7.adb: Update comment | |
6178 | * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, | |
6179 | sem_ch9.adb, sem_res.adb: Add calls to | |
6180 | Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs. | |
6181 | * sem_ch6.adb (Analyze_Function_Return): add calls to | |
6182 | Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the | |
6183 | middle of the body, and extended return. | |
6184 | (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument | |
6185 | False when missing return. | |
6186 | (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA | |
6187 | to True for subprograms whose spec is in ALFA. Remove later on the flag | |
6188 | on the entity used for a subprogram body when there exists a separate | |
6189 | declaration. | |
6190 | * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA): | |
6191 | if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to | |
6192 | False, otherwise do nothing. | |
6193 | ||
6194 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6195 | ||
6196 | * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting. | |
6197 | ||
6198 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6199 | ||
6200 | * sem_ch4.ads: minor formatting. | |
6201 | ||
6202 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6203 | ||
6204 | * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, | |
6205 | debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb, | |
6206 | errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb, | |
6207 | restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb, | |
6208 | opt.ads: cleanup of SPARK mode | |
6209 | ||
6210 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6211 | ||
6212 | * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard | |
6213 | types. | |
6214 | * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities | |
6215 | (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA | |
6216 | * sem_ch3.adb | |
6217 | (Analyze_Object_Declaration): set Is_In_ALFA flag for objects | |
6218 | (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes | |
6219 | (Constrain_Integer): set Is_In_ALFA flag for integer subtypes | |
6220 | (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration | |
6221 | types. | |
6222 | (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with | |
6223 | non-static range. | |
6224 | * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for | |
6225 | functions whose return type is not in ALFA. | |
6226 | (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram | |
6227 | specifications. | |
6228 | (Process_Formals): unset Is_In_ALFA flag for subprograms if a | |
6229 | parameter's type is not in ALFA. | |
6230 | * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard | |
6231 | types are in ALFA. | |
6232 | ||
6233 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6234 | ||
6235 | * sem_ch6 (Analyze_Expression_Function): treat the function as | |
6236 | Inline_Always, and introduce a subprogram declaration for it when it is | |
6237 | not a completion. | |
6238 | * inline.adb (Add_Inlined_Body): recognize bodies that come from | |
6239 | expression functions, so that the back-end can determine whether they | |
6240 | can in fact be inlined. | |
6241 | * sem_util.adb (Is_Expression_Function): predicate to determine whether | |
6242 | a function body comes from an expression function. | |
6243 | ||
6244 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> | |
6245 | ||
6246 | * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming | |
6247 | null exclusions to test Can_Never_Be_Null on the anonymous access types | |
6248 | of the formals rather than testing the formals themselves. Exclude this | |
6249 | check in cases where the Old_Formal is marked as a controlling formal, | |
6250 | to avoid issuing spurious errors for bodies completing dispatching | |
6251 | operations (due to the flag not getting set on controlling access | |
6252 | formals in body specs). | |
6253 | (Find_Corresponding_Spec): When checking full and subtype conformance of | |
6254 | subprogram bodies in instances, pass Designated and E in that order, for | |
6255 | consistency with the expected order of the formals (New_Id followed by | |
6256 | Old_Id). | |
6257 | ||
6258 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6259 | ||
6260 | * sem_ch8.adb: Minor reformatting. | |
6261 | ||
6262 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6263 | ||
6264 | * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure | |
6265 | Check_Class_Wide_Actual, to implement AI05-0071, on defaulted | |
6266 | primitive operations of class-wide actuals. | |
6267 | ||
6268 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6269 | ||
6270 | * exp_atag.ads, exp_atag.adb | |
6271 | (Build_Common_Dispatching_Select_Statements): Remove argument Loc | |
6272 | since its value is implicitly passed in argument Typ. | |
6273 | * exp_disp.adb (Make_Disp_Conditional_Select_Body, | |
6274 | Make_Disp_Timed_Select_Body): Remove Loc in calls to routine | |
6275 | Build_Common_Dispatching_Select_Statements. | |
6276 | ||
6277 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6278 | ||
6279 | * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads, | |
6280 | exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments. | |
6281 | Minor reformatting. | |
6282 | ||
6283 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6284 | ||
6285 | * sem_res.adb: Minor reformatting. | |
6286 | * sem_prag.adb: Minor reformatting. | |
6287 | ||
6288 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6289 | ||
6290 | * exp_atag.adb, exp_atags.ads | |
6291 | (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr | |
6292 | by the tagged type Entity. Required to use this routine in the VM | |
6293 | targets since we do not have available the Tag entity in the VM | |
6294 | platforms. | |
6295 | * exp_ch6.adb | |
6296 | (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package | |
6297 | Ada.Tags has not been previously loaded. | |
6298 | * exp_ch7.adb | |
6299 | (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke | |
6300 | Build_VM_TSDs if package Ada.Tags has not been previously loaded. | |
6301 | * sem_aux.adb | |
6302 | (Enclosing_Dynamic_Scope): Add missing support to handle the full | |
6303 | view of enclosing scopes. Required to handle enclosing scopes that | |
6304 | are synchronized types whose full view is a task type. | |
6305 | * exp_disp.adb | |
6306 | (Build_VM_TSDs): Minor code improvement to avoid generating and | |
6307 | analyzing lists with empty nodes. | |
6308 | (Make_Disp_Asynchronous_Select_Body): Add support for VM targets. | |
6309 | (Make_Disp_Conditional_Select_Body): Add support for VM targets. | |
6310 | (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets. | |
6311 | (Make_Disp_Timed_Select_Body): Add support for VM targets. | |
6312 | (Make_Select_Specific_Data_Table): Add support for VM targets. | |
6313 | (Make_VM_TSD): Generate code to initialize the SSD structure of | |
6314 | the TSD. | |
6315 | ||
6316 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6317 | ||
6318 | * lib-writ.adb (Write_ALI): when ALFA mode is set, write local | |
6319 | cross-references section in ALI. | |
6320 | * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub | |
6321 | (enclosing subprogram), Slc (location of Sub) and Sun (unit number of | |
6322 | Sub). | |
6323 | (Enclosing_Subprogram_Or_Package): new function to return the enclosing | |
6324 | subprogram or package entity of a node | |
6325 | (Is_Local_Reference_Type): new function returns True for references | |
6326 | selected in local cross-references. | |
6327 | (Lt): function extracted from Lt in Output_References | |
6328 | (Write_Entity_Name): function extracted from Output_References | |
6329 | (Generate_Definition): generate reference with type 'D' for definition | |
6330 | of objects (object declaration and parameter specification), with | |
6331 | appropriate locations and units, for use in local cross-references. | |
6332 | (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created | |
6333 | references of type 'I' for initialization in object definition. | |
6334 | (Output_References): move part of function Lt and procedure | |
6335 | Write_Entity_Name outside of the body. Ignore references of types 'D' | |
6336 | and 'I' introduced for local cross-references. | |
6337 | (Output_Local_References): new procedure to output the local | |
6338 | cross-references sections. | |
6339 | (Lref_Entity_Status): new array defining whether an entity is a local | |
6340 | * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference | |
6341 | with 'I' type when initialization expression is present. | |
6342 | * get_scos.adb, get_scos.ads: Correct comments and typos | |
6343 | ||
6344 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6345 | ||
6346 | * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in | |
6347 | the JVM target. | |
6348 | * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in | |
6349 | the JVM target. | |
6350 | * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no | |
6351 | TSD support. | |
6352 | ||
6353 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
6354 | ||
6355 | * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line | |
6356 | (No_Space_Img): New function | |
6357 | (Find_Excluded_Sources): When reading from a file, record the file name | |
6358 | and the line number for each excluded source. | |
6359 | (Mark_Excluded_Sources): When reporting an error, if the excluded | |
6360 | sources were read from a file, include file name and line number in | |
6361 | the error message. | |
6362 | ||
6363 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6364 | ||
6365 | * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2). | |
6366 | ||
6367 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6368 | ||
6369 | * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting | |
6370 | ||
6371 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6372 | ||
6373 | * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the | |
6374 | generation of TSDs to the DOTNET compiler. | |
6375 | * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the | |
6376 | generation of TSDs to the DOTNET compiler. | |
6377 | ||
6378 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6379 | ||
6380 | * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data | |
6381 | record of all the tagged types declared inside library level package | |
6382 | declarations, library level package bodies or library level subprograms. | |
6383 | * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD | |
6384 | associated with a given tagged type. | |
6385 | (Build_VM_TSDs): New subprogram. | |
6386 | * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main | |
6387 | compilation units that are subprograms. | |
6388 | * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main | |
6389 | compilation units that are package bodies. | |
6390 | (Expand_N_Package_Declaration): Generate TSDs of the main compilation | |
6391 | units that are a package declaration or a package instantiation. | |
6392 | * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code | |
6393 | reorganization to improve the error generated by the frontend when the | |
6394 | function Ada.Tags.Secondary_Tag is not available. | |
6395 | * rtsfind.ads (RE_Register_TSD): New runtime entity. | |
6396 | * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup. | |
6397 | ||
6398 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6399 | ||
6400 | * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode. | |
6401 | ||
6402 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6403 | ||
6404 | * s-imenne.ads: Minor reformatting. | |
6405 | ||
6406 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6407 | ||
6408 | * a-stunau.ads: Add pragma Suppress_Initialization for Big_String | |
6409 | * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed | |
6410 | * s-stalib.ads: Add pragma Suppress_Initialization for Big_String | |
6411 | ||
6412 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6413 | ||
6414 | * einfo.ads (Materialize_Entity): Document this is only for renamings | |
6415 | * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate | |
6416 | required debug information in the case where we transform the object | |
6417 | declaration into a renaming declaration. | |
6418 | * exp_ch4.adb (Expand_Concatenate): Generate debug info for result | |
6419 | object | |
6420 | * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of | |
6421 | Materialize_Entity. | |
6422 | ||
6423 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6424 | ||
6425 | * einfo.ads, einfo.adb (Suppress_Initialization): Replaces | |
6426 | Suppress_Init_Procs. | |
6427 | * exp_ch3.adb, exp_disp.adb, freeze.adb: Use | |
6428 | Suppress_Initialization/Initialization_Suppressed. | |
6429 | * gnat_rm.texi: New documentation for pragma Suppress_Initialization | |
6430 | * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function | |
6431 | * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed | |
6432 | * sem_prag.adb: New processing for pragma Suppress_Initialization. | |
6433 | ||
6434 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6435 | ||
6436 | * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb: | |
6437 | Minor reformatting. | |
6438 | ||
6439 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6440 | ||
6441 | * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can | |
6442 | only have inheritable classwide pre/postconditions. | |
6443 | ||
6444 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6445 | ||
6446 | * a-tags.ads, a-tags.adb (Check_TSD): New subprogram. | |
6447 | * rtsfind.ads (RE_Check_TSD): New runtime entity. | |
6448 | * exp_disp.adb (Make_DT): Generate call to the new runtime routine that | |
6449 | checks if the external tag of a type is the same as the external tag | |
6450 | of some other declaration. | |
6451 | ||
6452 | 2011-08-02 Thomas Quinot <quinot@adacore.com> | |
6453 | ||
6454 | * s-taskin.ads: Minor reformatting. | |
6455 | ||
6456 | 2011-08-02 Emmanuel Briot <briot@adacore.com> | |
6457 | ||
6458 | * g-comlin.adb (Display_Help): swap the order in which it prints the | |
6459 | short help and the general usage. | |
6460 | ||
6461 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6462 | ||
6463 | * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly | |
6464 | the aspect declarations and attach them to the generic copy for | |
6465 | subsequent analysis. | |
6466 | (Analyze_Subprogram_Instantiation): copy explicitly the aspect | |
6467 | declarations of the generic tree to the new subprogram declarations. | |
6468 | * sem_attr.adb (Check_Precondition_Postcondition): recognize | |
6469 | conditions that apply to a subprogram instance. | |
6470 | ||
6471 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6472 | ||
6473 | * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project]. | |
6474 | ||
6475 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6476 | ||
6477 | * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged | |
6478 | private type with a tagged full view is not derived in the immediate | |
6479 | scope of the partial view, (RM 7.3 (7)) use the scope of the base type. | |
6480 | ||
6481 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6482 | ||
6483 | * exp_ch4.adb: Minor reformatting. | |
6484 | ||
6485 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6486 | ||
6487 | * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an | |
6488 | Ada2012 iterator, the loop will be rewritten during expansion into a | |
6489 | while loop with a cursor and an element declaration. Do not analyze the | |
6490 | body in this case, because if the container is for indefinite types the | |
6491 | actual subtype of the elements will only be determined when the cursor | |
6492 | declaration is analyzed. | |
6493 | ||
6494 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
6495 | ||
6496 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore | |
6497 | size/alignment related attributes in CodePeer_Mode. | |
6498 | ||
6499 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> | |
6500 | ||
6501 | * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to | |
6502 | Prepend_Element, since this can result in the operation getting the | |
6503 | wrong slot in the full type's dispatch table if the full type has | |
6504 | inherited operations. The incomplete type's operation will get added | |
6505 | to the proper position in the full type's primitives | |
6506 | list later in Sem_Disp.Check_Operation_From_Incomplete_Type. | |
6507 | (Process_Incomplete_Dependents): Add Is_Primitive test when checking for | |
6508 | dispatching operations, since there are cases where nonprimitive | |
6509 | subprograms can get added to the list of incomplete dependents (such | |
6510 | as subprograms in nested packages). | |
6511 | * sem_ch6.adb (Process_Formals): First, remove test for being in a | |
6512 | private part when determining whether to add a primitive with a | |
6513 | parameter of a tagged incomplete type to the Private_Dependents list. | |
6514 | Such primitives can also occur in the visible part, and should not have | |
6515 | been excluded from being private dependents. | |
6516 | * sem_ch7.adb (Uninstall_Declarations): When checking the rule of | |
6517 | RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents | |
6518 | list of a Taft-amendment incomplete type is a primitive before issuing | |
6519 | an error that the full type must appear in the same unit. There are | |
6520 | cases where nonprimitives can be in the list (such as subprograms in | |
6521 | nested packages). | |
6522 | * sem_disp.adb (Derives_From): Use correct condition for checking that | |
6523 | a formal's type is derived from the type of the corresponding formal in | |
6524 | the parent subprogram (the condition was completely wrong). Add | |
6525 | checking that was missing for controlling result types being derived | |
6526 | from the result type of the parent operation. | |
6527 | ||
6528 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6529 | ||
6530 | * errout.adb (First_Node): minor renaming | |
6531 | * restrict.adb (Check_Formal_Restriction): put restriction warning on | |
6532 | first node. | |
6533 | ||
6534 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6535 | ||
6536 | * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator | |
6537 | before accessing operands. | |
6538 | * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to | |
6539 | decide whether an initialization expression respects SPARK rules, as | |
6540 | the plain node is the expanded one. This allows for more valid warnings | |
6541 | to be issued. | |
6542 | * gnat_rm.texi: Minor update. | |
6543 | ||
6544 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
6545 | ||
6546 | * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert | |
6547 | previous change. | |
6548 | ||
6549 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6550 | ||
6551 | * sem_ch3.adb, sem_ch4.adb: Minor reformatting. | |
6552 | ||
6553 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
6554 | ||
6555 | * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original | |
6556 | loop statements and the element renaming declaration with a block when | |
6557 | the element type is controlled. | |
6558 | ||
6559 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6560 | ||
6561 | * sinfo.ads: Minor formatting. | |
6562 | ||
6563 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6564 | ||
6565 | * sem_aggr.adb (Add_Association): if the association has a box and no | |
6566 | expression, use the Sloc of the aggregate itself for the new | |
6567 | association. | |
6568 | * errout.adb (First_Node): Exclude nodes with no Sloc, and always use | |
6569 | the Original_Node. | |
6570 | ||
6571 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
6572 | ||
6573 | * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring. | |
6574 | When a container is provided via a function call, generate a renaming | |
6575 | of the function result. This avoids the creation of a transient scope | |
6576 | and the premature finalization of the container. | |
6577 | * exp_ch7.adb (Is_Container_Cursor): Removed. | |
6578 | (Wrap_Transient_Declaration): Remove the supression of the finalization | |
6579 | of the list controller when the declaration denotes a container cursor, | |
6580 | it is not needed. | |
6581 | ||
6582 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6583 | ||
6584 | * restrict.adb (Check_Formal_Restriction): only issue a warning if the | |
6585 | node is from source, instead of the original node being from source. | |
6586 | * sem_aggr.adb | |
6587 | (Resolve_Array_Aggregate): refine the check for a static expression, to | |
6588 | recognize also static ranges | |
6589 | * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration, | |
6590 | Array_Type_Declaration): postpone the test for the type being a subtype | |
6591 | mark after the type has been resolved, so that component-selection and | |
6592 | expanded-name are discriminated. | |
6593 | (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm | |
6594 | to distinguish the case of an iteration scheme, so that an error is | |
6595 | issed on a non-static range in SPARK except in an iteration scheme. | |
6596 | * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with | |
6597 | In_Iter_Schm = True. | |
6598 | * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for | |
6599 | user-defined operators so that they are allowed in renaming | |
6600 | * sem_ch8.adb | |
6601 | (Find_Selected_Component): refine the check for prefixing of operators | |
6602 | so that they are allowed in renaming. Move the checks for restrictions | |
6603 | on selector name after analysis discriminated between | |
6604 | component-selection and expanded-name. | |
6605 | * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on | |
6606 | concatenation argument of string type if it is static. | |
6607 | * sem_util.adb, sem_util.ads | |
6608 | (Check_Later_Vs_Basic_Declarations): add a new function | |
6609 | Is_Later_Declarative_Item to decice which declarations are allowed as | |
6610 | later items, in the two different modes Ada 83 and SPARK. In the SPARK | |
6611 | mode, add that renamings are considered as later items. | |
6612 | (Enclosing_Package): new function to return the enclosing package | |
6613 | (Enter_Name): correct the rule for homonyms in SPARK | |
6614 | (Is_SPARK_Initialization_Expr): default to returning True on nodes not | |
6615 | from source (result of expansion) to avoid issuing wrong warnings. | |
6616 | ||
6617 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6618 | ||
6619 | * errout.adb: On anything but an expression First_Node returns its | |
6620 | argument. | |
6621 | ||
6622 | 2011-08-02 Pascal Obry <obry@adacore.com> | |
6623 | ||
6624 | * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting. | |
6625 | ||
6626 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
6627 | ||
6628 | * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization. | |
6629 | Set the associated loop as the related expression of internally | |
6630 | generated cursors. | |
6631 | * exp_ch7.adb (Is_Container_Cursor): New routine. | |
6632 | (Wrap_Transient_Declaration): Supress the finalization of the list | |
6633 | controller when the declaration denotes a container cursor. | |
6634 | ||
6635 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6636 | ||
6637 | * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through | |
6638 | command line now. | |
6639 | * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the | |
6640 | expression is a simple expression. This check cannot be performed in | |
6641 | the semantics, so just drop it. | |
6642 | (P_Index_Or_Discriminant_Constraint): move check that the index or | |
6643 | discriminant is a subtype mark to Analyze_Subtype_Declaration in the | |
6644 | semantics. Other cases were previously checked in the semantics. | |
6645 | * par-ch4.adb (P_Name): move checks that a selector name is not | |
6646 | character literal or an operator symbol to Find_Selected_Component in | |
6647 | the semantics | |
6648 | * par-ch5.adb (Parse_Decls_Begin_End): move check that basic | |
6649 | declarations are not placed after later declarations in a separate | |
6650 | procedure in Sem_Util (possibly not the best choice?), to be used both | |
6651 | during parsing, for Ada 83 mode, and during semantic analysis, for | |
6652 | SPARK mode. | |
6653 | * par-endh.adb (Check_End): move check that end label is not missing | |
6654 | to Process_End_Label in the semantics | |
6655 | * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove | |
6656 | the special case for SPARK restriction | |
6657 | * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End | |
6658 | * restrict.adb, restrict.ads (Check_Formal_Restriction): add a | |
6659 | parameter Force to issue the error message even on internal node (used | |
6660 | for generated end label). Call Check_Restriction to check when an error | |
6661 | must be issued. In SPARK mode, issue an error message even if the | |
6662 | restriction is not set. | |
6663 | (Check_Restriction): new procedure with an additional out parameter to | |
6664 | inform the caller that a message has been issued | |
6665 | * sem_aggr.adb: Minor modification of message | |
6666 | * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction | |
6667 | instead of issuing an error message directly | |
6668 | * sem_ch3.adb (Analyze_Declarations): move here the check that basic | |
6669 | declarations are not placed after later declarations, by calling | |
6670 | Check_Later_Vs_Basic_Declarations | |
6671 | (Analyze_Subtype_Declaration): move here the check that an index or | |
6672 | discriminant constraint must be a subtype mark. Change the check that | |
6673 | a subtype of String must start at one so that it works on subtype marks. | |
6674 | * sem_ch4.adb (Analyze_Call): move here the check that a named | |
6675 | association cannot follow a positional one in a call | |
6676 | * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction | |
6677 | instead of issuing an error message directly | |
6678 | * sem_ch8.adb (Find_Selected_Component): move here the check that a | |
6679 | selector name is not a character literal or an operator symbol. Move | |
6680 | here the check that the prefix of an expanded name cannot be a | |
6681 | subprogram or a loop statement. | |
6682 | * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new | |
6683 | procedure called from parsing and semantics to check that basic | |
6684 | declarations are not placed after later declarations | |
6685 | (Process_End_Label): move here the check that end label is not missing | |
6686 | ||
6687 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
6688 | ||
6689 | * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum | |
6690 | representation clause in codepeer mode, since it confuses CodePeer and | |
6691 | does not bring useful info. | |
6692 | ||
6693 | 2011-08-02 Ed Falis <falis@adacore.com> | |
6694 | ||
6695 | * init.c: initialize fp hw on MILS. | |
6696 | ||
6697 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6698 | ||
6699 | * errout.adb (First_Node): for bodies, return the node itself (small | |
6700 | optimization). For other nodes, do not check source_unit if the node | |
6701 | comes from Standard. | |
6702 | ||
6703 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6704 | ||
6705 | * exp_ch3.adb: Minor comment additions. | |
6706 | * sem_ch13.adb: Minor reformatting. | |
6707 | ||
6708 | 2011-08-02 Pascal Obry <obry@adacore.com> | |
6709 | ||
6710 | * make.adb, makeutl.adb: Removes some superfluous directory separator. | |
6711 | ||
6712 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6713 | ||
6714 | * sem_attr.adb: Minor reformatting. | |
6715 | ||
6716 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6717 | ||
6718 | * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value | |
6719 | (Has_Default_Component_Value): Removed | |
6720 | * einfo.ads Comment updates | |
6721 | (Has_Default_Aspect): Replaces Has_Default_Value | |
6722 | (Has_Default_Component_Value): Removed | |
6723 | * exp_ch13.adb | |
6724 | (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects | |
6725 | * exp_ch3.adb | |
6726 | (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects | |
6727 | (Get_Simple_Init_Val): Handle Default_Value aspect | |
6728 | (Needs_Simple_Initialization): Handle Default_Value aspect | |
6729 | * exp_ch3.ads: Needs_Simple_Initialization | |
6730 | * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect | |
6731 | * par-prag.adb (Pragma_Default[_Component]Value) Removed | |
6732 | * sem_ch13.adb | |
6733 | (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects | |
6734 | * sem_prag.adb (Pragma_Default[_Component]Value) Removed | |
6735 | * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed | |
6736 | ||
6737 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6738 | ||
6739 | * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate | |
6740 | package containing iteration primitives. | |
6741 | exp_ch5.adb (Expand_Iterator_Loop): ditto. | |
6742 | ||
6743 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6744 | ||
6745 | * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with | |
6746 | "of", pre-analyze expression in case it is a function call with | |
6747 | finalization actions that must be placed ahead of the loop. | |
6748 | * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present | |
6749 | on an Ada2012 iterator, insert them ahead of the rewritten loop. | |
6750 | ||
6751 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
6752 | ||
6753 | * cstand.adb (Create_Float_Types): Only consider C's long double for | |
6754 | Long_Long_Float, in addition to double. | |
6755 | ||
6756 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6757 | ||
6758 | * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads, | |
6759 | sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads, | |
6760 | prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb: | |
6761 | Minor reformatting. | |
6762 | ||
6763 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6764 | ||
6765 | * sem_attr.adb: handle properly 'Result when it is a prefix of an | |
6766 | indexed component. | |
6767 | ||
6768 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6769 | ||
6770 | * einfo.ads, einfo.adb | |
6771 | (Original_Access_Type): Move this attribute to Node26 since there was | |
6772 | an undocumented use of Node21 in E_Access_Subprogram_Type entities | |
6773 | which causes conflicts and breaks the generation of the .NET compiler. | |
6774 | (Interface_Name): Add missing documentation on JGNAT only uses of | |
6775 | this attribute. | |
6776 | ||
6777 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
6778 | ||
6779 | * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist | |
6780 | (Find_Back_End_Float_Type): Likewise | |
6781 | (Create_Back_End_Float_Types): Likewise | |
6782 | (Create_Float_Types): Likewise | |
6783 | (Register_Float_Type): Likewise | |
6784 | * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of | |
6785 | Nlist and split out type selection in new local Find_Base_Type function. | |
6786 | * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of | |
6787 | Nlist | |
6788 | * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist | |
6789 | ||
6790 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6791 | ||
6792 | * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in | |
6793 | alpha order). | |
6794 | * opt.ads: Minor comment change. | |
6795 | * sem_ch12.adb: Minor code reorganization. | |
6796 | ||
6797 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> | |
6798 | ||
6799 | * sem_ch3.adb (Complete_Private_Subtype): Don't append the private | |
6800 | subtype's list of rep items to the list on the full subtype in the case | |
6801 | where the lists are the same. | |
6802 | ||
6803 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
6804 | ||
6805 | * switch-c.adb (Free): New deallocation procedure to avoid implicitly | |
6806 | using the one from System.Strings, which also deallocates all strings. | |
6807 | ||
6808 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
6809 | ||
6810 | * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New | |
6811 | function. | |
6812 | * gcc-interface/Make-lang.in: Update dependencies. | |
6813 | ||
6814 | 2011-08-02 Olivier Hainque <hainque@adacore.com> | |
6815 | ||
6816 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function | |
6817 | end_locus. | |
6818 | ||
6819 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6820 | ||
6821 | * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals | |
6822 | associated with anonymous access to subprograms. | |
6823 | ||
6824 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
6825 | ||
6826 | * opt.ads | |
6827 | (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions. | |
6828 | (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition. | |
6829 | * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads | |
6830 | (Add_Symbol_Definition): Move to switch-c.adb | |
6831 | (Process_Command_Line_Symbol_Definitions): Adjust references to above. | |
6832 | * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation. | |
6833 | (Add_Symbol_Definition): Move to switch-c.adb. | |
6834 | * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw. | |
6835 | * sem_warn.adb | |
6836 | (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch): | |
6837 | Move to warnsw.adb. | |
6838 | * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size, | |
6839 | Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch): | |
6840 | Move to warnsw.adb. | |
6841 | * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw. | |
6842 | (Add_Symbol_Definition): Moved from Prepcomp. | |
6843 | * switch-c.ads: Update copyright notice. Use String_List instead of | |
6844 | Argument_List, removing dependency on System.OS_Lib. | |
6845 | ||
6846 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6847 | ||
6848 | * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal | |
6849 | mode on initialization expression which does not respect SPARK | |
6850 | restrictions. | |
6851 | * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines | |
6852 | if the tree referenced by its argument represents an initialization | |
6853 | expression in SPARK, suitable for initializing an object in an object | |
6854 | declaration. | |
6855 | ||
6856 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6857 | ||
6858 | * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the | |
6859 | internally generated access to subprogram with its associated protected | |
6860 | subprogram type. | |
6861 | * einfo.ads, einfo.adb (Original_Access_Type): New attribute. | |
6862 | ||
6863 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
6864 | ||
6865 | * cstand.adb (Register_Float_Type): Print information about type to | |
6866 | register, if the Debug_Flag_Dot_B is set. | |
6867 | * debug.adb (Debug_Flag_Dot_B): Document d.b debug option. | |
6868 | * rtsfind.ads (RE_Max_Base_Digits): New run time entity. | |
6869 | * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations | |
6870 | with a requested precision of more than Max_Digits digits and no more | |
6871 | than Max_Base_Digits digits, if a range specification is present and the | |
6872 | Predefined_Float_Types list has a suitable type to derive from. | |
6873 | * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the | |
6874 | case of type completion with pragma Import | |
6875 | * sem_prag.adb | |
6876 | (Process_Import_Predefined_Type): Processing to complete a type | |
6877 | with pragma Import. Currently supports floating point types only. | |
6878 | (Set_Convention_From_Pragma): Do nothing without underlying type. | |
6879 | (Process_Convention): Guard against absence of underlying type, | |
6880 | which may happen when importing incomplete types. | |
6881 | (Process_Import_Or_Interface): Handle case of importing predefined | |
6882 | types. Tweak error message. | |
6883 | ||
6884 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
6885 | ||
6886 | * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined | |
6887 | functions to previous change. Reorganize code slightly. | |
6888 | ||
6889 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
6890 | ||
6891 | * back_end.ads (Register_Type_Proc): New call back procedure type for | |
6892 | allowing the back end to provide information about available types. | |
6893 | (Register_Back_End_Types): New procedure to register back end types. | |
6894 | * back_end.adb (Register_Back_End_Types): Call the back end to enumerate | |
6895 | available types. | |
6896 | * cstand.adb (Back_End_Float_Types): New list for floating point types | |
6897 | supported by the back end. | |
6898 | (Build_Float_Type): Add extra parameter for Float_Rep_Kind. | |
6899 | (Copy_Float_Type): New procedure to make new copies of predefined types. | |
6900 | (Register_Float_Type): New call back procedure to populate the BEFT list | |
6901 | (Find_Back_End_Float_Type): New procedure to find a BEFT by name | |
6902 | (Create_Back_End_Float_Types): New procedure to populate the BEFT list. | |
6903 | (Create_Float_Types): New procedure to create entities for floating | |
6904 | point types predefined in Standard, and put these and any remaining | |
6905 | BEFTs on the Predefined_Float_Types list. | |
6906 | * stand.ads (Predefined_Float_Types): New list for predefined floating | |
6907 | point types that do not have declarations in package Standard. | |
6908 | ||
6909 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
6910 | ||
6911 | * inline.adb (Get_Code_Unit_Entity): New local function. Returns the | |
6912 | entity node for the unit containing the parameter. | |
6913 | (Add_Inlined_Body): Use it to find the unit containing the subprogram. | |
6914 | (Add_Inlined_Subprogram): Likewise. | |
6915 | * gcc-interface/Make-lang.in: Update dependencies. | |
6916 | ||
6917 | 2011-08-02 Thomas Quinot <quinot@adacore.com> | |
6918 | ||
6919 | * s-stusta.adb (Print): Make sure Pos is always initialized to a | |
6920 | suitable value. | |
6921 | ||
6922 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
6923 | ||
6924 | * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image. | |
6925 | ||
6926 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
6927 | ||
6928 | * sem_type.adb (Covers): Move trivial case to the top and reuse the | |
6929 | computed value of Base_Type. | |
6930 | ||
6931 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6932 | ||
6933 | * restrict.adb (Check_Restriction): issue an error for any use of | |
6934 | class-wide, even if the No_Dispatch restriction is not set. | |
6935 | * sem_aggr.adb: Correct typos in comments and messages in formal mode | |
6936 | * sem_ch3.adb (Process_Full_View): issue an error in formal mode is, | |
6937 | when completing a private extension, the type named in the private part | |
6938 | is not the same as that named in the visible part. | |
6939 | * sem_res.adb (Resolve_Call): issue an error in formal mode on the use | |
6940 | of an inherited primitive operations of a tagged type or type extension | |
6941 | that returns the tagged type. | |
6942 | * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new | |
6943 | function which returns True for an implicit operation inherited by the | |
6944 | derived type declaration for the argument type. | |
6945 | (Is_SPARK_Object_Reference): move to appropriate place in alphabetic | |
6946 | order. | |
6947 | ||
6948 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6949 | ||
6950 | * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from | |
6951 | Process_Bounds, to perform analysis with expansion of a range or an | |
6952 | expression that is the iteration scheme for a loop. | |
6953 | (Analyze_Iterator_Specification): If domain of iteration is given by a | |
6954 | function call with a controlled result, as is the case if call returns | |
6955 | a predefined container, ensure that finalization actions are properly | |
6956 | generated. | |
6957 | * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range. | |
6958 | ||
6959 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6960 | ||
6961 | * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo. | |
6962 | * gcc-interface/Make-lang.in: Update dependencies. | |
6963 | ||
6964 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6965 | ||
6966 | * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to | |
6967 | determine if the analysis is performed using N or Original_Node (N). | |
6968 | * exp_util.adb (Side_Effect_Free): Code cleanup since the new | |
6969 | functionality of routine Is_Variable avoids code duplication. | |
6970 | * checks.adb (Determine_Range): Handle temporaries generated by | |
6971 | Remove_Side_Effects. | |
6972 | ||
6973 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6974 | ||
6975 | * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and | |
6976 | expansion of the condition. Required since the previous analysis was | |
6977 | done with expansion disabled (see Resolve_Quantified_Expression) and | |
6978 | hence checks were not inserted and record comparisons have not been | |
6979 | expanded. | |
6980 | ||
6981 | 2011-08-02 Ed Falis <falis@adacore.com> | |
6982 | ||
6983 | * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads: | |
6984 | Update header. | |
6985 | ||
6986 | 2011-08-02 Bob Duff <duff@adacore.com> | |
6987 | ||
6988 | * opt.ads: Minor comment fix. | |
6989 | ||
6990 | 2011-08-02 Bob Duff <duff@adacore.com> | |
6991 | ||
6992 | * sem_ch12.adb (Analyze_Package_Instantiation, | |
6993 | Analyze_Subprogram_Instantiation): Turn off style checking while | |
6994 | analyzing an instance. Whatever style checks that apply to the generic | |
6995 | unit should apply, so it makes no sense to apply them in an instance. | |
6996 | This was causing trouble when compiling an instance of a runtime | |
6997 | unit that violates the -gnatyO switch. | |
6998 | * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from | |
6999 | one of the two case statements, causing spurious errors. | |
7000 | ||
7001 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7002 | ||
7003 | * uname.adb: Minor reformatting. | |
7004 | * gnatcmd.adb: Minor reformatting. | |
7005 | * exp_attr.adb: Minor reformatting. | |
7006 | ||
7007 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7008 | ||
7009 | * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction | |
7010 | No_Dispatching_Calls, do not look for the Assign primitive, because | |
7011 | predefined primitives are not created in this case. | |
7012 | ||
7013 | 2011-08-02 Bob Duff <duff@adacore.com> | |
7014 | ||
7015 | * stylesw.ads: Minor comment fixes. | |
7016 | ||
7017 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7018 | ||
7019 | * freeze.adb (Add_To_Result): New procedure. | |
7020 | ||
7021 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
7022 | ||
7023 | * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run | |
7024 | time, if the specific run-time routines for handling streams of strings | |
7025 | are not available, use the default mechanism. | |
7026 | ||
7027 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
7028 | ||
7029 | * s-regpat.ads: Fix typo. | |
7030 | ||
7031 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
7032 | ||
7033 | * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is | |
7034 | not null, call it to create the in memory config project file without | |
7035 | parsing an existing default config project file. | |
7036 | ||
7037 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
7038 | ||
7039 | * atree.adb (Allocate_Initialize_Node): Remove useless temporaries. | |
7040 | ||
7041 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7042 | ||
7043 | * sem_elim.adb: an abstract subprogram does not need an eliminate | |
7044 | pragma for its descendant to be eliminable. | |
7045 | ||
7046 | 2011-08-02 Ed Falis <falis@adacore.com> | |
7047 | ||
7048 | * init.c: revert to handling before previous checkin for VxWorks | |
7049 | * s-intman-vxworks.adb: delete unnecessary declarations related to | |
7050 | using Ada interrupt facilities for handling signals. | |
7051 | Delete Initialize_Interrupts. Use __gnat_install_handler instead. | |
7052 | * s-intman-vxworks.ads: Import __gnat_install_handler as | |
7053 | Initialize_Interrupts. | |
7054 | * s-taprop-vxworks.adb: Delete Signal_Mask. | |
7055 | (Abort_Handler): change construction of mask to unblock exception | |
7056 | signals. | |
7057 | ||
7058 | 2011-08-02 Jerome Guitton <guitton@adacore.com> | |
7059 | ||
7060 | * a-except-2005.adb (Raise_From_Signal_Handler): Call | |
7061 | Debug_Raise_Exception before propagation starts. | |
7062 | ||
7063 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
7064 | ||
7065 | * exp_ch6.adb (Expand_Call): Guard restriction checks with a call | |
7066 | to Restriction_Check_Required. | |
7067 | * sem_ch3.adb (Analyze_Object_Declaration): Likewise. | |
7068 | * sem_res.adb (Resolve_Call): Likewise. | |
7069 | * sem_attr.adb (Check_Stream_Attribute): Likewise. | |
7070 | ||
7071 | 2011-08-02 Bob Duff <duff@adacore.com> | |
7072 | ||
7073 | * stylesw.ads: Update comment. | |
7074 | * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N. | |
7075 | * errout.ads: Remove obsolete comment. | |
7076 | ||
7077 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
7078 | ||
7079 | * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function. | |
7080 | (Set_Is_Safe_To_Reevaluate): new procedure. | |
7081 | * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no | |
7082 | assignment is allowed on safe-to-reevaluate variables. | |
7083 | (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the | |
7084 | temporary created to remove side effects in expressions that use | |
7085 | the secondary stack as safe-to-reevaluate. | |
7086 | * exp_util.adb (Side_Effect_Free): Add missing code to handle well | |
7087 | variables that are not true constants. | |
7088 | ||
7089 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7090 | ||
7091 | * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads, | |
7092 | sem_res.adb, sem_ch6.adb: Minor reformatting. | |
7093 | ||
7094 | 2011-08-02 Jerome Guitton <guitton@adacore.com> | |
7095 | ||
7096 | * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code. | |
7097 | ||
7098 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7099 | ||
7100 | * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do | |
7101 | not set Overridden_Operation if subprogram is an initialization | |
7102 | procedure. | |
7103 | ||
7104 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7105 | ||
7106 | * par-ch6.adb: Correct obsolete name in comments | |
7107 | * restrict.adb, restrict.ads (Check_Formal_Restriction): new function | |
7108 | which takes two message arguments (existing function takes one), with | |
7109 | second message used for continuation. | |
7110 | * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject | |
7111 | block statements that originate from a source block statement, not | |
7112 | generated block statements | |
7113 | * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for | |
7114 | symmetry with procedure case | |
7115 | * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new | |
7116 | function to issue an error in formal mode if a package specification | |
7117 | contains more than one tagged type or type extension. | |
7118 | * sem_res.adb (Resolve_Actuals): in formal mode, check that actual | |
7119 | parameters matching formals of tagged types are objects (or ancestor | |
7120 | type conversions of objects), not general expressions. Issue an error | |
7121 | on view conversions that are not involving ancestor conversion of an | |
7122 | extended type. | |
7123 | (Resolve_Type_Conversion): in formal mode, issue an error on the | |
7124 | operand of an ancestor type conversion which is not an object | |
7125 | * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the | |
7126 | procedure so that it works also for actuals of function calls | |
7127 | (Is_Actual_Tagged_Parameter): new function which determines if its | |
7128 | argument is an actual parameter of a formal of tagged type in a | |
7129 | subprogram call | |
7130 | (Is_SPARK_Object_Reference): new function which determines if the tree | |
7131 | referenced by its argument represents an object in SPARK | |
7132 | ||
7133 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7134 | ||
7135 | * sem_ch3.adb: Minor reformatting | |
7136 | Minor comment addition | |
7137 | Minor error msg text change | |
7138 | ||
7139 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
7140 | ||
7141 | * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New | |
7142 | function. Used to be more precise when we generate a variable plus one | |
7143 | assignment to remove side effects in the evaluation of the Bound | |
7144 | expressions. | |
7145 | (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes | |
7146 | of the bound expression to force its re-analysis and thus expand the | |
7147 | associated transient scope (if required). Code cleanup replacing the | |
7148 | previous code that declared the constant entity by an invocation to | |
7149 | routine Force_Evaluation which centralizes this work in the frontend. | |
7150 | ||
7151 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7152 | ||
7153 | * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table | |
7154 | (Base_Type): Now uses improved Is_Base_Type function | |
7155 | * einfo.ads (Base_Type): Inline this function | |
7156 | ||
7157 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7158 | ||
7159 | * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion | |
7160 | (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas | |
7161 | ||
7162 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
7163 | ||
7164 | * gcc-interface/Make-lang.in: Update dependencies. | |
7165 | * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks | |
7166 | targets. | |
7167 | ||
7168 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7169 | ||
7170 | * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on | |
7171 | non-simple expression used in delta constraint | |
7172 | (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on | |
7173 | index constraint which is not a subtype mark | |
7174 | * par.adb: With and use Restrict | |
7175 | * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal | |
7176 | mode on component type which is not a subtype mark and default | |
7177 | expression on component | |
7178 | (Analyze_Subtype_Declaration): issue an error in formal mode on subtype | |
7179 | of string which does not have a lower index bound equal to 1 | |
7180 | (Array_Type_Declaration): issue an error in formal mode on index or | |
7181 | component type which is not a subtype mark, and on aliased keyword on | |
7182 | component | |
7183 | (Derived_Type_Declaration): issue an error in formal mode on interface, | |
7184 | limited or abstract type | |
7185 | (Record_Type_Declaration): issue an error in formal mode on interface | |
7186 | (Record_Type_Definition): issue an error in formal mode on tagged types | |
7187 | and type extensions not declared in the specification of a library unit | |
7188 | package; on null non-tagged record; on variant part | |
7189 | ||
7190 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
7191 | ||
7192 | * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir | |
7193 | not declared for qualified library project when Library_Name is not | |
7194 | declared, but Library_Dir is. | |
7195 | ||
7196 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7197 | ||
7198 | * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated | |
7199 | pragmas (affects aspects [Component_]Default_Value | |
7200 | (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use | |
7201 | component type for the resolution | |
7202 | ||
7203 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
7204 | ||
7205 | * einfo.adb (Base_Type): Tune implementation for speed. | |
7206 | ||
7207 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7208 | ||
7209 | * freeze.adb: Minor reformatting. | |
7210 | ||
7211 | 2011-08-02 Thomas Quinot <quinot@adacore.com> | |
7212 | ||
7213 | * scos.ads: Update comments. | |
7214 | ||
7215 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7216 | ||
7217 | * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the | |
7218 | base type, because the parent may be a subtype of a private type whose | |
7219 | convention is established in a private part. | |
7220 | ||
7221 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
7222 | ||
7223 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return | |
7224 | statement in a block when the expansion of the return expression has | |
7225 | created a finalization chain. | |
7226 | * freeze.adb (Freeze_Expression): Alphabetize all choices associated | |
7227 | with the parent node. | |
7228 | Add N_Extended_Return_Statement to handle the case where a transient | |
7229 | object declaration appears in the Return_Object_Declarations list of | |
7230 | an extended return statement. | |
7231 | ||
7232 | 2011-08-02 Matthew Gingell <gingell@adacore.com> | |
7233 | ||
7234 | * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly | |
7235 | unused parameter 'name'. | |
7236 | ||
7237 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7238 | ||
7239 | * sem_elim.adb (Set_Eliminated): If the overridden operation is an | |
7240 | inherited operation, check whether its alias, which is the source | |
7241 | operastion that it renames, has been marked eliminated. | |
7242 | ||
7243 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
7244 | ||
7245 | * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an | |
7246 | in-mode parameter whose type is an access type since it can be used to | |
7247 | modify its designated object. Enforce code that handles as safe an | |
7248 | access type that is not access-to-constant but it is the result of a | |
7249 | previous removal of side-effects. | |
7250 | (Remove_Side_Effects): Minor code reorganization of cases which require | |
7251 | no action. Done to incorporate documentation on new cases uncovered | |
7252 | working in this ticket: no action needed if this routine was invoked | |
7253 | too early and the nodes are not yet decorated. | |
7254 | * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls | |
7255 | to routine Remove_Side_Effects by calls to Force_Evaluation since they | |
7256 | were issued with actuals that are implicitly provided by | |
7257 | Force_Evaluation. | |
7258 | ||
7259 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7260 | ||
7261 | * sem_ch3.adb, sem_res.adb: Minor reformatting. | |
7262 | ||
7263 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7264 | ||
7265 | * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure | |
7266 | to issue an error in formal mode on attribute not supported in this mode | |
7267 | (Analyze_Attribute): issue errors on standard attributes not supported | |
7268 | in formal mode. | |
7269 | * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of | |
7270 | comment, and issue error in formal mode on modulus which is not a power | |
7271 | of 2. | |
7272 | (Process_Range_Expr_In_Decl): issue error in formal mode on non-static | |
7273 | range. | |
7274 | * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in | |
7275 | subtype mark. | |
7276 | * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary | |
7277 | operator on modular type (except 'not'). | |
7278 | ||
7279 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7280 | ||
7281 | * gnat_rm.texi: Minor reformatting. | |
7282 | ||
7283 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
7284 | ||
7285 | * s-osinte-linux.ads: Minor comment update and reformatting. | |
7286 | * i-cexten.ads: Make this unit pure, as for its parent. | |
7287 | Will allow its usage in more contexts if needed. | |
7288 | ||
7289 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7290 | ||
7291 | * s-utf_32.ads: Minor comment fix. | |
7292 | ||
7293 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7294 | ||
7295 | * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive | |
7296 | operation of a tagged synchronized type, handle the case where the | |
7297 | controlling argument is overloaded. | |
7298 | ||
7299 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7300 | ||
7301 | * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl: | |
7302 | Replace pragma SPARK_95 with pragma Restrictions (SPARK) | |
7303 | * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set | |
7304 | SPARK mode and formal verification mode on processing SPARK restriction | |
7305 | * s-rident.ads (Restriction_Id): add SPARK restriction in those not | |
7306 | requiring consistency checking. | |
7307 | ||
7308 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7309 | ||
7310 | * sem_res.adb: Minor reformatting. | |
7311 | ||
7312 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7313 | ||
7314 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
7315 | a-cforse.ads: Remove unneeded with of Ada.Containers | |
7316 | Remove commented out pragma Inline's | |
7317 | Move specifications of new subprograms to the actual specs | |
7318 | ||
7319 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7320 | ||
7321 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
7322 | a-cforse.ads: Update comments. | |
7323 | ||
7324 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7325 | ||
7326 | * sem_attr.adb: add attribute name when 'Result has the wrong prefix. | |
7327 | ||
7328 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7329 | ||
7330 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
7331 | a-cforse.ads, a-cofove.ads: Minor reformatting. | |
7332 | ||
7333 | 2011-08-02 Claire Dross <dross@adacore.com> | |
7334 | ||
7335 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads, | |
7336 | a-cofove.ads: Add comments. | |
7337 | ||
7338 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7339 | ||
7340 | * gnat_rm.texi: Document formal containers. | |
7341 | ||
7342 | 2011-08-02 Emmanuel Briot <briot@adacore.com> | |
7343 | ||
7344 | * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there | |
7345 | are empty sections. | |
7346 | ||
7347 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7348 | ||
7349 | * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor | |
7350 | reformatting. | |
7351 | ||
7352 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7353 | ||
7354 | * aspects.adb: New aspects Default_Value and Default_Component_Value | |
7355 | New format of Aspect_Names table checks for omitted entries | |
7356 | * aspects.ads: Remove mention of Aspect_Cancel and add documentation on | |
7357 | handling of boolean aspects for derived types. | |
7358 | New aspects Default_Value and Default_Component_Value | |
7359 | New format of Aspect_Names table checks for omitted entries | |
7360 | * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag | |
7361 | (Has_Default_Value): New flag | |
7362 | (Has_Default_Component_Value): New flag | |
7363 | (Has_Default_Value): New flag | |
7364 | * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names | |
7365 | table. | |
7366 | * par-prag.adb: New pragmas Default_Value and Default_Component_Value | |
7367 | * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects | |
7368 | Default_Value and Default_Component_Value | |
7369 | * sem_prag.adb: New pragmas Default_Value and Default_Component_Value | |
7370 | New aspects Default_Value and Default_Component_Value | |
7371 | * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value | |
7372 | * sprint.adb: Print N_Aspect_Specification node when called from gdb | |
7373 | ||
7374 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
7375 | ||
7376 | * prj-nmsc.adb (Check_Library_Attributes): For virtual library project, | |
7377 | inherit library kind. | |
7378 | ||
7379 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7380 | ||
7381 | * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds. | |
7382 | Minor reformatting. | |
7383 | ||
7384 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7385 | ||
7386 | * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM | |
7387 | ||
7388 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7389 | ||
7390 | * sem_aggr.adb (Resolve_Aggregate): Fix thinko. | |
7391 | ||
7392 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7393 | ||
7394 | * impunit.adb: Add comment. | |
7395 | ||
7396 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7397 | ||
7398 | * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks | |
7399 | qualification of aggregates in formal mode | |
7400 | (Is_Top_Level_Aggregate): returns True for an aggregate not contained in | |
7401 | another aggregate | |
7402 | (Resolve_Aggregate): complete the test that an aggregate is adequately | |
7403 | qualified in formal mode | |
7404 | ||
7405 | 2011-08-02 Pascal Obry <obry@adacore.com> | |
7406 | ||
7407 | * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting. | |
7408 | * mlib-prj.adb: Supress warning when compiling binder generated file. | |
7409 | (Build_Library): Supress all warnings when compiling the binder | |
7410 | generated file. | |
7411 | ||
7412 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7413 | ||
7414 | * errout.adb, errout.ads (Check_Formal_Restriction): move procedure | |
7415 | from here... | |
7416 | * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here | |
7417 | * sem_aggr.adb, sem_ch5.adb, sem_util.adb: | |
7418 | Add with/use clauses to make Check_Formal_Restriction visible | |
7419 | ||
7420 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7421 | ||
7422 | * sem_ch12.adb (Check_Generic_Actuals): handle properly actual | |
7423 | in-parameters when type of the generic formal is private in the generic | |
7424 | spec and non-private in the body. | |
7425 | ||
7426 | 2011-08-02 Claire Dross <dross@adacore.com> | |
7427 | ||
7428 | * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb, | |
7429 | a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads, | |
7430 | a-cofove.adb, a-cofove.ads: New files implementing formal containers. | |
7431 | * impunit.adb, Makefile.rtl: Take new files into account. | |
7432 | ||
7433 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7434 | ||
7435 | * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb, | |
7436 | sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting. | |
7437 | ||
7438 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7439 | ||
7440 | * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in | |
7441 | formal mode | |
7442 | * sem_util.adb (Matching_Static_Array_Bounds): proper detection of | |
7443 | matching static array bounds, taking into account the special case of | |
7444 | string literals | |
7445 | * sem_ch3.adb: Typo in comment. | |
7446 | ||
7447 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7448 | ||
7449 | * errout.adb, errout.ads (Check_Formal_Restriction): new procedure | |
7450 | which issues an error in formal mode if its argument node is originally | |
7451 | from source | |
7452 | * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type | |
7453 | has a discriminant specification so that it does not include the case | |
7454 | of derived types | |
7455 | (Derived_Type_Declaration): move here the test that a derived type has a | |
7456 | discriminant specification | |
7457 | * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the | |
7458 | first element of a component association before accessing its choices | |
7459 | (presence of component association is not enough) | |
7460 | * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram | |
7461 | declaration is a library item before accessing the next element in a | |
7462 | list, as library items are not member of lists | |
7463 | * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, | |
7464 | sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use | |
7465 | Check_Formal_Restriction whenever possible. | |
7466 | ||
7467 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7468 | ||
7469 | * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype | |
7470 | reference when needed. | |
7471 | ||
7472 | 2011-08-02 Bob Duff <duff@adacore.com> | |
7473 | ||
7474 | * gnat_ugn.texi: Fix typo. | |
7475 | ||
7476 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
7477 | ||
7478 | * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of | |
7479 | archive file name. Do not use the full path name of archives for Open | |
7480 | VMS. | |
7481 | ||
7482 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7483 | ||
7484 | * sem_ch12.adb, sem_ch11.adb: New calling sequence for | |
7485 | Analyze_Aspect_Specifications | |
7486 | * sem_ch13.adb | |
7487 | (Analyze_Aspect_Specifications): New handling for boolean aspects | |
7488 | * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence | |
7489 | * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling | |
7490 | sequence for Analyze_Aspect_Specifications | |
7491 | * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely | |
7492 | * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used | |
7493 | ||
7494 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7495 | ||
7496 | * freeze.adb (Freeze_Entity): Remove handling of delayed boolean | |
7497 | aspects, since these no longer exist. | |
7498 | ||
7499 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7500 | ||
7501 | * par-ch13.adb (Aspect_Specifications_Present): Always return false on | |
7502 | semicolon, do not try to see if there are aspects following it. | |
7503 | * par-ch3.adb (P_Declarative_Items): Better message for unexpected | |
7504 | aspect spec. | |
7505 | ||
7506 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7507 | ||
7508 | * sem_ch8.adb, aspects.ads: Minor reformatting. | |
7509 | ||
7510 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
7511 | ||
7512 | * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline. | |
7513 | * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure | |
7514 | extracted from... | |
7515 | (Analyze_Aspect_Specifications): ...here. Call above procedure. | |
7516 | ||
7517 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7518 | ||
7519 | * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal | |
7520 | mode on subprogram declaration outside of package specification, unless | |
7521 | it is followed by a pragma Import | |
7522 | * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration, | |
7523 | Access_Type_Declaration): issue error in formal mode on access type | |
7524 | (Analyze_Incomplete_Type_Decl): issue error in formal mode on | |
7525 | incomplete type | |
7526 | (Analyze_Object_Declaration): issue error in formal mode on object | |
7527 | declaration which does not respect SPARK restrictions | |
7528 | (Analyze_Subtype_Declaration): issue error in formal mode on subtype | |
7529 | declaration which does not respect SPARK restrictions | |
7530 | (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue | |
7531 | error in formal mode on digits or delta constraint | |
7532 | (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on | |
7533 | decimal fixed point type | |
7534 | (Derived_Type_Declaration): issue error in formal mode on derived type | |
7535 | other than type extensions of tagged record types | |
7536 | * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant | |
7537 | with check on access definition | |
7538 | * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal | |
7539 | mode on protected definition. | |
7540 | (Analyze_Task_Definition): issue error in formal mode on task definition | |
7541 | ||
7542 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7543 | ||
7544 | * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting. | |
7545 | ||
7546 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
7547 | ||
7548 | * sem_ch6.adb (Can_Override_Operator): New function. | |
7549 | (Verify_Overriding_Indicator): Add missing code to check overriding | |
7550 | indicator in operators. Fixes regression. | |
7551 | (Check_Overriding_Indicator): Minor reformating after replacing the | |
7552 | code that evaluates if the subprogram can override an operator by | |
7553 | invocations to the above new function. | |
7554 | * einfo.adb | |
7555 | (Write_Field26_Name): Add missing code to ensure that, following | |
7556 | the documentation in einfo.ads, this field is not shown as attribute | |
7557 | "Static_Initialization" on non-dispatching functions. | |
7558 | ||
7559 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
7560 | ||
7561 | * sem_res.adb (Resolve_Call): A call to | |
7562 | Ada.Real_Time.Timing_Events.Set_Handler violates restriction | |
7563 | No_Relative_Delay (AI-0211) only when it sets a relative timing event, | |
7564 | i.e., when the second parameter is of type Time_Span. | |
7565 | ||
7566 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
7567 | ||
7568 | * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link | |
7569 | with an archive instead of -L<library dir> -l<library name>. | |
7570 | ||
7571 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7572 | ||
7573 | * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed, | |
7574 | mark the base types In_Use in addition to making the operations | |
7575 | use_visible. | |
7576 | ||
7577 | 2011-08-02 Ed Falis <falis@adacore.com> | |
7578 | ||
7579 | * init.c: add and setup __gnat_signal_mask for the exception signals | |
7580 | * s-inmaop-vxworks.adb: new file. | |
7581 | * s-intman-vxworks.adb: remove unnecessary initializations and | |
7582 | simplify remaining | |
7583 | * s-intman-vxworks.ads: remove unnecessary variable | |
7584 | * s-taprop-vxworks.adb: simplify signal initialization | |
7585 | ||
7586 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7587 | ||
7588 | * sem_ch8.adb: Minor code reorganization, comment updates. | |
7589 | ||
7590 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7591 | ||
7592 | * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util | |
7593 | * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved | |
7594 | here from Sem_Res. | |
7595 | (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression | |
7596 | (Matching_Static_Array_Bounds): Moved here from Sem_Res | |
7597 | ||
7598 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7599 | ||
7600 | * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5. | |
7601 | * par_ch8.adb (P_Use_Type): initialize Used_Operations for node. | |
7602 | * sinfo.ads, sinfo.adb (Used_Operations): new attribute of | |
7603 | use_type_clauses, to handle more efficiently use_type and use_all_type | |
7604 | constructs. | |
7605 | * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the | |
7606 | Ada2012 Use_All_Type clause. | |
7607 | (Use_Class_Wide_Operations): new procedure. | |
7608 | ||
7609 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7610 | ||
7611 | * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb, | |
7612 | sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized | |
7613 | expression to expression function. | |
7614 | ||
7615 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7616 | ||
7617 | * sem_ch4.adb: transform simple Ada2012 membership into equality only | |
7618 | if types are compatible. | |
7619 | ||
7620 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7621 | ||
7622 | * sem_res.adb (Matching_Static_Array_Bounds): new function which | |
7623 | returns True if its argument array types have same dimension and same | |
7624 | static bounds at each index. | |
7625 | (Resolve_Actuals): issue an error in formal mode on actuals passed as | |
7626 | OUT or IN OUT paramaters which are not view conversions in SPARK. | |
7627 | (Resolve_Arithmetic_Op): issue an error in formal mode on | |
7628 | multiplication or division with operands of fixed point types which are | |
7629 | not qualified or explicitly converted. | |
7630 | (Resolve_Comparison_Op): issue an error in formal mode on comparisons of | |
7631 | Boolean or array type (except String) operands. | |
7632 | (Resolve_Equality_Op): issue an error in formal mode on equality | |
7633 | operators for array types other than String with non-matching static | |
7634 | bounds. | |
7635 | (Resolve_Logical_Op): issue an error in formal mode on logical operators | |
7636 | for array types with non-matching static bounds. Factorize the code in | |
7637 | Matching_Static_Array_Bounds. | |
7638 | (Resolve_Qualified_Expression): issue an error in formal mode on | |
7639 | qualified expressions for array types with non-matching static bounds. | |
7640 | (Resolve_Type_Conversion): issue an error in formal mode on type | |
7641 | conversion for array types with non-matching static bounds | |
7642 | ||
7643 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7644 | ||
7645 | * par-ch10.adb: Minor code reorganization (use Nkind_In). | |
7646 | ||
7647 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7648 | ||
7649 | * par-ch9.adb: save location of entry for proper error message. | |
7650 | ||
7651 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
7652 | ||
7653 | * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal | |
7654 | (Use_Full_View) which permits this routine to climb through the | |
7655 | ancestors using the full-view of private parents. | |
7656 | * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set | |
7657 | Use_Full_View to true in calls to Is_Ancestor. | |
7658 | * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to | |
7659 | true in call to Is_Ancestor. | |
7660 | * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set | |
7661 | Use_Full_View to true in call to Is_Ancestor. | |
7662 | * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in | |
7663 | call to Is_Ancestor. | |
7664 | * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set | |
7665 | Use_Full_View to true in calls to Is_Ancestor. | |
7666 | * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT, | |
7667 | Make_Select_Specific_Data_Table, Register_Primitive, | |
7668 | Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor. | |
7669 | * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View | |
7670 | to true in call to Is_Ancestor. | |
7671 | * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set | |
7672 | Use_Full_View to true in calls to Is_Ancestor. | |
7673 | * exp_cg.adb | |
7674 | (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor. | |
7675 | (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor. | |
7676 | ||
7677 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7678 | ||
7679 | * gnat_rm.texi: Minor reformatting. | |
7680 | * sem_prag.adb: Minor reformatting. | |
7681 | ||
7682 | 2011-08-02 Tristan Gingold <gingold@adacore.com> | |
7683 | ||
7684 | * vms_data.ads: Add VMS qualifier for -gnateP. | |
7685 | ||
7686 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7687 | ||
7688 | * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty | |
7689 | * par-ch7.adb (P_Package): Proper placement of aspects for package | |
7690 | decl/instantiation. | |
7691 | * par-endh.adb (Check_End): Ad Is_Sloc parameter | |
7692 | (End_Statements): Add Is_Sloc parameterr | |
7693 | * par.adb (P_Aspect_Specification): New meaning of Decl = Empty | |
7694 | (Check_End): Ad Is_Sloc parameter | |
7695 | (End_Statements): Add Is_Sloc parameterr | |
7696 | ||
7697 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
7698 | ||
7699 | * ug_words: Add VMS qualifier equivalent to -gnateP: | |
7700 | /SYMBOL_PREPROCESSING. | |
7701 | ||
7702 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
7703 | ||
7704 | * gnat-style.texi: For hexadecimal numeric literals the typical | |
7705 | grouping of digits is 4 to represent 2 bytes. | |
7706 | A procedure spec which is split into several lines is indented two | |
7707 | characters. | |
7708 | ||
7709 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7710 | ||
7711 | * exp_aggr.adb (Is_Others_Aggregate): move function to other unit. | |
7712 | * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here | |
7713 | (Resolve_Aggregate): issue errors in formal modes when aggregate is not | |
7714 | properly qualified | |
7715 | (Resolve_Array_Aggregate): issue errors in formal modes on non-static | |
7716 | choice in array aggregate | |
7717 | (Resolve_Extension_Aggregate): issue errors in formal modes on subtype | |
7718 | mark as ancestor | |
7719 | (Resolve_Record_Aggregate): issue errors in formal modes on mixed | |
7720 | positional and named aggregate for record, or others in record | |
7721 | aggregate, or multiple choice in record aggregate | |
7722 | * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when | |
7723 | array operands to logical operations AND, OR and XOR do not have the | |
7724 | same static lower and higher bounds | |
7725 | * sem_ch5.adb, sinfo.ads: Correct typos in comments | |
7726 | ||
7727 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7728 | ||
7729 | * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement): | |
7730 | Replaces Last_Source_Node_In_Sequence. | |
7731 | * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K | |
7732 | * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores | |
7733 | parens and blank in string (this was inconsistently implemented). | |
7734 | * errout.ads | |
7735 | (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and | |
7736 | blank in string (this was inconsistently implemented). | |
7737 | * gnat1drv.adb | |
7738 | (Set_Global_Switches): Set formal mode switches appropriately | |
7739 | * opt.ads, opt.adb: Formal mode is now global switches, more consistent | |
7740 | * par-prag.adb | |
7741 | (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and | |
7742 | call Set_Error_Msg_Lang to set "spark" as language name. | |
7743 | * par.adb: Remove unnecessary call to set formal language for errout | |
7744 | * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches | |
7745 | appropriately and call Set_Error_Msg_Lang to set "spark" as language | |
7746 | name. | |
7747 | * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and | |
7748 | calls to it, moved after resolution so that types are known | |
7749 | * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if | |
7750 | result of concatenation is not of type String | |
7751 | (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of | |
7752 | concatenation is not properly restricted | |
7753 | * gnat_rm.texi: Add doc on pragma Spark_95. | |
7754 | * gcc-interface/Makefile.in: Remove obsolete target pairs for | |
7755 | Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads. | |
7756 | * gcc-interface/Make-lang.in: Update dependencies. | |
7757 | ||
7758 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
7759 | ||
7760 | * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of | |
7761 | condition that detects if the overridden operation must replace an | |
7762 | existing entity. | |
7763 | ||
7764 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
7765 | ||
7766 | * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded | |
7767 | code declarations inserted by Insert_Actions in each alternative of the | |
7768 | N_Case_Expression node. | |
7769 | ||
7770 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7771 | ||
7772 | * sem_ch6.adb: Minor code reorganization. | |
7773 | * sem_util.adb: Minor reformatting. | |
7774 | ||
7775 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
7776 | ||
7777 | * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path. | |
7778 | * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource. | |
7779 | ||
7780 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
7781 | ||
7782 | * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character | |
7783 | literal or operator symbol which is prefixed | |
7784 | * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal | |
7785 | mode on access attributes. | |
7786 | * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check | |
7787 | that concatenation operands are properly restricted in formal mode | |
7788 | (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure | |
7789 | Analyze_Concatenation_Operand. Issue an error in formal mode if the | |
7790 | result of the concatenation has a type different from String. | |
7791 | (Analyze_Conditional_Expression, Analyze_Explicit_Dereference, | |
7792 | Analyze_Quantified_Expression, Analyze_Slice, | |
7793 | Analyze_Null): issue an error in formal mode on unsupported constructs | |
7794 | * sem_ch5.adb | |
7795 | (Analyze_Block_Statement): only issue error on source block statement | |
7796 | * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new | |
7797 | function which returns the last node in a list of nodes for which | |
7798 | Comes_From_Source returns True, if any | |
7799 | * sem_ch6.adb (Check_Missing_Return): minor refactoring to use | |
7800 | Last_Source_Node_In_Sequence | |
7801 | * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming, | |
7802 | Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal | |
7803 | mode on unsupported constructs | |
7804 | * sem_ch9.adb Do not return after issuing error in formal mode, as the | |
7805 | rest of the actions may be needed later on since the error is marked as | |
7806 | not serious. | |
7807 | * sinfo.ads: Typos in comments. | |
7808 | ||
7809 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
7810 | ||
7811 | * projects.texi: Minor editing. | |
7812 | ||
7813 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
7814 | ||
7815 | * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for | |
7816 | insertion character ~~ | |
7817 | * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures | |
7818 | (Set_Error_Msg_Lang): new procedure which fixes the language for use | |
7819 | with insertion character ~~ | |
7820 | (Set_Msg_Text): treat insertion character ~~ | |
7821 | * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb, | |
7822 | sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to | |
7823 | Formal_Error_Msg_... procedures by equivalent Error_Msg_... | |
7824 | procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make | |
7825 | errors related to the formal language restriction not serious | |
7826 | (insertion character |). | |
7827 | * par.adb (Par): set formal language for error messages if needed | |
7828 | * sem_ch6.adb (Check_Missing_Return): take into account possible | |
7829 | generated statements at the end of the function | |
7830 | * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and | |
7831 | enumeration value to define a new pragma SPARK_95 | |
7832 | * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default, | |
7833 | SPARK_Version): new type and variables to store the SPARK version | |
7834 | (none by default). | |
7835 | (SPARK_Mode): return True when SPARK_Version is set | |
7836 | * par-prag.adb: Correct indentation | |
7837 | (Prag): take Pragma_SPARK_95 into account | |
7838 | * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95 | |
7839 | into account. | |
7840 | ||
7841 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7842 | ||
7843 | * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb, | |
7844 | sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb, | |
7845 | sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting | |
7846 | ||
7847 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
7848 | ||
7849 | * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass | |
7850 | Target_Name to Get_Path call. | |
7851 | (Parse_Single_Project): Likewise. | |
7852 | (Post_Parse_Context_Clause): Likewise. | |
7853 | * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter. | |
7854 | Call Initialise_Project_Path with the proper Target_Name. | |
7855 | (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat | |
7856 | search path. | |
7857 | (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path | |
7858 | with the proper Target_Name. | |
7859 | * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to | |
7860 | Part.Parse routine. | |
7861 | (Parse_Project_And_Apply_Config): Likewise. | |
7862 | * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine. | |
7863 | This is fine as this part of the code is supporting only native | |
7864 | compilation. | |
7865 | * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This | |
7866 | is fine as this part of the code is supporting only native compilation. | |
7867 | ||
7868 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
7869 | ||
7870 | * sem_util.adb (Enter_Name): issue error in formal mode on declaration | |
7871 | of homonym, unless the homonym is one of the cases allowed in SPARK | |
7872 | * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for | |
7873 | package declaration occurring after a body. | |
7874 | ||
7875 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7876 | ||
7877 | * checks.adb, exp_ch4.adb: Minor reformatting. | |
7878 | ||
7879 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
7880 | ||
7881 | * einfo.ads (Access_Disp_Table): Fix documentation. | |
7882 | (Dispatch_Table_Wrappers): Fix documentation. | |
7883 | ||
7884 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
7885 | ||
7886 | * prj-env.adb, prj-env.ads: Minor reformatting. | |
7887 | ||
7888 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
7889 | ||
7890 | * sem_util.ads, sem_util.adb, par.adb, par_util.adb | |
7891 | (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move | |
7892 | procedures out of these packages. | |
2c7f9cc0 | 7893 | * errout.ads, errout.adb |
052e0603 AC |
7894 | (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move |
7895 | procedures in of this package | |
7896 | (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE | |
7897 | * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode | |
7898 | on misplaced later vs initial declarations, like in Ada 83 | |
7899 | * sem_attr.adb (Processing for Analyze_Attribute): issue error in | |
7900 | formal mode on attribute of private type whose full type declaration | |
7901 | is not visible | |
7902 | * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a | |
7903 | package declaration inside a package specification | |
7904 | (Analyze_Full_Type_Declaration): issue error in formal mode on | |
7905 | controlled type or discriminant type | |
7906 | * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on | |
7907 | user-defined operator means that it should come from the source | |
7908 | (New_Overloaded_Entity): issue error in formal mode on overloaded | |
7909 | entity. | |
7910 | * sem_ch6.ads, sem_ch13.ads: typos in comments. | |
7911 | ||
7912 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
7913 | ||
7914 | * atree.adb: Minor reformatting. | |
7915 | * checks.adb: Minor reformatting. | |
7916 | ||
7917 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
7918 | ||
7919 | * s-parame-vms-ia64.ads: Fix typo in comment | |
7920 | Minor reformatting | |
7921 | * s-parame-vms-restrict.ads: Removed, unused. | |
7922 | ||
7923 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
7924 | ||
7925 | * exp_ch3.adb | |
7926 | (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound. | |
7927 | * sem_ch3.adb | |
7928 | (Constrain_Index): Remove side effects in the evaluation of the bounds. | |
7929 | * sem_ch3.ads, sem_ch3.adb | |
7930 | (Is_Constant_Bound): New extended version of the subprogram that was | |
7931 | previously located inside function Exp_Ch3.Is_Variable_Size_Array. | |
7932 | Moved here since it is shared by routines of sem_ch3 and exp_ch3. | |
7933 | * sem_aux.ads (Constant_Value): Fix typo in comment. | |
7934 | * checks.adb (Generate_Index_Checks): New implementation which, for | |
7935 | array objects with constant bounds, generates the runtime check | |
7936 | referencing the bounds of the array type. For other cases this routine | |
7937 | provides its previous behavior obtaining such values from the array | |
7938 | object. | |
7939 | * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its | |
7940 | parent type. | |
7941 | * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since | |
7942 | we cannot have semantic interpretations of the new node. | |
7943 | ||
7944 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
7945 | ||
7946 | * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified | |
7947 | expressions. | |
7948 | ||
7949 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
7950 | ||
7951 | * sem_ch8.adb: Minor code editing. | |
7952 | * s-vxwext.adb: Remove trailing space. | |
7953 | * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for | |
7954 | consistency with other files. | |
7955 | ||
7956 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
7957 | ||
7958 | * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting. | |
7959 | ||
7960 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
7961 | ||
7962 | * par-ch10.adb: reject parameterized expressions as compilation unit. | |
7963 | * sem_ch4.adb: handle properly conditional expression with overloaded | |
7964 | then_clause and no else_clause. | |
7965 | ||
7966 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
7967 | ||
7968 | * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address | |
7969 | like done by System.Aux_DEC. | |
7970 | * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table. | |
7971 | ||
7972 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
7973 | ||
7974 | * par-endh.adb (Check_End): issue a syntax error in SPARK mode for | |
7975 | missing label at end of declaration (subprogram or package) | |
7976 | * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing | |
7977 | of positional and named parameter association | |
7978 | * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on | |
7979 | Error_Msg_SP which adds a prefix to the error message giving the name | |
7980 | of the formal language analyzed | |
7981 | * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for | |
7982 | access result type in subprogram, unconstrained array as result type,. | |
7983 | (Analyze_Subprogram_Declaration): issue an error in formal mode for null | |
7984 | procedure | |
7985 | * sem_ch8.adb: Code clean up. | |
7986 | ||
7987 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
7988 | ||
7989 | * sem_ch7.adb (Uninstall_Declarations): Remove useless code. | |
7990 | * einfo.ads (Access_Disp_Table): Fix documentation. | |
7991 | (Dispatch_Table_Wrappers): Fix documentation. | |
7992 | * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers, | |
7993 | Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions | |
7994 | to enforce the documentation of this attribute. | |
7995 | (Set_Is_Interface): Cleanup the assertion. | |
7996 | * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate | |
7997 | the Underlying_Type entity before reading attribute Access_Disp_Table. | |
7998 | * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion): | |
7999 | Locate the Underlying_Type before reading attribute Access_Disp_Table. | |
8000 | * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate | |
8001 | the Underlying_Type entity before reading attribute Access_Disp_Table. | |
8002 | * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration): | |
8003 | Locate the Underlying_Type entity before reading attribute | |
8004 | Access_Disp_Table. | |
8005 | ||
8006 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
8007 | ||
8008 | * s-poosiz.ads: Additional overriding indicators. | |
8009 | ||
8010 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
8011 | ||
8012 | * sem_ch5.adb (Analyze_Exit_Statement): add return after error in | |
8013 | formal mode. | |
8014 | (Analyze_Iteration_Scheme): issue error in formal mode when loop | |
8015 | parameter specification does not include a subtype mark. | |
8016 | * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in | |
8017 | formal mode on abstract subprogram. | |
8018 | (Analyze_Subprogram_Specification): issue error in formal mode on | |
8019 | user-defined operator. | |
8020 | (Process_Formals): issue error in formal mode on access parameter and | |
8021 | default expression. | |
8022 | * sem_ch9.adb (Analyze_Abort_Statement, | |
8023 | Analyze_Accept_Statement, Analyze_Asynchronous_Select, | |
8024 | Analyze_Conditional_Entry_Call, Analyze_Delay_Relative, | |
8025 | Analyze_Delay_Until, Analyze_Entry_Call_Alternative, | |
8026 | Analyze_Requeue, Analyze_Selective_Accept, | |
8027 | Analyze_Timed_Entry_Call): issue error in formal mode on such constructs | |
8028 | * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error): | |
8029 | issue error in formal mode on user-defined raise statement. | |
8030 | ||
8031 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
8032 | ||
8033 | * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a | |
8034 | declaration being hidden when overriding an implicit inherited | |
8035 | subprogram. | |
8036 | * par-ch10.adb (P_Compilation_Unit): In syntax check only mode | |
8037 | (-gnats), do not complain about a source file that contains only a | |
8038 | pragma No_Body. | |
8039 | ||
8040 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
8041 | ||
8042 | * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop | |
8043 | variable if already set. | |
8044 | ||
8045 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
8046 | ||
8047 | * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads, | |
8048 | g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads, | |
8049 | s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads, | |
8050 | g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb, | |
8051 | g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads, | |
8052 | g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads, | |
8053 | g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads, | |
8054 | g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb, | |
8055 | g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb, | |
8056 | g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads, | |
8057 | g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads, | |
8058 | s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb, | |
8059 | g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads, | |
8060 | s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads, | |
8061 | g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb, | |
8062 | g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb, | |
8063 | g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb, | |
8064 | g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb, | |
8065 | g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb, | |
8066 | g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb, | |
8067 | s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads, | |
8068 | s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads, | |
8069 | a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb, | |
8070 | s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads, | |
8071 | s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb, | |
8072 | g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads, | |
8073 | g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb, | |
8074 | g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb, | |
8075 | g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads, | |
8076 | g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads, | |
8077 | g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads, | |
8078 | s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads, | |
8079 | s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb, | |
8080 | g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb, | |
8081 | g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads, | |
8082 | s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb, | |
8083 | s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads, | |
8084 | g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads, | |
8085 | g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb, | |
8086 | g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, | |
8087 | s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads, | |
8088 | g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads, | |
8089 | g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads, | |
8090 | g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb, | |
8091 | s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb, | |
8092 | g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb, | |
8093 | g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb, | |
8094 | g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb, | |
8095 | s-osinte-mingw.ads: Update to GPLv3 run-time license. | |
8096 | Use GNAT instead of GNARL. | |
8097 | ||
8098 | 2011-08-01 Bob Duff <duff@adacore.com> | |
8099 | ||
8100 | * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads, | |
8101 | a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads, | |
8102 | a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor | |
8103 | reformatting. | |
8104 | ||
8105 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
8106 | ||
8107 | * debug.adb (d.D) reverve flag for the SPARK mode | |
8108 | (d.E) reverve flag for SPARK generation mode | |
8109 | (d.F) reverve flag for Why generation mode | |
2c7f9cc0 | 8110 | * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode, |
052e0603 AC |
8111 | ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New |
8112 | functions which return True when the corresponding modes are set | |
8113 | (Formal_Language): return "spark" or "alfa" when in formal verification | |
8114 | mode. | |
8115 | * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on | |
8116 | Error_Msg to prefix the error message with a tag giving the formal | |
8117 | language | |
8118 | (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error | |
8119 | message with a tag giving the formal language | |
8120 | * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on | |
8121 | block statement | |
8122 | (Analyze_Case_Statement): issue error in formal mode on case statement | |
8123 | with a single "others" case alternative | |
8124 | (Analyze_Exit_Statement): issue errors in formal mode on exit | |
8125 | statements which do not respect SPARK restrictions | |
8126 | (Analyze_Goto_Statement): issue error in formal mode on goto statement | |
8127 | (Check_Unreachable_Code): always issue an error (not a warning) in | |
8128 | formal mode on unreachable code (concerns both code after an infinite | |
8129 | loop and after an unconditional jump, both not allowed in SPARK) | |
8130 | * sem_ch6.adb (Analyze_Return_Statement): add call to | |
8131 | Set_Return_Present for a procedure containing a return statement | |
8132 | (already done for functions in Analyze_Function_Return) | |
8133 | (Analyze_Function_Return): issue error in formal mode on extended | |
8134 | return or if return is not last statement in function | |
8135 | (Check_Missing_Return): issue error in formal mode if function does | |
8136 | not end with return or if procedure contains a return | |
8137 | * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new | |
8138 | function to detect if there is an inner scope of its parameter S which | |
8139 | is a loop. | |
8140 | ||
8141 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
8142 | ||
8143 | * sem_ch6.ads: Minor reformatting. | |
8144 | ||
8145 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
8146 | ||
8147 | * sem_util.adb (Abstract_Interface_List): Complete condition when | |
8148 | processing private type declarations to avoid reading unavailable | |
8149 | attribute. | |
8150 | (Is_Synchronized_Tagged_Type): Complete condition when processing | |
8151 | private extension declaration nodes to avoid reading unavailable | |
8152 | attribute. | |
8153 | ||
8154 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
8155 | ||
8156 | * sem_ch3.adb: Minor reformatting. | |
8157 | ||
8158 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
8159 | ||
8160 | * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads, | |
8161 | i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads, | |
8162 | s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads, | |
8163 | s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages | |
8164 | for VMS, instead parametrize the common implementation with | |
8165 | System.Parameters declarations. | |
8166 | ||
8167 | 2011-08-01 Eric Botcazou <ebotcazou@adacore.com> | |
8168 | ||
8169 | * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing. | |
8170 | ||
8171 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
8172 | ||
8173 | * seh_init.c: Fix SEH handler installation on win64. | |
8174 | ||
8175 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
8176 | ||
8177 | * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent | |
8178 | double analysis of an anonymous access to subprogram, because it can | |
8179 | lead to improper sharing of profiles and a back-end crash. | |
8180 | ||
8181 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8182 | ||
8183 | * make.adb, sem_ch4.adb: Minor reformatting. | |
8184 | * gcc-interface/Make-lang.in: Update dependencies. | |
8185 | * sem_util.adb, exp_ch5.adb: Minor reformatting. | |
8186 | ||
8187 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
8188 | ||
8189 | * gnat_rm.texi: Fix definition of Long_Integer. | |
8190 | ||
8191 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
8192 | ||
8193 | * exp_aggr.adb: check limit size of static aggregate unconditionally, | |
8194 | to prevent storage exhaustion. | |
8195 | * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being | |
8196 | finalized is a function body, insert the cleanup code before the final | |
8197 | return statement, to prevent spurious warnings. | |
8198 | * s-pooglo.ads: add overriding indicator. | |
8199 | ||
8200 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
8201 | ||
8202 | * sem_ch4.adb (Operator_Check): improve error message when both a | |
8203 | with_clause and a use_clause are needed to make operator usage legal. | |
8204 | * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to | |
8205 | determine whether a compilation unit is visible within an other, | |
8206 | either through a with_clause in the current unit, or a with_clause in | |
8207 | its library unit or one one of its parents. | |
8208 | ||
8209 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
8210 | ||
8211 | * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator | |
8212 | over an arbitrary expression of an array or container type. | |
8213 | * lib-xref.adb: clarify comment. | |
8214 | ||
8215 | 2011-08-01 Bob Duff <duff@adacore.com> | |
8216 | ||
8217 | * einfo.ads: Minor reformatting. | |
8218 | * debug.adb: Minor comment improvement. | |
8219 | ||
8220 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
8221 | ||
8222 | * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not | |
8223 | consider hidden subprograms as valid candidates. | |
8224 | ||
8225 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
8226 | ||
8227 | * make.adb (Compile): Strip -mxxx switches in CodePeer mode. | |
8228 | ||
8229 | 2011-08-01 Vasiliy Fofanov <fofanov@adacore.com> | |
8230 | ||
8231 | * gnat_ugn.texi: Fix typo. | |
8232 | ||
8233 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8234 | ||
8235 | * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb, | |
8236 | lib-xref.adb: Minor reformatting | |
8237 | ||
8238 | 2011-08-01 Gary Dismukes <dismukes@adacore.com> | |
8239 | ||
8240 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of | |
8241 | when to generate a call to Move_Final_List. | |
8242 | (Has_Controlled_Parts): Remove this function. | |
8243 | ||
8244 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
8245 | ||
8246 | * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra | |
8247 | "," in choice list. | |
8248 | ||
8249 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
8250 | ||
8251 | * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for | |
8252 | explicit raise of a predefined exception as Comes_From_Source if the | |
8253 | original N_Raise_Statement comes from source. | |
8254 | ||
8255 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8256 | ||
8257 | * sinfo.ads: Add comment. | |
8258 | * sem_ch6.adb: Minor reformatting. | |
8259 | ||
8260 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8261 | ||
8262 | * freeze.adb (Freeze_Entity): Refine check for bad component size | |
8263 | clause to avoid rejecting confirming clause when atomic/aliased present. | |
8264 | ||
8265 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
8266 | ||
8267 | * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to | |
8268 | better determine whether an entity reference is a write. | |
8269 | * sem_util.adb (Is_LHS): refine predicate to handle assignment to a | |
8270 | subcomponent. | |
8271 | * lib-xref.adb (Output_References): Do no suppress a read reference at | |
8272 | the same location as an immediately preceeding modify-reference, to | |
8273 | handle properly in-out actuals. | |
8274 | ||
8275 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
8276 | ||
8277 | * env.c (__gnat_setenv) [VMS]: Refine previous change. | |
8278 | ||
8279 | 2011-08-01 Quentin Ochem <ochem@adacore.com> | |
8280 | ||
8281 | * i-cstrin.adb (New_String): Changed implementation, now uses only the | |
8282 | heap to compute the result. | |
8283 | ||
8284 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8285 | ||
8286 | * atree.ads: Minor reformatting. | |
8287 | ||
8288 | 2011-08-01 Emmanuel Briot <briot@adacore.com> | |
8289 | ||
8290 | * g-expect.adb (Get_Command_Output): Fix memory leak. | |
8291 | ||
8292 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
8293 | ||
8294 | * cstand.adb (P_Float_Type): New procedure to print the definition of | |
8295 | predefined fpt types. | |
8296 | (P_Mixed_Name): New procedure to print a name using mixed case | |
8297 | (Print_Standard): Use P_Float_Type for printing floating point types | |
8298 | * einfo.adb (Machine_Emax_Value): Add preliminary support for quad | |
8299 | precision IEEE float. | |
8300 | ||
8301 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
8302 | ||
8303 | * sem_ch3.adb: Minor reformatting. | |
8304 | ||
8305 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
8306 | ||
8307 | * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is | |
8308 | the completion of a generic function, insert the new body rather than | |
8309 | rewriting the original. | |
8310 | ||
8311 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
8312 | ||
8313 | * sinfo.ads, errout.ads: Typos in comments. | |
8314 | ||
8315 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8316 | ||
8317 | * par-endh.adb: Minor reformatting. | |
8318 | ||
8319 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8320 | ||
8321 | * aspects.ads, aspects.adb: Add aspects for library unit pragmas | |
8322 | (Pre_Post_Aspects): New subtype. | |
8323 | * par-ch12.adb (P_Generic): New syntax for aspects in packages | |
8324 | * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter | |
8325 | * par-ch7.adb (P_Package): Remove Decl parameter | |
8326 | (P_Package): Handle new syntax for aspects (before IS) | |
8327 | * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle | |
8328 | new aspect syntax | |
8329 | (P_Task_Definition): Remove Decl parameter, handle new aspect syntax | |
8330 | * par.adb (P_Aspect_Specifications): Add Semicolon parameter | |
8331 | (P_Package): Remove Decl parameter | |
8332 | * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit | |
8333 | aspects | |
8334 | * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect | |
8335 | specs | |
8336 | * sem_util.ads, sem_util.adb (Static_Boolean): New function | |
8337 | * sinfo.ads: Document new syntax for aspects in packages etc. | |
8338 | * sprint.adb: Handle new syntax of aspects before IS in package | |
8339 | ||
8340 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
8341 | ||
8342 | * atree.ads: Minor reformatting. | |
8343 | * sem_prag.adb: Minor reformatting. | |
8344 | ||
8345 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8346 | ||
8347 | * exp_util.adb (Insert_Actions): Fix error in handling Actions for | |
8348 | case expr alternative. | |
8349 | ||
8350 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
8351 | ||
8352 | * sem_ch12.adb: Fix typo. | |
8353 | ||
8354 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
8355 | ||
8356 | * sem_prag.adb (Check_No_Link_Name): New procedure. | |
8357 | (Process_Import_Or_Interface): Use Check_No_Link_Name. | |
8358 | * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float) | |
8359 | instead of Standard_Long_Long_Float_Size global. Preparation for | |
8360 | eventual removal of per type constants. | |
8361 | * exp_util.ads (Get_Stream_Size): New function returning the stream | |
8362 | size value of subtype E. | |
8363 | * exp_util.adb (Get_Stream_Size): Implement new function. | |
8364 | * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size | |
8365 | function. | |
8366 | * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size | |
8367 | * einfo.adb: | |
8368 | (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats | |
8369 | ||
8370 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
8371 | ||
8372 | * cstand.adb: Fix comments. | |
8373 | * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit | |
8374 | count of arguments. | |
8375 | ||
8376 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8377 | ||
8378 | * exp_ch4.adb, sem_cat.adb: Minor reformatting. | |
8379 | ||
8380 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
8381 | ||
8382 | * atree.ads: Fix comment. | |
8383 | ||
8384 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8385 | ||
8386 | * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec. | |
8387 | * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name. | |
8388 | * par.adb: Add with for Namet.Sp. | |
8389 | * par-tchk.adb: Minor reformatting. | |
8390 | ||
8391 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
8392 | ||
8393 | * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb | |
8394 | (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name | |
8395 | of the init procedure of a SAL. | |
8396 | * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name): | |
8397 | New procedure. | |
8398 | ||
8399 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
8400 | ||
8401 | * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor | |
8402 | reformatting. | |
8403 | ||
8404 | 2011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
8405 | ||
8406 | * adaint.c (__gnat_file_time_name_attr): Get rid of warning. | |
8407 | ||
8408 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
8409 | ||
8410 | * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function | |
8411 | conformant with its spec (return True only for types that have | |
8412 | an overriding Initialize primitive operation that prevents them from | |
8413 | having preelaborable initialization). | |
8414 | * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable | |
8415 | initialization for controlled types in Ada 2005 or later mode. | |
8416 | ||
8417 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8418 | ||
8419 | * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition, | |
8420 | Postcondition. | |
8421 | (Same_Aspect): New function. | |
8422 | * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect | |
8423 | Type_Invariant, Precondition, Postcondition. | |
8424 | * snames.ads-tmpl: Add Name_Type_Invariant. | |
8425 | ||
8426 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8427 | ||
8428 | * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point | |
8429 | here. | |
8430 | (Freeze_All_Ent): Fix error in handling inherited aspects. | |
8431 | * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is | |
8432 | already analyzed, but don't skip entire processing of a declaration, | |
8433 | that's wrong in some cases of declarations being rewritten. | |
8434 | (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects. | |
8435 | Don't delay for integer, string literals | |
8436 | Treat predicates in usual manner for delay, remove special case code, | |
8437 | not needed. | |
8438 | (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point | |
8439 | (Build_Predicate_Function): Update saved expression in aspect | |
8440 | (Build_Invariant_Procedure): Update saved expression in aspect | |
8441 | * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization | |
8442 | of replacement of discriminant references if the reference is simple. | |
8443 | ||
8444 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8445 | ||
8446 | * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate. | |
8447 | * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for | |
8448 | Static_Predicate and Dynamic_Predicate. | |
8449 | (Build_Predicate_Function): Add processing for Static_Predicate | |
8450 | and Dynamic_Predicate. | |
8451 | * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag | |
8452 | (From_Static_Predicate): New flag | |
8453 | * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate | |
8454 | ||
8455 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8456 | ||
8457 | * usage.adb: Documentation cleanup for Ada version modes in usage. | |
8458 | * expander.adb: Minor reformatting. | |
8459 | ||
8460 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8461 | ||
8462 | * atree.ads: Minor comment fix. | |
8463 | * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads, | |
8464 | a-witeio.ads, sem_prag.adb: Minor reformatting. | |
8465 | ||
8466 | 2011-08-01 Doug Rupp <rupp@adacore.com> | |
8467 | ||
8468 | * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure | |
8469 | pointers. Use descrip.h header file for convenience. Add some | |
8470 | comments. | |
8471 | ||
8472 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8473 | ||
8474 | * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point | |
8475 | (Freeze_All): Call Check_Aspect_At_End_Of_Declarations | |
8476 | * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point): | |
8477 | New procedure. | |
8478 | (Check_Aspect_At_End_Of_Declarations): New procedure | |
8479 | (Analye_Aspect_Specification): Minor changes for above procedures | |
8480 | * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect | |
8481 | specification node as well. | |
8482 | ||
8483 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
8484 | ||
8485 | * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special | |
8486 | Windows files. Use GetFilesAttributes() in this case to check for file | |
8487 | existence instead of returning with an error code. | |
8488 | ||
8489 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
8490 | ||
8491 | * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when | |
8492 | High is above Source length. | |
8493 | ||
8494 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8495 | ||
8496 | * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment. | |
8497 | ||
8498 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8499 | ||
8500 | * aspects.ads (Boolean_Aspects): New subtype. | |
8501 | * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects | |
8502 | for derived types in cases where the parent type and derived type have | |
8503 | aspects. | |
8504 | * freeze.adb (Freeze_Entity): Fix problems in handling derived type | |
8505 | with aspects when parent type also has aspects. | |
8506 | (Freeze_Entity): Deal with delay of boolean aspects (must evaluate | |
8507 | boolean expression at this point). | |
8508 | * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in | |
8509 | accordance with final decision on the Ada 2012 feature. | |
8510 | * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag. | |
8511 | ||
8512 | 2011-08-01 Matthew Heaney <heaney@adacore.com> | |
8513 | ||
8514 | * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector. | |
8515 | ||
8516 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
8517 | ||
8518 | * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: | |
8519 | Fix Replace_Slice when High is above current string size. | |
8520 | (Replace_Slice): Fix DL computation when High is above current | |
8521 | string length. | |
8522 | ||
8523 | 2011-08-01 Gary Dismukes <dismukes@adacore.com> | |
8524 | ||
8525 | * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired. | |
8526 | ||
8527 | 2011-08-01 Matthew Heaney <heaney@adacore.com> | |
8528 | ||
8529 | * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child | |
8530 | of node. | |
8531 | ||
8532 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
8533 | ||
8534 | * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor | |
8535 | reformatting. | |
8536 | ||
8537 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
8538 | ||
8539 | * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named | |
8540 | access to protected subprograms in generic bodies. | |
8541 | * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a | |
8542 | protected type, indicate that the convention of the subprogram is | |
8543 | Convention_Protected, because it may be used in subsequent declarations | |
8544 | within the protected declaration. | |
8545 | ||
8546 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
8547 | ||
8548 | * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init" | |
8549 | and "final" procedures when the name of the library is "ada", to avoid | |
8550 | duplicate symbols "adainit" and "adafinal" in executables. | |
8551 | ||
8552 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
8553 | ||
8554 | * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a | |
8555 | quantified expression that appears within a postcondition and uses the | |
8556 | Ada2012 'Result attribute. | |
8557 | ||
8558 | 2011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
8559 | ||
8560 | * init.c (__gnat_error_handler): Cast reason to int. | |
8561 | (__gnat_install_handler): Explain sa_sigaction use. | |
8562 | ||
8563 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> | |
8564 | ||
8565 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the | |
8566 | subprogram has copy-in copy-out parameters, try to promote the mode of | |
8567 | the return type if it is passed in registers. | |
8568 | ||
8569 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> | |
8570 | ||
8571 | * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the | |
8572 | left operand as addressable. | |
8573 | ||
8574 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> | |
8575 | ||
8576 | * gcc-interface/gigi.h (build_function_stub): Remove. | |
8577 | (build_return_expr): Likewise. | |
8578 | (convert_vms_descriptor): Declare. | |
8579 | * gcc-interface/utils.c (convert_vms_descriptor): Make global. | |
8580 | (build_function_stub): Move to... | |
8581 | * gcc-interface/utils2.c (build_return_expr): Move to... | |
8582 | * gcc-interface/trans.c (build_function_stub): ...here. | |
8583 | (build_return_expr): ...here. | |
8584 | (Subprogram_Body_to_gnu): Add local variable for language_function. | |
8585 | Disconnect the parameter attributes cache, if any, once done with it. | |
8586 | Call end_subprog_body only after setting the end_locus. | |
8587 | Build the stub associated with the function, if any, at the very end. | |
8588 | (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local | |
8589 | variables and streamline control flow. | |
8590 | ||
8591 | 2011-07-23 Arnaud Charlet <charlet@adacore.com> | |
8592 | ||
8593 | PR ada/49819 | |
8594 | * gcc-interface/Makefile.in (powerpc-linux): Remove reference to | |
8595 | g-trasym-dwarf.adb. | |
8596 | ||
8597 | 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
8598 | ||
8599 | PR bootstrap/49794 | |
8600 | * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler): | |
8601 | Assign to act.sa_sigaction. | |
8602 | * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast | |
8603 | current->return_address to char * before arithmetic. | |
8604 | ||
8605 | 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
8606 | ||
8607 | * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation. | |
8608 | Correct argument types. | |
8609 | Extract code from reason. | |
8610 | (__gnat_install_handler): Assign to act.sa_sigaction. | |
8611 | ||
8612 | 2011-07-21 Eric Botcazou <ebotcazou@adacore.com> | |
8613 | ||
8614 | * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to... | |
8615 | (GNAT1_OBJS): ...here. | |
8616 | ||
8617 | 2011-07-15 Eric Botcazou <ebotcazou@adacore.com> | |
8618 | ||
8619 | PR ada/48711 | |
8620 | * g-socthi-mingw.adb (Fill): Fix formatting. | |
8621 | ||
8622 | * gcc-interface/gigi.h: Move around comment. | |
8623 | ||
8624 | 2011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | |
8625 | ||
8626 | PR ada/46350 | |
8627 | * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast. | |
8628 | ||
8629 | 2011-07-14 Florian Weimer <fw@deneb.enyo.de> | |
8630 | ||
8631 | PR ada/48711 | |
8632 | * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL. | |
8633 | ||
8634 | 2011-07-13 Eric Botcazou <ebotcazou@adacore.com> | |
8635 | ||
8636 | * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit | |
8637 | range comparison if Pmode is SImode. | |
8638 | ||
8639 | 2011-07-12 Laurent GUERBY <laurent@guerby.net> | |
8640 | Eric Botcazou <ebotcazou@adacore.com> | |
8641 | ||
8642 | * adadecode.c: Wrap up in extern "C" block. | |
8643 | * adadecode.h: Likewise. | |
8644 | * adaint.c: Likewise. Remove 'const' keyword. | |
8645 | * adaint.h: Likewise. | |
8646 | * argv.c: Likewise. | |
8647 | * atree.h: Likewise. | |
8648 | * cio.c: Likewise. | |
8649 | * cstreams.c: Likewise. | |
8650 | * env.c: Likewise. | |
8651 | * exit.c: Likewise. | |
8652 | * fe.h: Likewise. | |
8653 | * final.c: Likewise. | |
8654 | * init.c: Likewise. | |
8655 | * initialize.c: Likewise. | |
8656 | * link.c: Likewise. | |
8657 | * namet.h: Likewise. | |
8658 | * nlists.h: Likewise. | |
8659 | * raise.c: Likewise. | |
8660 | * raise.h: Likewise. | |
8661 | * repinfo.h: Likewise. | |
8662 | * seh_init.c: Likewise. | |
8663 | * targext.c: Likewise. | |
8664 | * tracebak.c: Likewise. | |
8665 | * uintp.h: Likewise. | |
8666 | * urealp.h: Likewise. | |
8667 | * xeinfo.adb: Wrap up generated C code in extern "C" block. | |
8668 | * xsinfo.adb: Likewise. | |
8669 | * xsnamest.adb: Likewise. | |
8670 | * gcc-interface/gadaint.h: Wrap up in extern "C" block. | |
8671 | * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block. | |
8672 | * gcc-interface/misc.c: Likewise. | |
8673 | * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER. | |
8674 | (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and | |
8675 | ada/targext.o here... | |
8676 | (GNAT_ADA_OBJS): ...and not here. | |
8677 | (GNAT1_ADA_OBJS): Add ada/b_gnat1.o. | |
8678 | (GNATBIND_OBJS): Reorder. | |
8679 | ||
8680 | 2011-07-07 Richard Henderson <rth@redhat.com> | |
8681 | ||
8682 | * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call | |
8683 | dwarf2out_frame_init. | |
8684 | ||
8685 | 2011-07-07 Eric Botcazou <ebotcazou@adacore.com> | |
8686 | ||
8687 | * gcc-interface/misc.c (gnat_init): Tweak previous change. | |
8688 | ||
8689 | 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
8690 | ||
8691 | PR target/39150 | |
8692 | * gcc-interface/Makefile.in: Handle x86_64-solaris2. | |
8693 | ||
8694 | 2011-07-06 Richard Guenther <rguenther@suse.de> | |
8695 | ||
8696 | * gcc-interface/misc.c (gnat_init): Merge calls to | |
8697 | build_common_tree_nodes and build_common_tree_nodes_2. | |
8698 | Re-initialize boolean_false_node. | |
8699 | ||
8700 | 2011-07-02 Eric Botcazou <ebotcazou@adacore.com> | |
8701 | Olivier Hainque <hainque@adacore.com> | |
8702 | Nicolas Setton <setton@adacore.com> | |
8703 | ||
8704 | * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on | |
8705 | the type according to the ARTIFICIAL_P parameter. | |
8706 | (create_type_decl): Likewise. | |
8707 | (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1. | |
8708 | ||
8709 | 2011-07-01 Eric Botcazou <ebotcazou@adacore.com> | |
8710 | ||
8711 | * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command. | |
8712 | (gnatbind): Likewise. | |
8713 | ||
8714 | 2011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
8715 | ||
8716 | * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL). | |
8717 | ||
8718 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> | |
8719 | ||
8720 | * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE | |
8721 | local variable throughout. Remove useless call to Base_Type. | |
8722 | (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout. | |
8723 | Take it also into account for the volatileness of the field. Set the | |
8724 | TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings. | |
8725 | ||
8726 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> | |
8727 | ||
8728 | * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP | |
8729 | on a dereference built for a by-ref object if it has an address clause. | |
8730 | ||
8731 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> | |
8732 | ||
8733 | * einfo.ads (Address_Taken): Document use for the second argument of | |
8734 | Asm_Input and Asm_Output attributes. | |
8735 | * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second | |
8736 | argument is an entity name, then set Address_Taken on it. | |
8737 | <Attribute_Asm_Output>: Likewise. | |
8738 | * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the | |
8739 | Attr_Asm_Input and Attr_Asm_Output attributes explicitly. | |
8740 | (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in | |
8741 | memory and is a CONST_DECL, retrieve its corresponding VAR_DECL. | |
8742 | ||
8743 | 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com> | |
8744 | ||
8745 | PR middle-end/46500 | |
8746 | * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args. | |
8747 | ||
8748 | 2011-06-14 Joseph Myers <joseph@codesourcery.com> | |
8749 | ||
8750 | * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o. | |
8751 | (ada/utils.o): Update dependencies. | |
8752 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add | |
8753 | ../../../libcpp/libcpp.a. | |
8754 | * gcc-interface/utils.c: Include common/common-target.h. | |
8755 | (process_attributes): Use targetm_common.have_named_sections. | |
8756 | ||
8757 | 2011-06-07 Richard Guenther <rguenther@suse.de> | |
8758 | ||
8759 | * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call | |
8760 | set_sizetype. | |
8761 | ||
8762 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> | |
8763 | ||
8764 | * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the | |
8765 | TREE_THIS_NOTRAP flag. | |
8766 | ||
8767 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> | |
8768 | ||
8769 | * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>: | |
8770 | Fix thinko. | |
8771 | ||
8772 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> | |
8773 | ||
8774 | * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred | |
8775 | constants whose full view has discriminants specially. | |
8776 | ||
8777 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> | |
8778 | ||
8779 | * gcc-interface/utils.c: Include diagnostic.h. | |
8780 | (gnat_write_global_declarations): Output debug information for all | |
8781 | global type declarations before finalizing the compilation unit. | |
8782 | * gcc-interface/Make-lang.in (ada/utils.o): Add dependency. | |
8783 | ||
8784 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> | |
8785 | ||
8786 | * gcc-interface/utils.c (def_fn_type): Remove extra va_end. | |
8787 | ||
8788 | 2011-05-25 Kai Tietz <ktietz@redhat.com> | |
8789 | ||
8790 | * adaint.c (__gnat_to_canonical_file_list_next): Use array | |
8791 | initialization instead of const/none-const pointer assignment. | |
8792 | ||
8793 | 2011-05-24 Joseph Myers <joseph@codesourcery.com> | |
8794 | ||
8795 | * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include | |
8796 | $(EXTRA_GNAT1_OBJS). | |
8797 | (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS). | |
8798 | (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove. | |
8799 | (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a. | |
8800 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use | |
8801 | libcommon-target.a instead of prefix.o. | |
8802 | ||
8803 | 2011-05-21 Joseph Myers <joseph@codesourcery.com> | |
8804 | ||
8805 | PR ada/49097 | |
8806 | * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS). | |
8807 | ||
8808 | 2011-05-20 Joseph Myers <joseph@codesourcery.com> | |
8809 | ||
8810 | * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o. | |
8811 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a | |
8812 | instead of version.o. | |
8813 | ||
8814 | 2011-05-18 Kai Tietz <ktietz@redhat.com> | |
8815 | ||
8816 | * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use | |
8817 | boolean_false_node instead of integer_zero_node. | |
8818 | (convert_with_check): Likewise. | |
8819 | * gcc-interface/decl.c (choices_to_gnu): Likewise. | |
8820 | ||
8821 | 2011-05-12 Eric Botcazou <ebotcazou@adacore.com> | |
8822 | ||
8823 | * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the | |
8824 | type of the parameter is an unconstrained array, convert the actual to | |
8825 | the type of the formal in the In Out and Out cases as well. | |
8826 | ||
8827 | 2011-05-11 Nathan Froyd <froydnj@codesourcery.com> | |
8828 | ||
8829 | * gcc-interface/utils.c (def_fn_type): Don't call build_function_type; | |
8830 | call build_function_type_array or build_varargs_function_type_array | |
8831 | instead. | |
8832 | (create_subprog_type): Don't call build_function_type; call | |
8833 | build_function_type_vec instead. | |
8834 | ||
8835 | 2011-05-11 Nathan Froyd <froydnj@codesourcery.com> | |
8836 | ||
8837 | * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL. | |
8838 | (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL. | |
8839 | (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL. | |
8840 | ||
8841 | 2011-05-07 Eric Botcazou <ebotcazou@adacore.com> | |
8842 | ||
8843 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces. | |
8844 | ||
8845 | * gcc-interface/gigi.h (global_bindings_p): Adjust prototype. | |
8846 | * gcc-interface/utils.c (global_bindings_p): Return bool and simplify. | |
8847 | ||
8848 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> | |
8849 | ||
8850 | * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label. | |
8851 | ||
8852 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> | |
8853 | ||
8854 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators | |
8855 | instead of accessing TYPE_ARG_TYPES directly. | |
8856 | * gcc-interface/utils.c (handle_nonnull_attribute): Likewise. | |
8857 | ||
8858 | 2011-05-05 Eric Botcazou <ebotcazou@adacore.com> | |
8859 | ||
8860 | PR ada/48844 | |
8861 | * gcc-interface/gigi.h (get_variant_part): Declare. | |
8862 | * gcc-interface/decl.c (get_variant_part): Make global. | |
8863 | * gcc-interface/utils2.c (find_common_type): Do not return T1 if the | |
8864 | types have the same constant size, are record types and T1 has a | |
8865 | variant part while T2 doesn't. | |
8866 | ||
8867 | 2011-05-05 Eric Botcazou <ebotcazou@adacore.com> | |
8868 | ||
8869 | * gcc-interface/utils.c (begin_subprog_body): Do not call | |
8870 | get_pending_sizes. | |
8871 | (end_subprog_body): Likewise. | |
8872 | ||
8873 | 2011-05-04 Richard Guenther <rguenther@suse.de> | |
8874 | ||
8875 | * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to | |
8876 | int_const_binop. | |
8877 | (pos_to_constructor): Likewise. | |
8878 | ||
8879 | 2011-05-03 Nathan Froyd <froydnj@codesourcery.com> | |
2c7f9cc0 | 8880 | Eric Botcazou <ebotcazou@adacore.com> |
052e0603 AC |
8881 | |
8882 | * gcc-interface/trans.c (gigi): Call build_function_type_list instead | |
8883 | of build_function_type. Adjust calls to... | |
8884 | (build_raise_check): ...this. Do not take a void_tree parameter. | |
8885 | Call build_function_type_list instead of build_function_type. | |
8886 | Fix head comment and swap couple of conditional blocks. | |
8887 | ||
8888 | 2011-04-30 Eric Botcazou <ebotcazou@adacore.com> | |
8889 | ||
8890 | * gnatvsn.ads (Library_Version): Bump to 4.7. | |
8891 | (Current_Year): Bump to 2011. | |
8892 | ||
8893 | 2011-04-29 Michael Matz <matz@suse.de> | |
8894 | ||
8895 | * gcc-interface/misc.c (gnat_handle_option): Set | |
8896 | warn_maybe_uninitialized. | |
8897 | ||
8898 | 2011-04-23 Gerald Pfeifer <gerald@pfeifer.com> | |
8899 | ||
8900 | * gnat_ugn.texi (Complexity Metrics Control): Update link to | |
8901 | the Watson/McCabe paper. | |
8902 | ||
8903 | 2011-04-23 Jim Meyering <meyering@redhat.com> | |
8904 | ||
8905 | * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/ | |
8906 | ||
8907 | 2011-04-22 Eric Botcazou <ebotcazou@adacore.com> | |
8908 | ||
8909 | * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE | |
8910 | onto the new type. | |
8911 | ||
8912 | 2011-04-22 Eric Botcazou <ebotcazou@adacore.com> | |
8913 | ||
8914 | * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG | |
8915 | parameter. | |
8916 | * gcc-interface/utils.c (create_subprog_decl): Likewise. Set | |
8917 | DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly. | |
8918 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add | |
8919 | ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl. | |
8920 | <all>: Do not set flags on the reused DECL node coming from an alias. | |
8921 | Set DECL_IGNORED_P on the DECL node built for subprograms if they | |
8922 | don't need debug info here... | |
8923 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here. | |
8924 | (gigi): Adjust calls to create_subprog_decl. | |
8925 | (build_raise_check): Likewise. | |
8926 | (establish_gnat_vms_condition_handler): Likewise. | |
8927 | (Compilation_Unit_to_gnu): Likewise. | |
8928 | (gnat_to_gnu): Likewise. | |
8929 | ||
8930 | 2011-04-21 Eric Botcazou <ebotcazou@adacore.com> | |
8931 | ||
8932 | * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define. | |
8933 | (NO_REORDER_ADAFLAGS): New variable. | |
8934 | (EXTRA_GNATTOOLS): Always define. | |
8935 | (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h. | |
8936 | Clean up and adjust list of files compiled with special options. | |
8937 | * gcc-interface/Make-lang.in: Likewise. | |
8938 | (ada/decl.o): Cosmetical change. | |
8939 | (ada/misc.o): Remove dependency on $(PLUGIN_H). | |
8940 | ||
8941 | 2011-04-20 Jim Meyering <meyering@redhat.com> | |
8942 | ||
8943 | * initialize.c (__gnat_initialize): Remove useless if-before-free. | |
8944 | ||
8945 | 2011-04-17 Eric Botcazou <ebotcazou@adacore.com> | |
8946 | ||
8947 | * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with | |
8948 | $(CFLAGS) on the link line. | |
8949 | ||
8950 | 2011-04-17 Eric Botcazou <ebotcazou@adacore.com> | |
8951 | ||
8952 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the | |
8953 | padded type built for the return type if it is unconstrained. | |
8954 | ||
8955 | 2011-04-14 Nathan Froyd <froydnj@codesourcery.com> | |
8956 | ||
8957 | * gcc-interface/utils.c (gnat_poplevel): Use block_chainon. | |
8958 | ||
8959 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> | |
8960 | ||
8961 | * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON | |
8962 | before calling TREE_CHAIN. | |
8963 | * gcc-interface/misc.c (gnat_init_ts): New function. | |
8964 | (LANG_HOOKS_INIT_TS): Define. | |
8965 | ||
8966 | 2011-04-12 Martin Jambor <mjambor@suse.cz> | |
8967 | ||
8968 | * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node | |
8969 | instead of cgraph_node. | |
8970 | ||
8971 | 2011-04-08 Eric Botcazou <ebotcazou@adacore.com> | |
8972 | ||
8973 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum | |
8974 | alignment on fields of the RETURN type built for the Copy-In Copy-Out | |
8975 | mechanism. | |
8976 | ||
8977 | 2011-04-08 Eric Botcazou <ebotcazou@adacore.com> | |
8978 | ||
8979 | * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers | |
8980 | of aggregate types that contain a placeholder. | |
8981 | ||
8982 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> | |
8983 | ||
8984 | * gcc-interface/utils.c (handle_sentinel_attribute): Don't use | |
8985 | TYPE_ARG_TYPES. | |
8986 | (handle_type_generic_attribute): Likewise. | |
8987 | ||
8988 | 2011-04-04 Eric Botcazou <ebotcazou@adacore.com> | |
8989 | ||
8990 | PR ada/47163 | |
8991 | * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change. | |
8992 | ||
8993 | 2011-04-04 Kai Tietz <ktietz@redhat.com> | |
8994 | ||
8995 | PR ada/47163 | |
8996 | * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets | |
8997 | to flag value. | |
8998 | ||
8999 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
9000 | ||
9001 | * gcc-interface/utils2.c (build_allocator): In the unconstrained array | |
9002 | type case, do not strip a padding type around the array type. | |
9003 | ||
9004 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
9005 | ||
9006 | * gcc-interface/utils.c (update_pointer_to): Finalize named pointer | |
9007 | types. | |
9008 | ||
9009 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
9010 | ||
9011 | * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete. | |
9012 | * gcc-interface/misc.c (gnat_handle_option): Remove special handling | |
9013 | code for -feliminate-unused-debug-types. | |
9014 | (gnat_post_options): Likewise. | |
9015 | ||
9016 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
9017 | ||
9018 | * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial | |
9019 | declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a | |
9020 | distinct copy. | |
9021 | ||
9022 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
9023 | ||
9024 | * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the | |
9025 | DECL_ARTIFICIAL flag on enumeration types. | |
9026 | ||
9027 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
9028 | ||
9029 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make | |
9030 | fat pointer types artificial unconditionally. | |
9031 | <E_Array_Subtype>: Attach the base array type as a parallel type if it | |
9032 | isn't artificial. | |
9033 | ||
9034 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
9035 | ||
9036 | * gcc-interface/gigi.h (get_dummy_type): Declare. | |
9037 | (build_dummy_unc_pointer_types): Likewise. | |
9038 | (finish_fat_pointer_type): Likewise. | |
9039 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy | |
9040 | fat pointer type has been built, complete it in place. | |
9041 | <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat | |
9042 | and thin pointers. Remove useless variable. | |
9043 | (finish_fat_pointer_type): Make global and move to... | |
9044 | * gcc-interface/utils.c (finish_fat_pointer_type): ...here. | |
9045 | (get_dummy_type): New function. | |
9046 | (build_dummy_unc_pointer_types): Likewise. | |
9047 | (gnat_pushdecl): Propage the name to the anonymous variants only. | |
9048 | (update_pointer_to): Only adjust the pointer types in the unconstrained | |
9049 | array case. | |
9050 | ||
9051 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
9052 | ||
9053 | * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag. | |
9054 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it | |
9055 | if this is a Taft amendment type and the full declaration is available. | |
9056 | * gcc-interface/trans.c (process_type): Likewise. | |
9057 | If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P. | |
9058 | (process_freeze_entity): Likewise. | |
9059 | * gcc-interface/utils.c (dummy_global): New static variable. | |
9060 | (gnat_write_global_declarations): If there are types declared as used | |
9061 | at the global level, insert them in the global hash table. | |
9062 | ||
9063 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
9064 | ||
9065 | * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param. | |
9066 | * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial | |
9067 | declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct | |
9068 | copy. | |
9069 | (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL | |
9070 | flag of the type accordingly. | |
9071 | * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type. | |
9072 | ||
9073 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
9074 | ||
9075 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer | |
9076 | finalizing types when updating the pointers to the designated type. | |
9077 | <all>: Finalize the deferred types even if we didn't defer processing | |
9078 | of incomplete types in this invocation. | |
9079 | ||
9080 | 2011-04-01 Olivier Hainque <hainque@adacore.com> | |
2c7f9cc0 AS |
9081 | Nicolas Setton <setton@adacore.com> |
9082 | Eric Botcazou <ebotcazou@adacore.com> | |
052e0603 AC |
9083 | |
9084 | * gcc-interface/misc.c (gnat_descriptive_type): New function. | |
9085 | (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type. | |
9086 | ||
9087 | 2011-03-28 Kai Tietz <ktietz@redhat.com> | |
9088 | ||
9089 | * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native | |
9090 | Windows targets. | |
9091 | (EH_MECHANISM): Use GCC exception mechanism for native Windows targets. | |
9092 | * system-mingw.ads (System): Change ZCX_By_Default default to True. | |
9093 | ||
9094 | * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype. | |
9095 | ||
9096 | 2011-03-28 Tristan Gingold <gingold@adacore.com> | |
9097 | ||
9098 | PR ada/44431 | |
9099 | * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c. | |
9100 | Use ada output of gnatbind. | |
9101 | (ada/b_gnatb.adb): Ditto. | |
9102 | (ada/b_gnat1.o, ada/b_gnatb.o): New rules. | |
9103 | (ada.mostlyclean, ada.stage1) | |
9104 | (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile) | |
9105 | (ada.stagefeedback): Adjust. | |
9106 | * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c. | |
9107 | Use ada output of gnatbind. | |
9108 | (b_gnatm.adb): Ditto. | |
9109 | (b_gnatl.o, b_gnatm.o): New rules. | |
9110 | ||
9111 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> | |
9112 | ||
9113 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL | |
9114 | for the padded type built to support a specified size or alignment. | |
9115 | ||
9116 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> | |
9117 | ||
9118 | * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment. | |
9119 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer | |
9120 | unconditionally to the end of the unit when the designated type is | |
9121 | limited_with'ed. | |
9122 | <all>: Rename local variable. Attempt to un-defer types only and do it | |
9123 | for limited_with'ed types as well. | |
9124 | (finalize_from_with_types): Adjust comment. Rename variable and tidy. | |
9125 | * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT | |
9126 | consistently and remove redundant call to finalize_from_with_types. | |
9127 | ||
9128 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> | |
9129 | ||
9130 | * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to | |
9131 | subprograms without a previous spec declared in the same unit. | |
9132 | * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined | |
9133 | subprograms at the end of the unit instead of at the beginning. | |
9134 | * gcc-interface/utils.c (create_subprog_decl): Check that the entity | |
9135 | isn't public for the special handling of non-inline functions nested | |
9136 | inside inline external functions. | |
9137 | ||
9138 | 2011-03-25 Jeff Law <law@redhat.com> | |
9139 | ||
9140 | * gcc-interface/utils.c (def_fn_type): Add missing va_end. | |
9141 | ||
9142 | 2011-03-24 Eric Botcazou <ebotcazou@adacore.com> | |
9143 | ||
9144 | * einfo.ads (Size_Depends_On_Discriminant): Adjust description. | |
9145 | * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure | |
9146 | to compute Set_Size_Depends_On_Discriminant. | |
9147 | (Layout_Type): Call it on array types in back-end layout mode. | |
9148 | * sem_util.adb (Requires_Transient_Scope): Return true for array | |
9149 | types only if the size depends on the value of discriminants. | |
9150 | * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS | |
9151 | type if the RHS is a call to a function that returns an unconstrained | |
9152 | type with default discriminant. | |
9153 | ||
9154 | 2011-03-24 Eric Botcazou <ebotcazou@adacore.com> | |
9155 | ||
9156 | * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of | |
9157 | non-conversion to the nominal result type at the end. | |
9158 | ||
9159 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> | |
9160 | ||
9161 | * gcc-interface/trans.c (create_temporary): New function taken from... | |
9162 | (create_init_temporary): ...here. Call it. | |
9163 | (call_to_gnu): Create the temporary for the return value early, if any. | |
9164 | Create it for a function with copy-in/copy-out parameters if there is | |
9165 | no target; in other cases of copy-in/copy-out, use another temporary. | |
9166 | Push the new binding level lazily. Add and rename local variables. | |
9167 | ||
9168 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> | |
9169 | ||
9170 | * gcc-interface/decl.c (validate_size): Improve comments and tweak | |
9171 | error message. | |
9172 | (set_rm_size): Likewise. | |
9173 | ||
9174 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> | |
9175 | ||
9176 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL | |
9177 | for the padded type built in order to support a specified alignment. | |
9178 | Fix incorrect formatting. | |
9179 | ||
9180 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> | |
9181 | ||
9182 | PR bootstrap/48216 | |
9183 | * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL. | |
9184 | ||
9185 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> | |
9186 | ||
9187 | * gcc-interface/decl.c (components_to_record): Add REORDER parameter, | |
9188 | rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter | |
9189 | to the end of the list. Adjust recursive call. Rename local variable. | |
9190 | If REORDER is true, reorder components of the record type. | |
9191 | (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to | |
9192 | components_to_record and adjust the parameter list. | |
9193 | ||
9194 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> | |
9195 | ||
9196 | * gcc-interface/decl.c (elaborate_expression_1): When optimization is | |
9197 | disabled, use the variable for bounds of loop iteration scheme. | |
9198 | ||
9199 | 2011-03-21 Kai Tietz <ktietz@redhat.com> | |
9200 | ||
9201 | PR target/12171 | |
9202 | * gcc-interface/utils.c (gnat_internal_attribute_table): Add column. | |
9203 | ||
9204 | 2011-03-17 Eric Botcazou <ebotcazou@adacore.com> | |
9205 | ||
9206 | * gcc-interface/decl.c (elaborate_expression_1): Try harder to find | |
9207 | out whether the expression is read-only. Short-circuit placeholder | |
9208 | case and rename a couple of local variables. | |
9209 | ||
9210 | 2011-03-17 Eric Botcazou <ebotcazou@adacore.com> | |
9211 | ||
9212 | * gcc-interface/gigi.h (smaller_form_type_p): Declare. | |
9213 | * gcc-interface/trans.c (smaller_form_type_p): Make global and move... | |
9214 | * gcc-interface/utils.c (smaller_form_type_p): ...to here. | |
9215 | (convert): Deal with conversions from a smaller form type specially. | |
9216 | ||
9217 | 2011-02-14 Eric Botcazou <ebotcazou@adacore.com> | |
9218 | ||
9219 | * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and | |
9220 | its argument, except for the special -I- switch. | |
9221 | ||
9222 | 2011-02-12 Gerald Pfeifer <gerald@pfeifer.com> | |
9223 | ||
9224 | * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to | |
9225 | "Ada Issues". | |
9226 | ||
9227 | 2011-02-08 Eric Botcazou <ebotcazou@adacore.com> | |
9228 | ||
9229 | * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs. | |
9230 | ||
9231 | 2011-02-03 Eric Botcazou <ebotcazou@adacore.com> | |
9232 | ||
9233 | * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of | |
9234 | GNAT_FORMAL. | |
9235 | * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to... | |
9236 | * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE | |
9237 | instead of GNAT_FORMAL. Protect the expression against multiple uses. | |
9238 | Do not generate the check directly, instead instantiate the template | |
9239 | check present in the descriptor. | |
9240 | (make_descriptor_field): Move around. | |
9241 | (build_vms_descriptor32): Build a template check in the POINTER field. | |
9242 | (build_vms_descriptor): Remove useless suffixes. | |
9243 | * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call. | |
9244 | ||
9245 | 2011-01-26 Eric Botcazou <ebotcazou@adacore.com> | |
9246 | ||
9247 | PR bootstrap/47467 | |
9248 | * targext.c: Include target files if IN_RTS is defined. | |
9249 | ||
9250 | 2011-01-26 Richard Guenther <rguenther@suse.de> | |
9251 | ||
9252 | PR bootstrap/47467 | |
9253 | * targext.c: Include config.h. | |
9254 | * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H) | |
9255 | dependency. | |
9256 | ||
9257 | 2011-01-04 Pascal Obry <obry@adacore.com> | |
2c7f9cc0 | 9258 | Eric Botcazou <ebotcazou@adacore.com> |
052e0603 AC |
9259 | |
9260 | * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit. | |
9261 | ||
9262 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> | |
9263 | ||
9264 | * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the | |
9265 | end-of-case on the end label and its associated gotos, if any. | |
9266 | ||
9267 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> | |
9268 | ||
9269 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the | |
9270 | expressions of the parameter cache within the statement group of | |
9271 | the CICO mechanism. | |
9272 | ||
9273 | 2011-01-04 Olivier Hainque <hainque@adacore.com> | |
2c7f9cc0 | 9274 | Eric Botcazou <ebotcazou@adacore.com> |
052e0603 AC |
9275 | |
9276 | * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default. | |
9277 | (set_end_locus_from_node): New function. | |
9278 | (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we | |
9279 | make and the function end_locus. | |
9280 | (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus | |
9281 | for the elaboration subprogram. | |
9282 | (set_gnu_expr_location_from_node) <default case>: Use it to attempt to | |
9283 | set the end_locus of the expression as well. | |
9284 | ||
9285 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> | |
9286 | ||
9287 | PR ada/47131 | |
9288 | * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make | |
9289 | variables that are referenced in exception handlers volatile. | |
9290 | ||
9291 | ||
9292 | \f | |
9293 | Copyright (C) 2011 Free Software Foundation, Inc. | |
9294 | ||
9295 | Copying and distribution of this file, with or without modification, | |
9296 | are permitted in any medium without royalty provided the copyright | |
9297 | notice and this notice are preserved. | |
9298 | ||
9299 | * gnat_rm.texi: Ramification of pragma Eliminate documentation | |
9300 | - fix bugs in the description of Source_Trace; | |
9301 | - get rid of UNIT_NAME; | |
9302 | ||
4fbad0ba AC |
9303 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
9304 | ||
9305 | * exp_ch9.adb | |
9306 | (Build_Dispatching_Requeue): Adding support for VM targets | |
9307 | since we cannot directly reference the Tag entity. | |
9308 | * exp_sel.adb (Build_K): Adding support for VM targets. | |
9309 | (Build_S_Assignment): Adding support for VM targets. | |
9310 | * exp_disp.adb | |
9311 | (Default_Prim_Op_Position): In VM targets do not restrict availability | |
9312 | of predefined interface primitives to compiling in Ada 2005 mode. | |
9313 | (Is_Predefined_Interface_Primitive): In VM targets this service is not | |
9314 | restricted to compiling in Ada 2005 mode. | |
9315 | (Make_VM_TSD): Generate code that declares and initializes the OSD | |
9316 | record. Needed to support dispatching calls through synchronized | |
9317 | interfaces. | |
9318 | * exp_ch3.adb | |
9319 | (Make_Predefined_Primitive_Specs): Enable generation of predefined | |
9320 | primitives associated with synchronized interfaces. | |
9321 | (Make_Predefined_Primitive_Bodies): Enable generation of predefined | |
9322 | primitives associated with synchronized interfaces. | |
9323 | ||
9324 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
9325 | ||
9326 | * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of | |
9327 | statements hidden in SPARK if preceded by the HIDE directive | |
9328 | (Parse_Exception_Handlers): mark each exception handler in a sequence of | |
9329 | exception handlers as hidden in SPARK if preceded by the HIDE directive | |
9330 | * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK | |
9331 | if starting with the HIDE directive | |
9332 | * par-ch7.adb (P_Package): mark a package body hidden in SPARK if | |
9333 | starting with the HIDE directive; mark the declarations in a private | |
9334 | part as hidden in SPARK if the private part starts with the HIDE | |
9335 | directive | |
9336 | * restrict.adb, restrict.ads | |
9337 | (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK | |
9338 | (Is_In_Hidden_Part_In_SPARK): new function which returns whether its | |
9339 | argument node belongs to a part which is hidden in SPARK | |
9340 | (Check_SPARK_Restriction): do not issue violations on nodes in hidden | |
9341 | parts in SPARK; protect the possibly costly call to | |
9342 | Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on | |
9343 | * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration | |
9344 | * scng.adb (Accumulate_Token_Checksum_GNAT_6_3, | |
9345 | Accumulate_Token_Checksum_GNAT_5_03): add case for new token | |
9346 | Tok_SPARK_Hide. | |
9347 | (Scan): recognize special comment starting with '#' and followed by | |
9348 | SPARK keyword "hide" as a HIDE directive. | |
9349 | ||
9350 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
9351 | ||
9352 | * types.ads, erroutc.ads: Minor reformatting. | |
9353 | ||
9354 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
9355 | ||
9356 | * link.c: Add response file support for cross platforms. | |
9357 | ||
6ff6152d ES |
9358 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
9359 | ||
9360 | * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression | |
9361 | in an association, set parent field of copy before partial analysis. | |
9362 | * sem_res.adb (Resolve_Slice): create reference to itype only when | |
9363 | expansion is enabled. | |
9364 | ||
975c6896 YM |
9365 | 2011-08-02 Yannick Moy <moy@adacore.com> |
9366 | ||
9367 | * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set | |
9368 | for new flag denoting which subprogram bodies are in ALFA | |
9369 | * restrict.adb, sem_ch7.adb: Update comment | |
9370 | * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, | |
9371 | sem_ch9.adb, sem_res.adb: Add calls to | |
9372 | Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs. | |
9373 | * sem_ch6.adb (Analyze_Function_Return): add calls to | |
9374 | Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the | |
9375 | middle of the body, and extended return. | |
9376 | (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument | |
9377 | False when missing return. | |
9378 | (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA | |
9379 | to True for subprograms whose spec is in ALFA. Remove later on the flag | |
9380 | on the entity used for a subprogram body when there exists a separate | |
9381 | declaration. | |
9382 | * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA): | |
9383 | if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to | |
9384 | False, otherwise do nothing. | |
9385 | ||
afc8324d AC |
9386 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9387 | ||
9388 | * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting. | |
9389 | ||
9390 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
9391 | ||
9392 | * sem_ch4.ads: minor formatting. | |
9393 | ||
2ba431e5 YM |
9394 | 2011-08-02 Yannick Moy <moy@adacore.com> |
9395 | ||
9396 | * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, | |
9397 | debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb, | |
9398 | errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb, | |
9399 | restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb, | |
9400 | opt.ads: cleanup of SPARK mode | |
9401 | ||
0f853035 YM |
9402 | 2011-08-02 Yannick Moy <moy@adacore.com> |
9403 | ||
9404 | * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard | |
9405 | types. | |
9406 | * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities | |
9407 | (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA | |
9408 | * sem_ch3.adb | |
9409 | (Analyze_Object_Declaration): set Is_In_ALFA flag for objects | |
9410 | (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes | |
9411 | (Constrain_Integer): set Is_In_ALFA flag for integer subtypes | |
9412 | (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration | |
9413 | types. | |
9414 | (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with | |
9415 | non-static range. | |
9416 | * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for | |
9417 | functions whose return type is not in ALFA. | |
9418 | (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram | |
9419 | specifications. | |
9420 | (Process_Formals): unset Is_In_ALFA flag for subprograms if a | |
9421 | parameter's type is not in ALFA. | |
9422 | * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard | |
9423 | types are in ALFA. | |
9424 | ||
d2b10647 ES |
9425 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
9426 | ||
9427 | * sem_ch6 (Analyze_Expression_Function): treat the function as | |
9428 | Inline_Always, and introduce a subprogram declaration for it when it is | |
9429 | not a completion. | |
9430 | * inline.adb (Add_Inlined_Body): recognize bodies that come from | |
9431 | expression functions, so that the back-end can determine whether they | |
9432 | can in fact be inlined. | |
9433 | * sem_util.adb (Is_Expression_Function): predicate to determine whether | |
9434 | a function body comes from an expression function. | |
9435 | ||
c7b9d548 AC |
9436 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> |
9437 | ||
9438 | * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming | |
9439 | null exclusions to test Can_Never_Be_Null on the anonymous access types | |
9440 | of the formals rather than testing the formals themselves. Exclude this | |
9441 | check in cases where the Old_Formal is marked as a controlling formal, | |
9442 | to avoid issuing spurious errors for bodies completing dispatching | |
9443 | operations (due to the flag not getting set on controlling access | |
9444 | formals in body specs). | |
9445 | (Find_Corresponding_Spec): When checking full and subtype conformance of | |
9446 | subprogram bodies in instances, pass Designated and E in that order, for | |
9447 | consistency with the expected order of the formals (New_Id followed by | |
9448 | Old_Id). | |
9449 | ||
9450 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9451 | ||
9452 | * sem_ch8.adb: Minor reformatting. | |
9453 | ||
1138cf59 AC |
9454 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
9455 | ||
9456 | * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure | |
9457 | Check_Class_Wide_Actual, to implement AI05-0071, on defaulted | |
9458 | primitive operations of class-wide actuals. | |
9459 | ||
9460 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
9461 | ||
9462 | * exp_atag.ads, exp_atag.adb | |
9463 | (Build_Common_Dispatching_Select_Statements): Remove argument Loc | |
9464 | since its value is implicitly passed in argument Typ. | |
9465 | * exp_disp.adb (Make_Disp_Conditional_Select_Body, | |
9466 | Make_Disp_Timed_Select_Body): Remove Loc in calls to routine | |
9467 | Build_Common_Dispatching_Select_Statements. | |
9468 | ||
7b9db926 RD |
9469 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9470 | ||
9471 | * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads, | |
9472 | exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments. | |
9473 | Minor reformatting. | |
9474 | ||
e8374e7a AC |
9475 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9476 | ||
9477 | * sem_res.adb: Minor reformatting. | |
9478 | * sem_prag.adb: Minor reformatting. | |
9479 | ||
9480 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
9481 | ||
9482 | * exp_atag.adb, exp_atags.ads | |
9483 | (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr | |
9484 | by the tagged type Entity. Required to use this routine in the VM | |
9485 | targets since we do not have available the Tag entity in the VM | |
9486 | platforms. | |
9487 | * exp_ch6.adb | |
9488 | (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package | |
9489 | Ada.Tags has not been previously loaded. | |
9490 | * exp_ch7.adb | |
9491 | (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke | |
9492 | Build_VM_TSDs if package Ada.Tags has not been previously loaded. | |
9493 | * sem_aux.adb | |
9494 | (Enclosing_Dynamic_Scope): Add missing support to handle the full | |
9495 | view of enclosing scopes. Required to handle enclosing scopes that | |
9496 | are synchronized types whose full view is a task type. | |
9497 | * exp_disp.adb | |
9498 | (Build_VM_TSDs): Minor code improvement to avoid generating and | |
9499 | analyzing lists with empty nodes. | |
9500 | (Make_Disp_Asynchronous_Select_Body): Add support for VM targets. | |
9501 | (Make_Disp_Conditional_Select_Body): Add support for VM targets. | |
9502 | (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets. | |
9503 | (Make_Disp_Timed_Select_Body): Add support for VM targets. | |
9504 | (Make_Select_Specific_Data_Table): Add support for VM targets. | |
9505 | (Make_VM_TSD): Generate code to initialize the SSD structure of | |
9506 | the TSD. | |
9507 | ||
9508 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
9509 | ||
9510 | * lib-writ.adb (Write_ALI): when ALFA mode is set, write local | |
9511 | cross-references section in ALI. | |
9512 | * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub | |
9513 | (enclosing subprogram), Slc (location of Sub) and Sun (unit number of | |
9514 | Sub). | |
9515 | (Enclosing_Subprogram_Or_Package): new function to return the enclosing | |
9516 | subprogram or package entity of a node | |
9517 | (Is_Local_Reference_Type): new function returns True for references | |
9518 | selected in local cross-references. | |
9519 | (Lt): function extracted from Lt in Output_References | |
9520 | (Write_Entity_Name): function extracted from Output_References | |
9521 | (Generate_Definition): generate reference with type 'D' for definition | |
9522 | of objects (object declaration and parameter specification), with | |
9523 | appropriate locations and units, for use in local cross-references. | |
9524 | (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created | |
9525 | references of type 'I' for initialization in object definition. | |
9526 | (Output_References): move part of function Lt and procedure | |
9527 | Write_Entity_Name outside of the body. Ignore references of types 'D' | |
9528 | and 'I' introduced for local cross-references. | |
9529 | (Output_Local_References): new procedure to output the local | |
9530 | cross-references sections. | |
9531 | (Lref_Entity_Status): new array defining whether an entity is a local | |
9532 | * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference | |
9533 | with 'I' type when initialization expression is present. | |
9534 | * get_scos.adb, get_scos.ads: Correct comments and typos | |
9535 | ||
1f6439e3 AC |
9536 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
9537 | ||
9538 | * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in | |
9539 | the JVM target. | |
9540 | * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in | |
9541 | the JVM target. | |
9542 | * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no | |
9543 | TSD support. | |
9544 | ||
9545 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
9546 | ||
9547 | * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line | |
9548 | (No_Space_Img): New function | |
9549 | (Find_Excluded_Sources): When reading from a file, record the file name | |
9550 | and the line number for each excluded source. | |
9551 | (Mark_Excluded_Sources): When reporting an error, if the excluded | |
9552 | sources were read from a file, include file name and line number in | |
9553 | the error message. | |
9554 | ||
9555 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9556 | ||
9557 | * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2). | |
9558 | ||
ab027d28 RD |
9559 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9560 | ||
9561 | * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting | |
9562 | ||
b3b28b0c JM |
9563 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
9564 | ||
9565 | * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the | |
9566 | generation of TSDs to the DOTNET compiler. | |
9567 | * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the | |
9568 | generation of TSDs to the DOTNET compiler. | |
9569 | ||
9732e886 JM |
9570 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
9571 | ||
9572 | * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data | |
9573 | record of all the tagged types declared inside library level package | |
9574 | declarations, library level package bodies or library level subprograms. | |
9575 | * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD | |
9576 | associated with a given tagged type. | |
9577 | (Build_VM_TSDs): New subprogram. | |
9578 | * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main | |
9579 | compilation units that are subprograms. | |
9580 | * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main | |
9581 | compilation units that are package bodies. | |
9582 | (Expand_N_Package_Declaration): Generate TSDs of the main compilation | |
9583 | units that are a package declaration or a package instantiation. | |
9584 | * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code | |
9585 | reorganization to improve the error generated by the frontend when the | |
9586 | function Ada.Tags.Secondary_Tag is not available. | |
9587 | * rtsfind.ads (RE_Register_TSD): New runtime entity. | |
9588 | * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup. | |
9589 | ||
e526d0c7 AC |
9590 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
9591 | ||
9592 | * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode. | |
9593 | ||
9594 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9595 | ||
9596 | * s-imenne.ads: Minor reformatting. | |
9597 | ||
9598 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9599 | ||
9600 | * a-stunau.ads: Add pragma Suppress_Initialization for Big_String | |
9601 | * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed | |
9602 | * s-stalib.ads: Add pragma Suppress_Initialization for Big_String | |
9603 | ||
9604 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9605 | ||
9606 | * einfo.ads (Materialize_Entity): Document this is only for renamings | |
9607 | * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate | |
9608 | required debug information in the case where we transform the object | |
9609 | declaration into a renaming declaration. | |
9610 | * exp_ch4.adb (Expand_Concatenate): Generate debug info for result | |
9611 | object | |
9612 | * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of | |
9613 | Materialize_Entity. | |
9614 | ||
5b1e6aca RD |
9615 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9616 | ||
9617 | * einfo.ads, einfo.adb (Suppress_Initialization): Replaces | |
9618 | Suppress_Init_Procs. | |
9619 | * exp_ch3.adb, exp_disp.adb, freeze.adb: Use | |
9620 | Suppress_Initialization/Initialization_Suppressed. | |
9621 | * gnat_rm.texi: New documentation for pragma Suppress_Initialization | |
9622 | * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function | |
9623 | * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed | |
9624 | * sem_prag.adb: New processing for pragma Suppress_Initialization. | |
9625 | ||
5ad4969d RD |
9626 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9627 | ||
9628 | * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb: | |
9629 | Minor reformatting. | |
9630 | ||
8c4ee6f5 AC |
9631 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
9632 | ||
9633 | * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can | |
9634 | only have inheritable classwide pre/postconditions. | |
9635 | ||
9636 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
9637 | ||
9638 | * a-tags.ads, a-tags.adb (Check_TSD): New subprogram. | |
9639 | * rtsfind.ads (RE_Check_TSD): New runtime entity. | |
9640 | * exp_disp.adb (Make_DT): Generate call to the new runtime routine that | |
9641 | checks if the external tag of a type is the same as the external tag | |
9642 | of some other declaration. | |
9643 | ||
0b3d16c0 AC |
9644 | 2011-08-02 Thomas Quinot <quinot@adacore.com> |
9645 | ||
9646 | * s-taskin.ads: Minor reformatting. | |
9647 | ||
9648 | 2011-08-02 Emmanuel Briot <briot@adacore.com> | |
9649 | ||
9650 | * g-comlin.adb (Display_Help): swap the order in which it prints the | |
9651 | short help and the general usage. | |
9652 | ||
9653 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9654 | ||
9655 | * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly | |
9656 | the aspect declarations and attach them to the generic copy for | |
9657 | subsequent analysis. | |
9658 | (Analyze_Subprogram_Instantiation): copy explicitly the aspect | |
9659 | declarations of the generic tree to the new subprogram declarations. | |
9660 | * sem_attr.adb (Check_Precondition_Postcondition): recognize | |
9661 | conditions that apply to a subprogram instance. | |
9662 | ||
9663 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9664 | ||
9665 | * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project]. | |
9666 | ||
9667 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9668 | ||
9669 | * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged | |
9670 | private type with a tagged full view is not derived in the immediate | |
9671 | scope of the partial view, (RM 7.3 (7)) use the scope of the base type. | |
9672 | ||
4637729f AC |
9673 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9674 | ||
9675 | * exp_ch4.adb: Minor reformatting. | |
9676 | ||
9677 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9678 | ||
9679 | * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an | |
9680 | Ada2012 iterator, the loop will be rewritten during expansion into a | |
9681 | while loop with a cursor and an element declaration. Do not analyze the | |
9682 | body in this case, because if the container is for indefinite types the | |
9683 | actual subtype of the elements will only be determined when the cursor | |
9684 | declaration is analyzed. | |
9685 | ||
9686 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
9687 | ||
9688 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore | |
9689 | size/alignment related attributes in CodePeer_Mode. | |
9690 | ||
9691 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> | |
9692 | ||
9693 | * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to | |
9694 | Prepend_Element, since this can result in the operation getting the | |
9695 | wrong slot in the full type's dispatch table if the full type has | |
9696 | inherited operations. The incomplete type's operation will get added | |
9697 | to the proper position in the full type's primitives | |
9698 | list later in Sem_Disp.Check_Operation_From_Incomplete_Type. | |
9699 | (Process_Incomplete_Dependents): Add Is_Primitive test when checking for | |
9700 | dispatching operations, since there are cases where nonprimitive | |
9701 | subprograms can get added to the list of incomplete dependents (such | |
9702 | as subprograms in nested packages). | |
9703 | * sem_ch6.adb (Process_Formals): First, remove test for being in a | |
9704 | private part when determining whether to add a primitive with a | |
9705 | parameter of a tagged incomplete type to the Private_Dependents list. | |
9706 | Such primitives can also occur in the visible part, and should not have | |
9707 | been excluded from being private dependents. | |
9708 | * sem_ch7.adb (Uninstall_Declarations): When checking the rule of | |
9709 | RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents | |
9710 | list of a Taft-amendment incomplete type is a primitive before issuing | |
9711 | an error that the full type must appear in the same unit. There are | |
9712 | cases where nonprimitives can be in the list (such as subprograms in | |
9713 | nested packages). | |
9714 | * sem_disp.adb (Derives_From): Use correct condition for checking that | |
9715 | a formal's type is derived from the type of the corresponding formal in | |
9716 | the parent subprogram (the condition was completely wrong). Add | |
9717 | checking that was missing for controlling result types being derived | |
9718 | from the result type of the parent operation. | |
9719 | ||
4c60de0c YM |
9720 | 2011-08-02 Yannick Moy <moy@adacore.com> |
9721 | ||
9722 | * errout.adb (First_Node): minor renaming | |
9723 | * restrict.adb (Check_Formal_Restriction): put restriction warning on | |
9724 | first node. | |
9725 | ||
f5afb270 AC |
9726 | 2011-08-02 Yannick Moy <moy@adacore.com> |
9727 | ||
9728 | * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator | |
9729 | before accessing operands. | |
9730 | * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to | |
9731 | decide whether an initialization expression respects SPARK rules, as | |
9732 | the plain node is the expanded one. This allows for more valid warnings | |
9733 | to be issued. | |
9734 | * gnat_rm.texi: Minor update. | |
9735 | ||
9736 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
9737 | ||
9738 | * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert | |
9739 | previous change. | |
9740 | ||
9741 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9742 | ||
9743 | * sem_ch3.adb, sem_ch4.adb: Minor reformatting. | |
9744 | ||
9745 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
9746 | ||
9747 | * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original | |
9748 | loop statements and the element renaming declaration with a block when | |
9749 | the element type is controlled. | |
9750 | ||
9751 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
9752 | ||
9753 | * sinfo.ads: Minor formatting. | |
9754 | ||
9755 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9756 | ||
9757 | * sem_aggr.adb (Add_Association): if the association has a box and no | |
9758 | expression, use the Sloc of the aggregate itself for the new | |
9759 | association. | |
9760 | * errout.adb (First_Node): Exclude nodes with no Sloc, and always use | |
9761 | the Original_Node. | |
9762 | ||
db72f10a AC |
9763 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> |
9764 | ||
9765 | * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring. | |
9766 | When a container is provided via a function call, generate a renaming | |
9767 | of the function result. This avoids the creation of a transient scope | |
9768 | and the premature finalization of the container. | |
9769 | * exp_ch7.adb (Is_Container_Cursor): Removed. | |
9770 | (Wrap_Transient_Declaration): Remove the supression of the finalization | |
9771 | of the list controller when the declaration denotes a container cursor, | |
9772 | it is not needed. | |
9773 | ||
9774 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
9775 | ||
9776 | * restrict.adb (Check_Formal_Restriction): only issue a warning if the | |
9777 | node is from source, instead of the original node being from source. | |
9778 | * sem_aggr.adb | |
9779 | (Resolve_Array_Aggregate): refine the check for a static expression, to | |
9780 | recognize also static ranges | |
9781 | * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration, | |
9782 | Array_Type_Declaration): postpone the test for the type being a subtype | |
9783 | mark after the type has been resolved, so that component-selection and | |
9784 | expanded-name are discriminated. | |
9785 | (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm | |
9786 | to distinguish the case of an iteration scheme, so that an error is | |
9787 | issed on a non-static range in SPARK except in an iteration scheme. | |
9788 | * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with | |
9789 | In_Iter_Schm = True. | |
9790 | * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for | |
9791 | user-defined operators so that they are allowed in renaming | |
9792 | * sem_ch8.adb | |
9793 | (Find_Selected_Component): refine the check for prefixing of operators | |
9794 | so that they are allowed in renaming. Move the checks for restrictions | |
9795 | on selector name after analysis discriminated between | |
9796 | component-selection and expanded-name. | |
9797 | * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on | |
9798 | concatenation argument of string type if it is static. | |
9799 | * sem_util.adb, sem_util.ads | |
9800 | (Check_Later_Vs_Basic_Declarations): add a new function | |
9801 | Is_Later_Declarative_Item to decice which declarations are allowed as | |
9802 | later items, in the two different modes Ada 83 and SPARK. In the SPARK | |
9803 | mode, add that renamings are considered as later items. | |
9804 | (Enclosing_Package): new function to return the enclosing package | |
9805 | (Enter_Name): correct the rule for homonyms in SPARK | |
9806 | (Is_SPARK_Initialization_Expr): default to returning True on nodes not | |
9807 | from source (result of expansion) to avoid issuing wrong warnings. | |
9808 | ||
9809 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9810 | ||
9811 | * errout.adb: On anything but an expression First_Node returns its | |
9812 | argument. | |
9813 | ||
23685ae6 AC |
9814 | 2011-08-02 Pascal Obry <obry@adacore.com> |
9815 | ||
9816 | * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting. | |
9817 | ||
9818 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
9819 | ||
9820 | * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization. | |
9821 | Set the associated loop as the related expression of internally | |
9822 | generated cursors. | |
9823 | * exp_ch7.adb (Is_Container_Cursor): New routine. | |
9824 | (Wrap_Transient_Declaration): Supress the finalization of the list | |
9825 | controller when the declaration denotes a container cursor. | |
9826 | ||
9827 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
9828 | ||
9829 | * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through | |
9830 | command line now. | |
9831 | * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the | |
9832 | expression is a simple expression. This check cannot be performed in | |
9833 | the semantics, so just drop it. | |
9834 | (P_Index_Or_Discriminant_Constraint): move check that the index or | |
9835 | discriminant is a subtype mark to Analyze_Subtype_Declaration in the | |
9836 | semantics. Other cases were previously checked in the semantics. | |
9837 | * par-ch4.adb (P_Name): move checks that a selector name is not | |
9838 | character literal or an operator symbol to Find_Selected_Component in | |
9839 | the semantics | |
9840 | * par-ch5.adb (Parse_Decls_Begin_End): move check that basic | |
9841 | declarations are not placed after later declarations in a separate | |
9842 | procedure in Sem_Util (possibly not the best choice?), to be used both | |
9843 | during parsing, for Ada 83 mode, and during semantic analysis, for | |
9844 | SPARK mode. | |
9845 | * par-endh.adb (Check_End): move check that end label is not missing | |
9846 | to Process_End_Label in the semantics | |
9847 | * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove | |
9848 | the special case for SPARK restriction | |
9849 | * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End | |
9850 | * restrict.adb, restrict.ads (Check_Formal_Restriction): add a | |
9851 | parameter Force to issue the error message even on internal node (used | |
9852 | for generated end label). Call Check_Restriction to check when an error | |
9853 | must be issued. In SPARK mode, issue an error message even if the | |
9854 | restriction is not set. | |
9855 | (Check_Restriction): new procedure with an additional out parameter to | |
9856 | inform the caller that a message has been issued | |
9857 | * sem_aggr.adb: Minor modification of message | |
9858 | * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction | |
9859 | instead of issuing an error message directly | |
9860 | * sem_ch3.adb (Analyze_Declarations): move here the check that basic | |
9861 | declarations are not placed after later declarations, by calling | |
9862 | Check_Later_Vs_Basic_Declarations | |
9863 | (Analyze_Subtype_Declaration): move here the check that an index or | |
9864 | discriminant constraint must be a subtype mark. Change the check that | |
9865 | a subtype of String must start at one so that it works on subtype marks. | |
9866 | * sem_ch4.adb (Analyze_Call): move here the check that a named | |
9867 | association cannot follow a positional one in a call | |
9868 | * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction | |
9869 | instead of issuing an error message directly | |
9870 | * sem_ch8.adb (Find_Selected_Component): move here the check that a | |
9871 | selector name is not a character literal or an operator symbol. Move | |
9872 | here the check that the prefix of an expanded name cannot be a | |
9873 | subprogram or a loop statement. | |
9874 | * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new | |
9875 | procedure called from parsing and semantics to check that basic | |
9876 | declarations are not placed after later declarations | |
9877 | (Process_End_Label): move here the check that end label is not missing | |
9878 | ||
9879 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
9880 | ||
9881 | * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum | |
9882 | representation clause in codepeer mode, since it confuses CodePeer and | |
9883 | does not bring useful info. | |
9884 | ||
9885 | 2011-08-02 Ed Falis <falis@adacore.com> | |
9886 | ||
9887 | * init.c: initialize fp hw on MILS. | |
9888 | ||
9889 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9890 | ||
9891 | * errout.adb (First_Node): for bodies, return the node itself (small | |
9892 | optimization). For other nodes, do not check source_unit if the node | |
9893 | comes from Standard. | |
9894 | ||
d2d9cc22 AC |
9895 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9896 | ||
9897 | * exp_ch3.adb: Minor comment additions. | |
9898 | * sem_ch13.adb: Minor reformatting. | |
9899 | ||
9900 | 2011-08-02 Pascal Obry <obry@adacore.com> | |
9901 | ||
9902 | * make.adb, makeutl.adb: Removes some superfluous directory separator. | |
9903 | ||
a01b9df6 AC |
9904 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9905 | ||
9906 | * sem_attr.adb: Minor reformatting. | |
9907 | ||
9908 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9909 | ||
9910 | * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value | |
9911 | (Has_Default_Component_Value): Removed | |
9912 | * einfo.ads Comment updates | |
9913 | (Has_Default_Aspect): Replaces Has_Default_Value | |
9914 | (Has_Default_Component_Value): Removed | |
9915 | * exp_ch13.adb | |
9916 | (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects | |
9917 | * exp_ch3.adb | |
9918 | (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects | |
9919 | (Get_Simple_Init_Val): Handle Default_Value aspect | |
9920 | (Needs_Simple_Initialization): Handle Default_Value aspect | |
9921 | * exp_ch3.ads: Needs_Simple_Initialization | |
9922 | * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect | |
9923 | * par-prag.adb (Pragma_Default[_Component]Value) Removed | |
9924 | * sem_ch13.adb | |
9925 | (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects | |
9926 | * sem_prag.adb (Pragma_Default[_Component]Value) Removed | |
9927 | * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed | |
9928 | ||
9929 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9930 | ||
9931 | * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate | |
9932 | package containing iteration primitives. | |
9933 | exp_ch5.adb (Expand_Iterator_Loop): ditto. | |
9934 | ||
75c90775 AC |
9935 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
9936 | ||
9937 | * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with | |
9938 | "of", pre-analyze expression in case it is a function call with | |
9939 | finalization actions that must be placed ahead of the loop. | |
9940 | * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present | |
9941 | on an Ada2012 iterator, insert them ahead of the rewritten loop. | |
9942 | ||
9943 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
9944 | ||
9945 | * cstand.adb (Create_Float_Types): Only consider C's long double for | |
9946 | Long_Long_Float, in addition to double. | |
9947 | ||
ded8909b AC |
9948 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9949 | ||
9950 | * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads, | |
9951 | sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads, | |
9952 | prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb: | |
9953 | Minor reformatting. | |
9954 | ||
9955 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9956 | ||
9957 | * sem_attr.adb: handle properly 'Result when it is a prefix of an | |
9958 | indexed component. | |
9959 | ||
9960 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
9961 | ||
9962 | * einfo.ads, einfo.adb | |
9963 | (Original_Access_Type): Move this attribute to Node26 since there was | |
9964 | an undocumented use of Node21 in E_Access_Subprogram_Type entities | |
9965 | which causes conflicts and breaks the generation of the .NET compiler. | |
9966 | (Interface_Name): Add missing documentation on JGNAT only uses of | |
9967 | this attribute. | |
9968 | ||
70c34e1c AC |
9969 | 2011-08-02 Geert Bosch <bosch@adacore.com> |
9970 | ||
9971 | * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist | |
9972 | (Find_Back_End_Float_Type): Likewise | |
9973 | (Create_Back_End_Float_Types): Likewise | |
9974 | (Create_Float_Types): Likewise | |
9975 | (Register_Float_Type): Likewise | |
9976 | * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of | |
9977 | Nlist and split out type selection in new local Find_Base_Type function. | |
9978 | * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of | |
9979 | Nlist | |
9980 | * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist | |
9981 | ||
9982 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9983 | ||
9984 | * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in | |
9985 | alpha order). | |
9986 | * opt.ads: Minor comment change. | |
9987 | * sem_ch12.adb: Minor code reorganization. | |
9988 | ||
b715bc59 AC |
9989 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> |
9990 | ||
9991 | * sem_ch3.adb (Complete_Private_Subtype): Don't append the private | |
9992 | subtype's list of rep items to the list on the full subtype in the case | |
9993 | where the lists are the same. | |
9994 | ||
9995 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
9996 | ||
9997 | * switch-c.adb (Free): New deallocation procedure to avoid implicitly | |
9998 | using the one from System.Strings, which also deallocates all strings. | |
9999 | ||
002bdd68 AC |
10000 | 2011-08-02 Geert Bosch <bosch@adacore.com> |
10001 | ||
10002 | * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New | |
10003 | function. | |
10004 | * gcc-interface/Make-lang.in: Update dependencies. | |
10005 | ||
10006 | 2011-08-02 Olivier Hainque <hainque@adacore.com> | |
10007 | ||
10008 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function | |
10009 | end_locus. | |
10010 | ||
499769ec AC |
10011 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
10012 | ||
10013 | * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals | |
10014 | associated with anonymous access to subprograms. | |
10015 | ||
10016 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
10017 | ||
10018 | * opt.ads | |
10019 | (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions. | |
10020 | (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition. | |
10021 | * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads | |
10022 | (Add_Symbol_Definition): Move to switch-c.adb | |
10023 | (Process_Command_Line_Symbol_Definitions): Adjust references to above. | |
10024 | * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation. | |
10025 | (Add_Symbol_Definition): Move to switch-c.adb. | |
10026 | * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw. | |
10027 | * sem_warn.adb | |
10028 | (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch): | |
10029 | Move to warnsw.adb. | |
10030 | * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size, | |
10031 | Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch): | |
10032 | Move to warnsw.adb. | |
10033 | * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw. | |
10034 | (Add_Symbol_Definition): Moved from Prepcomp. | |
10035 | * switch-c.ads: Update copyright notice. Use String_List instead of | |
10036 | Argument_List, removing dependency on System.OS_Lib. | |
10037 | ||
aa1e353a AC |
10038 | 2011-08-02 Yannick Moy <moy@adacore.com> |
10039 | ||
10040 | * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal | |
10041 | mode on initialization expression which does not respect SPARK | |
10042 | restrictions. | |
10043 | * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines | |
10044 | if the tree referenced by its argument represents an initialization | |
10045 | expression in SPARK, suitable for initializing an object in an object | |
10046 | declaration. | |
10047 | ||
10048 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
10049 | ||
10050 | * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the | |
10051 | internally generated access to subprogram with its associated protected | |
10052 | subprogram type. | |
10053 | * einfo.ads, einfo.adb (Original_Access_Type): New attribute. | |
10054 | ||
15b682ca GB |
10055 | 2011-08-02 Geert Bosch <bosch@adacore.com> |
10056 | ||
10057 | * cstand.adb (Register_Float_Type): Print information about type to | |
10058 | register, if the Debug_Flag_Dot_B is set. | |
10059 | * debug.adb (Debug_Flag_Dot_B): Document d.b debug option. | |
10060 | * rtsfind.ads (RE_Max_Base_Digits): New run time entity. | |
10061 | * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations | |
10062 | with a requested precision of more than Max_Digits digits and no more | |
10063 | than Max_Base_Digits digits, if a range specification is present and the | |
10064 | Predefined_Float_Types list has a suitable type to derive from. | |
10065 | * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the | |
10066 | case of type completion with pragma Import | |
10067 | * sem_prag.adb | |
10068 | (Process_Import_Predefined_Type): Processing to complete a type | |
10069 | with pragma Import. Currently supports floating point types only. | |
10070 | (Set_Convention_From_Pragma): Do nothing without underlying type. | |
10071 | (Process_Convention): Guard against absence of underlying type, | |
10072 | which may happen when importing incomplete types. | |
10073 | (Process_Import_Or_Interface): Handle case of importing predefined | |
10074 | types. Tweak error message. | |
10075 | ||
f8726f2b AC |
10076 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> |
10077 | ||
10078 | * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined | |
10079 | functions to previous change. Reorganize code slightly. | |
10080 | ||
10081 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
10082 | ||
10083 | * back_end.ads (Register_Type_Proc): New call back procedure type for | |
10084 | allowing the back end to provide information about available types. | |
10085 | (Register_Back_End_Types): New procedure to register back end types. | |
10086 | * back_end.adb (Register_Back_End_Types): Call the back end to enumerate | |
10087 | available types. | |
10088 | * cstand.adb (Back_End_Float_Types): New list for floating point types | |
10089 | supported by the back end. | |
10090 | (Build_Float_Type): Add extra parameter for Float_Rep_Kind. | |
10091 | (Copy_Float_Type): New procedure to make new copies of predefined types. | |
10092 | (Register_Float_Type): New call back procedure to populate the BEFT list | |
10093 | (Find_Back_End_Float_Type): New procedure to find a BEFT by name | |
10094 | (Create_Back_End_Float_Types): New procedure to populate the BEFT list. | |
10095 | (Create_Float_Types): New procedure to create entities for floating | |
10096 | point types predefined in Standard, and put these and any remaining | |
10097 | BEFTs on the Predefined_Float_Types list. | |
10098 | * stand.ads (Predefined_Float_Types): New list for predefined floating | |
10099 | point types that do not have declarations in package Standard. | |
10100 | ||
feecad68 AC |
10101 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> |
10102 | ||
10103 | * inline.adb (Get_Code_Unit_Entity): New local function. Returns the | |
10104 | entity node for the unit containing the parameter. | |
10105 | (Add_Inlined_Body): Use it to find the unit containing the subprogram. | |
10106 | (Add_Inlined_Subprogram): Likewise. | |
10107 | * gcc-interface/Make-lang.in: Update dependencies. | |
10108 | ||
10109 | 2011-08-02 Thomas Quinot <quinot@adacore.com> | |
10110 | ||
10111 | * s-stusta.adb (Print): Make sure Pos is always initialized to a | |
10112 | suitable value. | |
10113 | ||
12f0c50c AC |
10114 | 2011-08-02 Geert Bosch <bosch@adacore.com> |
10115 | ||
10116 | * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image. | |
10117 | ||
10118 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
10119 | ||
10120 | * sem_type.adb (Covers): Move trivial case to the top and reuse the | |
10121 | computed value of Base_Type. | |
10122 | ||
10123 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
10124 | ||
10125 | * restrict.adb (Check_Restriction): issue an error for any use of | |
10126 | class-wide, even if the No_Dispatch restriction is not set. | |
10127 | * sem_aggr.adb: Correct typos in comments and messages in formal mode | |
10128 | * sem_ch3.adb (Process_Full_View): issue an error in formal mode is, | |
10129 | when completing a private extension, the type named in the private part | |
10130 | is not the same as that named in the visible part. | |
10131 | * sem_res.adb (Resolve_Call): issue an error in formal mode on the use | |
10132 | of an inherited primitive operations of a tagged type or type extension | |
10133 | that returns the tagged type. | |
10134 | * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new | |
10135 | function which returns True for an implicit operation inherited by the | |
10136 | derived type declaration for the argument type. | |
10137 | (Is_SPARK_Object_Reference): move to appropriate place in alphabetic | |
10138 | order. | |
10139 | ||
fb86fe11 ES |
10140 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
10141 | ||
10142 | * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from | |
10143 | Process_Bounds, to perform analysis with expansion of a range or an | |
10144 | expression that is the iteration scheme for a loop. | |
10145 | (Analyze_Iterator_Specification): If domain of iteration is given by a | |
10146 | function call with a controlled result, as is the case if call returns | |
10147 | a predefined container, ensure that finalization actions are properly | |
10148 | generated. | |
10149 | * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range. | |
10150 | ||
62be5d0a JM |
10151 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
10152 | ||
10153 | * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo. | |
10154 | * gcc-interface/Make-lang.in: Update dependencies. | |
10155 | ||
10156 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
10157 | ||
10158 | * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to | |
10159 | determine if the analysis is performed using N or Original_Node (N). | |
10160 | * exp_util.adb (Side_Effect_Free): Code cleanup since the new | |
10161 | functionality of routine Is_Variable avoids code duplication. | |
10162 | * checks.adb (Determine_Range): Handle temporaries generated by | |
10163 | Remove_Side_Effects. | |
10164 | ||
10165 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
10166 | ||
10167 | * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and | |
10168 | expansion of the condition. Required since the previous analysis was | |
10169 | done with expansion disabled (see Resolve_Quantified_Expression) and | |
10170 | hence checks were not inserted and record comparisons have not been | |
10171 | expanded. | |
10172 | ||
a20f4389 AC |
10173 | 2011-08-02 Ed Falis <falis@adacore.com> |
10174 | ||
10175 | * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads: | |
10176 | Update header. | |
10177 | ||
10178 | 2011-08-02 Bob Duff <duff@adacore.com> | |
10179 | ||
10180 | * opt.ads: Minor comment fix. | |
10181 | ||
10182 | 2011-08-02 Bob Duff <duff@adacore.com> | |
10183 | ||
10184 | * sem_ch12.adb (Analyze_Package_Instantiation, | |
10185 | Analyze_Subprogram_Instantiation): Turn off style checking while | |
10186 | analyzing an instance. Whatever style checks that apply to the generic | |
10187 | unit should apply, so it makes no sense to apply them in an instance. | |
10188 | This was causing trouble when compiling an instance of a runtime | |
10189 | unit that violates the -gnatyO switch. | |
10190 | * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from | |
10191 | one of the two case statements, causing spurious errors. | |
10192 | ||
10193 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10194 | ||
10195 | * uname.adb: Minor reformatting. | |
10196 | * gnatcmd.adb: Minor reformatting. | |
10197 | * exp_attr.adb: Minor reformatting. | |
10198 | ||
90878b12 AC |
10199 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
10200 | ||
10201 | * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction | |
10202 | No_Dispatching_Calls, do not look for the Assign primitive, because | |
10203 | predefined primitives are not created in this case. | |
10204 | ||
10205 | 2011-08-02 Bob Duff <duff@adacore.com> | |
10206 | ||
10207 | * stylesw.ads: Minor comment fixes. | |
10208 | ||
10209 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10210 | ||
10211 | * freeze.adb (Add_To_Result): New procedure. | |
10212 | ||
10213 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
10214 | ||
10215 | * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run | |
10216 | time, if the specific run-time routines for handling streams of strings | |
10217 | are not available, use the default mechanism. | |
10218 | ||
10219 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
10220 | ||
10221 | * s-regpat.ads: Fix typo. | |
10222 | ||
10223 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
10224 | ||
10225 | * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is | |
10226 | not null, call it to create the in memory config project file without | |
10227 | parsing an existing default config project file. | |
10228 | ||
10229 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
10230 | ||
10231 | * atree.adb (Allocate_Initialize_Node): Remove useless temporaries. | |
10232 | ||
10233 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10234 | ||
10235 | * sem_elim.adb: an abstract subprogram does not need an eliminate | |
10236 | pragma for its descendant to be eliminable. | |
10237 | ||
10238 | 2011-08-02 Ed Falis <falis@adacore.com> | |
10239 | ||
10240 | * init.c: revert to handling before previous checkin for VxWorks | |
10241 | * s-intman-vxworks.adb: delete unnecessary declarations related to | |
10242 | using Ada interrupt facilities for handling signals. | |
10243 | Delete Initialize_Interrupts. Use __gnat_install_handler instead. | |
10244 | * s-intman-vxworks.ads: Import __gnat_install_handler as | |
10245 | Initialize_Interrupts. | |
10246 | * s-taprop-vxworks.adb: Delete Signal_Mask. | |
10247 | (Abort_Handler): change construction of mask to unblock exception | |
10248 | signals. | |
10249 | ||
273adcdf AC |
10250 | 2011-08-02 Jerome Guitton <guitton@adacore.com> |
10251 | ||
10252 | * a-except-2005.adb (Raise_From_Signal_Handler): Call | |
10253 | Debug_Raise_Exception before propagation starts. | |
10254 | ||
10255 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
10256 | ||
10257 | * exp_ch6.adb (Expand_Call): Guard restriction checks with a call | |
10258 | to Restriction_Check_Required. | |
10259 | * sem_ch3.adb (Analyze_Object_Declaration): Likewise. | |
10260 | * sem_res.adb (Resolve_Call): Likewise. | |
10261 | * sem_attr.adb (Check_Stream_Attribute): Likewise. | |
10262 | ||
10263 | 2011-08-02 Bob Duff <duff@adacore.com> | |
10264 | ||
10265 | * stylesw.ads: Update comment. | |
10266 | * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N. | |
10267 | * errout.ads: Remove obsolete comment. | |
10268 | ||
10269 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
10270 | ||
10271 | * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function. | |
10272 | (Set_Is_Safe_To_Reevaluate): new procedure. | |
10273 | * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no | |
10274 | assignment is allowed on safe-to-reevaluate variables. | |
10275 | (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the | |
10276 | temporary created to remove side effects in expressions that use | |
10277 | the secondary stack as safe-to-reevaluate. | |
10278 | * exp_util.adb (Side_Effect_Free): Add missing code to handle well | |
10279 | variables that are not true constants. | |
10280 | ||
6320f5e1 AC |
10281 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10282 | ||
10283 | * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads, | |
10284 | sem_res.adb, sem_ch6.adb: Minor reformatting. | |
10285 | ||
10286 | 2011-08-02 Jerome Guitton <guitton@adacore.com> | |
10287 | ||
10288 | * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code. | |
10289 | ||
2fe829ae ES |
10290 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
10291 | ||
10292 | * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do | |
10293 | not set Overridden_Operation if subprogram is an initialization | |
10294 | procedure. | |
10295 | ||
e24329cd YM |
10296 | 2011-08-02 Yannick Moy <moy@adacore.com> |
10297 | ||
10298 | * par-ch6.adb: Correct obsolete name in comments | |
10299 | * restrict.adb, restrict.ads (Check_Formal_Restriction): new function | |
10300 | which takes two message arguments (existing function takes one), with | |
10301 | second message used for continuation. | |
10302 | * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject | |
10303 | block statements that originate from a source block statement, not | |
10304 | generated block statements | |
10305 | * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for | |
10306 | symmetry with procedure case | |
10307 | * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new | |
10308 | function to issue an error in formal mode if a package specification | |
10309 | contains more than one tagged type or type extension. | |
10310 | * sem_res.adb (Resolve_Actuals): in formal mode, check that actual | |
10311 | parameters matching formals of tagged types are objects (or ancestor | |
10312 | type conversions of objects), not general expressions. Issue an error | |
10313 | on view conversions that are not involving ancestor conversion of an | |
10314 | extended type. | |
10315 | (Resolve_Type_Conversion): in formal mode, issue an error on the | |
10316 | operand of an ancestor type conversion which is not an object | |
10317 | * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the | |
10318 | procedure so that it works also for actuals of function calls | |
10319 | (Is_Actual_Tagged_Parameter): new function which determines if its | |
10320 | argument is an actual parameter of a formal of tagged type in a | |
10321 | subprogram call | |
10322 | (Is_SPARK_Object_Reference): new function which determines if the tree | |
10323 | referenced by its argument represents an object in SPARK | |
10324 | ||
176dadf6 AC |
10325 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10326 | ||
10327 | * sem_ch3.adb: Minor reformatting | |
10328 | Minor comment addition | |
10329 | Minor error msg text change | |
10330 | ||
10331 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
10332 | ||
10333 | * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New | |
10334 | function. Used to be more precise when we generate a variable plus one | |
10335 | assignment to remove side effects in the evaluation of the Bound | |
10336 | expressions. | |
10337 | (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes | |
10338 | of the bound expression to force its re-analysis and thus expand the | |
10339 | associated transient scope (if required). Code cleanup replacing the | |
10340 | previous code that declared the constant entity by an invocation to | |
10341 | routine Force_Evaluation which centralizes this work in the frontend. | |
10342 | ||
d8b962d8 AC |
10343 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10344 | ||
10345 | * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table | |
10346 | (Base_Type): Now uses improved Is_Base_Type function | |
10347 | * einfo.ads (Base_Type): Inline this function | |
10348 | ||
10349 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10350 | ||
10351 | * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion | |
10352 | (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas | |
10353 | ||
10354 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
10355 | ||
10356 | * gcc-interface/Make-lang.in: Update dependencies. | |
10357 | * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks | |
10358 | targets. | |
10359 | ||
10360 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
10361 | ||
10362 | * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on | |
10363 | non-simple expression used in delta constraint | |
10364 | (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on | |
10365 | index constraint which is not a subtype mark | |
10366 | * par.adb: With and use Restrict | |
10367 | * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal | |
10368 | mode on component type which is not a subtype mark and default | |
10369 | expression on component | |
10370 | (Analyze_Subtype_Declaration): issue an error in formal mode on subtype | |
10371 | of string which does not have a lower index bound equal to 1 | |
10372 | (Array_Type_Declaration): issue an error in formal mode on index or | |
10373 | component type which is not a subtype mark, and on aliased keyword on | |
10374 | component | |
10375 | (Derived_Type_Declaration): issue an error in formal mode on interface, | |
10376 | limited or abstract type | |
10377 | (Record_Type_Declaration): issue an error in formal mode on interface | |
10378 | (Record_Type_Definition): issue an error in formal mode on tagged types | |
10379 | and type extensions not declared in the specification of a library unit | |
10380 | package; on null non-tagged record; on variant part | |
10381 | ||
10382 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
10383 | ||
10384 | * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir | |
10385 | not declared for qualified library project when Library_Name is not | |
10386 | declared, but Library_Dir is. | |
10387 | ||
10388 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10389 | ||
10390 | * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated | |
10391 | pragmas (affects aspects [Component_]Default_Value | |
10392 | (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use | |
10393 | component type for the resolution | |
10394 | ||
f96b2d85 AC |
10395 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> |
10396 | ||
10397 | * einfo.adb (Base_Type): Tune implementation for speed. | |
10398 | ||
10399 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10400 | ||
10401 | * freeze.adb: Minor reformatting. | |
10402 | ||
8b3c6430 AC |
10403 | 2011-08-02 Thomas Quinot <quinot@adacore.com> |
10404 | ||
10405 | * scos.ads: Update comments. | |
10406 | ||
10407 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10408 | ||
10409 | * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the | |
10410 | base type, because the parent may be a subtype of a private type whose | |
10411 | convention is established in a private part. | |
10412 | ||
10413 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
10414 | ||
10415 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return | |
10416 | statement in a block when the expansion of the return expression has | |
10417 | created a finalization chain. | |
10418 | * freeze.adb (Freeze_Expression): Alphabetize all choices associated | |
10419 | with the parent node. | |
10420 | Add N_Extended_Return_Statement to handle the case where a transient | |
10421 | object declaration appears in the Return_Object_Declarations list of | |
10422 | an extended return statement. | |
10423 | ||
10424 | 2011-08-02 Matthew Gingell <gingell@adacore.com> | |
10425 | ||
10426 | * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly | |
10427 | unused parameter 'name'. | |
10428 | ||
10429 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10430 | ||
10431 | * sem_elim.adb (Set_Eliminated): If the overridden operation is an | |
10432 | inherited operation, check whether its alias, which is the source | |
10433 | operastion that it renames, has been marked eliminated. | |
10434 | ||
cae81f17 JM |
10435 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
10436 | ||
10437 | * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an | |
10438 | in-mode parameter whose type is an access type since it can be used to | |
10439 | modify its designated object. Enforce code that handles as safe an | |
10440 | access type that is not access-to-constant but it is the result of a | |
10441 | previous removal of side-effects. | |
10442 | (Remove_Side_Effects): Minor code reorganization of cases which require | |
10443 | no action. Done to incorporate documentation on new cases uncovered | |
10444 | working in this ticket: no action needed if this routine was invoked | |
10445 | too early and the nodes are not yet decorated. | |
10446 | * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls | |
10447 | to routine Remove_Side_Effects by calls to Force_Evaluation since they | |
10448 | were issued with actuals that are implicitly provided by | |
10449 | Force_Evaluation. | |
10450 | ||
218e6dee RD |
10451 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10452 | ||
10453 | * sem_ch3.adb, sem_res.adb: Minor reformatting. | |
10454 | ||
7a489a2b AC |
10455 | 2011-08-02 Yannick Moy <moy@adacore.com> |
10456 | ||
10457 | * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure | |
10458 | to issue an error in formal mode on attribute not supported in this mode | |
10459 | (Analyze_Attribute): issue errors on standard attributes not supported | |
10460 | in formal mode. | |
10461 | * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of | |
10462 | comment, and issue error in formal mode on modulus which is not a power | |
10463 | of 2. | |
10464 | (Process_Range_Expr_In_Decl): issue error in formal mode on non-static | |
10465 | range. | |
10466 | * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in | |
10467 | subtype mark. | |
10468 | * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary | |
10469 | operator on modular type (except 'not'). | |
10470 | ||
10471 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10472 | ||
10473 | * gnat_rm.texi: Minor reformatting. | |
10474 | ||
cb7fa356 AC |
10475 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> |
10476 | ||
10477 | * s-osinte-linux.ads: Minor comment update and reformatting. | |
10478 | * i-cexten.ads: Make this unit pure, as for its parent. | |
10479 | Will allow its usage in more contexts if needed. | |
10480 | ||
10481 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10482 | ||
10483 | * s-utf_32.ads: Minor comment fix. | |
10484 | ||
10485 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10486 | ||
10487 | * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive | |
10488 | operation of a tagged synchronized type, handle the case where the | |
10489 | controlling argument is overloaded. | |
10490 | ||
10491 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
10492 | ||
10493 | * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl: | |
10494 | Replace pragma SPARK_95 with pragma Restrictions (SPARK) | |
10495 | * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set | |
10496 | SPARK mode and formal verification mode on processing SPARK restriction | |
10497 | * s-rident.ads (Restriction_Id): add SPARK restriction in those not | |
10498 | requiring consistency checking. | |
10499 | ||
5cc9353d RD |
10500 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10501 | ||
10502 | * sem_res.adb: Minor reformatting. | |
10503 | ||
e51537ff RD |
10504 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10505 | ||
10506 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
10507 | a-cforse.ads: Remove unneeded with of Ada.Containers | |
10508 | Remove commented out pragma Inline's | |
10509 | Move specifications of new subprograms to the actual specs | |
10510 | ||
83fa09c5 AC |
10511 | 2011-08-02 Yannick Moy <moy@adacore.com> |
10512 | ||
10513 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
10514 | a-cforse.ads: Update comments. | |
10515 | ||
10516 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10517 | ||
10518 | * sem_attr.adb: add attribute name when 'Result has the wrong prefix. | |
10519 | ||
d11cfaf8 RD |
10520 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10521 | ||
10522 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
10523 | a-cforse.ads, a-cofove.ads: Minor reformatting. | |
10524 | ||
300b98bb AC |
10525 | 2011-08-02 Claire Dross <dross@adacore.com> |
10526 | ||
10527 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads, | |
10528 | a-cofove.ads: Add comments. | |
10529 | ||
10530 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
10531 | ||
10532 | * gnat_rm.texi: Document formal containers. | |
10533 | ||
10534 | 2011-08-02 Emmanuel Briot <briot@adacore.com> | |
10535 | ||
10536 | * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there | |
10537 | are empty sections. | |
10538 | ||
19fb051c AC |
10539 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10540 | ||
10541 | * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor | |
10542 | reformatting. | |
10543 | ||
10544 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10545 | ||
10546 | * aspects.adb: New aspects Default_Value and Default_Component_Value | |
10547 | New format of Aspect_Names table checks for omitted entries | |
10548 | * aspects.ads: Remove mention of Aspect_Cancel and add documentation on | |
10549 | handling of boolean aspects for derived types. | |
10550 | New aspects Default_Value and Default_Component_Value | |
10551 | New format of Aspect_Names table checks for omitted entries | |
10552 | * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag | |
10553 | (Has_Default_Value): New flag | |
10554 | (Has_Default_Component_Value): New flag | |
10555 | (Has_Default_Value): New flag | |
10556 | * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names | |
10557 | table. | |
10558 | * par-prag.adb: New pragmas Default_Value and Default_Component_Value | |
10559 | * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects | |
10560 | Default_Value and Default_Component_Value | |
10561 | * sem_prag.adb: New pragmas Default_Value and Default_Component_Value | |
10562 | New aspects Default_Value and Default_Component_Value | |
10563 | * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value | |
10564 | * sprint.adb: Print N_Aspect_Specification node when called from gdb | |
10565 | ||
10566 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
10567 | ||
10568 | * prj-nmsc.adb (Check_Library_Attributes): For virtual library project, | |
10569 | inherit library kind. | |
10570 | ||
10571 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10572 | ||
10573 | * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds. | |
10574 | Minor reformatting. | |
10575 | ||
10576 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10577 | ||
10578 | * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM | |
10579 | ||
5f7747af AC |
10580 | 2011-08-02 Yannick Moy <moy@adacore.com> |
10581 | ||
10582 | * sem_aggr.adb (Resolve_Aggregate): Fix thinko. | |
10583 | ||
10584 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10585 | ||
10586 | * impunit.adb: Add comment. | |
10587 | ||
a5fe697b AC |
10588 | 2011-08-02 Yannick Moy <moy@adacore.com> |
10589 | ||
10590 | * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks | |
10591 | qualification of aggregates in formal mode | |
10592 | (Is_Top_Level_Aggregate): returns True for an aggregate not contained in | |
10593 | another aggregate | |
10594 | (Resolve_Aggregate): complete the test that an aggregate is adequately | |
10595 | qualified in formal mode | |
10596 | ||
10597 | 2011-08-02 Pascal Obry <obry@adacore.com> | |
10598 | ||
10599 | * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting. | |
10600 | * mlib-prj.adb: Supress warning when compiling binder generated file. | |
10601 | (Build_Library): Supress all warnings when compiling the binder | |
10602 | generated file. | |
10603 | ||
bd65a2d7 | 10604 | 2011-08-02 Yannick Moy <moy@adacore.com> |
d4487611 | 10605 | |
bd65a2d7 AC |
10606 | * errout.adb, errout.ads (Check_Formal_Restriction): move procedure |
10607 | from here... | |
10608 | * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here | |
10609 | * sem_aggr.adb, sem_ch5.adb, sem_util.adb: | |
10610 | Add with/use clauses to make Check_Formal_Restriction visible | |
10611 | ||
10612 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10613 | ||
10614 | * sem_ch12.adb (Check_Generic_Actuals): handle properly actual | |
10615 | in-parameters when type of the generic formal is private in the generic | |
10616 | spec and non-private in the body. | |
10617 | ||
10618 | 2011-08-02 Claire Dross <dross@adacore.com> | |
10619 | ||
10620 | * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb, | |
10621 | a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads, | |
10622 | a-cofove.adb, a-cofove.ads: New files implementing formal containers. | |
10623 | * impunit.adb, Makefile.rtl: Take new files into account. | |
d4487611 AC |
10624 | |
10625 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10626 | ||
10627 | * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb, | |
10628 | sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting. | |
10629 | ||
bd434b3f YM |
10630 | 2011-08-02 Yannick Moy <moy@adacore.com> |
10631 | ||
10632 | * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in | |
10633 | formal mode | |
10634 | * sem_util.adb (Matching_Static_Array_Bounds): proper detection of | |
10635 | matching static array bounds, taking into account the special case of | |
10636 | string literals | |
10637 | * sem_ch3.adb: Typo in comment. | |
10638 | ||
fe5d3068 YM |
10639 | 2011-08-02 Yannick Moy <moy@adacore.com> |
10640 | ||
10641 | * errout.adb, errout.ads (Check_Formal_Restriction): new procedure | |
10642 | which issues an error in formal mode if its argument node is originally | |
10643 | from source | |
10644 | * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type | |
10645 | has a discriminant specification so that it does not include the case | |
10646 | of derived types | |
10647 | (Derived_Type_Declaration): move here the test that a derived type has a | |
10648 | discriminant specification | |
10649 | * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the | |
10650 | first element of a component association before accessing its choices | |
10651 | (presence of component association is not enough) | |
10652 | * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram | |
10653 | declaration is a library item before accessing the next element in a | |
10654 | list, as library items are not member of lists | |
10655 | * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, | |
10656 | sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use | |
10657 | Check_Formal_Restriction whenever possible. | |
10658 | ||
b60a3f26 AC |
10659 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
10660 | ||
10661 | * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype | |
10662 | reference when needed. | |
10663 | ||
10664 | 2011-08-02 Bob Duff <duff@adacore.com> | |
10665 | ||
10666 | * gnat_ugn.texi: Fix typo. | |
10667 | ||
10668 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
10669 | ||
10670 | * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of | |
10671 | archive file name. Do not use the full path name of archives for Open | |
10672 | VMS. | |
10673 | ||
eaba57fb RD |
10674 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10675 | ||
10676 | * sem_ch12.adb, sem_ch11.adb: New calling sequence for | |
10677 | Analyze_Aspect_Specifications | |
10678 | * sem_ch13.adb | |
10679 | (Analyze_Aspect_Specifications): New handling for boolean aspects | |
10680 | * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence | |
10681 | * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling | |
10682 | sequence for Analyze_Aspect_Specifications | |
10683 | * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely | |
10684 | * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used | |
10685 | ||
10686 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10687 | ||
10688 | * freeze.adb (Freeze_Entity): Remove handling of delayed boolean | |
10689 | aspects, since these no longer exist. | |
10690 | ||
10691 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10692 | ||
10693 | * par-ch13.adb (Aspect_Specifications_Present): Always return false on | |
10694 | semicolon, do not try to see if there are aspects following it. | |
10695 | * par-ch3.adb (P_Declarative_Items): Better message for unexpected | |
10696 | aspect spec. | |
10697 | ||
8830d1d2 AC |
10698 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10699 | ||
10700 | * sem_ch8.adb, aspects.ads: Minor reformatting. | |
10701 | ||
10702 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
10703 | ||
10704 | * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline. | |
10705 | * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure | |
10706 | extracted from... | |
10707 | (Analyze_Aspect_Specifications): ...here. Call above procedure. | |
10708 | ||
7ff2d234 AC |
10709 | 2011-08-02 Yannick Moy <moy@adacore.com> |
10710 | ||
10711 | * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal | |
10712 | mode on subprogram declaration outside of package specification, unless | |
10713 | it is followed by a pragma Import | |
10714 | * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration, | |
10715 | Access_Type_Declaration): issue error in formal mode on access type | |
10716 | (Analyze_Incomplete_Type_Decl): issue error in formal mode on | |
10717 | incomplete type | |
10718 | (Analyze_Object_Declaration): issue error in formal mode on object | |
10719 | declaration which does not respect SPARK restrictions | |
10720 | (Analyze_Subtype_Declaration): issue error in formal mode on subtype | |
10721 | declaration which does not respect SPARK restrictions | |
10722 | (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue | |
10723 | error in formal mode on digits or delta constraint | |
10724 | (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on | |
10725 | decimal fixed point type | |
10726 | (Derived_Type_Declaration): issue error in formal mode on derived type | |
10727 | other than type extensions of tagged record types | |
10728 | * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant | |
10729 | with check on access definition | |
10730 | * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal | |
10731 | mode on protected definition. | |
10732 | (Analyze_Task_Definition): issue error in formal mode on task definition | |
10733 | ||
10734 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10735 | ||
10736 | * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting. | |
10737 | ||
806f6d37 AC |
10738 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
10739 | ||
10740 | * sem_ch6.adb (Can_Override_Operator): New function. | |
10741 | (Verify_Overriding_Indicator): Add missing code to check overriding | |
10742 | indicator in operators. Fixes regression. | |
10743 | (Check_Overriding_Indicator): Minor reformating after replacing the | |
10744 | code that evaluates if the subprogram can override an operator by | |
10745 | invocations to the above new function. | |
10746 | * einfo.adb | |
10747 | (Write_Field26_Name): Add missing code to ensure that, following | |
10748 | the documentation in einfo.ads, this field is not shown as attribute | |
10749 | "Static_Initialization" on non-dispatching functions. | |
10750 | ||
10751 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
10752 | ||
10753 | * sem_res.adb (Resolve_Call): A call to | |
10754 | Ada.Real_Time.Timing_Events.Set_Handler violates restriction | |
10755 | No_Relative_Delay (AI-0211) only when it sets a relative timing event, | |
10756 | i.e., when the second parameter is of type Time_Span. | |
10757 | ||
10758 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
10759 | ||
10760 | * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link | |
10761 | with an archive instead of -L<library dir> -l<library name>. | |
10762 | ||
10763 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10764 | ||
10765 | * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed, | |
10766 | mark the base types In_Use in addition to making the operations | |
10767 | use_visible. | |
10768 | ||
10769 | 2011-08-02 Ed Falis <falis@adacore.com> | |
10770 | ||
10771 | * init.c: add and setup __gnat_signal_mask for the exception signals | |
10772 | * s-inmaop-vxworks.adb: new file. | |
10773 | * s-intman-vxworks.adb: remove unnecessary initializations and | |
10774 | simplify remaining | |
10775 | * s-intman-vxworks.ads: remove unnecessary variable | |
10776 | * s-taprop-vxworks.adb: simplify signal initialization | |
10777 | ||
780d052e RD |
10778 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10779 | ||
10780 | * sem_ch8.adb: Minor code reorganization, comment updates. | |
10781 | ||
10782 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10783 | ||
10784 | * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util | |
10785 | * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved | |
10786 | here from Sem_Res. | |
10787 | (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression | |
10788 | (Matching_Static_Array_Bounds): Moved here from Sem_Res | |
10789 | ||
29efbb8c ES |
10790 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
10791 | ||
10792 | * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5. | |
10793 | * par_ch8.adb (P_Use_Type): initialize Used_Operations for node. | |
10794 | * sinfo.ads, sinfo.adb (Used_Operations): new attribute of | |
10795 | use_type_clauses, to handle more efficiently use_type and use_all_type | |
10796 | constructs. | |
10797 | * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the | |
10798 | Ada2012 Use_All_Type clause. | |
10799 | (Use_Class_Wide_Operations): new procedure. | |
10800 | ||
b0186f71 AC |
10801 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10802 | ||
10803 | * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb, | |
10804 | sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized | |
10805 | expression to expression function. | |
10806 | ||
10807 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10808 | ||
10809 | * sem_ch4.adb: transform simple Ada2012 membership into equality only | |
10810 | if types are compatible. | |
10811 | ||
10812 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
10813 | ||
10814 | * sem_res.adb (Matching_Static_Array_Bounds): new function which | |
10815 | returns True if its argument array types have same dimension and same | |
10816 | static bounds at each index. | |
10817 | (Resolve_Actuals): issue an error in formal mode on actuals passed as | |
10818 | OUT or IN OUT paramaters which are not view conversions in SPARK. | |
10819 | (Resolve_Arithmetic_Op): issue an error in formal mode on | |
10820 | multiplication or division with operands of fixed point types which are | |
10821 | not qualified or explicitly converted. | |
10822 | (Resolve_Comparison_Op): issue an error in formal mode on comparisons of | |
10823 | Boolean or array type (except String) operands. | |
10824 | (Resolve_Equality_Op): issue an error in formal mode on equality | |
10825 | operators for array types other than String with non-matching static | |
10826 | bounds. | |
10827 | (Resolve_Logical_Op): issue an error in formal mode on logical operators | |
10828 | for array types with non-matching static bounds. Factorize the code in | |
10829 | Matching_Static_Array_Bounds. | |
10830 | (Resolve_Qualified_Expression): issue an error in formal mode on | |
10831 | qualified expressions for array types with non-matching static bounds. | |
10832 | (Resolve_Type_Conversion): issue an error in formal mode on type | |
10833 | conversion for array types with non-matching static bounds | |
10834 | ||
767bb4e8 AC |
10835 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10836 | ||
10837 | * par-ch10.adb: Minor code reorganization (use Nkind_In). | |
10838 | ||
10839 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10840 | ||
10841 | * par-ch9.adb: save location of entry for proper error message. | |
10842 | ||
4ac2477e JM |
10843 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
10844 | ||
10845 | * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal | |
10846 | (Use_Full_View) which permits this routine to climb through the | |
10847 | ancestors using the full-view of private parents. | |
10848 | * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set | |
10849 | Use_Full_View to true in calls to Is_Ancestor. | |
10850 | * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to | |
10851 | true in call to Is_Ancestor. | |
10852 | * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set | |
10853 | Use_Full_View to true in call to Is_Ancestor. | |
10854 | * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in | |
10855 | call to Is_Ancestor. | |
10856 | * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set | |
10857 | Use_Full_View to true in calls to Is_Ancestor. | |
10858 | * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT, | |
10859 | Make_Select_Specific_Data_Table, Register_Primitive, | |
10860 | Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor. | |
10861 | * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View | |
10862 | to true in call to Is_Ancestor. | |
10863 | * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set | |
10864 | Use_Full_View to true in calls to Is_Ancestor. | |
10865 | * exp_cg.adb | |
10866 | (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor. | |
10867 | (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor. | |
10868 | ||
9f90d123 AC |
10869 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10870 | ||
10871 | * gnat_rm.texi: Minor reformatting. | |
10872 | * sem_prag.adb: Minor reformatting. | |
10873 | ||
10874 | 2011-08-02 Tristan Gingold <gingold@adacore.com> | |
10875 | ||
10876 | * vms_data.ads: Add VMS qualifier for -gnateP. | |
10877 | ||
10878 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10879 | ||
10880 | * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty | |
10881 | * par-ch7.adb (P_Package): Proper placement of aspects for package | |
10882 | decl/instantiation. | |
10883 | * par-endh.adb (Check_End): Ad Is_Sloc parameter | |
10884 | (End_Statements): Add Is_Sloc parameterr | |
10885 | * par.adb (P_Aspect_Specification): New meaning of Decl = Empty | |
10886 | (Check_End): Ad Is_Sloc parameter | |
10887 | (End_Statements): Add Is_Sloc parameterr | |
10888 | ||
10889 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
10890 | ||
10891 | * ug_words: Add VMS qualifier equivalent to -gnateP: | |
10892 | /SYMBOL_PREPROCESSING. | |
10893 | ||
10894 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
10895 | ||
10896 | * gnat-style.texi: For hexadecimal numeric literals the typical | |
10897 | grouping of digits is 4 to represent 2 bytes. | |
10898 | A procedure spec which is split into several lines is indented two | |
10899 | characters. | |
10900 | ||
10901 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
10902 | ||
10903 | * exp_aggr.adb (Is_Others_Aggregate): move function to other unit. | |
10904 | * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here | |
10905 | (Resolve_Aggregate): issue errors in formal modes when aggregate is not | |
10906 | properly qualified | |
10907 | (Resolve_Array_Aggregate): issue errors in formal modes on non-static | |
10908 | choice in array aggregate | |
10909 | (Resolve_Extension_Aggregate): issue errors in formal modes on subtype | |
10910 | mark as ancestor | |
10911 | (Resolve_Record_Aggregate): issue errors in formal modes on mixed | |
10912 | positional and named aggregate for record, or others in record | |
10913 | aggregate, or multiple choice in record aggregate | |
10914 | * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when | |
10915 | array operands to logical operations AND, OR and XOR do not have the | |
10916 | same static lower and higher bounds | |
10917 | * sem_ch5.adb, sinfo.ads: Correct typos in comments | |
10918 | ||
2933b16c RD |
10919 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
10920 | ||
10921 | * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement): | |
10922 | Replaces Last_Source_Node_In_Sequence. | |
10923 | * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K | |
10924 | * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores | |
10925 | parens and blank in string (this was inconsistently implemented). | |
10926 | * errout.ads | |
10927 | (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and | |
10928 | blank in string (this was inconsistently implemented). | |
10929 | * gnat1drv.adb | |
10930 | (Set_Global_Switches): Set formal mode switches appropriately | |
10931 | * opt.ads, opt.adb: Formal mode is now global switches, more consistent | |
10932 | * par-prag.adb | |
10933 | (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and | |
10934 | call Set_Error_Msg_Lang to set "spark" as language name. | |
10935 | * par.adb: Remove unnecessary call to set formal language for errout | |
10936 | * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches | |
10937 | appropriately and call Set_Error_Msg_Lang to set "spark" as language | |
10938 | name. | |
10939 | * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and | |
10940 | calls to it, moved after resolution so that types are known | |
10941 | * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if | |
10942 | result of concatenation is not of type String | |
10943 | (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of | |
10944 | concatenation is not properly restricted | |
10945 | * gnat_rm.texi: Add doc on pragma Spark_95. | |
10946 | * gcc-interface/Makefile.in: Remove obsolete target pairs for | |
10947 | Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads. | |
10948 | * gcc-interface/Make-lang.in: Update dependencies. | |
10949 | ||
05dbd302 AC |
10950 | 2011-08-01 Javier Miranda <miranda@adacore.com> |
10951 | ||
10952 | * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of | |
10953 | condition that detects if the overridden operation must replace an | |
10954 | existing entity. | |
10955 | ||
10956 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
10957 | ||
10958 | * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded | |
10959 | code declarations inserted by Insert_Actions in each alternative of the | |
10960 | N_Case_Expression node. | |
10961 | ||
10962 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
10963 | ||
10964 | * sem_ch6.adb: Minor code reorganization. | |
10965 | * sem_util.adb: Minor reformatting. | |
10966 | ||
af9e051f PO |
10967 | 2011-08-01 Pascal Obry <obry@adacore.com> |
10968 | ||
10969 | * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path. | |
10970 | * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource. | |
10971 | ||
1d801f21 AC |
10972 | 2011-08-01 Yannick Moy <moy@adacore.com> |
10973 | ||
10974 | * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character | |
10975 | literal or operator symbol which is prefixed | |
10976 | * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal | |
10977 | mode on access attributes. | |
10978 | * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check | |
10979 | that concatenation operands are properly restricted in formal mode | |
10980 | (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure | |
10981 | Analyze_Concatenation_Operand. Issue an error in formal mode if the | |
10982 | result of the concatenation has a type different from String. | |
10983 | (Analyze_Conditional_Expression, Analyze_Explicit_Dereference, | |
10984 | Analyze_Quantified_Expression, Analyze_Slice, | |
10985 | Analyze_Null): issue an error in formal mode on unsupported constructs | |
10986 | * sem_ch5.adb | |
10987 | (Analyze_Block_Statement): only issue error on source block statement | |
10988 | * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new | |
10989 | function which returns the last node in a list of nodes for which | |
10990 | Comes_From_Source returns True, if any | |
10991 | * sem_ch6.adb (Check_Missing_Return): minor refactoring to use | |
10992 | Last_Source_Node_In_Sequence | |
10993 | * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming, | |
10994 | Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal | |
10995 | mode on unsupported constructs | |
10996 | * sem_ch9.adb Do not return after issuing error in formal mode, as the | |
10997 | rest of the actions may be needed later on since the error is marked as | |
10998 | not serious. | |
10999 | * sinfo.ads: Typos in comments. | |
11000 | ||
11001 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
11002 | ||
11003 | * projects.texi: Minor editing. | |
11004 | ||
53beff22 YM |
11005 | 2011-08-01 Yannick Moy <moy@adacore.com> |
11006 | ||
11007 | * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for | |
11008 | insertion character ~~ | |
11009 | * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures | |
11010 | (Set_Error_Msg_Lang): new procedure which fixes the language for use | |
11011 | with insertion character ~~ | |
11012 | (Set_Msg_Text): treat insertion character ~~ | |
11013 | * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb, | |
11014 | sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to | |
11015 | Formal_Error_Msg_... procedures by equivalent Error_Msg_... | |
11016 | procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make | |
11017 | errors related to the formal language restriction not serious | |
11018 | (insertion character |). | |
11019 | * par.adb (Par): set formal language for error messages if needed | |
11020 | * sem_ch6.adb (Check_Missing_Return): take into account possible | |
11021 | generated statements at the end of the function | |
11022 | * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and | |
11023 | enumeration value to define a new pragma SPARK_95 | |
11024 | * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default, | |
11025 | SPARK_Version): new type and variables to store the SPARK version | |
11026 | (none by default). | |
11027 | (SPARK_Mode): return True when SPARK_Version is set | |
11028 | * par-prag.adb: Correct indentation | |
11029 | (Prag): take Pragma_SPARK_95 into account | |
11030 | * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95 | |
11031 | into account. | |
11032 | ||
8d606a78 RD |
11033 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
11034 | ||
11035 | * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb, | |
11036 | sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb, | |
11037 | sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting | |
11038 | ||
1982d5a8 PO |
11039 | 2011-08-01 Pascal Obry <obry@adacore.com> |
11040 | ||
11041 | * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass | |
11042 | Target_Name to Get_Path call. | |
11043 | (Parse_Single_Project): Likewise. | |
11044 | (Post_Parse_Context_Clause): Likewise. | |
11045 | * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter. | |
11046 | Call Initialise_Project_Path with the proper Target_Name. | |
11047 | (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat | |
11048 | search path. | |
11049 | (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path | |
11050 | with the proper Target_Name. | |
11051 | * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to | |
11052 | Part.Parse routine. | |
11053 | (Parse_Project_And_Apply_Config): Likewise. | |
11054 | * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine. | |
11055 | This is fine as this part of the code is supporting only native | |
11056 | compilation. | |
11057 | * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This | |
11058 | is fine as this part of the code is supporting only native compilation. | |
11059 | ||
0d53d36b AC |
11060 | 2011-08-01 Yannick Moy <moy@adacore.com> |
11061 | ||
11062 | * sem_util.adb (Enter_Name): issue error in formal mode on declaration | |
11063 | of homonym, unless the homonym is one of the cases allowed in SPARK | |
11064 | * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for | |
11065 | package declaration occurring after a body. | |
11066 | ||
11067 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
11068 | ||
11069 | * checks.adb, exp_ch4.adb: Minor reformatting. | |
11070 | ||
11071 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
11072 | ||
11073 | * einfo.ads (Access_Disp_Table): Fix documentation. | |
11074 | (Dispatch_Table_Wrappers): Fix documentation. | |
11075 | ||
11076 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
11077 | ||
11078 | * prj-env.adb, prj-env.ads: Minor reformatting. | |
11079 | ||
8ed68165 AC |
11080 | 2011-08-01 Yannick Moy <moy@adacore.com> |
11081 | ||
11082 | * sem_util.ads, sem_util.adb, par.adb, par_util.adb | |
11083 | (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move | |
11084 | procedures out of these packages. | |
2c7f9cc0 | 11085 | * errout.ads, errout.adb |
8ed68165 AC |
11086 | (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move |
11087 | procedures in of this package | |
11088 | (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE | |
11089 | * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode | |
11090 | on misplaced later vs initial declarations, like in Ada 83 | |
11091 | * sem_attr.adb (Processing for Analyze_Attribute): issue error in | |
11092 | formal mode on attribute of private type whose full type declaration | |
11093 | is not visible | |
11094 | * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a | |
11095 | package declaration inside a package specification | |
11096 | (Analyze_Full_Type_Declaration): issue error in formal mode on | |
11097 | controlled type or discriminant type | |
11098 | * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on | |
11099 | user-defined operator means that it should come from the source | |
11100 | (New_Overloaded_Entity): issue error in formal mode on overloaded | |
11101 | entity. | |
11102 | * sem_ch6.ads, sem_ch13.ads: typos in comments. | |
11103 | ||
11104 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
11105 | ||
11106 | * atree.adb: Minor reformatting. | |
11107 | * checks.adb: Minor reformatting. | |
11108 | ||
4230bdb7 AC |
11109 | 2011-08-01 Vincent Celier <celier@adacore.com> |
11110 | ||
11111 | * s-parame-vms-ia64.ads: Fix typo in comment | |
11112 | Minor reformatting | |
11113 | * s-parame-vms-restrict.ads: Removed, unused. | |
11114 | ||
11115 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
11116 | ||
11117 | * exp_ch3.adb | |
11118 | (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound. | |
11119 | * sem_ch3.adb | |
11120 | (Constrain_Index): Remove side effects in the evaluation of the bounds. | |
11121 | * sem_ch3.ads, sem_ch3.adb | |
11122 | (Is_Constant_Bound): New extended version of the subprogram that was | |
11123 | previously located inside function Exp_Ch3.Is_Variable_Size_Array. | |
11124 | Moved here since it is shared by routines of sem_ch3 and exp_ch3. | |
11125 | * sem_aux.ads (Constant_Value): Fix typo in comment. | |
11126 | * checks.adb (Generate_Index_Checks): New implementation which, for | |
11127 | array objects with constant bounds, generates the runtime check | |
11128 | referencing the bounds of the array type. For other cases this routine | |
11129 | provides its previous behavior obtaining such values from the array | |
11130 | object. | |
11131 | * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its | |
11132 | parent type. | |
11133 | * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since | |
11134 | we cannot have semantic interpretations of the new node. | |
11135 | ||
2010d078 AC |
11136 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
11137 | ||
11138 | * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified | |
11139 | expressions. | |
11140 | ||
11141 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
11142 | ||
11143 | * sem_ch8.adb: Minor code editing. | |
11144 | * s-vxwext.adb: Remove trailing space. | |
11145 | * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for | |
11146 | consistency with other files. | |
11147 | ||
11148 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
11149 | ||
11150 | * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting. | |
11151 | ||
11152 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
11153 | ||
11154 | * par-ch10.adb: reject parameterized expressions as compilation unit. | |
11155 | * sem_ch4.adb: handle properly conditional expression with overloaded | |
11156 | then_clause and no else_clause. | |
11157 | ||
11158 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
11159 | ||
11160 | * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address | |
11161 | like done by System.Aux_DEC. | |
11162 | * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table. | |
11163 | ||
daec8eeb YM |
11164 | 2011-08-01 Yannick Moy <moy@adacore.com> |
11165 | ||
11166 | * par-endh.adb (Check_End): issue a syntax error in SPARK mode for | |
11167 | missing label at end of declaration (subprogram or package) | |
11168 | * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing | |
11169 | of positional and named parameter association | |
11170 | * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on | |
11171 | Error_Msg_SP which adds a prefix to the error message giving the name | |
11172 | of the formal language analyzed | |
11173 | * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for | |
11174 | access result type in subprogram, unconstrained array as result type,. | |
11175 | (Analyze_Subprogram_Declaration): issue an error in formal mode for null | |
11176 | procedure | |
11177 | * sem_ch8.adb: Code clean up. | |
11178 | ||
38171f43 AC |
11179 | 2011-08-01 Javier Miranda <miranda@adacore.com> |
11180 | ||
11181 | * sem_ch7.adb (Uninstall_Declarations): Remove useless code. | |
11182 | * einfo.ads (Access_Disp_Table): Fix documentation. | |
11183 | (Dispatch_Table_Wrappers): Fix documentation. | |
11184 | * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers, | |
11185 | Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions | |
11186 | to enforce the documentation of this attribute. | |
11187 | (Set_Is_Interface): Cleanup the assertion. | |
11188 | * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate | |
11189 | the Underlying_Type entity before reading attribute Access_Disp_Table. | |
11190 | * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion): | |
11191 | Locate the Underlying_Type before reading attribute Access_Disp_Table. | |
11192 | * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate | |
11193 | the Underlying_Type entity before reading attribute Access_Disp_Table. | |
11194 | * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration): | |
11195 | Locate the Underlying_Type entity before reading attribute | |
11196 | Access_Disp_Table. | |
11197 | ||
11198 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
11199 | ||
11200 | * s-poosiz.ads: Additional overriding indicators. | |
11201 | ||
11202 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
11203 | ||
11204 | * sem_ch5.adb (Analyze_Exit_Statement): add return after error in | |
11205 | formal mode. | |
11206 | (Analyze_Iteration_Scheme): issue error in formal mode when loop | |
11207 | parameter specification does not include a subtype mark. | |
11208 | * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in | |
11209 | formal mode on abstract subprogram. | |
11210 | (Analyze_Subprogram_Specification): issue error in formal mode on | |
11211 | user-defined operator. | |
11212 | (Process_Formals): issue error in formal mode on access parameter and | |
11213 | default expression. | |
11214 | * sem_ch9.adb (Analyze_Abort_Statement, | |
11215 | Analyze_Accept_Statement, Analyze_Asynchronous_Select, | |
11216 | Analyze_Conditional_Entry_Call, Analyze_Delay_Relative, | |
11217 | Analyze_Delay_Until, Analyze_Entry_Call_Alternative, | |
11218 | Analyze_Requeue, Analyze_Selective_Accept, | |
11219 | Analyze_Timed_Entry_Call): issue error in formal mode on such constructs | |
11220 | * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error): | |
11221 | issue error in formal mode on user-defined raise statement. | |
11222 | ||
1f250383 AC |
11223 | 2011-08-01 Thomas Quinot <quinot@adacore.com> |
11224 | ||
11225 | * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a | |
11226 | declaration being hidden when overriding an implicit inherited | |
11227 | subprogram. | |
11228 | * par-ch10.adb (P_Compilation_Unit): In syntax check only mode | |
11229 | (-gnats), do not complain about a source file that contains only a | |
11230 | pragma No_Body. | |
11231 | ||
11232 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
11233 | ||
11234 | * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop | |
11235 | variable if already set. | |
11236 | ||
607d0635 AC |
11237 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> |
11238 | ||
11239 | * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads, | |
11240 | g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads, | |
11241 | s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads, | |
11242 | g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb, | |
11243 | g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads, | |
11244 | g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads, | |
11245 | g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads, | |
11246 | g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb, | |
11247 | g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb, | |
11248 | g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads, | |
11249 | g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads, | |
11250 | s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb, | |
11251 | g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads, | |
11252 | s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads, | |
11253 | g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb, | |
11254 | g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb, | |
11255 | g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb, | |
11256 | g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb, | |
11257 | g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb, | |
11258 | g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb, | |
11259 | s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads, | |
11260 | s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads, | |
11261 | a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb, | |
11262 | s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads, | |
11263 | s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb, | |
11264 | g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads, | |
11265 | g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb, | |
11266 | g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb, | |
11267 | g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads, | |
11268 | g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads, | |
11269 | g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads, | |
11270 | s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads, | |
11271 | s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb, | |
11272 | g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb, | |
11273 | g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads, | |
11274 | s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb, | |
11275 | s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads, | |
11276 | g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads, | |
11277 | g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb, | |
11278 | g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, | |
11279 | s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads, | |
11280 | g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads, | |
11281 | g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads, | |
11282 | g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb, | |
11283 | s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb, | |
11284 | g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb, | |
11285 | g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb, | |
11286 | g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb, | |
11287 | s-osinte-mingw.ads: Update to GPLv3 run-time license. | |
11288 | Use GNAT instead of GNARL. | |
11289 | ||
11290 | 2011-08-01 Bob Duff <duff@adacore.com> | |
11291 | ||
11292 | * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads, | |
11293 | a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads, | |
11294 | a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor | |
11295 | reformatting. | |
11296 | ||
11297 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
11298 | ||
11299 | * debug.adb (d.D) reverve flag for the SPARK mode | |
11300 | (d.E) reverve flag for SPARK generation mode | |
11301 | (d.F) reverve flag for Why generation mode | |
2c7f9cc0 | 11302 | * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode, |
607d0635 AC |
11303 | ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New |
11304 | functions which return True when the corresponding modes are set | |
11305 | (Formal_Language): return "spark" or "alfa" when in formal verification | |
11306 | mode. | |
11307 | * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on | |
11308 | Error_Msg to prefix the error message with a tag giving the formal | |
11309 | language | |
11310 | (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error | |
11311 | message with a tag giving the formal language | |
11312 | * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on | |
11313 | block statement | |
11314 | (Analyze_Case_Statement): issue error in formal mode on case statement | |
11315 | with a single "others" case alternative | |
11316 | (Analyze_Exit_Statement): issue errors in formal mode on exit | |
11317 | statements which do not respect SPARK restrictions | |
11318 | (Analyze_Goto_Statement): issue error in formal mode on goto statement | |
11319 | (Check_Unreachable_Code): always issue an error (not a warning) in | |
11320 | formal mode on unreachable code (concerns both code after an infinite | |
11321 | loop and after an unconditional jump, both not allowed in SPARK) | |
11322 | * sem_ch6.adb (Analyze_Return_Statement): add call to | |
11323 | Set_Return_Present for a procedure containing a return statement | |
11324 | (already done for functions in Analyze_Function_Return) | |
11325 | (Analyze_Function_Return): issue error in formal mode on extended | |
11326 | return or if return is not last statement in function | |
11327 | (Check_Missing_Return): issue error in formal mode if function does | |
11328 | not end with return or if procedure contains a return | |
11329 | * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new | |
11330 | function to detect if there is an inner scope of its parameter S which | |
11331 | is a loop. | |
11332 | ||
11333 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
11334 | ||
11335 | * sem_ch6.ads: Minor reformatting. | |
11336 | ||
d8b3ccb9 AC |
11337 | 2011-08-01 Javier Miranda <miranda@adacore.com> |
11338 | ||
11339 | * sem_util.adb (Abstract_Interface_List): Complete condition when | |
11340 | processing private type declarations to avoid reading unavailable | |
11341 | attribute. | |
11342 | (Is_Synchronized_Tagged_Type): Complete condition when processing | |
11343 | private extension declaration nodes to avoid reading unavailable | |
11344 | attribute. | |
11345 | ||
11346 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
11347 | ||
11348 | * sem_ch3.adb: Minor reformatting. | |
11349 | ||
11350 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
11351 | ||
11352 | * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads, | |
11353 | i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads, | |
11354 | s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads, | |
11355 | s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages | |
11356 | for VMS, instead parametrize the common implementation with | |
11357 | System.Parameters declarations. | |
11358 | ||
0bb9276c AC |
11359 | 2011-08-01 Eric Botcazou <ebotcazou@adacore.com> |
11360 | ||
11361 | * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing. | |
11362 | ||
11363 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
11364 | ||
11365 | * seh_init.c: Fix SEH handler installation on win64. | |
11366 | ||
11367 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
11368 | ||
11369 | * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent | |
11370 | double analysis of an anonymous access to subprogram, because it can | |
11371 | lead to improper sharing of profiles and a back-end crash. | |
11372 | ||
6a2e4f0b AC |
11373 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
11374 | ||
11375 | * make.adb, sem_ch4.adb: Minor reformatting. | |
11376 | * gcc-interface/Make-lang.in: Update dependencies. | |
11377 | * sem_util.adb, exp_ch5.adb: Minor reformatting. | |
11378 | ||
11379 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
11380 | ||
11381 | * gnat_rm.texi: Fix definition of Long_Integer. | |
11382 | ||
11383 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
11384 | ||
11385 | * exp_aggr.adb: check limit size of static aggregate unconditionally, | |
11386 | to prevent storage exhaustion. | |
11387 | * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being | |
11388 | finalized is a function body, insert the cleanup code before the final | |
11389 | return statement, to prevent spurious warnings. | |
11390 | * s-pooglo.ads: add overriding indicator. | |
11391 | ||
4561baf7 ES |
11392 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
11393 | ||
11394 | * sem_ch4.adb (Operator_Check): improve error message when both a | |
11395 | with_clause and a use_clause are needed to make operator usage legal. | |
11396 | * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to | |
11397 | determine whether a compilation unit is visible within an other, | |
11398 | either through a with_clause in the current unit, or a with_clause in | |
11399 | its library unit or one one of its parents. | |
11400 | ||
383e179e AC |
11401 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
11402 | ||
11403 | * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator | |
11404 | over an arbitrary expression of an array or container type. | |
11405 | * lib-xref.adb: clarify comment. | |
11406 | ||
11407 | 2011-08-01 Bob Duff <duff@adacore.com> | |
11408 | ||
11409 | * einfo.ads: Minor reformatting. | |
11410 | * debug.adb: Minor comment improvement. | |
11411 | ||
11412 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
11413 | ||
11414 | * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not | |
11415 | consider hidden subprograms as valid candidates. | |
11416 | ||
11417 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
11418 | ||
11419 | * make.adb (Compile): Strip -mxxx switches in CodePeer mode. | |
11420 | ||
11421 | 2011-08-01 Vasiliy Fofanov <fofanov@adacore.com> | |
11422 | ||
11423 | * gnat_ugn.texi: Fix typo. | |
11424 | ||
61c161b2 AC |
11425 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
11426 | ||
11427 | * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb, | |
11428 | lib-xref.adb: Minor reformatting | |
11429 | ||
11430 | 2011-08-01 Gary Dismukes <dismukes@adacore.com> | |
11431 | ||
11432 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of | |
11433 | when to generate a call to Move_Final_List. | |
11434 | (Has_Controlled_Parts): Remove this function. | |
11435 | ||
84df40f7 AC |
11436 | 2011-08-01 Geert Bosch <bosch@adacore.com> |
11437 | ||
11438 | * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra | |
11439 | "," in choice list. | |
11440 | ||
11441 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
11442 | ||
11443 | * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for | |
11444 | explicit raise of a predefined exception as Comes_From_Source if the | |
11445 | original N_Raise_Statement comes from source. | |
11446 | ||
11447 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
11448 | ||
11449 | * sinfo.ads: Add comment. | |
11450 | * sem_ch6.adb: Minor reformatting. | |
11451 | ||
11452 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
11453 | ||
11454 | * freeze.adb (Freeze_Entity): Refine check for bad component size | |
11455 | clause to avoid rejecting confirming clause when atomic/aliased present. | |
11456 | ||
11457 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
11458 | ||
11459 | * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to | |
11460 | better determine whether an entity reference is a write. | |
11461 | * sem_util.adb (Is_LHS): refine predicate to handle assignment to a | |
11462 | subcomponent. | |
11463 | * lib-xref.adb (Output_References): Do no suppress a read reference at | |
11464 | the same location as an immediately preceeding modify-reference, to | |
11465 | handle properly in-out actuals. | |
11466 | ||
11467 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
11468 | ||
11469 | * env.c (__gnat_setenv) [VMS]: Refine previous change. | |
11470 | ||
11471 | 2011-08-01 Quentin Ochem <ochem@adacore.com> | |
11472 | ||
11473 | * i-cstrin.adb (New_String): Changed implementation, now uses only the | |
11474 | heap to compute the result. | |
11475 | ||
c7f0d2c0 AC |
11476 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
11477 | ||
11478 | * atree.ads: Minor reformatting. | |
11479 | ||
11480 | 2011-08-01 Emmanuel Briot <briot@adacore.com> | |
11481 | ||
11482 | * g-expect.adb (Get_Command_Output): Fix memory leak. | |
11483 | ||
11484 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
11485 | ||
11486 | * cstand.adb (P_Float_Type): New procedure to print the definition of | |
11487 | predefined fpt types. | |
11488 | (P_Mixed_Name): New procedure to print a name using mixed case | |
11489 | (Print_Standard): Use P_Float_Type for printing floating point types | |
11490 | * einfo.adb (Machine_Emax_Value): Add preliminary support for quad | |
11491 | precision IEEE float. | |
11492 | ||
11493 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
11494 | ||
11495 | * sem_ch3.adb: Minor reformatting. | |
11496 | ||
11497 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
11498 | ||
11499 | * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is | |
11500 | the completion of a generic function, insert the new body rather than | |
11501 | rewriting the original. | |
11502 | ||
11503 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
11504 | ||
11505 | * sinfo.ads, errout.ads: Typos in comments. | |
11506 | ||
1c54829e AC |
11507 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
11508 | ||
11509 | * par-endh.adb: Minor reformatting. | |
11510 | ||
11511 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
11512 | ||
11513 | * aspects.ads, aspects.adb: Add aspects for library unit pragmas | |
11514 | (Pre_Post_Aspects): New subtype. | |
11515 | * par-ch12.adb (P_Generic): New syntax for aspects in packages | |
11516 | * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter | |
11517 | * par-ch7.adb (P_Package): Remove Decl parameter | |
11518 | (P_Package): Handle new syntax for aspects (before IS) | |
11519 | * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle | |
11520 | new aspect syntax | |
11521 | (P_Task_Definition): Remove Decl parameter, handle new aspect syntax | |
11522 | * par.adb (P_Aspect_Specifications): Add Semicolon parameter | |
11523 | (P_Package): Remove Decl parameter | |
11524 | * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit | |
11525 | aspects | |
11526 | * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect | |
11527 | specs | |
11528 | * sem_util.ads, sem_util.adb (Static_Boolean): New function | |
11529 | * sinfo.ads: Document new syntax for aspects in packages etc. | |
11530 | * sprint.adb: Handle new syntax of aspects before IS in package | |
11531 | ||
11532 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
11533 | ||
11534 | * atree.ads: Minor reformatting. | |
11535 | * sem_prag.adb: Minor reformatting. | |
11536 | ||
11537 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
11538 | ||
11539 | * exp_util.adb (Insert_Actions): Fix error in handling Actions for | |
11540 | case expr alternative. | |
11541 | ||
11542 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
11543 | ||
11544 | * sem_ch12.adb: Fix typo. | |
11545 | ||
9eea4346 GB |
11546 | 2011-08-01 Geert Bosch <bosch@adacore.com> |
11547 | ||
11548 | * sem_prag.adb (Check_No_Link_Name): New procedure. | |
11549 | (Process_Import_Or_Interface): Use Check_No_Link_Name. | |
11550 | * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float) | |
11551 | instead of Standard_Long_Long_Float_Size global. Preparation for | |
11552 | eventual removal of per type constants. | |
11553 | * exp_util.ads (Get_Stream_Size): New function returning the stream | |
11554 | size value of subtype E. | |
11555 | * exp_util.adb (Get_Stream_Size): Implement new function. | |
11556 | * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size | |
11557 | function. | |
11558 | * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size | |
11559 | * einfo.adb: | |
11560 | (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats | |
11561 | ||
3d6c3bd7 GB |
11562 | 2011-08-01 Geert Bosch <bosch@adacore.com> |
11563 | ||
11564 | * cstand.adb: Fix comments. | |
11565 | * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit | |
11566 | count of arguments. | |
11567 | ||
e7d897b8 AC |
11568 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
11569 | ||
11570 | * exp_ch4.adb, sem_cat.adb: Minor reformatting. | |
11571 | ||
11572 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
11573 | ||
11574 | * atree.ads: Fix comment. | |
11575 | ||
c228a069 AC |
11576 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
11577 | ||
11578 | * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec. | |
11579 | * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name. | |
11580 | * par.adb: Add with for Namet.Sp. | |
11581 | * par-tchk.adb: Minor reformatting. | |
11582 | ||
11583 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
11584 | ||
11585 | * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb | |
11586 | (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name | |
11587 | of the init procedure of a SAL. | |
11588 | * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name): | |
11589 | New procedure. | |
11590 | ||
11591 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
11592 | ||
11593 | * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor | |
11594 | reformatting. | |
11595 | ||
11596 | 2011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
11597 | ||
11598 | * adaint.c (__gnat_file_time_name_attr): Get rid of warning. | |
11599 | ||
11600 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
11601 | ||
11602 | * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function | |
11603 | conformant with its spec (return True only for types that have | |
11604 | an overriding Initialize primitive operation that prevents them from | |
11605 | having preelaborable initialization). | |
11606 | * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable | |
11607 | initialization for controlled types in Ada 2005 or later mode. | |
11608 | ||
857ade1b RD |
11609 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
11610 | ||
11611 | * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition, | |
11612 | Postcondition. | |
11613 | (Same_Aspect): New function. | |
11614 | * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect | |
11615 | Type_Invariant, Precondition, Postcondition. | |
11616 | * snames.ads-tmpl: Add Name_Type_Invariant. | |
11617 | ||
bd949ee2 RD |
11618 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
11619 | ||
11620 | * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point | |
11621 | here. | |
11622 | (Freeze_All_Ent): Fix error in handling inherited aspects. | |
11623 | * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is | |
11624 | already analyzed, but don't skip entire processing of a declaration, | |
11625 | that's wrong in some cases of declarations being rewritten. | |
11626 | (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects. | |
11627 | Don't delay for integer, string literals | |
11628 | Treat predicates in usual manner for delay, remove special case code, | |
11629 | not needed. | |
11630 | (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point | |
11631 | (Build_Predicate_Function): Update saved expression in aspect | |
11632 | (Build_Invariant_Procedure): Update saved expression in aspect | |
11633 | * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization | |
11634 | of replacement of discriminant references if the reference is simple. | |
11635 | ||
f1c952af RD |
11636 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
11637 | ||
11638 | * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate. | |
11639 | * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for | |
11640 | Static_Predicate and Dynamic_Predicate. | |
11641 | (Build_Predicate_Function): Add processing for Static_Predicate | |
11642 | and Dynamic_Predicate. | |
11643 | * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag | |
11644 | (From_Static_Predicate): New flag | |
11645 | * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate | |
11646 | ||
11647 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
11648 | ||
11649 | * usage.adb: Documentation cleanup for Ada version modes in usage. | |
11650 | * expander.adb: Minor reformatting. | |
11651 | ||
47e11d08 AC |
11652 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
11653 | ||
11654 | * atree.ads: Minor comment fix. | |
11655 | * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads, | |
11656 | a-witeio.ads, sem_prag.adb: Minor reformatting. | |
11657 | ||
11658 | 2011-08-01 Doug Rupp <rupp@adacore.com> | |
11659 | ||
11660 | * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure | |
11661 | pointers. Use descrip.h header file for convenience. Add some | |
11662 | comments. | |
11663 | ||
11664 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
11665 | ||
11666 | * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point | |
11667 | (Freeze_All): Call Check_Aspect_At_End_Of_Declarations | |
11668 | * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point): | |
11669 | New procedure. | |
11670 | (Check_Aspect_At_End_Of_Declarations): New procedure | |
11671 | (Analye_Aspect_Specification): Minor changes for above procedures | |
11672 | * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect | |
11673 | specification node as well. | |
11674 | ||
11675 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
11676 | ||
11677 | * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special | |
11678 | Windows files. Use GetFilesAttributes() in this case to check for file | |
11679 | existence instead of returning with an error code. | |
11680 | ||
a3a16b21 VC |
11681 | 2011-08-01 Vincent Celier <celier@adacore.com> |
11682 | ||
11683 | * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when | |
11684 | High is above Source length. | |
11685 | ||
ff58cc69 RD |
11686 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
11687 | ||
11688 | * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment. | |
11689 | ||
6bb88533 AC |
11690 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
11691 | ||
11692 | * aspects.ads (Boolean_Aspects): New subtype. | |
11693 | * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects | |
11694 | for derived types in cases where the parent type and derived type have | |
11695 | aspects. | |
11696 | * freeze.adb (Freeze_Entity): Fix problems in handling derived type | |
11697 | with aspects when parent type also has aspects. | |
11698 | (Freeze_Entity): Deal with delay of boolean aspects (must evaluate | |
11699 | boolean expression at this point). | |
11700 | * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in | |
11701 | accordance with final decision on the Ada 2012 feature. | |
11702 | * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag. | |
11703 | ||
11704 | 2011-08-01 Matthew Heaney <heaney@adacore.com> | |
11705 | ||
11706 | * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector. | |
11707 | ||
060a3f28 AC |
11708 | 2011-08-01 Pascal Obry <obry@adacore.com> |
11709 | ||
11710 | * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: | |
11711 | Fix Replace_Slice when High is above current string size. | |
11712 | (Replace_Slice): Fix DL computation when High is above current | |
11713 | string length. | |
11714 | ||
11715 | 2011-08-01 Gary Dismukes <dismukes@adacore.com> | |
11716 | ||
11717 | * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired. | |
11718 | ||
e7f567a3 AC |
11719 | 2011-08-01 Matthew Heaney <heaney@adacore.com> |
11720 | ||
11721 | * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child | |
11722 | of node. | |
11723 | ||
11724 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
11725 | ||
11726 | * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor | |
11727 | reformatting. | |
11728 | ||
1a265e78 AC |
11729 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
11730 | ||
11731 | * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named | |
11732 | access to protected subprograms in generic bodies. | |
11733 | * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a | |
11734 | protected type, indicate that the convention of the subprogram is | |
11735 | Convention_Protected, because it may be used in subsequent declarations | |
11736 | within the protected declaration. | |
11737 | ||
11738 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
11739 | ||
11740 | * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init" | |
11741 | and "final" procedures when the name of the library is "ada", to avoid | |
11742 | duplicate symbols "adainit" and "adafinal" in executables. | |
11743 | ||
67e28ef8 ES |
11744 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
11745 | ||
11746 | * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a | |
11747 | quantified expression that appears within a postcondition and uses the | |
11748 | Ada2012 'Result attribute. | |
11749 | ||
6da2ca7d RO |
11750 | 2011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
11751 | ||
11752 | * init.c (__gnat_error_handler): Cast reason to int. | |
11753 | (__gnat_install_handler): Explain sa_sigaction use. | |
11754 | ||
7d5997c6 EB |
11755 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> |
11756 | ||
11757 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the | |
11758 | subprogram has copy-in copy-out parameters, try to promote the mode of | |
11759 | the return type if it is passed in registers. | |
11760 | ||
4b4cfdd5 EB |
11761 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> |
11762 | ||
11763 | * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the | |
11764 | left operand as addressable. | |
11765 | ||
f3d34576 EB |
11766 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> |
11767 | ||
11768 | * gcc-interface/gigi.h (build_function_stub): Remove. | |
11769 | (build_return_expr): Likewise. | |
11770 | (convert_vms_descriptor): Declare. | |
11771 | * gcc-interface/utils.c (convert_vms_descriptor): Make global. | |
11772 | (build_function_stub): Move to... | |
11773 | * gcc-interface/utils2.c (build_return_expr): Move to... | |
11774 | * gcc-interface/trans.c (build_function_stub): ...here. | |
11775 | (build_return_expr): ...here. | |
11776 | (Subprogram_Body_to_gnu): Add local variable for language_function. | |
11777 | Disconnect the parameter attributes cache, if any, once done with it. | |
11778 | Call end_subprog_body only after setting the end_locus. | |
11779 | Build the stub associated with the function, if any, at the very end. | |
11780 | (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local | |
11781 | variables and streamline control flow. | |
11782 | ||
0a6ecc08 AC |
11783 | 2011-07-23 Arnaud Charlet <charlet@adacore.com> |
11784 | ||
11785 | PR ada/49819 | |
11786 | * gcc-interface/Makefile.in (powerpc-linux): Remove reference to | |
11787 | g-trasym-dwarf.adb. | |
11788 | ||
5b6d595b RO |
11789 | 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
11790 | ||
11791 | PR bootstrap/49794 | |
11792 | * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler): | |
11793 | Assign to act.sa_sigaction. | |
11794 | * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast | |
11795 | current->return_address to char * before arithmetic. | |
11796 | ||
94017021 RO |
11797 | 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
11798 | ||
11799 | * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation. | |
11800 | Correct argument types. | |
11801 | Extract code from reason. | |
11802 | (__gnat_install_handler): Assign to act.sa_sigaction. | |
11803 | ||
52fd02bb EB |
11804 | 2011-07-21 Eric Botcazou <ebotcazou@adacore.com> |
11805 | ||
11806 | * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to... | |
11807 | (GNAT1_OBJS): ...here. | |
11808 | ||
f39a9ca2 EB |
11809 | 2011-07-15 Eric Botcazou <ebotcazou@adacore.com> |
11810 | ||
11811 | PR ada/48711 | |
11812 | * g-socthi-mingw.adb (Fill): Fix formatting. | |
11813 | ||
9e36aa23 EB |
11814 | * gcc-interface/gigi.h: Move around comment. |
11815 | ||
e3aca522 JDA |
11816 | 2011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
11817 | ||
11818 | PR ada/46350 | |
11819 | * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast. | |
11820 | ||
696b1960 FW |
11821 | 2011-07-14 Florian Weimer <fw@deneb.enyo.de> |
11822 | ||
11823 | PR ada/48711 | |
11824 | * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL. | |
11825 | ||
f542c405 EB |
11826 | 2011-07-13 Eric Botcazou <ebotcazou@adacore.com> |
11827 | ||
11828 | * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit | |
11829 | range comparison if Pmode is SImode. | |
11830 | ||
9e9bd455 LG |
11831 | 2011-07-12 Laurent GUERBY <laurent@guerby.net> |
11832 | Eric Botcazou <ebotcazou@adacore.com> | |
11833 | ||
11834 | * adadecode.c: Wrap up in extern "C" block. | |
11835 | * adadecode.h: Likewise. | |
11836 | * adaint.c: Likewise. Remove 'const' keyword. | |
11837 | * adaint.h: Likewise. | |
11838 | * argv.c: Likewise. | |
11839 | * atree.h: Likewise. | |
11840 | * cio.c: Likewise. | |
11841 | * cstreams.c: Likewise. | |
11842 | * env.c: Likewise. | |
11843 | * exit.c: Likewise. | |
11844 | * fe.h: Likewise. | |
11845 | * final.c: Likewise. | |
11846 | * init.c: Likewise. | |
11847 | * initialize.c: Likewise. | |
11848 | * link.c: Likewise. | |
11849 | * namet.h: Likewise. | |
11850 | * nlists.h: Likewise. | |
11851 | * raise.c: Likewise. | |
11852 | * raise.h: Likewise. | |
11853 | * repinfo.h: Likewise. | |
11854 | * seh_init.c: Likewise. | |
11855 | * targext.c: Likewise. | |
11856 | * tracebak.c: Likewise. | |
11857 | * uintp.h: Likewise. | |
11858 | * urealp.h: Likewise. | |
11859 | * xeinfo.adb: Wrap up generated C code in extern "C" block. | |
11860 | * xsinfo.adb: Likewise. | |
11861 | * xsnamest.adb: Likewise. | |
11862 | * gcc-interface/gadaint.h: Wrap up in extern "C" block. | |
11863 | * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block. | |
11864 | * gcc-interface/misc.c: Likewise. | |
11865 | * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER. | |
11866 | (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and | |
11867 | ada/targext.o here... | |
11868 | (GNAT_ADA_OBJS): ...and not here. | |
11869 | (GNAT1_ADA_OBJS): Add ada/b_gnat1.o. | |
11870 | (GNATBIND_OBJS): Reorder. | |
11871 | ||
7644b3c7 RH |
11872 | 2011-07-07 Richard Henderson <rth@redhat.com> |
11873 | ||
11874 | * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call | |
11875 | dwarf2out_frame_init. | |
11876 | ||
8384ac41 EB |
11877 | 2011-07-07 Eric Botcazou <ebotcazou@adacore.com> |
11878 | ||
11879 | * gcc-interface/misc.c (gnat_init): Tweak previous change. | |
11880 | ||
fbdd5d87 RO |
11881 | 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
11882 | ||
11883 | PR target/39150 | |
11884 | * gcc-interface/Makefile.in: Handle x86_64-solaris2. | |
11885 | ||
1a072294 RG |
11886 | 2011-07-06 Richard Guenther <rguenther@suse.de> |
11887 | ||
8384ac41 EB |
11888 | * gcc-interface/misc.c (gnat_init): Merge calls to |
11889 | build_common_tree_nodes and build_common_tree_nodes_2. | |
1a072294 RG |
11890 | Re-initialize boolean_false_node. |
11891 | ||
bc712852 EB |
11892 | 2011-07-02 Eric Botcazou <ebotcazou@adacore.com> |
11893 | Olivier Hainque <hainque@adacore.com> | |
11894 | Nicolas Setton <setton@adacore.com> | |
11895 | ||
11896 | * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on | |
11897 | the type according to the ARTIFICIAL_P parameter. | |
11898 | (create_type_decl): Likewise. | |
11899 | (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1. | |
11900 | ||
2eb22389 EB |
11901 | 2011-07-01 Eric Botcazou <ebotcazou@adacore.com> |
11902 | ||
11903 | * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command. | |
11904 | (gnatbind): Likewise. | |
11905 | ||
4bdaaf2f RO |
11906 | 2011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
11907 | ||
11908 | * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL). | |
11909 | ||
c020c92b EB |
11910 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> |
11911 | ||
11912 | * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE | |
11913 | local variable throughout. Remove useless call to Base_Type. | |
11914 | (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout. | |
11915 | Take it also into account for the volatileness of the field. Set the | |
11916 | TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings. | |
11917 | ||
96769d32 EB |
11918 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> |
11919 | ||
11920 | * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP | |
11921 | on a dereference built for a by-ref object if it has an address clause. | |
11922 | ||
7e4680c1 EB |
11923 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> |
11924 | ||
11925 | * einfo.ads (Address_Taken): Document use for the second argument of | |
11926 | Asm_Input and Asm_Output attributes. | |
11927 | * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second | |
11928 | argument is an entity name, then set Address_Taken on it. | |
11929 | <Attribute_Asm_Output>: Likewise. | |
11930 | * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the | |
11931 | Attr_Asm_Input and Attr_Asm_Output attributes explicitly. | |
11932 | (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in | |
11933 | memory and is a CONST_DECL, retrieve its corresponding VAR_DECL. | |
11934 | ||
11935 | 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com> | |
d5cc9181 JR |
11936 | |
11937 | PR middle-end/46500 | |
11938 | * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args. | |
11939 | ||
677f3fa8 JM |
11940 | 2011-06-14 Joseph Myers <joseph@codesourcery.com> |
11941 | ||
11942 | * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o. | |
11943 | (ada/utils.o): Update dependencies. | |
11944 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add | |
11945 | ../../../libcpp/libcpp.a. | |
11946 | * gcc-interface/utils.c: Include common/common-target.h. | |
11947 | (process_attributes): Use targetm_common.have_named_sections. | |
11948 | ||
009db074 RG |
11949 | 2011-06-07 Richard Guenther <rguenther@suse.de> |
11950 | ||
0bad0e23 EB |
11951 | * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call |
11952 | set_sizetype. | |
009db074 | 11953 | |
3bfc61cf EB |
11954 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
11955 | ||
0bad0e23 | 11956 | * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the |
3bfc61cf EB |
11957 | TREE_THIS_NOTRAP flag. |
11958 | ||
5c4a1c7b EB |
11959 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
11960 | ||
11961 | * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>: | |
11962 | Fix thinko. | |
11963 | ||
e9f57686 EB |
11964 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
11965 | ||
11966 | * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred | |
11967 | constants whose full view has discriminants specially. | |
11968 | ||
10e4d056 EB |
11969 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
11970 | ||
11971 | * gcc-interface/utils.c: Include diagnostic.h. | |
11972 | (gnat_write_global_declarations): Output debug information for all | |
11973 | global type declarations before finalizing the compilation unit. | |
11974 | * gcc-interface/Make-lang.in (ada/utils.o): Add dependency. | |
11975 | ||
0957c029 JJ |
11976 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> |
11977 | ||
11978 | * gcc-interface/utils.c (def_fn_type): Remove extra va_end. | |
11979 | ||
52d0a7ac KT |
11980 | 2011-05-25 Kai Tietz <ktietz@redhat.com> |
11981 | ||
11982 | * adaint.c (__gnat_to_canonical_file_list_next): Use array | |
11983 | initialization instead of const/none-const pointer assignment. | |
11984 | ||
1ed1641d JM |
11985 | 2011-05-24 Joseph Myers <joseph@codesourcery.com> |
11986 | ||
11987 | * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include | |
11988 | $(EXTRA_GNAT1_OBJS). | |
11989 | (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS). | |
11990 | (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove. | |
11991 | (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a. | |
11992 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use | |
11993 | libcommon-target.a instead of prefix.o. | |
11994 | ||
9fe72ebd JM |
11995 | 2011-05-21 Joseph Myers <joseph@codesourcery.com> |
11996 | ||
11997 | PR ada/49097 | |
0bad0e23 | 11998 | * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS). |
9fe72ebd | 11999 | |
2691e6d7 JM |
12000 | 2011-05-20 Joseph Myers <joseph@codesourcery.com> |
12001 | ||
0bad0e23 EB |
12002 | * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o. |
12003 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a | |
12004 | instead of version.o. | |
2691e6d7 | 12005 | |
bf6490b5 KT |
12006 | 2011-05-18 Kai Tietz <ktietz@redhat.com> |
12007 | ||
12008 | * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use | |
12009 | boolean_false_node instead of integer_zero_node. | |
12010 | (convert_with_check): Likewise. | |
12011 | * gcc-interface/decl.c (choices_to_gnu): Likewise. | |
12012 | ||
7bf9a5ac EB |
12013 | 2011-05-12 Eric Botcazou <ebotcazou@adacore.com> |
12014 | ||
12015 | * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the | |
12016 | type of the parameter is an unconstrained array, convert the actual to | |
12017 | the type of the formal in the In Out and Out cases as well. | |
12018 | ||
e5b00edf NF |
12019 | 2011-05-11 Nathan Froyd <froydnj@codesourcery.com> |
12020 | ||
12021 | * gcc-interface/utils.c (def_fn_type): Don't call build_function_type; | |
12022 | call build_function_type_array or build_varargs_function_type_array | |
12023 | instead. | |
12024 | (create_subprog_type): Don't call build_function_type; call | |
12025 | build_function_type_vec instead. | |
12026 | ||
51545682 NF |
12027 | 2011-05-11 Nathan Froyd <froydnj@codesourcery.com> |
12028 | ||
12029 | * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL. | |
12030 | (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL. | |
12031 | (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL. | |
12032 | ||
c99c0026 EB |
12033 | 2011-05-07 Eric Botcazou <ebotcazou@adacore.com> |
12034 | ||
f620bd21 EB |
12035 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces. |
12036 | ||
c99c0026 EB |
12037 | * gcc-interface/gigi.h (global_bindings_p): Adjust prototype. |
12038 | * gcc-interface/utils.c (global_bindings_p): Return bool and simplify. | |
12039 | ||
3d528853 NF |
12040 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
12041 | ||
c99c0026 | 12042 | * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label. |
3d528853 | 12043 | |
d7d058c5 NF |
12044 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
12045 | ||
12046 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators | |
12047 | instead of accessing TYPE_ARG_TYPES directly. | |
12048 | * gcc-interface/utils.c (handle_nonnull_attribute): Likewise. | |
12049 | ||
805e60a0 EB |
12050 | 2011-05-05 Eric Botcazou <ebotcazou@adacore.com> |
12051 | ||
12052 | PR ada/48844 | |
12053 | * gcc-interface/gigi.h (get_variant_part): Declare. | |
12054 | * gcc-interface/decl.c (get_variant_part): Make global. | |
12055 | * gcc-interface/utils2.c (find_common_type): Do not return T1 if the | |
12056 | types have the same constant size, are record types and T1 has a | |
12057 | variant part while T2 doesn't. | |
12058 | ||
907a08d9 EB |
12059 | 2011-05-05 Eric Botcazou <ebotcazou@adacore.com> |
12060 | ||
12061 | * gcc-interface/utils.c (begin_subprog_body): Do not call | |
12062 | get_pending_sizes. | |
12063 | (end_subprog_body): Likewise. | |
12064 | ||
d35936ab RG |
12065 | 2011-05-04 Richard Guenther <rguenther@suse.de> |
12066 | ||
12067 | * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to | |
12068 | int_const_binop. | |
12069 | (pos_to_constructor): Likewise. | |
12070 | ||
c1fd8753 | 12071 | 2011-05-03 Nathan Froyd <froydnj@codesourcery.com> |
2c7f9cc0 | 12072 | Eric Botcazou <ebotcazou@adacore.com> |
c1fd8753 NF |
12073 | |
12074 | * gcc-interface/trans.c (gigi): Call build_function_type_list instead | |
12075 | of build_function_type. Adjust calls to... | |
12076 | (build_raise_check): ...this. Do not take a void_tree parameter. | |
12077 | Call build_function_type_list instead of build_function_type. | |
12078 | Fix head comment and swap couple of conditional blocks. | |
12079 | ||
4fb87d2b EB |
12080 | 2011-04-30 Eric Botcazou <ebotcazou@adacore.com> |
12081 | ||
12082 | * gnatvsn.ads (Library_Version): Bump to 4.7. | |
12083 | (Current_Year): Bump to 2011. | |
12084 | ||
fa5e5a76 MM |
12085 | 2011-04-29 Michael Matz <matz@suse.de> |
12086 | ||
12087 | * gcc-interface/misc.c (gnat_handle_option): Set | |
12088 | warn_maybe_uninitialized. | |
12089 | ||
8d6a2f69 GP |
12090 | 2011-04-23 Gerald Pfeifer <gerald@pfeifer.com> |
12091 | ||
12092 | * gnat_ugn.texi (Complexity Metrics Control): Update link to | |
12093 | the Watson/McCabe paper. | |
12094 | ||
770937fd JM |
12095 | 2011-04-23 Jim Meyering <meyering@redhat.com> |
12096 | ||
12097 | * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/ | |
12098 | ||
eb601ae1 EB |
12099 | 2011-04-22 Eric Botcazou <ebotcazou@adacore.com> |
12100 | ||
12101 | * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE | |
12102 | onto the new type. | |
12103 | ||
7d7fcb08 EB |
12104 | 2011-04-22 Eric Botcazou <ebotcazou@adacore.com> |
12105 | ||
12106 | * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG | |
12107 | parameter. | |
12108 | * gcc-interface/utils.c (create_subprog_decl): Likewise. Set | |
12109 | DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly. | |
12110 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add | |
12111 | ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl. | |
12112 | <all>: Do not set flags on the reused DECL node coming from an alias. | |
12113 | Set DECL_IGNORED_P on the DECL node built for subprograms if they | |
12114 | don't need debug info here... | |
12115 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here. | |
12116 | (gigi): Adjust calls to create_subprog_decl. | |
12117 | (build_raise_check): Likewise. | |
12118 | (establish_gnat_vms_condition_handler): Likewise. | |
12119 | (Compilation_Unit_to_gnu): Likewise. | |
12120 | (gnat_to_gnu): Likewise. | |
12121 | ||
e1876cac EB |
12122 | 2011-04-21 Eric Botcazou <ebotcazou@adacore.com> |
12123 | ||
12124 | * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define. | |
12125 | (NO_REORDER_ADAFLAGS): New variable. | |
12126 | (EXTRA_GNATTOOLS): Always define. | |
12127 | (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h. | |
12128 | Clean up and adjust list of files compiled with special options. | |
12129 | * gcc-interface/Make-lang.in: Likewise. | |
12130 | (ada/decl.o): Cosmetical change. | |
12131 | (ada/misc.o): Remove dependency on $(PLUGIN_H). | |
12132 | ||
04695783 JM |
12133 | 2011-04-20 Jim Meyering <meyering@redhat.com> |
12134 | ||
12135 | * initialize.c (__gnat_initialize): Remove useless if-before-free. | |
12136 | ||
23399579 EB |
12137 | 2011-04-17 Eric Botcazou <ebotcazou@adacore.com> |
12138 | ||
12139 | * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with | |
12140 | $(CFLAGS) on the link line. | |
12141 | ||
51c5169c EB |
12142 | 2011-04-17 Eric Botcazou <ebotcazou@adacore.com> |
12143 | ||
12144 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the | |
12145 | padded type built for the return type if it is unconstrained. | |
12146 | ||
61e46a7d NF |
12147 | 2011-04-14 Nathan Froyd <froydnj@codesourcery.com> |
12148 | ||
12149 | * gcc-interface/utils.c (gnat_poplevel): Use block_chainon. | |
12150 | ||
81f653d6 NF |
12151 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> |
12152 | ||
b4867846 EB |
12153 | * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON |
12154 | before calling TREE_CHAIN. | |
81f653d6 NF |
12155 | * gcc-interface/misc.c (gnat_init_ts): New function. |
12156 | (LANG_HOOKS_INIT_TS): Define. | |
12157 | ||
a358e188 MJ |
12158 | 2011-04-12 Martin Jambor <mjambor@suse.cz> |
12159 | ||
b4867846 EB |
12160 | * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node |
12161 | instead of cgraph_node. | |
a358e188 | 12162 | |
29b1c5a4 EB |
12163 | 2011-04-08 Eric Botcazou <ebotcazou@adacore.com> |
12164 | ||
12165 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum | |
12166 | alignment on fields of the RETURN type built for the Copy-In Copy-Out | |
12167 | mechanism. | |
12168 | ||
88872b00 EB |
12169 | 2011-04-08 Eric Botcazou <ebotcazou@adacore.com> |
12170 | ||
12171 | * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers | |
12172 | of aggregate types that contain a placeholder. | |
12173 | ||
dcf0c47e NF |
12174 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> |
12175 | ||
12176 | * gcc-interface/utils.c (handle_sentinel_attribute): Don't use | |
b4867846 | 12177 | TYPE_ARG_TYPES. |
dcf0c47e NF |
12178 | (handle_type_generic_attribute): Likewise. |
12179 | ||
53e3000c EB |
12180 | 2011-04-04 Eric Botcazou <ebotcazou@adacore.com> |
12181 | ||
12182 | PR ada/47163 | |
12183 | * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change. | |
12184 | ||
ab380bb4 KT |
12185 | 2011-04-04 Kai Tietz <ktietz@redhat.com> |
12186 | ||
12187 | PR ada/47163 | |
0bad0e23 EB |
12188 | * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets |
12189 | to flag value. | |
ab380bb4 | 12190 | |
8ffac116 EB |
12191 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
12192 | ||
12193 | * gcc-interface/utils2.c (build_allocator): In the unconstrained array | |
12194 | type case, do not strip a padding type around the array type. | |
12195 | ||
de9528f0 EB |
12196 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
12197 | ||
12198 | * gcc-interface/utils.c (update_pointer_to): Finalize named pointer | |
12199 | types. | |
12200 | ||
d9d7a26c EB |
12201 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
12202 | ||
12203 | * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete. | |
12204 | * gcc-interface/misc.c (gnat_handle_option): Remove special handling | |
de9528f0 | 12205 | code for -feliminate-unused-debug-types. |
d9d7a26c EB |
12206 | (gnat_post_options): Likewise. |
12207 | ||
4cb12a90 EB |
12208 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
12209 | ||
12210 | * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial | |
12211 | declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a | |
12212 | distinct copy. | |
12213 | ||
acccc61c EB |
12214 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
12215 | ||
12216 | * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the | |
12217 | DECL_ARTIFICIAL flag on enumeration types. | |
12218 | ||
583eb0c9 EB |
12219 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
12220 | ||
12221 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make | |
12222 | fat pointer types artificial unconditionally. | |
12223 | <E_Array_Subtype>: Attach the base array type as a parallel type if it | |
12224 | isn't artificial. | |
12225 | ||
e3edbd56 EB |
12226 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
12227 | ||
12228 | * gcc-interface/gigi.h (get_dummy_type): Declare. | |
12229 | (build_dummy_unc_pointer_types): Likewise. | |
12230 | (finish_fat_pointer_type): Likewise. | |
12231 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy | |
12232 | fat pointer type has been built, complete it in place. | |
12233 | <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat | |
12234 | and thin pointers. Remove useless variable. | |
12235 | (finish_fat_pointer_type): Make global and move to... | |
12236 | * gcc-interface/utils.c (finish_fat_pointer_type): ...here. | |
12237 | (get_dummy_type): New function. | |
12238 | (build_dummy_unc_pointer_types): Likewise. | |
12239 | (gnat_pushdecl): Propage the name to the anonymous variants only. | |
12240 | (update_pointer_to): Only adjust the pointer types in the unconstrained | |
12241 | array case. | |
12242 | ||
65444786 EB |
12243 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
12244 | ||
12245 | * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag. | |
12246 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it | |
12247 | if this is a Taft amendment type and the full declaration is available. | |
12248 | * gcc-interface/trans.c (process_type): Likewise. | |
12249 | If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P. | |
12250 | (process_freeze_entity): Likewise. | |
12251 | * gcc-interface/utils.c (dummy_global): New static variable. | |
12252 | (gnat_write_global_declarations): If there are types declared as used | |
12253 | at the global level, insert them in the global hash table. | |
12254 | ||
1aeb40dd EB |
12255 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
12256 | ||
12257 | * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param. | |
12258 | * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial | |
12259 | declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct | |
12260 | copy. | |
12261 | (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL | |
12262 | flag of the type accordingly. | |
12263 | * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type. | |
12264 | ||
80ec8b4c EB |
12265 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
12266 | ||
12267 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer | |
12268 | finalizing types when updating the pointers to the designated type. | |
12269 | <all>: Finalize the deferred types even if we didn't defer processing | |
12270 | of incomplete types in this invocation. | |
12271 | ||
2a9d769a | 12272 | 2011-04-01 Olivier Hainque <hainque@adacore.com> |
2c7f9cc0 AS |
12273 | Nicolas Setton <setton@adacore.com> |
12274 | Eric Botcazou <ebotcazou@adacore.com> | |
2a9d769a OH |
12275 | |
12276 | * gcc-interface/misc.c (gnat_descriptive_type): New function. | |
12277 | (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type. | |
12278 | ||
2438d7a6 KT |
12279 | 2011-03-28 Kai Tietz <ktietz@redhat.com> |
12280 | ||
333d8aff | 12281 | * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native |
80ec8b4c EB |
12282 | Windows targets. |
12283 | (EH_MECHANISM): Use GCC exception mechanism for native Windows targets. | |
12284 | * system-mingw.ads (System): Change ZCX_By_Default default to True. | |
333d8aff | 12285 | |
80ec8b4c | 12286 | * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype. |
2438d7a6 | 12287 | |
8ad150f6 TG |
12288 | 2011-03-28 Tristan Gingold <gingold@adacore.com> |
12289 | ||
12290 | PR ada/44431 | |
80ec8b4c EB |
12291 | * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c. |
12292 | Use ada output of gnatbind. | |
8ad150f6 TG |
12293 | (ada/b_gnatb.adb): Ditto. |
12294 | (ada/b_gnat1.o, ada/b_gnatb.o): New rules. | |
12295 | (ada.mostlyclean, ada.stage1) | |
12296 | (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile) | |
12297 | (ada.stagefeedback): Adjust. | |
80ec8b4c | 12298 | * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c. |
8ad150f6 TG |
12299 | Use ada output of gnatbind. |
12300 | (b_gnatm.adb): Ditto. | |
12301 | (b_gnatl.o, b_gnatm.o): New rules. | |
12302 | ||
51c7954d EB |
12303 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> |
12304 | ||
12305 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL | |
12306 | for the padded type built to support a specified size or alignment. | |
12307 | ||
6ddf9843 EB |
12308 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> |
12309 | ||
12310 | * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment. | |
12311 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer | |
12312 | unconditionally to the end of the unit when the designated type is | |
12313 | limited_with'ed. | |
12314 | <all>: Rename local variable. Attempt to un-defer types only and do it | |
12315 | for limited_with'ed types as well. | |
12316 | (finalize_from_with_types): Adjust comment. Rename variable and tidy. | |
12317 | * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT | |
12318 | consistently and remove redundant call to finalize_from_with_types. | |
12319 | ||
5daed84a EB |
12320 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> |
12321 | ||
12322 | * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to | |
12323 | subprograms without a previous spec declared in the same unit. | |
12324 | * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined | |
12325 | subprograms at the end of the unit instead of at the beginning. | |
12326 | * gcc-interface/utils.c (create_subprog_decl): Check that the entity | |
12327 | isn't public for the special handling of non-inline functions nested | |
12328 | inside inline external functions. | |
12329 | ||
0edf1bb2 JL |
12330 | 2011-03-25 Jeff Law <law@redhat.com> |
12331 | ||
5daed84a | 12332 | * gcc-interface/utils.c (def_fn_type): Add missing va_end. |
0edf1bb2 | 12333 | |
e3c4580e EB |
12334 | 2011-03-24 Eric Botcazou <ebotcazou@adacore.com> |
12335 | ||
12336 | * einfo.ads (Size_Depends_On_Discriminant): Adjust description. | |
12337 | * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure | |
12338 | to compute Set_Size_Depends_On_Discriminant. | |
12339 | (Layout_Type): Call it on array types in back-end layout mode. | |
12340 | * sem_util.adb (Requires_Transient_Scope): Return true for array | |
12341 | types only if the size depends on the value of discriminants. | |
12342 | * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS | |
12343 | type if the RHS is a call to a function that returns an unconstrained | |
12344 | type with default discriminant. | |
12345 | ||
abbc8c7b EB |
12346 | 2011-03-24 Eric Botcazou <ebotcazou@adacore.com> |
12347 | ||
12348 | * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of | |
12349 | non-conversion to the nominal result type at the end. | |
12350 | ||
ddb5a105 EB |
12351 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> |
12352 | ||
12353 | * gcc-interface/trans.c (create_temporary): New function taken from... | |
12354 | (create_init_temporary): ...here. Call it. | |
12355 | (call_to_gnu): Create the temporary for the return value early, if any. | |
12356 | Create it for a function with copy-in/copy-out parameters if there is | |
12357 | no target; in other cases of copy-in/copy-out, use another temporary. | |
12358 | Push the new binding level lazily. Add and rename local variables. | |
12359 | ||
0d853156 EB |
12360 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> |
12361 | ||
12362 | * gcc-interface/decl.c (validate_size): Improve comments and tweak | |
12363 | error message. | |
12364 | (set_rm_size): Likewise. | |
12365 | ||
4184ef1b EB |
12366 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> |
12367 | ||
12368 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL | |
12369 | for the padded type built in order to support a specified alignment. | |
12370 | Fix incorrect formatting. | |
12371 | ||
bf7eefab EB |
12372 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> |
12373 | ||
12374 | PR bootstrap/48216 | |
12375 | * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL. | |
12376 | ||
ef0feeb2 EB |
12377 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> |
12378 | ||
12379 | * gcc-interface/decl.c (components_to_record): Add REORDER parameter, | |
12380 | rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter | |
12381 | to the end of the list. Adjust recursive call. Rename local variable. | |
12382 | If REORDER is true, reorder components of the record type. | |
12383 | (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to | |
12384 | components_to_record and adjust the parameter list. | |
12385 | ||
646f9414 EB |
12386 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> |
12387 | ||
12388 | * gcc-interface/decl.c (elaborate_expression_1): When optimization is | |
12389 | disabled, use the variable for bounds of loop iteration scheme. | |
12390 | ||
62d784f7 KT |
12391 | 2011-03-21 Kai Tietz <ktietz@redhat.com> |
12392 | ||
12393 | PR target/12171 | |
0bad0e23 | 12394 | * gcc-interface/utils.c (gnat_internal_attribute_table): Add column. |
62d784f7 | 12395 | |
f230d759 EB |
12396 | 2011-03-17 Eric Botcazou <ebotcazou@adacore.com> |
12397 | ||
12398 | * gcc-interface/decl.c (elaborate_expression_1): Try harder to find | |
12399 | out whether the expression is read-only. Short-circuit placeholder | |
12400 | case and rename a couple of local variables. | |
12401 | ||
bb1f7929 EB |
12402 | 2011-03-17 Eric Botcazou <ebotcazou@adacore.com> |
12403 | ||
12404 | * gcc-interface/gigi.h (smaller_form_type_p): Declare. | |
12405 | * gcc-interface/trans.c (smaller_form_type_p): Make global and move... | |
12406 | * gcc-interface/utils.c (smaller_form_type_p): ...to here. | |
12407 | (convert): Deal with conversions from a smaller form type specially. | |
12408 | ||
400a2d24 EB |
12409 | 2011-02-14 Eric Botcazou <ebotcazou@adacore.com> |
12410 | ||
12411 | * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and | |
12412 | its argument, except for the special -I- switch. | |
12413 | ||
c26bc3ad GP |
12414 | 2011-02-12 Gerald Pfeifer <gerald@pfeifer.com> |
12415 | ||
0bad0e23 EB |
12416 | * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to |
12417 | "Ada Issues". | |
c26bc3ad | 12418 | |
07b8e910 EB |
12419 | 2011-02-08 Eric Botcazou <ebotcazou@adacore.com> |
12420 | ||
12421 | * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs. | |
12422 | ||
31a5a547 EB |
12423 | 2011-02-03 Eric Botcazou <ebotcazou@adacore.com> |
12424 | ||
12425 | * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of | |
12426 | GNAT_FORMAL. | |
12427 | * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to... | |
12428 | * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE | |
12429 | instead of GNAT_FORMAL. Protect the expression against multiple uses. | |
12430 | Do not generate the check directly, instead instantiate the template | |
12431 | check present in the descriptor. | |
12432 | (make_descriptor_field): Move around. | |
12433 | (build_vms_descriptor32): Build a template check in the POINTER field. | |
12434 | (build_vms_descriptor): Remove useless suffixes. | |
12435 | * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call. | |
12436 | ||
dcf25f59 EB |
12437 | 2011-01-26 Eric Botcazou <ebotcazou@adacore.com> |
12438 | ||
12439 | PR bootstrap/47467 | |
12440 | * targext.c: Include target files if IN_RTS is defined. | |
12441 | ||
0418e131 RG |
12442 | 2011-01-26 Richard Guenther <rguenther@suse.de> |
12443 | ||
12444 | PR bootstrap/47467 | |
12445 | * targext.c: Include config.h. | |
12446 | * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H) | |
12447 | dependency. | |
12448 | ||
c6eecbd8 | 12449 | 2011-01-04 Pascal Obry <obry@adacore.com> |
2c7f9cc0 | 12450 | Eric Botcazou <ebotcazou@adacore.com> |
c6eecbd8 PO |
12451 | |
12452 | * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit. | |
12453 | ||
2d3c7e4f EB |
12454 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> |
12455 | ||
12456 | * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the | |
12457 | end-of-case on the end label and its associated gotos, if any. | |
12458 | ||
0394741f EB |
12459 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> |
12460 | ||
12461 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the | |
12462 | expressions of the parameter cache within the statement group of | |
12463 | the CICO mechanism. | |
12464 | ||
2a02d090 | 12465 | 2011-01-04 Olivier Hainque <hainque@adacore.com> |
2c7f9cc0 | 12466 | Eric Botcazou <ebotcazou@adacore.com> |
2a02d090 OH |
12467 | |
12468 | * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default. | |
12469 | (set_end_locus_from_node): New function. | |
12470 | (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we | |
12471 | make and the function end_locus. | |
12472 | (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus | |
12473 | for the elaboration subprogram. | |
12474 | (set_gnu_expr_location_from_node) <default case>: Use it to attempt to | |
12475 | set the end_locus of the expression as well. | |
12476 | ||
89f5e978 EB |
12477 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> |
12478 | ||
12479 | PR ada/47131 | |
12480 | * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make | |
12481 | variables that are referenced in exception handlers volatile. | |
12482 | ||
12483 | ||
ad41bd84 | 12484 | \f |
797103eb | 12485 | Copyright (C) 2011 Free Software Foundation, Inc. |
ad41bd84 JM |
12486 | |
12487 | Copying and distribution of this file, with or without modification, | |
12488 | are permitted in any medium without royalty provided the copyright | |
12489 | notice and this notice are preserved. |