]>
Commit | Line | Data |
---|---|---|
bd38b431 AC |
1 | 2011-09-02 Robert Dewar <dewar@adacore.com> |
2 | ||
3 | * sem_ch4.adb, sem_ch6.adb: Minor reformatting. | |
4 | * gcc-interface/Make-lang.in: Update dependencies. | |
5 | ||
6 | 2011-09-02 Marc Sango <sango@adacore.com> | |
7 | ||
8 | * sem_ch3.adb (Analyze_Object_Declaration): Change | |
9 | comment and add additional check to differentiate constant of | |
10 | type string from others unconstrained type. | |
11 | ||
99d520ad ES |
12 | 2011-09-02 Ed Schonberg <schonberg@adacore.com> |
13 | ||
14 | * sinfo.ads, sinfo.adb: New semantic attribute Premature_Use, | |
15 | present in incomplete type declarations to refine the error | |
16 | message the full declaration is in the same unit. | |
17 | * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of | |
18 | an incomplete type, set the Premature_Use for additional message. | |
19 | * sem_ch3.adb (Find_Type_Name): If partial view is incomplete | |
20 | and Premature_Use is set, place additional information at the | |
21 | point of premature use. | |
22 | ||
5b5588dd AC |
23 | 2011-09-02 Bob Duff <duff@adacore.com> |
24 | ||
25 | * sem_ch6.adb: (Check_Post_State): Suppress warning | |
26 | "postcondition refers only to pre-state" when the expression has not | |
27 | yet been analyzed, because it causes false alarms. This can happen when | |
28 | the postcondition contains a quantified expression, because those are | |
29 | analyzed later. This is a temporary/partial fix. | |
30 | (Process_Post_Conditions): Minor: change wording of warning. | |
31 | ||
32 | 2011-09-02 Marc Sango <sango@adacore.com> | |
33 | ||
34 | * sem_ch3.adb (Analyze_Object_Declaration): Detect the violation of | |
35 | illegal use of unconstrained string type in SPARK mode. | |
36 | * sem_res.adb (Analyze_Operator_Symbol): Set the | |
37 | right place where the string operand of concatenation should be | |
38 | violate in SPARK mode. | |
39 | ||
bd603506 RD |
40 | 2011-09-02 Robert Dewar <dewar@adacore.com> |
41 | ||
42 | * sem_prag.adb, sem_util.adb, sem_ch6.adb, prj-nmsc.adb, | |
43 | exp_ch3.adb: Minor reformatting. | |
44 | ||
24a120ac AC |
45 | 2011-09-02 Vincent Celier <celier@adacore.com> |
46 | ||
47 | * prj-conf.adb (Add_Default_GNAT_Naming_Scheme): Declare "gcc" | |
48 | as the compiler driver so Is_Compilable returns True for sources. | |
49 | * prj-nmsc.adb (Override_Kind): When Kind is Sep, set the source | |
50 | for the body. | |
51 | ||
52 | 2011-09-02 Ed Schonberg <schonberg@adacore.com> | |
53 | ||
54 | * sem_prag.adb (Analyze_PPC_In_Decl_Part): for a class-wide | |
55 | condition, a reference to a controlling formal must be interpreted | |
56 | as having the class-wide type (or an access to such) so that the | |
57 | inherited condition can be properly applied to any overriding | |
58 | operation (see ARM12 6.6.1 (7)). | |
59 | ||
60 | 2011-09-02 Tristan Gingold <gingold@adacore.com> | |
61 | ||
62 | * init.c (__gnat_is_vms_v7): Fix case and add prototype | |
63 | for LIB$GETSYI. | |
64 | ||
65 | 2011-09-02 Javier Miranda <miranda@adacore.com> | |
66 | ||
67 | * exp_ch3.adb (Expand_N_Object_Declaration): Do not copy the | |
68 | initializing expression of a class-wide interface object declaration | |
69 | if its type is limited. | |
70 | ||
71 | 2011-09-02 Johannes Kanig <kanig@adacore.com> | |
72 | ||
73 | * sem_util.adb (Unique_Name): To obtain a unique name for enumeration | |
74 | literals, take into account the type name; the type is *not* | |
75 | the scope for an enumeration literal. | |
76 | ||
77 | 2011-09-02 Ed Schonberg <schonberg@adacore.com> | |
78 | ||
79 | * sem_ch6.adb (Check_Overriding_Indicator): add special check | |
80 | to reject an overriding indicator on a user-defined Adjust | |
81 | subprogram for a limited controlled type. | |
82 | ||
83 | 2011-09-02 Ed Schonberg <schonberg@adacore.com> | |
84 | ||
85 | * sem_res.adb (Resolve_Actuals): add missing call to Resolve | |
86 | for an actual that is a function call returning an unconstrained | |
87 | limited controlled type. | |
88 | ||
89 | 2011-09-02 Tristan Gingold <gingold@adacore.com> | |
90 | ||
91 | * g-socthi-vms.adb (c_sendmsg, c_recvmsg): Use unpacked msg if on vms 7 | |
92 | ||
93 | 2011-09-02 Johannes Kanig <kanig@adacore.com> | |
94 | ||
95 | * alfa.ads (Name_Of_Heap_Variable): Change value of the HEAP variable | |
96 | from "HEAP" to __HEAP Change comment that refers to that variable | |
97 | * put_alfa.adb: Change comment that refers to that variable | |
98 | ||
c5f5123f AC |
99 | 2011-09-02 Robert Dewar <dewar@adacore.com> |
100 | ||
101 | * exp_ch4.adb, exp_ch6.adb, prj-nmsc.adb: Minor reformatting. | |
102 | ||
103 | 2011-09-02 Hristian Kirtchev <kirtchev@adacore.com> | |
104 | ||
105 | * exp_util.adb (Extract_Renamed_Object): Renamed to | |
106 | Find_Renamed_Object. This routine has been reimplemented and now uses | |
107 | tree traversal to locate a renamed object. | |
108 | (Is_Aliased): Replace call to Extract_Renamed_Object with | |
109 | Find_Renamed_Object. | |
110 | ||
111 | 2011-09-02 Tristan Gingold <gingold@adacore.com> | |
112 | ||
113 | * init.c: (__gnat_is_vms_v7): New function. | |
114 | ||
115 | 2011-09-02 Olivier Hainque <hainque@adacore.com> | |
116 | ||
117 | * tracebak.c (STOP_FRAME, ppc elf/vxworks case): Stop on frames | |
118 | that have a misaligned backchain, necessarily bogus. | |
119 | ||
2bfa5484 HK |
120 | 2011-09-02 Hristian Kirtchev <kirtchev@adacore.com> |
121 | ||
122 | * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Do not create | |
123 | TSS routine Finalize_Address when compiling in Alfa mode. | |
124 | (Expand_Freeze_Record_Type): Do not create TSS routine | |
125 | Finalize_Address when compiling in Alfa mode. | |
126 | * exp_ch4.adb (Expand_Allocator_Expression): Do not produce a | |
127 | call to Set_Finalize_Address in Alfa mode because Finalize_Address is | |
128 | not built. | |
129 | (Expand_N_Allocator): Do not produce a call to | |
130 | Set_Finalize_Address in Alfa mode because Finalize_Address is not built. | |
131 | * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not | |
132 | produce a call to primitive Set_Finalize_Address in Alfa mode because | |
133 | Finalize_Address is not built. | |
134 | * exp_ch7.adb (Build_Finalization_Master): Do not create | |
135 | finalization masters in Afa mode since they are not needed. | |
136 | (Build_Finalizer): Do not create scope and library-level | |
137 | finalizers in Alfa mode since they are not needed. | |
138 | * exp_util.adb (Build_Allocate_Deallocate_Proc): Do not expand | |
139 | "new" and "free" when applied to controlled objects in Alfa mode since | |
140 | this is not needed. | |
141 | ||
7a0ddd20 AC |
142 | 2011-09-02 Vincent Celier <celier@adacore.com> |
143 | ||
144 | * prj-nmsc.db: (Check_Stand_Alone_Library): For SALs, allow | |
145 | only library names with the syntax of Ada identifiers, to avoid errors | |
146 | when compiling the binder generated files. | |
147 | * projects.texi: Document restriction on SAL library names | |
148 | ||
149 | 2011-09-02 Thomas Quinot <quinot@adacore.com> | |
150 | ||
151 | * a-chtgbo.adb: Minor comment fix. | |
152 | ||
439b6dfa AC |
153 | 2011-09-02 Robert Dewar <dewar@adacore.com> |
154 | ||
155 | * lib-xref.adb: Minor reformatting | |
156 | ||
157 | 2011-09-02 Vincent Celier <celier@adacore.com> | |
158 | ||
159 | * bindusg.adb, clean.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb, | |
160 | gnatls.adb, gnatname.adb, gnatxref.adb, gprep.adb, makeusg.adb: Add | |
161 | --version and --help in usage. | |
162 | * switch.ads, switch.adb (Display_Usage_Version_And_Help): New procedure | |
163 | ||
f2404867 AC |
164 | 2011-09-02 Bob Duff <duff@adacore.com> |
165 | ||
166 | * lib-xref.adb: (Hash): Avoid use of 'Mod attribute, because old | |
167 | compilers don't understand it. | |
168 | ||
169 | 2011-09-02 Gary Dismukes <dismukes@adacore.com> | |
170 | ||
171 | * exp_attr.adb (Expand_N_Attribute_Reference): Pass the | |
172 | underlying subtype rather than its base type on the call to | |
173 | Build_Record_Or_Elementary_Input_Function, so that any | |
174 | constraints on a discriminated subtype will be available for | |
175 | doing the check required by AI05-0192. | |
176 | * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): | |
177 | If the prefix subtype of the 'Input attribute is a constrained | |
178 | discriminated subtype, then check each constrained discriminant value | |
179 | against the corresponding value read from the stream. | |
180 | ||
029b67ba YM |
181 | 2011-09-02 Yannick Moy <moy@adacore.com> |
182 | ||
183 | * usage.adb, warnsw.adb, sem_ch6.adb, opt.ads: Disable by default | |
184 | warnings on suspicious contracts, and enable them with -gnatwa. | |
185 | ||
dc36a7e3 RD |
186 | 2011-09-02 Robert Dewar <dewar@adacore.com> |
187 | ||
188 | * exp_util.adb, exp_ch9.adb, sem_attr.adb, sem_ch6.adb: Minor | |
189 | reformatting. | |
190 | ||
d5aa443c AC |
191 | 2011-09-02 Hristian Kirtchev <kirtchev@adacore.com> |
192 | ||
193 | * exp_ch9.adb (Install_Private_Data_Declarations): Add guards | |
194 | which ensure that restriction No_Dynamic_Attachment has not been | |
195 | violated. | |
196 | (Make_Initialize_Protection): Protected types with attach or | |
197 | interrupt handlers must not violate restriction No_Dynamic_Attachment. | |
198 | * exp_util.adb (Corresponding_Runtime_Package): Add a guard | |
199 | which ensures that restriction No_Dynamic_Attachment has not been | |
200 | violated. | |
201 | * sem_attr.adb: (Eval_Attribute): Transform | |
202 | VAX_Float_Type'First and 'Last into references to | |
203 | the temporaries which store the corresponding bounds. The | |
204 | transformation is needed since the back end cannot evaluate | |
205 | 'First and 'Last on VAX. | |
206 | (Is_VAX_Float): New routine. | |
207 | ||
208 | 2011-09-02 Ed Schonberg <schonberg@adacore.com> | |
209 | ||
210 | * sem_ch12.adb (Analyze_Subprogram_Instantiation): If the | |
211 | generic unit is not intrinsic and has an explicit convention, | |
212 | the instance inherits it. | |
213 | ||
67c86178 AC |
214 | 2011-09-02 Robert Dewar <dewar@adacore.com> |
215 | ||
216 | * prj-dect.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, prj-tree.adb, | |
217 | prj.adb, prj.ads, sem_ch5.adb: Minor reformatting. | |
218 | ||
219 | 2011-09-02 Thomas Quinot <quinot@adacore.com> | |
220 | ||
221 | * sem_attr.adb (Analyze_Attribute, case Unrestriced_Access): | |
222 | Guard against a prefix that is an N_Has_Entity but has no | |
223 | associated entity. | |
224 | ||
225 | 2011-09-02 Yannick Moy <moy@adacore.com> | |
226 | ||
227 | * lib-xref-alfa.adb (Is_Alfa_Reference): Ignore IN parameters in Alfa | |
228 | references. | |
229 | ||
230 | 2011-09-02 Yannick Moy <moy@adacore.com> | |
231 | ||
232 | * opt.ads (Warn_On_Suspicious_Contract): New warning flag. | |
233 | * sem_ch3.adb (Analyze_Declarations): Call checker for suspicious | |
234 | contracts. | |
235 | * sem_ch6.adb, sem_ch6.ads (Check_Subprogram_Contract): New | |
236 | procedure looking for suspicious postconditions. | |
237 | * usage.adb (Usage): New options -gnatw.t and -gnatw.T. | |
238 | * warnsw.adb (Set_Dot_Warning_Switch): Take into account new | |
239 | options -gnatw.t and -gnatw.T. | |
240 | ||
735ca1b9 PO |
241 | 2011-09-02 Pascal Obry <obry@adacore.com> |
242 | ||
243 | * prj.adb: Minor code refactoring. Move check for null project in | |
244 | Project_Changed. | |
245 | * projects.texi: Fix minor typos. | |
246 | ||
86828d40 AC |
247 | 2011-09-02 Ed Schonberg <schonberg@adacore.com> |
248 | ||
249 | * sem_ch5.adb (Analyze_Iterator_Specification): If the domain | |
250 | of iteration is an expression, its value must be captured in a | |
251 | renaming declaration, so that modification of the elements is | |
252 | propagated to the original container. | |
253 | ||
254 | 2011-09-02 Pascal Obry <obry@adacore.com> | |
255 | ||
256 | * prj-proc.adb, prj.adb, makeutl.adb, makeutl.ads, prj-dect.adb, | |
257 | prj-nmsc.adb, prj-util.adb, prj-conf.adb, prj-env.adb, | |
258 | prj-tree.adb: Minor reformatting and style fixes. | |
259 | ||
83de674b AC |
260 | 2011-09-02 Robert Dewar <dewar@adacore.com> |
261 | ||
262 | * s-rident.ads: Add new restriction No_Implicit_Aliasing | |
263 | * sem_attr.adb: (Analyze_Access_Attribute): Deal with | |
264 | No_Implicit_Aliasing | |
265 | (Analyze_Attribute, case Address): ditto | |
266 | (Analyze_Attribute, case Unrestricted_Access): ditto | |
267 | * sem_util.ads, sem_util.adb: (Is_Aliased_View): Handle | |
268 | No_Implicit_Aliasing restriction. | |
269 | * gnat_rm.texi: Add documentation for No_Implicit_Aliasing | |
270 | ||
271 | 2011-09-02 Ed Schonberg <schonberg@adacore.com> | |
272 | ||
273 | * exp_util.adb: (Possible_Bit_Aligned_Object): If the object | |
274 | is an unchecked conversion, apply test to its expression. | |
275 | ||
276 | 2011-09-02 Javier Miranda <miranda@adacore.com> | |
277 | ||
278 | * sem_ch3.adb (Check_Abstract_Overriding): When | |
279 | traversing the chain of aliased subprograms avoid reporting a | |
280 | redundant error on the current entity. | |
281 | ||
282 | 2011-09-02 Sergey Rybin <rybin@adacore.com> | |
283 | ||
284 | * gnat_ugn.texi: Minor clean up. | |
285 | ||
286 | 2011-09-02 Bob Duff <duff@adacore.com> | |
287 | ||
288 | * s-htable.adb (Set_If_Not_Present): Use renaming | |
289 | instead of ":=", because the type Key is limited in the generic (even | |
290 | if not in the instances). | |
291 | ||
2c17ca0a AC |
292 | 2011-09-02 Robert Dewar <dewar@adacore.com> |
293 | ||
294 | * exp_util.adb, sem_ch10.adb, sem_attr.adb, s-htable.adb, | |
295 | g-comlin.adb, g-comlin.ads, lib-xref-alfa.adb, lib-xref.adb: Minor | |
296 | reformatting. | |
297 | ||
298 | 2011-09-02 Hristian Kirtchev <kirtchev@adacore.com> | |
299 | ||
300 | * sem_ch3.adb: (Set_Anonymous_Type): Associate the itype of an | |
301 | inherited component with the enclosing derived type. Code reformatting. | |
302 | ||
303 | 2011-09-02 Gary Dismukes <dismukes@adacore.com> | |
304 | ||
305 | * checks.adb: (Determine_Range): Add test of OK1 to prevent the early | |
306 | return done when overflow checks are enabled, since comparisons against | |
307 | Lor and Hir should not be done when OK1 is False. | |
308 | ||
309 | 2011-09-02 Gary Dismukes <dismukes@adacore.com> | |
310 | ||
311 | * exp_ch6.adb (Add_Finalization_Master_Actual_To_Build_In_Place_Call): | |
312 | Add new formal Master_Exp. When present, add that expression to the | |
313 | call as an extra actual. | |
314 | (Make_Build_In_Place_Call_In_Object_Declaration): Add variable | |
315 | Fmaster_Actual and in the case of a BIP call initializing a return | |
316 | object of an enclosing BIP function set it to a | |
317 | new reference to the implicit finalization master | |
318 | formal of the enclosing function. Fmaster_Actual is | |
319 | then passed to the new formal Master_Exp on the call to | |
320 | Add_Finalization_Master_Actual_To_Build_ In_Place_Call. Move | |
321 | initializations of Enclosing_Func to its declaration. | |
322 | ||
323 | 2011-09-02 Thomas Quinot <quinot@adacore.com> | |
324 | ||
325 | * csets.ads: Minor reformatting | |
326 | ||
327 | 2011-09-02 Hristian Kirtchev <kirtchev@adacore.com> | |
328 | ||
329 | * exp_aggr.adb: (Get_Constraint_Association): Add code to retrieve | |
330 | the full view of a private type coming from an instantiation. | |
331 | * exp_ch4.adb: (Current_Anonymous_Master): Reimplement the search | |
332 | loop to iterate over the declarations rather than use the | |
333 | First_Entity / Next_Entity scheme. | |
334 | ||
ed32b82e ES |
335 | 2011-09-02 Ed Schonberg <schonberg@adacore.com> |
336 | ||
337 | * sem_attr.adb: (Analyze_Attribute, case 'Range): when expanding | |
338 | X'range (N) into X'First (N) .. X'Last (N), do not share the | |
339 | dimension indicator N, if present. Even though it is a static | |
340 | constant, its source location may be modified when printing | |
341 | expanded code under -gnatDL, and node sharing will lead to chaos | |
342 | in Sprint on large files, by generating a sloc value that does | |
343 | not correspond to any source file. | |
344 | ||
f7bb41af AC |
345 | 2011-09-02 Bob Duff <duff@adacore.com> |
346 | ||
347 | * einfo.adb: (Has_Xref_Entry): Do not call | |
348 | Implementation_Base_Type. Lib.Xref has been | |
349 | rewritten to avoid the need for it, and it was costly. | |
350 | * s-htable.ads,s-htable.adb: (Present,Set_If_Not_Present): New | |
351 | functions in support of efficient xref. | |
352 | * lib-xref-alfa.adb: Misc changes related to Key component of | |
353 | type Xref_Entry. | |
354 | * lib-xref.adb: (Add_Entry,etc): Speed improvement. | |
355 | (New_Entry): Call Implementation_Base_Type, because Has_Xref_Entry | |
356 | no longer does. This is the one place where it is needed. | |
357 | ||
358 | 2011-09-02 Johannes Kanig <kanig@adacore.com> | |
359 | ||
360 | * g-comlin.adb (Getopt): New optional argument Concatenate to have | |
361 | similar interface as the other Getopt function. | |
362 | ||
363 | 2011-09-02 Hristian Kirtchev <kirtchev@adacore.com> | |
364 | ||
365 | * exp_ch4.adb: (Expand_Allocator_Expression): Do not generate | |
366 | a call to Set_Finalize_Address if there is no allocator available. | |
367 | * exp_util.adb: (Build_Allocate_Deallocate_Proc): Account for | |
368 | a case of allocator expansion where the allocator is not expanded but | |
369 | needs a custom allocate routine. Code reformatting. | |
370 | (Is_Finalizable_Transient): Remove local variables Has_Rens and | |
371 | Ren_Obj. Code reformatting. | |
372 | (Is_Renamed): Renamed to Is_Aliased. Add code to detect aliasing | |
373 | through the use of 'reference. | |
374 | * sem_ch4.adb: (Analyze_Allocator): Detect allocators generated | |
375 | as part of build-in-place expansion. They are intentionally marked as | |
376 | coming from source, but their parents are not. | |
377 | ||
bd0bc43e AC |
378 | 2011-09-02 Ed Schonberg <schonberg@adacore.com> |
379 | ||
380 | * sem_ch10.adb (Analyze_With_Clause): If the library unit | |
381 | is the generated subprogram declaration for a child unit body | |
382 | that acts as spec, use the original body in the with_clause, | |
383 | to prevent binding errors. | |
384 | ||
385 | 2011-09-02 Vincent Celier <celier@adacore.com> | |
386 | ||
387 | * gnat_ugn.texi: Adapt documentation of -gnateInnn to new VMS | |
388 | qualifier /MULTI_UNIT_INDEX= | |
389 | ||
390 | 2011-09-02 Johannes Kanig <kanig@adacore.com> | |
391 | ||
392 | * g-comlin.adb (Getopt): Return when switch is dealt with automatically, | |
393 | instead of calling the callback function | |
394 | ||
9fdb5d21 RD |
395 | 2011-09-02 Robert Dewar <dewar@adacore.com> |
396 | ||
397 | * prj-proc.adb, prj.ads, sem_util.adb, s-taprop-linux.adb, | |
398 | prj-nmsc.adb, prj-util.ads, prj-env.adb: Minor reformatting. | |
399 | ||
c6d5d1ac AC |
400 | 2011-09-02 Vincent Celier <celier@adacore.com> |
401 | ||
402 | * prj-nmsc.adb: (Find_Sources): When the list of sources is | |
403 | explicitly declared in an extending project, do not warn if a source | |
404 | for an inherited naming exception is not found. | |
405 | ||
406 | 2011-09-02 Gary Dismukes <dismukes@adacore.com> | |
407 | ||
408 | * exp_ch6.adb: (Is_Build_In_Place_Function_Call): Return False if | |
409 | expansion is inactive. | |
410 | ||
411 | 2011-09-02 Ed Schonberg <schonberg@adacore.com> | |
412 | ||
413 | * sem_util.adb (Note_Possible_Modification): If the entity | |
414 | being modified is the renaming generated for an Ada2012 iterator | |
415 | element, the enclosing container or array is modified as well. | |
416 | ||
2ba1a7c7 AC |
417 | 2011-09-02 Jose Ruiz <ruiz@adacore.com> |
418 | ||
419 | * s-taprop-linux.adb (Initialize_Lock, Initialize_TCB, | |
420 | Initialize): Define and initialize the | |
421 | mutex attributes and condition variable attributes locally. | |
422 | ||
423 | 2011-09-02 Vincent Celier <celier@adacore.com> | |
424 | ||
425 | * prj-nmsc.adb (Check_File): Mark as Locally_Removed a naming | |
426 | exception replaced in an extending project. | |
427 | (Check_Object): No error when the other source is locally removed. | |
428 | ||
429 | 2011-09-02 Yannick Moy <moy@adacore.com> | |
430 | ||
431 | * exp_ch6.adb (Is_Build_In_Place_Function_Call): in Alfa mode, allow | |
432 | unresolved calls. | |
433 | ||
d51813db AC |
434 | 2011-08-31 Arnaud Charlet <charlet@adacore.com> |
435 | ||
436 | * gcc-interface/Makefile.in: Clean up handling of x86 and x86-64 | |
437 | run-time files. | |
438 | * gcc-interface/Make-lang.in: Update dependencies. | |
439 | ||
9f55bc62 AC |
440 | 2011-09-01 Robert Dewar <dewar@adacore.com> |
441 | ||
442 | * sem_ch3.adb, s-taprop-linux.adb, gnatls.adb: Minor reformatting. | |
443 | ||
444 | 2011-09-01 Jose Ruiz <ruiz@adacore.com> | |
445 | ||
446 | * adaint.h (__gnat_cpu_free): Fix the name of this profile. | |
447 | * adaint.c (__gnat_cpu_alloc, __gnat_cpu_alloc_size, __gnat_cpu_free, | |
448 | __gnat_cpu_zero, __gnat_cpu_set): Create version of these subprograms | |
449 | specific for systems where their glibc version does not define the | |
450 | routines to handle dynamically allocated CPU sets. | |
451 | ||
452 | 2011-09-01 Vincent Celier <celier@adacore.com> | |
453 | ||
454 | * prj-proc.adb, prj.ads, prj-nmsc.adb, prj-util.adb, prj-util.ads, | |
455 | prj-env.adb: Implement inheritance of naming exceptions in extending | |
456 | projects. | |
457 | ||
d7386a7a AC |
458 | 2011-09-01 Romain Berrendonner <berrendo@adacore.com> |
459 | ||
460 | * gnatls.adb: Display simple message instead of content of | |
461 | gnatlic.adl. | |
462 | ||
463 | 2011-09-01 Hristian Kirtchev <kirtchev@adacore.com> | |
464 | ||
465 | * sem_ch3.adb: (Build_Derived_Record_Type) Remove the kludgy update of | |
466 | access discriminant and anonymous access component scopes. | |
467 | (Inherit_Component): Reuse the itype of an access discriminant | |
468 | or anonymous access component by copying it in order to set the proper | |
469 | scope. This is done only when the parent and the derived type | |
470 | are in different scopes. | |
471 | (Set_Anonymous_Etype): New routine. | |
472 | ||
473 | 2011-09-01 Robert Dewar <dewar@adacore.com> | |
474 | ||
475 | * a-convec.adb: Minor reformatting throughout. | |
476 | ||
9d1e0e72 JR |
477 | 2011-09-01 Jose Ruiz <ruiz@adacore.com> |
478 | ||
479 | * adaint.c, adaint.h (__gnat_cpu_alloc, __gnat_cpu_alloc_size, | |
480 | __gnat_cpu_set_free): Create these wrappers around the CPU_ALLOC, | |
481 | CPU_ALLOC_SIZE and CPU_FREE linux macros. | |
482 | (__gnat_cpu_zero, __gnat_cpu_set): Use the CPU_ZERO_S and | |
483 | CPU_SET_S respectively because we are now using dynamically allocated | |
484 | CPU sets which are more portable across different glibc versions. | |
485 | * s-osinte-linux.ads (cpu_set_t_ptr, CPU_ALLOC, CPU_ALLOC_SIZE, | |
486 | CPU_FREE): Add this type and subprograms to be able to create cpu_set_t | |
487 | masks dynamically according to the number of processors in the target | |
488 | platform. | |
489 | (CPU_ZERO, CPU_SET): They are now mapped to the CPU_ZERO_S and CPU_SET_S | |
490 | respectively, so we need to pass the size of the masks as | |
491 | parameters. | |
492 | * s-taprop-linux.adb (Create_Task, Set_Task_Affinity): Use dynamically | |
493 | created cpu_set_t masks | |
494 | with the number of processors available in the target platform, | |
495 | instead of static bit arrays. It enhances portability because | |
496 | it uses the information from the target platform. | |
497 | * sem_ch8.adb: (Attribute_Renaming): When checking whether we | |
498 | are using a restricted run-time library, use the flag | |
499 | Configurable_Run_Time_Mode instead of Restricted_Profile. | |
500 | ||
a95be2d4 AC |
501 | 2011-09-01 Vincent Celier <celier@adacore.com> |
502 | ||
503 | * ug_words: Add /MULTI_UNIT_INDEX= -> -gnateI | |
504 | * vms_data.ads: Add new VMS qualifier equivalent for -gnateInnn | |
505 | ||
506 | 2011-09-01 Nicolas Roche <roche@adacore.com> | |
507 | ||
508 | * adaint.c (__gnat_tmp_name): Don't use tmpnam function from the system | |
509 | on VxWorks in kernel mode. | |
510 | ||
6b81741c AC |
511 | 2011-09-01 Jose Ruiz <ruiz@adacore.com> |
512 | ||
513 | * s-taprop-linux.adb (Create_Task, Set_Task_Affinity): Use the linux | |
514 | macros for handling CPU sets (CPU_ZERO, CPU_SET) instead of modifying | |
515 | directly the bit array. | |
516 | * s-osinte-linux.ads (CPU_ZERO, CPU_SET): Import these wrappers around | |
517 | the linux macros with the same name. | |
518 | * adaint.h, adaint.c (__gnat_cpu_zero, __gnat_cpu_set): Create these | |
519 | wrappers around the CPU_ZERO and CPU_SET linux macros. | |
520 | ||
521 | 2011-09-01 Hristian Kirtchev <kirtchev@adacore.com> | |
522 | ||
523 | * exp_ch7.adb (Find_Insertion_List): Removed. | |
524 | (Process_Transient_Objects): Insert the declarations of the hook | |
525 | access type and the hook object before the associated transient object. | |
526 | ||
527 | 2011-09-01 Jose Ruiz <ruiz@adacore.com> | |
528 | ||
529 | * sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading | |
530 | package System.Aux_Dec when using restricted run-time libraries which | |
531 | do not have this package. | |
532 | ||
533 | 2011-09-01 Tristan Gingold <gingold@adacore.com> | |
534 | ||
535 | * s-vaflop-vms-alpha.adb: Remove pragma optimize, useless. | |
536 | ||
537 | 2011-09-01 Bob Duff <duff@adacore.com> | |
538 | ||
539 | * sem_attr.adb (Analyze_Access_Attribute): Do not call | |
540 | Kill_Current_Values for P'Unrestricted_Access, where P is library level | |
541 | ||
542 | 2011-09-01 Thomas Quinot <quinot@adacore.com> | |
543 | ||
544 | * exp_ch5.adb: Minor reformatting | |
545 | * gnat_ugn.texi: Fix minor typos. | |
546 | * gcc-interface/Make-lang.in: Update dependencies. | |
547 | ||
8256c1bf AC |
548 | 2011-09-01 Robert Dewar <dewar@adacore.com> |
549 | ||
550 | * inline.adb, sem_aggr.adb: Minor reformatting. | |
551 | ||
552 | 2011-09-01 Ed Schonberg <schonberg@adacore.com> | |
553 | ||
554 | * a-convec.adb: Proper handling of cursors for Ada2012 iterators. | |
555 | ||
d1c5f424 AC |
556 | 2011-09-01 Robert Dewar <dewar@adacore.com> |
557 | ||
558 | * prj-proc.adb, exp_ch6.adb, prj-env.adb: Minor reformatting. | |
559 | ||
560 | 2011-09-01 Bob Duff <duff@adacore.com> | |
561 | ||
562 | * sem_aggr.adb (Resolve_Aggregate): Need to treat "in instance | |
563 | body" the same as "in inlined body", because visibility shouldn't | |
564 | apply there. | |
565 | ||
566 | 2011-09-01 Eric Botcazou <ebotcazou@adacore.com> | |
567 | ||
568 | * inline.adb (Add_Inlined_Body): Refine previous change. | |
569 | ||
1bb6e262 AC |
570 | 2011-09-01 Gary Dismukes <dismukes@adacore.com> |
571 | ||
572 | * exp_ch6.ads (Needs_BIP_Alloc_Form): New utility function. | |
573 | * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): | |
574 | Test for case where call | |
575 | initializes an object of a return statement before testing for | |
576 | a constrained call, to ensure that all such cases get handled | |
577 | by simply passing on the caller's parameters. Also, in that | |
578 | case call Needs_BIP_Alloc_Form to determine whether to pass on | |
579 | the BIP_Alloc_Form parameter of the enclosing function rather | |
580 | than testing Is_Constrained. Add similar tests for the return | |
581 | of a BIP call to later processing to ensure consistent handling. | |
582 | (Needs_BIP_Alloc_Form): New utility function. | |
583 | * sem_ch6.adb: (Create_Extra_Formals): Replace test for adding | |
584 | a BIP_Alloc_Form formal with call to new utility function | |
585 | Needs_BIP_Alloc_Form. | |
586 | ||
587 | 2011-09-01 Pascal Obry <obry@adacore.com> | |
588 | ||
589 | * prj-part.adb: Minor reformatting. | |
590 | ||
591 | 2011-09-01 Vincent Celier <celier@adacore.com> | |
592 | ||
593 | * prj-env.adb (Create_Mapping_File.Process): Encode the upper | |
594 | half character in the unit name. | |
595 | ||
db15225a AC |
596 | 2011-09-01 Hristian Kirtchev <kirtchev@adacore.com> |
597 | ||
598 | * exp_ch4.adb: Minor code and comment reformatting. | |
599 | ||
600 | 2011-09-01 Thomas Quinot <quinot@adacore.com> | |
601 | ||
602 | * exp_ch6.adb (Expand_Inlined_Call): Remove redundant tests | |
603 | for Is_Limited_Type and Is_Tagged_Type in condition checking | |
604 | for by-reference type. | |
605 | * inline.adb (Add_Inlined_Body): Only exclude init_procs. Other | |
606 | subprograms may have a completion because of a previous | |
607 | Inline_Always clause, but the enclosing package must be marked | |
608 | inlined for the subprogram body to become visible to the backend. | |
609 | ||
9d641fc0 TQ |
610 | 2011-09-01 Thomas Quinot <quinot@adacore.com> |
611 | ||
612 | * sem_aux.adb, exp_ch4.adb: Minor reformatting | |
613 | ||
dbe36d67 AC |
614 | 2011-09-01 Pascal Obry <obry@adacore.com> |
615 | ||
616 | * prj-proc.adb, prj.ads, sinput-p.adb: Minor reformatting. | |
617 | ||
618 | 2011-09-01 Ed Schonberg <schonberg@adacore.com> | |
619 | ||
620 | * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Generate references to | |
621 | the formals of a subprogram stub that acts as a spec. | |
622 | ||
623 | 2011-09-01 Ed Schonberg <schonberg@adacore.com> | |
624 | ||
625 | * exp_ch6.adb (Expand_Inlined_Call): If an actual is a by_reference | |
626 | type, declare a renaming for it, not an object declaration. | |
627 | ||
f5037886 AC |
628 | 2011-09-01 Yannick Moy <moy@adacore.com> |
629 | ||
630 | * ali-util.adb, ali-util.ads (Read_Withed_ALIs): Add parameter | |
631 | Ignore_Errors to ignore failures to read ALI files when True. | |
632 | ||
633 | 2011-09-01 Javier Miranda <miranda@adacore.com> | |
634 | ||
635 | * exp_ch3.adb (Expand_N_Object_Declaration): Handle non-default | |
636 | constructor calls associated with non-tagged record types. | |
637 | ||
638 | 2011-09-01 Robert Dewar <dewar@adacore.com> | |
639 | ||
640 | * g-socthi-vms.adb: Minor reformatting. | |
641 | ||
642 | 2011-09-01 Nicolas Roche <roche@adacore.com> | |
643 | ||
644 | * sysdep.c: Don't use macro functions for stdio functions on VxWorks | |
645 | in order to avoid impact of imcompatible changes. | |
646 | * cstreams.c: Likewise | |
647 | * cio.c: Likewise | |
648 | * aux-io.c: Likewise | |
649 | ||
650 | 2011-09-01 Yannick Moy <moy@adacore.com> | |
651 | ||
652 | * lib-writ.adb (Write_With_Lines): Always output complete information | |
653 | on "with" line in Alfa mode, as this is required by formal verification | |
654 | back-end. | |
655 | ||
549e4558 AC |
656 | 2011-09-01 Tristan Gingold <gingold@adacore.com> |
657 | ||
658 | * g-socthi-vms.adb: Add comments. | |
659 | ||
660 | 2011-09-01 Pascal Obry <obry@adacore.com> | |
661 | ||
662 | * prj.ads: Minor reformatting. | |
663 | ||
70c0422d AC |
664 | 2011-09-01 Vincent Celier <celier@adacore.com> |
665 | ||
666 | * prj-env.adb (Create_Config_Pragmas_File.Check): Put all naming | |
667 | exceptions in the config pragmas file. | |
668 | ||
669 | 2011-09-01 Tristan Gingold <gingold@adacore.com> | |
670 | ||
671 | * gnat_ugn.texi: Document GNAT_STACK_SIZE on IVMS. | |
672 | ||
8c5b03a0 AC |
673 | 2011-09-01 Hristian Kirtchev <kirtchev@adacore.com> |
674 | ||
675 | * exp_ch7.adb (Find_Insertion_List): New routine. | |
676 | (Process_Transient_Objects): Add code to handle the abnormal | |
677 | finalization of a controlled transient associated with a subprogram | |
678 | call. Since transients are cleaned up right after the associated | |
679 | context, an exception raised during a subprogram call may bypass the | |
680 | finalization code. | |
681 | ||
682 | 2011-09-01 Robert Dewar <dewar@adacore.com> | |
683 | ||
684 | * exp_ch6.adb (Expand_Call): Check actual for aliased parameter is | |
685 | aliased. | |
686 | ||
3040dbd4 RD |
687 | 2011-09-01 Robert Dewar <dewar@adacore.com> |
688 | ||
689 | * exp_ch4.adb, a-exexda.adb: Minor reformatting. | |
690 | ||
fecbd779 AC |
691 | 2011-09-01 Robert Dewar <dewar@adacore.com> |
692 | ||
693 | * s-taskin.ads, s-tassta.adb, sem_ch13.adb: Minor reformatting. | |
694 | ||
695 | 2011-09-01 Thomas Quinot <quinot@adacore.com> | |
696 | ||
697 | * Makefile.rtl: Move s-oscons.o from GNATRTL_TASKING_OBJS to | |
698 | GNATRTL_NONTASKING_OBJS. | |
699 | ||
700 | 2011-09-01 Robert Dewar <dewar@adacore.com> | |
701 | ||
702 | * einfo.ads (Is_Aliased): Fix existing documentation and add note on | |
703 | possibility of this flag being set for formals in Ada 2012 mode. | |
704 | * par-ch6.adb (P_Formal_Part): Handle aliased for parameters for Ada | |
705 | 2012. | |
706 | * sem_ch6.adb (Process_Formals): Handle aliased parameters in Ada 2012 | |
707 | mode. | |
708 | * sinfo.adb (Aliased_Present): Allowed in N_Parameter_Specification for | |
709 | Ada 2012. | |
710 | * sinfo.ads (Aliased_Present): Allowed in N_Parameter_Specification for | |
711 | Ada 2012. | |
712 | ||
713 | 2011-09-01 Hristian Kirtchev <kirtchev@adacore.com> | |
714 | ||
715 | * exp_ch4.adb (Find_Insertion_Node): New routine. Determines the proper | |
716 | insertion node in a tree of nested Expression_With_Actions nodes. | |
717 | (Process_Transient_Object): In the case where a complex if statement | |
718 | has been converted into nested Expression_With_Actions nodes, the | |
719 | "hook" object and the associated access type must be inserted before | |
720 | the top most Expression_With_Actions. | |
721 | ||
516f608f AC |
722 | 2011-09-01 Robert Dewar <dewar@adacore.com> |
723 | ||
724 | * a-cbprqu.adb, a-cbprqu.ads, a-cuprqu.adb, a-cuprqu.ads, | |
725 | a-cbsyqu.adb, a-cbsyqu.ads: Minor reformatting. | |
726 | ||
727 | 2011-09-01 Ed Schonberg <schonberg@adacore.com> | |
728 | ||
729 | * sem_attr.adb: Conditionalize aliasing predicates to Ada2012. | |
730 | ||
731 | 2011-09-01 Jose Ruiz <ruiz@adacore.com> | |
732 | ||
733 | * aspects.ads (Aspect_Id, Aspect_Argument, Aspect_Names): Add the CPU | |
734 | aspect. | |
735 | * aspects.adb (Canonical_Aspect): Add entry for the CPU aspect. | |
736 | * sem_ch13.adb (Analyze_Aspect_Specifications): Analyze the CPU aspect | |
737 | in a similar way as we do for the Priority or Dispatching_Domain aspect. | |
738 | * s-mudido-affinity.adb (Dispatching_Domain_Tasks, | |
739 | Dispatching_Domains_Frozen): Move this local data to package | |
740 | System.Tasking because with the CPU aspect we need to have access | |
741 | to this data when creating the task in System.Tasking.Stages.Create_Task | |
742 | * s-taskin.ads (Dispatching_Domain_Tasks, Dispatching_Domains_Frozen): | |
743 | Move these variables from the body of | |
744 | System.Multiprocessors.Dispatching_Domains because with the CPU aspect | |
745 | we need to have access to this data when creating the task in | |
746 | System.Tasking.Stages.Create_Task. | |
747 | * s-taskin.adb (Initialize): Signal the allocation of the environment | |
748 | task to a CPU, if any, so that we know whether the CPU can be | |
749 | transferred to a different dispatching domain. | |
750 | * s-tassta.adb (Create_Task): Check whether the CPU to which this task | |
751 | is being allocated belongs to the dispatching domain where the task | |
752 | lives. Signal the allocation of the task to a CPU, if any, so that we | |
753 | know whether the CPU can be transferred to a different dispatching | |
754 | domain. | |
755 | ||
2d42e881 ES |
756 | 2011-09-01 Ed Schonberg <schonberg@adacore.com> |
757 | ||
758 | * exp_attr.adb, sem_attr.adb, snames.ads-tmpl: Implementation of | |
759 | attributes Same_Storage and Overlaps_Storage. | |
760 | ||
579fda56 AC |
761 | 2011-09-01 Hristian Kirtchev <kirtchev@adacore.com> |
762 | ||
763 | * exp_strm.adb: Remove with and use clause for Opt. | |
764 | (Build_Array_Input_Function): Remove the version-dependent generation | |
765 | of the return statement. The Ada 2005 tree is now the default. | |
766 | ||
767 | 2011-09-01 Yannick Moy <moy@adacore.com> | |
768 | ||
769 | * put_alfa.adb: Unconditionnally write files in Alfa section, so that | |
770 | it is never empty when compiling in Alfa mode. | |
771 | ||
772 | 2011-09-01 Robert Dewar <dewar@adacore.com> | |
773 | ||
774 | * sem_aggr.adb, sem_ch3.adb, a-direct.adb, s-taprop-vxworks.adb, | |
775 | comperr.adb, exp_ch9.adb, exp_pakd.adb, sem_ch12.adb, freeze.adb, | |
776 | s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb, | |
777 | gnat1drv.adb, a-rbtgbo.adb, exp_dist.adb: Minor reformatting | |
778 | ||
779 | 2011-09-01 Matthew Heaney <heaney@adacore.com> | |
780 | ||
781 | * Makefile.rtl, impunit.adb: Add a-csquin.ads, a-cusyqu.ad[sb], | |
782 | a-cuprqu.ad[sb], a-cbsyqu.ad[sb], a-cbprqu.ad[sb] | |
783 | * a-csquin.ads: New Ada 2012 unit that specifies the queue interface | |
784 | * a-cusyqu.ads, a-cusyqu.adb: New Ada 2012 unit that specifies the | |
785 | unbounded queue container. | |
786 | * a-cbsyqu.ads, a-cbsyqu.adb: New Ada 2012 unit that specifies the | |
787 | bounded queue container. | |
788 | * a-cuprqu.ads, a-cuprqu.adb: New Ada 2012 unit that specifies the | |
789 | unbounded priority queue container. | |
790 | * a-cbprqu.ads, a-cbprqu.adb: New Ada 2012 unit that specifies the | |
791 | bounded priority queue container. | |
792 | ||
24c34107 AC |
793 | 2011-08-31 Pascal Obry <obry@adacore.com> |
794 | ||
795 | * a-direct.adb: Do not try to create an UNC path on Windows. | |
796 | (Create_Path): Skip leading computer name in UNC path if any. | |
797 | ||
798 | 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com> | |
799 | ||
800 | * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): Remove the | |
801 | version-dependent generation of the return statement. The Ada 2005 tree | |
802 | is now the default. | |
803 | ||
804 | 2011-08-31 Thomas Quinot <quinot@adacore.com> | |
805 | ||
806 | * rtsfind.ads, exp_dist.adb (Find_Numeric_Representation): Predefined | |
807 | types Stream_Element_Offset and Storage_Offset have a different native | |
808 | type depending on whether the platform is 32 or 64 bits. When | |
809 | exchanging them, always convert to 64 bits. | |
810 | ||
811 | 2011-08-31 Yannick Moy <moy@adacore.com> | |
812 | ||
813 | * debug.adb: Reserve debug option -gnatd.E for passing gnatprove option | |
814 | --force-alfa to gnat2why. | |
815 | ||
816 | 2011-08-31 Ed Schonberg <schonberg@adacore.com> | |
817 | ||
818 | * sem_ch12.adb (Save_References): If the node has aspects, save | |
819 | references within the corresponding expressions in a separate step, | |
820 | because the aspects are not directly in the tree for the declaration | |
821 | to which they belong. | |
822 | ||
823 | 2011-08-31 Arnaud Charlet <charlet@adacore.com> | |
824 | ||
825 | * freeze.adb (Freeze_Record_Type): Omit test on variable size component | |
826 | in CodePeer mode, since representation clauses are partially ignored. | |
827 | * gcc-interface/Make-lang.in: Update dependencies. | |
828 | ||
702d2020 AC |
829 | 2011-08-31 Jose Ruiz <ruiz@adacore.com> |
830 | ||
831 | * s-taprop-vxworks.adb, s-taprop-mingw.adb, s-taprop-linux.adb, | |
832 | s-taprop-solaris.adb (Create_Task): Not_A_Specific_CPU can be assigned | |
833 | to any dispatching domain. | |
834 | ||
835 | 2011-08-31 Thomas Quinot <quinot@adacore.com> | |
836 | ||
837 | * exp_ch4.adb: Minor reformatting. | |
838 | ||
839 | 2011-08-31 Bob Duff <duff@adacore.com> | |
840 | ||
841 | * sem_ch6.adb (Get_Generic_Parent_Type): Don't query Subtype_Indication | |
842 | on nodes for which it is not defined. | |
843 | (Is_Non_Overriding_Operation): Exit the loop when we find a generic | |
844 | parent type. | |
845 | ||
846 | 2011-08-31 Bob Duff <duff@adacore.com> | |
847 | ||
848 | * sem_ch3.adb (Process_Full_View): Disable legality check if | |
849 | In_Instance, to avoid spurious errors. | |
850 | * sem_ch12.adb (Validate_Derived_Type_Instance): Disable legality check | |
851 | if In_Instance, to avoid spurious errors. | |
852 | ||
853 | 2011-08-31 Pascal Obry <obry@adacore.com> | |
854 | ||
855 | * a-direct.adb: Use Dir_Seps everywhere to properly handle all | |
856 | directory speparators. | |
857 | (Compose): Use Dir_Seps to handle both forms. | |
858 | (Create_Path): Use Dir_Seps instead of explicit check, no semantic | |
859 | changes. | |
860 | (Extension): Use Dir_Seps to handle both forms. | |
861 | ||
862 | 2011-08-31 Pascal Obry <obry@adacore.com> | |
863 | ||
864 | * prj-conf.adb: Minor reformatting. | |
865 | ||
67645bde AC |
866 | 2011-08-31 Jose Ruiz <ruiz@adacore.com> |
867 | ||
868 | * aspects.ads (Aspect_Id, Aspect_Argument, Aspect_Names): Add the | |
869 | dispatching domain aspect. | |
870 | * aspects.adb (Canonical_Aspect): Add entry for the dispatching domain | |
871 | aspect. | |
872 | * sem_ch13.adb (Analyze_Aspect_Specifications): Analyze the | |
873 | Dispatching_Domain aspect in a similar way as we do for the Priority | |
874 | aspect. | |
875 | * exp_ch9.adb (Expand_N_Task_Type_Declaration): Add the | |
876 | Dispatching_Domain component if a Dispatching_Domain pragma or aspect | |
877 | is present. | |
878 | (Make_Task_Create_Call): Add the Dispatching_Domain when creating a task | |
879 | * par-prag.adb (Prag): Add Pragma_Dispatching_Domain as a known pragma. | |
880 | * sem_prag.adb (Analyze_Pragma): Check the correctness of a pragma | |
881 | Dispatching_Domain and add it to the task definition. | |
882 | (Sig_Flags): Add Pragma_Dispatching_Domain. | |
883 | * rtsfind.ads, rtsfind.adb (RTU_Id, RE_Id, Get_Unit_Name): Add the | |
884 | support to find the types Dispatching_Domain and | |
885 | Dispatching_Domain_Access. | |
886 | * sinfo.ads, sinfo.adb (Has_Pragma_Dispatching_Domain, | |
887 | Set_Has_Pragma_Dispatching_Domain): Add these subprograms to set and | |
888 | query the availability of a pragma Dispatching_Domain. | |
889 | * snames.ads-tmpl (Name_uDispatching_Domain): Add this name required by | |
890 | the expander to pass the Dispatching_Domain when creating a task. | |
891 | (Name_Dispatching_Domain): Add this new name for a pragma. | |
892 | (Pragma_Id): Add the new Pragma_Dispatching_Domain. | |
893 | * s-tassta.ads, s-tassta.adb (Create_Task): Set the domain to which the | |
894 | task has been allocated at creation time. | |
895 | * s-tarest.adb (Create_Restricted_Task): The dispatching domain using | |
896 | Ravenscar is always null. | |
897 | * s-taskin.ads, s-taskin.adb (Initialize_ATCB): Set the domain to which | |
898 | the task has been allocated at creation time. | |
899 | * s-tporft.adb (Register_Foreign_Thread): A foreign task will not have | |
900 | a specific dispatching domain. | |
901 | * s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-vxworks.adb, | |
902 | s-taprop-mingw.adb (Create_Task): Check whether both Dispatching_Domain | |
903 | and CPU are specified for the task, and the CPU value is not contained | |
904 | within the range of processors for the domain. | |
905 | ||
906 | 2011-08-31 Vincent Celier <celier@adacore.com> | |
907 | ||
908 | * make.adb (Original_Gcc) : New constant String_Access. | |
909 | (Gnatmake): For VM targets, do not use VM version of the compiler if | |
910 | --GCC= has been specified. | |
911 | ||
912 | 2011-08-31 Thomas Quinot <quinot@adacore.com> | |
913 | ||
914 | * sem_ch5.adb: Minor reformatting. | |
915 | ||
916 | 2011-08-31 Ed Schonberg <schonberg@adacore.com> | |
917 | ||
918 | * exp_pakd.adb (Convert_To_PAT_Type): If prefix is a function call, do | |
919 | not reanalyze it. | |
920 | ||
921 | 2011-08-31 Bob Duff <duff@adacore.com> | |
922 | ||
923 | * exp_ch4.adb (Expand_N_Selected_Component): Use the full type, in case | |
924 | the access type is private; we don't care about privacy in expansion. | |
925 | ||
926 | 2011-08-31 Ed Schonberg <schonberg@adacore.com> | |
927 | ||
928 | * sem_aggr.adb (Resolve_Aggregate): In an instance, ignore aggregate | |
929 | subcomponents tnat may be limited, because they originate in view | |
930 | conflicts. If the original aggregate is legal and the actuals are | |
931 | legal, the aggregate itself is legal. | |
932 | ||
b8789727 AC |
933 | 2011-08-31 Matthew Heaney <heaney@adacore.com> |
934 | ||
935 | * a-rbtgbo.adb (Clear_Tree): Assert representation invariant for lock | |
936 | status. | |
937 | ||
938 | 2011-08-31 Ed Schonberg <schonberg@adacore.com> | |
939 | ||
940 | * sem_ch5.adb: Set kind of loop parameter properly, to preserve all | |
941 | errors in B tests. | |
942 | ||
943 | 2011-08-31 Jose Ruiz <ruiz@adacore.com> | |
944 | ||
945 | * sem_ch13.adb (Analyze_Aspect_Specifications): For the Priority and | |
946 | Interrupt_Priority aspects, force the analysis of the aspect expression | |
947 | (when building the equivalent pragma). Otherwise, its analysis is done | |
948 | too late, after the task or protected object has been created. | |
949 | * sem_ch9.adb (Analyze_Single_Protected_Declaration, | |
950 | Analyze_Single_Task_Declaration): Remove the code to move the aspects | |
951 | to the object declaration because they are needed in the type | |
952 | declaration. | |
953 | ||
e0c32166 AC |
954 | 2011-08-31 Robert Dewar <dewar@adacore.com> |
955 | ||
956 | * exp_ch5.adb, exp_ch7.ads, sem_ch5.adb, put_scos.adb, s-rannum.adb, | |
957 | a-rbtgbo.adb, exp_intr.adb, a-cbdlli.adb, a-cbdlli.ads: Minor | |
958 | reformatting. | |
959 | ||
960 | 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com> | |
961 | ||
962 | * exp_util.adb (Find_Protection_Type): Do not look for fields _object | |
963 | if the corresponding type is malformed due to restriction violations. | |
964 | ||
965 | 2011-08-31 Robert Dewar <dewar@adacore.com> | |
966 | ||
967 | * s-ransee.ads, s-ransee.adb: Minor reformatting. | |
968 | ||
969 | 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com> | |
970 | ||
971 | * exp_ch4.adb (Expand_N_Allocator): Correct faulty condition which | |
972 | would cause the generation of Set_Finalize_Address if the target is a | |
973 | VM and the designated type is not derived from [Limited_]Controlled. | |
974 | ||
975 | 2011-08-31 Arnaud Charlet <charlet@adacore.com> | |
976 | ||
977 | * comperr.adb, comperr.ads, gnat1drv.adb (Delete_SCIL_Files): New | |
978 | subprogram. | |
979 | (Compiler_Abort, Gnat1drv): Call Delete_SCIL_Files in codepeer mode in | |
980 | case of a compilation error. | |
981 | ||
982 | 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com> | |
983 | ||
984 | * init.c (__gnat_error_handler): Standardize the stack overflow or | |
985 | erroneous memory access message. | |
986 | * seh_init.c (__gnat_SEH_error_handler): Standardize the stack overflow | |
987 | or erroneous memory access message. | |
988 | ||
11bc76df AC |
989 | 2011-08-31 Robert Dewar <dewar@adacore.com> |
990 | ||
991 | * sem_ch4.adb: Minor reformatting. | |
992 | * sem_ch6.adb: Minor code reorganization (use Ekind_In). | |
993 | ||
994 | 2011-08-31 Thomas Quinot <quinot@adacore.com> | |
995 | ||
996 | * scos.ads: Minor documentation clarification. | |
997 | * put_scos.adb: Do not generate SCO unit header line for a unit that | |
998 | has no SCO lines. | |
999 | ||
876d4394 RD |
1000 | 2011-08-31 Robert Dewar <dewar@adacore.com> |
1001 | ||
1002 | * a-rbtgbo.adb, alfa_test.adb: Minor reformatting. | |
1003 | ||
36b8f95f AC |
1004 | 2011-08-31 Tristan Gingold <gingold@adacore.com> |
1005 | ||
1006 | * exp_ch7.ads, exp_ch7.adb (Finalization_Exception_Data): New type to | |
1007 | hold variables between these following subprograms. | |
1008 | (Build_Exception_Handler, Build_Object_Declarations, | |
1009 | Build_Raise_Statement): Use the above type as parameter. | |
1010 | Make the above adjustments. | |
1011 | * exp_intr.adb (Expand_Unc_Deallocation): Adjust. | |
1012 | ||
1013 | 2011-08-31 Pascal Obry <obry@adacore.com> | |
1014 | ||
1015 | * projects.texi: Minor reformatting. | |
1016 | ||
1017 | 2011-08-31 Tristan Gingold <gingold@adacore.com> | |
1018 | ||
1019 | * s-ransee.ads, s-ransee.adb: Add system.random_seed unit. | |
1020 | * s-rannum.adb (Reset): Use Get_Seed from s-ransee. | |
1021 | ||
1022 | 2011-08-31 Ed Schonberg <schonberg@adacore.com> | |
1023 | ||
1024 | * exp_ch5.adb: Minor code cleanup. | |
1025 | * sem_ch5.adb (Analyze_Iteration_Scheme): Set ekind of loop variable to | |
1026 | prevent cascaded errors. | |
1027 | (Analyze_Loop_Statement): In semantics-only mode, introduce loop | |
1028 | variable of an iterator specification in current scope. | |
1029 | * sem_ch6.adb (Analyze_Return_Statement, Find_what_It_Apples_To): Skip | |
1030 | postconditions on the stack, as they contain no return statements. | |
1031 | ||
1032 | 2011-08-31 Yannick Moy <moy@adacore.com> | |
1033 | ||
1034 | * exp_alfa.adb (Expand_Alfa_N_Package_Declaration, | |
1035 | Expand_Alfa_N_Subprogram_Body): Remove useless procedures which simply | |
1036 | call Qualify_Entity_Names. | |
1037 | (Expand_Alfa): call Qualify_Entity_Names in more cases | |
1038 | * lib-xref-alfa.adb: Take into account system package. | |
1039 | * sem_prag.adb Take into account restrictions in Alfa mode, contrary to | |
1040 | CodePeer mode in which we are interested in finding bugs even if | |
1041 | compiler cannot compile source. | |
1042 | * sem_util.adb, sem_util.ads (Unique_Entity): Take into account case of | |
1043 | deferred constant. | |
1044 | ||
1045 | 2011-08-31 Gary Dismukes <dismukes@adacore.com> | |
1046 | ||
1047 | * sem_ch3.adb (Constrain_Concurrent): Retrieve Base_Type of the subtype | |
1048 | denoted by the subtype mark to ensure getting the concurrent type in | |
1049 | the case where the subtype mark denotes a private subtype of a | |
1050 | concurrent type (needed when using -gnatc). | |
1051 | (Process_Subtype): For the processing specific to type kinds, case on | |
1052 | the Base_Type kind of the Subtype_Mark_Id, to handle cases where the | |
1053 | subtype denotes a private subtype whose base type is nonprivate (needed | |
1054 | for subtypes of private fulfilled by task types when compiling with | |
1055 | -gnatc). | |
1056 | ||
1057 | 2011-08-31 Gary Dismukes <dismukes@adacore.com> | |
1058 | ||
1059 | * sem_disp.adb (Check_Dispatching_Operation): Bypass registration of | |
1060 | late primitives that override interface operations when the full | |
1061 | expander is not active, to avoid blowups in Register_Primitive when | |
1062 | types don't have associated secondary dispatch tables. | |
1063 | ||
1064 | 2011-08-31 Yannick Moy <moy@adacore.com> | |
1065 | ||
1066 | * alfa_test.adb: Code clean up. | |
1067 | ||
1068 | 2011-08-31 Marc Sango <sango@adacore.com> | |
1069 | ||
1070 | * restrict.adb (Check_SPARK_Restriction): Change Comes_From_Source (N) | |
1071 | by Comes_From_Source (Original_Node (N)) in order to treat also the | |
1072 | nodes which have been rewritten. | |
1073 | * sem_ch4.adb (Analyze_Explicit_Dereference, Analyze_Slice): Guard the | |
1074 | explicit dereference and slice violation in spark mode on the nodes | |
1075 | coming only from the source code. | |
1076 | ||
8cf23b91 AC |
1077 | 2011-08-31 Robert Dewar <dewar@adacore.com> |
1078 | ||
1079 | * exp_ch5.adb, exp_alfa.ads, prj.ads, sem_attr.adb, | |
1080 | lib-xref-alfa.adb: Minor reformatting. | |
1081 | ||
1082 | 2011-08-31 Matthew Heaney <heaney@adacore.com> | |
1083 | ||
1084 | * a-crbltr.ads (Tree_Type): Default-initialize the Nodes component. | |
1085 | ||
1086 | 2011-08-31 Javier Miranda <miranda@adacore.com> | |
1087 | ||
1088 | * sem_ch4.adb (Try_Object_Operation): Addition of one formal to search | |
1089 | only for class-wide subprograms conflicting with entities of concurrent | |
1090 | tagged types. | |
1091 | ||
1092 | 2011-08-31 Matthew Heaney <heaney@adacore.com> | |
1093 | ||
1094 | * a-rbtgbo.adb (Generic_Allocate): Initialize pointer components of | |
1095 | node to null value. | |
1096 | ||
1097 | 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com> | |
1098 | ||
1099 | * sem_ch12.adb (Insert_Freeze_Node_For_Instance): Provide a more | |
1100 | general description of the routine. | |
1101 | ||
1102 | 2011-08-31 Ed Schonberg <schonberg@adacore.com> | |
1103 | ||
1104 | * a-cbdlli.adb, a-cbdlli.ads: Add iterator machinery to bounded | |
1105 | doubly-linked lists. | |
1106 | ||
0bb3bfb8 GD |
1107 | 2011-08-31 Gary Dismukes <dismukes@adacore.com> |
1108 | ||
1109 | * exp_ch5.adb (Expand_N_Assignment_Statement): When a discriminant | |
1110 | check is needed for a left-hand side that is a dereference, and the | |
1111 | base type is private without discriminants (whereas the full type does | |
1112 | have discriminants), an extra retrieval of the underlying type may be | |
1113 | needed in the case where the subtype is a record subtype whose base | |
1114 | type is private. Update comments. | |
1115 | ||
11fa950b AC |
1116 | 2011-08-31 Javier Miranda <miranda@adacore.com> |
1117 | ||
1118 | * sem_ch4.adb (Try_Object_Operation): When a dispatching primitive is | |
1119 | found check if there is a class-wide subprogram covering the primitive. | |
1120 | ||
1121 | 2011-08-31 Yannick Moy <moy@adacore.com> | |
1122 | ||
1123 | * sem_res.adb: Further cases where full expansion test is needed, | |
1124 | rather than expansion test. | |
1125 | ||
1126 | 2011-08-31 Pascal Obry <obry@adacore.com> | |
1127 | ||
1128 | * prj-attr.adb: Fix Source_File_Switches attribute kind (must be a list) | |
1129 | ||
1130 | 2011-08-31 Ed Schonberg <schonberg@adacore.com> | |
1131 | ||
1132 | * exp_ch5.adb: Handle iterators over derived container types. | |
1133 | ||
1134 | 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com> | |
1135 | ||
1136 | * einfo.ads, einfo.adb: Add new flag Has_Anonymous_Master. | |
1137 | (Has_Anonymous_Master): New routine. | |
1138 | (Set_Has_Anonymous_Master): New routine. | |
1139 | (Write_Entity_Flags): Add an entry for Has_Anonymous_Master. | |
1140 | * exp_ch4.adb: Add with and use clause for Sem_Ch8. | |
1141 | (Current_Anonymous_Master): New routine. | |
1142 | (Current_Unit_First_Declaration): Removed. | |
1143 | (Current_Unit_Scope): Removed. | |
1144 | (Expand_N_Allocator): Anonymous access-to-controlled types now chain | |
1145 | their objects on a per-unit heterogeneous finalization master. | |
1146 | ||
1147 | 2011-08-31 Matthew Heaney <heaney@adacore.com> | |
1148 | ||
1149 | * a-cbhama.adb, a-cbhase.adb (Insert): Check for zero-length buckets | |
1150 | array. | |
1151 | ||
1152 | 2011-08-31 Jose Ruiz <ruiz@adacore.com> | |
1153 | ||
1154 | * s-taprop-linux.adb (Create_Task): Avoid changing the affinity mask | |
1155 | when not needed. | |
1156 | ||
1157 | 2011-08-31 Gary Dismukes <dismukes@adacore.com> | |
1158 | ||
1159 | * sem_disp.adb (Propagate_Tag): Return without propagating in the case | |
1160 | where the actual is an unexpanded call to 'Input. | |
1161 | ||
d2b4b3da AC |
1162 | 2011-08-31 Yannick Moy <moy@adacore.com> |
1163 | ||
1164 | * sem_ch4.adb: Code clean up. | |
1165 | ||
1166 | 2011-08-31 Yannick Moy <moy@adacore.com> | |
1167 | ||
1168 | * exp_alfa.adb, exp_alfa.ads: Minor correction of copyright notice. | |
1169 | ||
1170 | 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com> | |
1171 | ||
1172 | * exp_ch7.adb (Build_Array_Deep_Procs): Do not generate Deep_Finalize | |
1173 | and TSS primitive Finalize_Address if finalization is suppressed. | |
1174 | (Build_Record_Deep_Procs): Do not generate Deep_Finalize and TSS | |
1175 | primitive Finalize_Address if finalization is suppressed. | |
1176 | ||
1177 | 2011-08-31 Jose Ruiz <ruiz@adacore.com> | |
1178 | ||
1179 | * s-mudido-affinity.adb, s-taprop-linux.adb, s-taprop-mingw.adb, | |
1180 | s-taprop-solaris.adb, s-taprop-vxworks.adb (Set_Task_Affinity): Make | |
1181 | sure that the underlying task has already been created before trying | |
1182 | to change its affinity. | |
1183 | (Set_CPU): Use the term processor instead of CPU, as we do in | |
1184 | Assign_Task. | |
1185 | ||
1186 | 2011-08-31 Vincent Celier <celier@adacore.com> | |
1187 | ||
1188 | * prj-attr.adb: New Compiler attribute Source_File_Switches. | |
1189 | * prj-nmsc.adb (Process_Compiler): Process attribute | |
1190 | Source_File_Switches. | |
1191 | * prj.ads (Language_Config): New name list component | |
1192 | Name_Source_File_Switches. | |
1193 | * snames.ads-tmpl (Name_Source_File_Switches): New standard name. | |
1194 | ||
1195 | 2011-08-31 Ed Schonberg <schonberg@adacore.com> | |
1196 | ||
1197 | * sem_attr.adb (Analyze_Attribute, case 'Old): If prefix may be a | |
1198 | discriminated component of an actual, expand at once to prevent | |
1199 | ouf-of-order references with generated subtypes. | |
1200 | ||
1201 | 2011-08-31 Yannick Moy <moy@adacore.com> | |
1202 | ||
1203 | * lib-xref-alfa.adb (Add_Alfa_Xrefs): Do not take into account read | |
1204 | reference to operator in Alfa xrefs. | |
1205 | ||
1206 | 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com> | |
1207 | ||
1208 | * sem_ch12.adb (Freeze_Subprogram_Body): Add code to handle the case | |
1209 | where the parent instance was frozen before the current instance due to | |
1210 | the presence of a source body. Update calls to Insert_After_Last_Decl. | |
1211 | (Insert_After_Last_Decl): Renamed to Insert_Freeze_Node_For_Instance. | |
1212 | Update the comment which illustrates the purpose of the routine. | |
1213 | Package instances are now frozen by source bodies which appear after | |
1214 | the instance. This ensures that entities coming from within the | |
1215 | instance are available for use in the said bodies. | |
1216 | (Install_Body): Add code to handle the case where the parent instance | |
1217 | was frozen before the current instance due to the presence of a source | |
1218 | body. Update calls to Insert_After_Last_Decl. | |
1219 | ||
56812278 AC |
1220 | 2011-08-31 Jose Ruiz <ruiz@adacore.com> |
1221 | ||
1222 | * s-taprop-linux.adb (Set_Task_Affinity): Avoid the use of anonymous | |
1223 | access types. | |
1224 | * affinity.c (__gnat_set_affinity_mask): Declare index variable. | |
1225 | ||
1226 | 2011-08-31 Yannick Moy <moy@adacore.com> | |
1227 | ||
1228 | * sem_ch8.adb (Analyze_Subprogram_Renaming): Refine expander test in | |
1229 | full-expander test. | |
16c3301a AC |
1230 | * alfa.adb, alfa.ads, alfa_test.adb, ali.adb, debug.adb, errout.adb, |
1231 | errout.ads, erroutc.adb, expander.adb, exp_ch4.adb, exp_ch7.adb, | |
1232 | freeze.adb, get_alfa.adb, get_alfa.ads, gnat1drv.adb, lib-writ.adb, | |
1233 | lib-writ.ads, lib-xref.adb, lib-xref.ads, lib-xref-alfa.adb, opt.adb, | |
1234 | opt.ads, put_alfa.adb, put_alfa.ads, restrict.adb, sem_ch12.adb, | |
1235 | sem_ch13.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, | |
1236 | sem_prag.adb, sem_res.adb, sem_util.adb: Minor reformatting, renaming | |
1237 | ALFA in Alfa (we dropped acronym). | |
56812278 AC |
1238 | * einfo.adb (Primitive_Operations): Correctly return list of primitive |
1239 | operations in a case where it returned previously No_Elist. | |
1240 | ||
7cda9727 RD |
1241 | 2011-08-31 Robert Dewar <dewar@adacore.com> |
1242 | ||
1243 | * s-taprop-vxworks.adb, sem_ch5.adb, s-taprop-tru64.adb, exp_alfa.adb, | |
1244 | s-taprop-vms.adb, bindgen.adb, s-mudido.adb, s-mudido.ads, | |
1245 | sem_res.adb, expander.adb, s-taprop-mingw.adb, s-taprop-linux.adb, | |
1246 | s-taprop-solaris.adb, s-mudido-affinity.adb, vms_conv.adb, | |
1247 | s-taprop-irix.adb, s-taprop.ads, s-taskin.adb, s-taskin.ads, | |
1248 | s-taprop-hpux-dce.adb, a-chtgbo.adb, s-taprop-posix.adb: Minor | |
1249 | reformatting. | |
1250 | ||
0a190dfd AC |
1251 | 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com> |
1252 | ||
1253 | * sem_ch12 (Check_Private_View): Revert previous change. | |
1254 | * sem_res.adb (Conversion_Check): Do not emit the error message if the | |
1255 | conversion is in a generic instance. | |
1256 | ||
1257 | 2011-08-31 Matthew Heaney <heaney@adacore.com> | |
1258 | ||
1259 | * a-cbhase.adb (Symmetric_Difference): Dereference correct node array. | |
1260 | * a-chtgbo.adb (Free): Allow 0 as index value. | |
1261 | ||
1262 | 2011-08-31 Matthew Heaney <heaney@adacore.com> | |
1263 | ||
1264 | * a-cborma.adb (Insert): Add comment to explain why no element | |
1265 | assignment. | |
1266 | ||
1267 | 2011-08-31 Gary Dismukes <dismukes@adacore.com> | |
1268 | ||
1269 | * sem_util.adb (Find_Body_Discriminal): Test whether the scope of the | |
1270 | spec discriminant is already a concurrent type, in which case just use | |
1271 | it, otherwise fetch the Corresponding_Concurrent_Type as before. | |
1272 | ||
7d266442 EB |
1273 | 2011-08-30 Eric Botcazou <ebotcazou@adacore.com> |
1274 | ||
1275 | * system-irix-n64.ads, system-linux-armeb.ads, system-linux-armel.ads, | |
1276 | system-linux-mips.ads, system-linux-mipsel.ads, | |
1277 | system-linux-mips64el.ads, system-linux-ppc64.ads, | |
1278 | system-linux-sparcv9.ads, system-rtems.ads: Remove GCC_ZCX_Support. | |
1279 | ||
4f1a975c EB |
1280 | 2011-08-30 Eric Botcazou <ebotcazou@adacore.com> |
1281 | ||
1282 | * gcc-interface/ada-tree.h (TYPE_EXTRA_SUBTYPE_P): Add internal check. | |
1283 | * gcc-interface/utils2.c (build_binary_op): Tighten condition. | |
1284 | (build_unary_op): Likewise. | |
1285 | ||
f2991b48 EB |
1286 | 2011-08-30 Eric Botcazou <ebotcazou@adacore.com> |
1287 | ||
1288 | * raise-gcc.c: Do not include coretypes.h and tm.h. | |
1289 | (setup_to_install): Remove test for compiler macro. | |
1290 | * targext.c: Document use for the library. | |
1291 | * gcc-interface/Makefile.in: Fix comment on the use of IN_GCC. | |
1292 | ||
10a22f43 EB |
1293 | 2011-08-30 Eric Botcazou <ebotcazou@adacore.com> |
1294 | ||
1295 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not convert | |
1296 | the expression to the nominal type if the latter is a record type with | |
1297 | a variant part and the type of the former is a record type without one. | |
1298 | ||
bfa2e39d AC |
1299 | 2011-08-30 Yannick Moy <moy@adacore.com> |
1300 | ||
1301 | * exp_aggr.adb, exp_ch11.adb, exp_prag.adb: Remove early exit during | |
1302 | expansion in Alfa mode. | |
1303 | * exp_ch6.adb, exp_ch6.ads (Expand_Actuals): Make subprogram public | |
1304 | * exp_alfa.adb, exp_alfa.ads: New package defining light expansion for | |
1305 | Alfa mode. | |
1306 | * gnat1drv.adb (Adjust_Global_Switches): Update Comment. | |
1307 | * sem_res.adb: Ditto. | |
bd34109a | 1308 | * gcc-interface/Make-lang.in: Update dependencies. |
bfa2e39d AC |
1309 | |
1310 | 2011-08-30 Thomas Quinot <quinot@adacore.com> | |
1311 | ||
1312 | * g-socket.ads: Minor documentation adjustment. | |
1313 | ||
a0347839 AC |
1314 | 2011-08-30 Robert Dewar <dewar@adacore.com> |
1315 | ||
1316 | * exp_ch9.adb, s-tassta.adb, s-secsta.adb: Minor reformatting. | |
1317 | ||
1318 | 2011-08-30 Yannick Moy <moy@adacore.com> | |
1319 | ||
1320 | * exp_ch6_light.adb, exp_ch6_light.ads, exp_attr_light.adb, | |
1321 | exp_attr_light.ads, exp_ch7_light.adb, exp_ch7_light.ads, | |
1322 | exp_light.adb, exp_light.ads, exp_prag.adb, expander.adb, | |
1323 | gnat1drv.adb, exp_ch11.adb, exp_ch6.adb, exp_ch6.ads, exp_aggr.adb: | |
1324 | Revert change which introduced files for "light" | |
1325 | expansion, to be replaced by a single file for Alfa expansion. | |
1326 | ||
3597c0e9 RD |
1327 | 2011-08-30 Robert Dewar <dewar@adacore.com> |
1328 | ||
1329 | * opt.ads, s-soflin.adb, exp_ch9.adb, sem_res.adb: Update comment. | |
1330 | Minor code reorg/reformatting. | |
1331 | ||
da94696d AC |
1332 | 2011-08-30 Yannick Moy <moy@adacore.com> |
1333 | ||
1334 | * opt.adb, opt.ads (Full_Expander_Active): New function defines a | |
1335 | common shorthand for (Expander_Active and not ALFA_Mode) that can be | |
1336 | used for testing full expansion, that is active expansion not in the | |
1337 | reduced mode for Alfa | |
1338 | * exp_ch4.adb, exp_ch9.adb, exp_disp.adb, sem_ch10.adb, sem_ch12.adb, | |
1339 | sem_ch6.adb, sem_ch9.adb, sem_res.adb: Use newly defined "flag" instead | |
1340 | of the verbose (Expander_Active and not ALFA_Mode) | |
1341 | ||
1342 | 2011-08-30 Tristan Gingold <gingold@adacore.com> | |
1343 | ||
1344 | * s-parame-vms-alpha.ads, s-parame-hpux.ads, s-tassta.adb, | |
1345 | s-tarest.adb, s-parame-vms-ia64.ads, s-soflin.adb, s-secsta.adb, | |
5b8ca141 TG |
1346 | s-secsta.ads, s-parame.ads, s-parame-vxworks.ads, s-parame-ae653.ads: |
1347 | Renames Ratio to Percentage, and Sec_Stack_Ratio to Sec_Stack_Percentage | |
da94696d | 1348 | |
c199ccf7 AC |
1349 | 2011-08-30 Gary Dismukes <dismukes@adacore.com> |
1350 | ||
1351 | * sem_res.adb (Valid_Conversion): Revise test for implicit anonymous | |
1352 | access conversions to check that the conversion is a rewritten node, | |
1353 | rather than just having Comes_From_Source set to False, which wasn't | |
1354 | sufficient. | |
1355 | ||
1356 | 2011-08-30 Robert Dewar <dewar@adacore.com> | |
1357 | ||
1358 | * exp_ch9.adb, sem_ch9.adb, sem_ch6.adb, exp_disp.adb, | |
1359 | g-socket.ads: Minor reformatting. | |
1360 | ||
1361 | 2011-08-30 Thomas Quinot <quinot@adacore.com> | |
1362 | ||
1363 | * sem_util.adb: Minor reformatting. | |
1364 | ||
1365 | 2011-08-30 Tristan Gingold <gingold@adacore.com> | |
1366 | ||
1367 | * raise-gcc.c: Never catch exception if _UA_FORCE_UNWIND flag is set, | |
1368 | to be compliant with the ABI. | |
1369 | ||
dff99e1a AC |
1370 | 2011-08-30 Hristian Kirtchev <kirtchev@adacore.com> |
1371 | ||
1372 | * sem_ch12.adb (Check_Private_View): Exchange the private and full view | |
1373 | of a designated type when the related access type is an actual in an | |
1374 | instance. This ensures that the full view of designated type is | |
1375 | available when inside the body of the instance. | |
1376 | ||
1377 | 2011-08-30 Ed Schonberg <schonberg@adacore.com> | |
1378 | ||
1379 | * sem_util.adb (May_Be_Lvalue): To determine whether a reference may be | |
1380 | in a position to be modified, a slice is treated like an indexed | |
1381 | component. | |
1382 | ||
63be2a5a AC |
1383 | 2011-08-30 Thomas Quinot <quinot@adacore.com> |
1384 | ||
1385 | * s-oscons-tmplt.c, g-socket.ads: Adjust maximum allowed value for | |
1386 | field tv_sec in struct timeval. | |
1387 | ||
1388 | 2011-08-30 Yannick Moy <moy@adacore.com> | |
1389 | ||
1390 | * exp_ch9.adb, exp_disp.adb, sem_ch9.adb, sem_res.adb: Protect several | |
1391 | blocks of code doing full expansion, previously only guarded by | |
1392 | Expander_Active, by anding the test that ALFA_Mode is not set | |
1393 | ||
1394 | 2011-08-30 Ed Schonberg <schonberg@adacore.com> | |
1395 | ||
1396 | * sem_ch6.adb (Analyze_Return_Type): If the return type is incomplete, | |
1397 | add the function to the list of private dependents, for subsequent | |
1398 | legality check on Taft amendment types. | |
1399 | * sem_ch12.adb (Analyze_Formal_Incomplete_Type): Initialize | |
1400 | Private_Dependents, as for other incomplete types. | |
1401 | * sem_util.adb (Wrong_Type): Avoid cascaded errors when a | |
1402 | Taft-amendment type is used as the return type of a function. | |
1403 | ||
dd54644b JM |
1404 | 2011-08-30 Javier Miranda <miranda@adacore.com> |
1405 | ||
1406 | * sem_ch3.adb (Check_Abstract_Overriding): Code cleanup: replace code | |
1407 | which emits an error by a call to a new routine which report the error. | |
1408 | * exp_ch9.adb (Build_Wrapper_Spec): Build the wrapper even if the | |
1409 | entity does not cover an existing interface. | |
1410 | * errout.ads, errout.adb (Error_Msg_PT): New routine. Used to factorize | |
1411 | code. | |
1412 | * sem_ch6.adb (Check_Conformance): Add specific error for wrappers of | |
1413 | protected procedures or entries whose mode is not conformant. | |
1414 | (Check_Synchronized_Overriding): Code cleanup: replace code which emits | |
1415 | an error by a call to a new routine which report the error. | |
1416 | ||
d3ba478e AC |
1417 | 2011-08-30 Robert Dewar <dewar@adacore.com> |
1418 | ||
1419 | * gnat_rm.texi: Minor change. | |
1420 | * exp_attr_light.adb: Minor reformatting. | |
1421 | ||
1422 | 2011-08-30 Ed Schonberg <schonberg@adacore.com> | |
1423 | ||
1424 | * sem_ch3.adb: Patch inheritance of aspects in | |
1425 | Complete_Private_Subtype, to avoid infinite loop. | |
1426 | ||
c01817d2 AC |
1427 | 2011-08-30 Javier Miranda <miranda@adacore.com> |
1428 | ||
1429 | * sem_ch3.adb (Add_Internal_Interface_Entities): If serious errors have | |
1430 | been reported and a subprogram covering an interface primitive is not | |
1431 | found then skip generating the internal entity. Done to avoid crashing | |
1432 | the frontend. | |
1433 | (Check_Abstract_Overriding): Change text of error of wrong formal of | |
1434 | protected subprogram or entry. Done for consistency to emit exactly the | |
1435 | same error reported by Check_Synchronized_Overriding. In addition, the | |
1436 | error is restricted to protected types (bug found working on AI05-0090) | |
1437 | ||
1438 | 2011-08-30 Yannick Moy <moy@adacore.com> | |
1439 | ||
1440 | * exp_aggr.adb, exp_ch11.adb, exp_prag.adb: Remove early exit during | |
1441 | expansion in Alfa mode. | |
1442 | * exp_ch6.adb, exp_ch6.ads (Expand_Actuals): Make subprogram public. | |
1443 | * exp_light.adb, exp_light.ads: New package defining light expansion. | |
1444 | * expander.adb (Expand): Call light expansion in Alfa mode | |
1445 | * exp_ch6_light.adb, exp_ch6_light.ads: Light expansion of chapter 6 | |
1446 | constructs. | |
1447 | * exp_ch7_light.adb, exp_ch7_light.ads: Light expansion of chapter 7 | |
1448 | constructs. | |
1449 | * exp_attr_light.adb, exp_attr_light.ads: Light expansion of attributes | |
1450 | * gnat1drv.adb (Adjust_Global_Switches): Comment | |
1451 | ||
1452 | 2011-08-30 Yannick Moy <moy@adacore.com> | |
1453 | ||
1454 | * lib-xref-alfa.adb: Minor refactoring. | |
1455 | ||
1456 | 2011-08-30 Yannick Moy <moy@adacore.com> | |
1457 | ||
1458 | * exp_ch9.adb (Expand_Entry_Barrier): Do not perform expansion in Alfa | |
1459 | mode. | |
1460 | * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not perform | |
1461 | expansion in Alfa mode. | |
1462 | * sem_ch9.adb (Analyze_Entry_Body): Do not perform expansion in Alfa | |
1463 | mode. | |
1464 | ||
1465 | 2011-08-30 Robert Dewar <dewar@adacore.com> | |
1466 | ||
1467 | * debug_a.adb: Update comment. | |
1468 | ||
996c8821 RD |
1469 | 2011-08-30 Robert Dewar <dewar@adacore.com> |
1470 | ||
1471 | * exp_ch5.adb, sem_ch3.adb, sem_ch5.adb, einfo.adb, checks.adb, | |
1472 | sem_util.adb, sem_util.ads, sem_res.adb, s-stposu.adb, sem_attr.adb, | |
1473 | exp_ch4.adb, exp_ch6.adb, lib-xref-alfa.adb, | |
1474 | sem_ch8.adb, sem_disp.adb, exp_ch3.adb: Minor reformatting | |
1475 | ||
1476 | 2011-08-30 Robert Dewar <dewar@adacore.com> | |
1477 | ||
1478 | * gnat_rm.texi: Add section on C.6(16) implementation advice for pragma | |
1479 | volatile. | |
1480 | ||
3647ca26 HK |
1481 | 2011-08-30 Hristian Kirtchev <kirtchev@adacore.com> |
1482 | ||
1483 | * exp_ch3.adb (Expand_Freeze_Array_Type): Correct the call to | |
1484 | Build_Finalization_Master by supplying an insertion node and enclosing | |
1485 | scope. In its old version, the call did not generate a finalization | |
1486 | master. | |
1487 | (Expand_Freeze_Record_Type): Add local variable Has_AACC. Add code to | |
1488 | recognize anonymous access-to-controlled components. Rewrite the | |
1489 | machinery which creates finalization masters to service anonymous | |
1490 | access-to-controlled components of a record type. In its current state, | |
1491 | only one heterogeneous master is necessary to handle multiple anonymous | |
1492 | components. | |
1493 | (Freeze_Type): Comment reformatting. | |
1494 | * rtsfind.ads: Add RE_Set_Is_Heterogeneous to tables RE_Id and | |
1495 | RE_Unit_Table. | |
1496 | * s-stposu.adb (Allocate_Any_Controlled): Rewrite the machinery which | |
1497 | associates TSS primitive Finalize_Address with either the master itself | |
1498 | or with the internal hash table depending on the mode of operation of | |
1499 | the master. | |
1500 | ||
6d4e4fbc JM |
1501 | 2011-08-30 Javier Miranda <miranda@adacore.com> |
1502 | ||
1503 | * exp_ch3.adb (Make_Eq_If): If the etype of the _parent component is an | |
1504 | interface type then do not generate code to compare this component. | |
1505 | Required since they have no components and their equality operator is | |
1506 | abstract. | |
1507 | ||
d15f9422 AC |
1508 | 2011-08-30 Steve Baird <baird@adacore.com> |
1509 | ||
1510 | * sem_util.ads (Deepest_Type_Access_Level): New function; for the type | |
1511 | of a saooaaat (i.e, a stand-alone object of an anonymous access type), | |
1512 | returns the (static) accessibility level of the object. Otherwise, the | |
1513 | same as Type_Access_Level. | |
1514 | (Dynamic_Accessibility_Level): New function; given an expression which | |
1515 | could occur as the rhs of an assignment to a saooaaat (i.e., an | |
1516 | expression of an access-to-object type), return the new value for the | |
1517 | saooaaat's associated Extra_Accessibility object. | |
1518 | (Effective_Extra_Accessibility): New function; same as | |
1519 | Einfo.Extra_Accessibility except that object renames are looked through. | |
1520 | * sem_util.adb | |
1521 | (Deepest_Type_Access_Level): New function; see sem_util.ads description. | |
1522 | (Dynamic_Accessibility_Level): New function; see sem_util.ads | |
1523 | description. | |
1524 | (Effective_Extra_Accessibility): New function; see sem_util.ads | |
1525 | description. | |
1526 | * einfo.ads (Is_Local_Anonymous_Access): Update comments. | |
1527 | (Extra_Accessibility): Update comments. | |
1528 | (Init_Object_Size_Align): New procedure; same as Init_Size_Align | |
1529 | except RM_Size field (which is only for types) is unaffected. | |
1530 | * einfo.adb | |
1531 | (Extra_Accessibility): Expand domain to allow objects, not just formals. | |
1532 | (Set_Extra_Accessibility): Expand domain to allow objects, not just | |
1533 | formals. | |
1534 | (Init_Size): Add assertion that we are not trashing the | |
1535 | Extra_Accessibility attribute of an object. | |
1536 | (Init_Size_Align): Add assertion that we are not trashing the | |
1537 | Extra_Accessibility attribute of an object. | |
1538 | (Init_Object_Size_Align): New procedure; see einfo.ads description. | |
1539 | * sem_ch3.adb (Find_Type_Of_Object): Set Is_Local_Anonymous_Access | |
1540 | differently for the type of a (non-library-level) saooaaat depending | |
1541 | whether Ada_Version < Ada_2012. This is the only point where Ada_Version | |
1542 | is queried in this set of changes - everything else (in particular, | |
1543 | setting of the Extra_Accessibility attribute in exp_ch3.adb) is | |
1544 | driven off of the setting of the Is_Local_Anonymous_Access attribute. | |
1545 | The special treatment of library-level saooaaats is an optimization, | |
1546 | not required for correctnesss. This is based on the observation that the | |
1547 | Ada2012 rules (static and dynamic) for saooaaats turn out to be | |
1548 | equivalent to the Ada2005 rules in the case of a library-level saooaaat. | |
1549 | * exp_ch3.adb | |
1550 | (Expand_N_Object_Declaration): If Is_Local_Anonymous_Access is | |
1551 | false for the type of a saooaaat, declare and initialize its | |
1552 | accessibility level object and set the Extra_Accessibility attribute | |
1553 | of the saooaaat to refer to this object. | |
1554 | * checks.adb (Apply_Accessibility_Check): Add Ada 2012 saooaaat support. | |
1555 | * exp_ch4.adb (Expand_N_In): Replace some Extra_Accessibility calls with | |
1556 | calls to Effective_Extra_Accessibility in order to support | |
1557 | renames of saooaaats. | |
1558 | (Expand_N_Type_Conversion): Add new local function, | |
1559 | Has_Extra_Accessibility, and call it when determining whether an | |
1560 | accessibility check is needed. | |
1561 | It returns True iff Present (Effective_Extra_Accessibility (Id)) would | |
1562 | evaluate to True (without raising an exception). | |
1563 | * exp_ch5.adb | |
1564 | (Expand_N_Assignment_Statement): When assigning to an Ada2012 | |
1565 | saooaaat, update its associated Extra_Accessibility object (if | |
1566 | it has one). This includes an accessibility check. | |
1567 | * exp_ch6.adb (Add_Call_By_Copy_Code): When parameter copy-back updates | |
1568 | a saooaaat, update its Extra_Accessibility object too (if it | |
1569 | has one). | |
1570 | (Expand_Call): Replace a couple of calls to Type_Access_Level | |
1571 | with calls to Dynamic_Access_Level to handle cases where | |
1572 | passing a literal (any literal) is incorrect. | |
1573 | * sem_attr.adb (Resolve_Attribute): Handle the static accessibility | |
1574 | checks associated with "Saooaat := Some_Object'Access;"; this must | |
1575 | be rejected if Some_Object is declared in a more nested scope | |
1576 | than Saooaat. | |
1577 | * sem_ch5.adb (Analyze_Assignment): Force accessibility checking for an | |
1578 | assignment to a saooaaat even if Is_Local_Anonymous_Access | |
1579 | returns False for its type (indicating a 2012-style saooaaat). | |
1580 | * sem_ch8.adb | |
1581 | (Analyze_Object_Renaming): Replace a call to Init_Size_Align | |
1582 | (which is only appropriate for objects, not types) with a call | |
1583 | of Init_Object_Size_Align in order to avoid trashing the | |
1584 | Extra_Accessibility attribute of a rename (the two attributes | |
1585 | share storage). | |
1586 | * sem_res.adb | |
1587 | (Valid_Conversion) Replace six calls to Type_Access_Level with | |
1588 | calls to Deepest_Type_Access_Level. This is a bit tricky. For an | |
1589 | Ada2012 non-library-level saooaaat, the former returns library level | |
1590 | while the latter returns the (static) accessibility level of the | |
1591 | saooaaat. A type conversion to the anonymous type of a saooaaat | |
1592 | can only occur as part of an assignment to the saooaaat, so we | |
1593 | know that such a conversion must be in a lhs context, so Deepest | |
1594 | yields the result that we need. If such a conversion could occur, | |
1595 | say, as the operand of an equality operator, then this might not | |
1596 | be right. Also add a test so that static accessibilty checks are | |
1597 | performed for converting to a saooaaat's type even if | |
1598 | Is_Local_Anonymous_Access yields False for the type. | |
1599 | ||
1600 | 2011-08-30 Javier Miranda <miranda@adacore.com> | |
1601 | ||
1602 | * sem_disp.adb (Check_Dispatching_Operation): Complete condition that | |
1603 | controls generation of a warning associated with late declaration of | |
1604 | dispatching functions. Required to avoid generating spurious | |
1605 | warnings. | |
1606 | ||
6cce2156 GD |
1607 | 2011-08-30 Gary Dismukes <dismukes@adacore.com> |
1608 | ||
1609 | * sem_ch6.adb (Check_Return_Subtype_Indication): Issue error if the | |
1610 | return object has an anonymous access type and the function's type is | |
1611 | a named access type. | |
1612 | * sem_ch8.adb (Analyze_Object_Renaming): Suppress error about renaming | |
1613 | conversions on implicit conversions, since such conversions can occur | |
1614 | for anonymous access cases due to expansion. Issue error for attempt | |
1615 | to rename an anonymous expression as an object of a named access type. | |
1616 | * sem_res.ads (Valid_Conversion): Add defaulted parameter Report_Errs, | |
1617 | to indicate whether this function should report errors on invalid | |
1618 | conversions. | |
1619 | * sem_res.adb (Resolve): For Ada 2012, in the case where the type of | |
1620 | the expression is of an anonymous access type and the expected type is | |
1621 | a named general access type, rewrite the expression as a type | |
1622 | conversion, unless this is an expression of a membership test. | |
1623 | (Valid_Conversion.Error_Msg_N): New procedure that conditions the | |
1624 | calling of Error_Msg_N on new formal Report_Errs. | |
1625 | (Valid_Conversion.Error_Msg_NE): New procedure that conditions the | |
1626 | calling of Error_Msg_NE on new formal Report_Errs. | |
1627 | (Valid_Conversion): Move declaration of this function to the package | |
1628 | spec, to allow calls from membership test processing. For Ada 2012, | |
1629 | enforce legality restrictions on implicit conversions of anonymous | |
1630 | access values to general access types, disallowing such conversions in | |
1631 | cases where the expression has a dynamic accessibility level (access | |
1632 | parameters, stand-alone anonymous access objects, or a component of a | |
1633 | dereference of one of the first two cases). | |
1634 | * sem_type.adb (Covers): For Ada 2012, allow an anonymous access type | |
1635 | in the context of a named general access expected type. | |
1636 | * exp_ch4.adb Add with and use of Exp_Ch2. | |
1637 | (Expand_N_In): Add processing for membership tests applied to | |
1638 | expressions of an anonymous access type. First, Valid_Conversion is | |
1639 | called to check whether the test is statically False, and then the | |
1640 | conversion is expanded to test that the expression's accessibility | |
1641 | level is no deeper than that of the tested type. In the case of | |
1642 | anonymous access-to-tagged types, a tagged membership test is applied | |
1643 | as well. | |
1644 | (Tagged_Membership): Extend to handle access type cases, applying the | |
1645 | test to the designated types. | |
1646 | * exp_ch6.adb (Expand_Call): When creating an extra actual for an | |
1647 | accessibility level, and the actual is a 'Access applied to a current | |
1648 | instance, pass the accessibility level of the type of the current | |
1649 | instance rather than applying Object_Access_Level to the prefix. Add a | |
1650 | ??? comment, since this level isn't quite right either (will eventually | |
1651 | need to pass an implicit level parameter to init procs). | |
1652 | ||
747de90b AC |
1653 | 2011-08-30 Bob Duff <duff@adacore.com> |
1654 | ||
1655 | * s-taskin.ads: Minor comment fix. | |
1656 | ||
1657 | 2011-08-30 Ed Schonberg <schonberg@adacore.com> | |
1658 | ||
1659 | * sem_res.adb (Check_Parameterless_Call): If the node is a selected | |
1660 | component and the selector is a dispatching operation, check if it is | |
1661 | a prefixed call before rewriting as a parameterless function call. | |
1662 | ||
cdc4cc65 JJ |
1663 | 2011-08-29 Jakub Jelinek <jakub@redhat.com> |
1664 | ||
1665 | * gcc-interface/Makefile.in (../stamp-gnatlib1-$(RTSDIR)): Copy | |
1666 | tsystem.h into $(RTSDIR) instead of rts. | |
1667 | ||
226a7fa4 AC |
1668 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1669 | ||
1670 | * sem_ch10.adb, a-coorse.adb, exp_dist.adb, exp_ch3.adb: Minor | |
1671 | reformatting. | |
1672 | * gcc-interface/Make-lang.in: Update dependencies. | |
1673 | ||
1674 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
1675 | ||
1676 | * alfa.ads (Name_Of_Heap_Variable): New constant name. | |
1677 | * lib-xref-alfa.adb, lib-xref.adb, lib-xref.ads (Drefs): New global | |
1678 | table to hold dereferences. | |
1679 | (Add_ALFA_Xrefs): Take into account dereferences as special | |
1680 | reads/writes to the variable "HEAP". | |
1681 | (Enclosing_Subprogram_Or_Package): Move subprogram here. | |
1682 | (Generate_Dereference): New procedure to store a read/write dereferencew | |
1683 | in the table Drefs. | |
1684 | * put_alfa.adb (Put_ALFA): Use different default than (0,0) used for | |
1685 | the special "HEAP" var. | |
1686 | * sem_ch4.adb (Analyze_Explicit_Dereference): Store read dereference | |
1687 | in ALFA mode. | |
1688 | * sem_util.adb (Note_Possible_Modification): Store write dereference | |
1689 | in ALFA mode. | |
1690 | ||
dfbcb149 HK |
1691 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
1692 | ||
1693 | * exp_ch3.adb (Freeze_Type): Generate an accessibility check which | |
1694 | ensures that the level of the subpool access type is not deeper than | |
1695 | that of the pool object. | |
1696 | * sem_util.adb (Object_Access_Level): Expand to handle defining | |
1697 | identifiers. | |
1698 | * sem_res.adb (Resolve_Allocator): Add a guard to avoid examining the | |
1699 | subpool handle name of a rewritten allocator. | |
1700 | ||
1df4f514 AC |
1701 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1702 | ||
1703 | * impunit.adb, exp_ch4.adb, s-finmas.adb: Minor reformatting. | |
1704 | ||
1705 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1706 | ||
1707 | * exp_dist.adb (TC_Rec_Add_Process_Element): For a choice with multiple | |
1708 | values, we generate multiple triples of parameters in the TypeCode. | |
1709 | Bump Choice_Index for each such triple so that a subsequent default | |
1710 | choice is associated with the correct index in the typecode. | |
1711 | ||
1712 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1713 | ||
1714 | * a-cdlili.adb (Iterate): Initialize properly an iterator over a null | |
1715 | container. | |
1716 | (First, Last): Handle properly an iterator over a null container. | |
1717 | ||
1718 | 2011-08-29 Bob Duff <duff@adacore.com> | |
1719 | ||
1720 | * sem_ch10.adb (Analyze_With_Clause,Install_Withed_Unit): Abandon | |
1721 | processing if we run across a node with no Scope. This can happen if | |
1722 | we're with-ing an library-level instance, and that instance got errors | |
1723 | that caused "instantiation abandoned". | |
1724 | * sem_util.adb (Unit_Declaration_Node): Make it more robust, by raising | |
1725 | an exception instead of using Assert, so it won't go into an infinite | |
1726 | loop, even when assertions are turned off. | |
1727 | ||
1728 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1729 | ||
1730 | * a-coorse.adb: Proper handling of empty ordered sets. | |
1731 | ||
14f0f659 AC |
1732 | 2011-08-29 Johannes Kanig <kanig@adacore.com> |
1733 | ||
1734 | * debug.adb: Add comments. | |
1735 | ||
8027b455 AC |
1736 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
1737 | ||
1738 | * a-except.adb, a-except-2005.adb: Minor comment rewording and | |
1739 | reformatting. | |
1740 | ||
1741 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
1742 | ||
1743 | * sem_ch3.adb (Array_Type_Declaration): Remove insertion of | |
1744 | declaration for Itypes in Alfa mode. | |
1745 | ||
d85fd922 AC |
1746 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1747 | ||
1748 | * a-cdlili.ads, a-coinve.ads, a-coorma.adb, a-coorma.ads, s-tassta.adb, | |
1749 | a-cborma.adb, a-cborma.ads, a-cohama.ads, a-coorse.ads, a-cbhama.ads, | |
1750 | a-cborse.ads, a-cobove.adb, a-cobove.ads, a-cbhase.ads: Minor | |
1751 | reformatting. | |
1752 | ||
1753 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
1754 | ||
1755 | * exp_ch7.adb, exp_ch7.ads (Build_Exception_Handler): Move its spec to | |
1756 | package spec. | |
1757 | * exp_intr.adb (Expand_Unc_Deallocation): Use Build_Exception_Handler. | |
1758 | * a-except.adb, a-except-2005.adb (Rcheck_22): Do not defer aborts | |
1759 | while raising PE. | |
1760 | ||
fd3d2680 AC |
1761 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1762 | ||
1763 | * a-cbhama.adb, a-cbhama.ads: Minor reformatting. | |
1764 | ||
1765 | 2011-08-29 Javier Miranda <miranda@adacore.com> | |
1766 | ||
1767 | * sem_ch8.adb (Analyze_Subprogram_Renaming): Complete support for | |
1768 | renamings of formal subprograms when the actual for a formal type is | |
1769 | class-wide. | |
1770 | ||
dfbf013f MH |
1771 | 2011-08-29 Matthew Heaney <heaney@adacore.com> |
1772 | ||
1773 | * a-cbhama.ads, a-cbhase.ads (Move): Clear Source following assignment | |
1774 | to Target. | |
1775 | ||
1776 | 2011-08-29 Matthew Heaney <heaney@adacore.com> | |
1777 | ||
1778 | * a-cborma.ads, a-cborse.ads (Cursor): Default-initialize all | |
1779 | components of record type. | |
1780 | * a-cborma.adb, a-cborse.adb (Move): Clear Source following assignmentw | |
1781 | to Target. | |
1782 | ||
a6dd3a54 ES |
1783 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> |
1784 | ||
1785 | * a-cbhama.adb, a-cbhama.ads, a-cborma.adb, a-cborma.ads, a-cobove.adb, | |
1786 | a-cobove.ads, a-coorma.adb, a-coorma.ads: Add iterator machinery to | |
1787 | container packages. | |
1788 | ||
c54796e0 AC |
1789 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1790 | ||
1791 | * sem_ch3.adb, sem_util.adb, gnat1drv.adb, s-parint.ads: Minor | |
1792 | reformatting. | |
1793 | ||
1794 | 2011-08-29 Matthew Heaney <heaney@adacore.com> | |
1795 | ||
1796 | * a-cbhama.ads, a-cbhase.ads (Cursor): Default-initialize all | |
1797 | components of record type. | |
1798 | ||
1799 | 2011-08-29 Bob Duff <duff@adacore.com> | |
1800 | ||
1801 | * s-tassta.adb (Task_Wrapper): Handle and ignore exceptions propagated | |
1802 | by the termination handler. | |
1803 | ||
9fd9d2be AC |
1804 | 2011-08-29 Yannick Moy <moy@adacore.com> |
1805 | ||
1806 | * sem_ch3.adb (Array_Type_Declaration): Create declarations for Itypes | |
1807 | created in Alfa mode, instead of inserting artificial declarations of | |
1808 | non-Itypes in the tree. | |
1809 | * sem_util.adb, sem_util.ads (Itype_Has_Declaration): New function to | |
1810 | know if an Itype has a corresponding declaration, as defined in | |
1811 | itypes.ads. | |
1812 | ||
1813 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
1814 | ||
1815 | * gnat1drv.adb: Minor rewrite. | |
1816 | ||
1817 | 2011-08-29 Bob Duff <duff@adacore.com> | |
1818 | ||
1819 | * s-tasuti.adb (Make_Passive): Work around race condition in | |
1820 | Make_Independent, which can cause Wait_Count to be zero. So instead of | |
1821 | asserting that Wait_Count > 0, and then decrementing it, decrement it | |
1822 | only if Wait_Count > 0. | |
1823 | * s-taskin.ads (Wait_Count, Alive_Count, Awake_Count): All of these | |
1824 | should be nonnegative, so declare them Natural instead of Integer. | |
1825 | ||
833eaa8a AC |
1826 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1827 | ||
1828 | * exp_ch5.adb, sem_ch3.adb, a-cihama.adb, a-cihama.ads, exp_ch7.adb, | |
1829 | sem_ch5.adb, a-ciorse.adb, a-ciorse.ads, sem_ch12.adb, a-cidlli.adb, | |
1830 | a-cidlli.ads, sem_util.adb, sem_res.adb, gnat1drv.adb, a-except.adb, | |
1831 | a-except.ads, a-except-2005.ads, sem_ch4.adb, exp_disp.adb, | |
1832 | exp_aggr.adb, sem_ch13.adb, par-ch3.adb: Minor reformatting. | |
1833 | ||
1834 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
1835 | ||
1836 | * s-auxdec-vms-alpha.adb: Add comments, remove some HT before labels. | |
1837 | ||
1838 | 2011-08-29 Vadim Godunko <godunko@adacore.com> | |
1839 | ||
1840 | * s-parint.ads: Minor comment clarification. | |
1841 | ||
1842 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
1843 | ||
1844 | * prj.adb (Initialize): Make sure that new reserved words after Ada 95 | |
1845 | may be used as identifiers. | |
1846 | ||
1847 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1848 | ||
1849 | * a-coinho.ads: Minor reformating. | |
1850 | ||
3a613a36 AC |
1851 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> |
1852 | ||
1853 | * exp_ch5.adb (Expand_Iterator_Loop): Handle properly a loop over a | |
1854 | container of a derived type. | |
1855 | ||
3a613a36 AC |
1856 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> |
1857 | ||
1858 | * a-cidlli.adb, a-cidlli.ads, a-cihama.adb, a-cihama.ads, | |
1859 | a-ciorse.adb, a-ciorse.ads: Add iterator machinery to containers. | |
1860 | ||
14848f57 AC |
1861 | 2011-08-29 Pascal Obry <obry@adacore.com> |
1862 | ||
1863 | * exp_disp.adb: Minor comment fix. | |
1864 | (Make_Disp_Asynchronous_Select_Body): Properly initialize out parameters | |
1865 | to avoid warnings when compiling with -Wall. | |
1866 | (Make_Disp_Conditional_Select_Body): Likewise. | |
1867 | (Make_Disp_Timed_Select_Body): Likewise. | |
1868 | ||
1869 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1870 | ||
1871 | * sem_ch12.adb (Analyze_Formal_Subprogram_Declaration): If default is | |
1872 | an entity name, generate reference for it. | |
1873 | ||
1874 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1875 | ||
1876 | * exp_ch5.adb (Expand_Iterator_Loop): Uniform handling of "X of S" | |
1877 | iterator form. | |
1878 | * sem_util.adb (Is_Iterator, Is_Reversible_Iterator): Yield True for | |
1879 | the class-wide type. | |
1880 | * sem_ch5.adb: Move some rewriting to the expander, where it belongs. | |
1881 | ||
1882 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1883 | ||
1884 | * sem_ch8.adb (Check_Constrained_Object): Do not create an actual | |
1885 | subtype for an object whose type is an unconstrained union. | |
1886 | ||
1887 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1888 | ||
1889 | * par-ch3.adb (P_Array_Type_Definiation, P_Component_Items): "aliased" | |
1890 | is allowed in a component definition, by AI95-406. | |
1891 | ||
1892 | 2011-08-29 Matthew Heaney <heaney@adacore.com> | |
1893 | ||
1894 | * a-chtgbo.adb (Generic_Iteration): Use correct overloading of Next. | |
1895 | ||
1896 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> | |
1897 | ||
1898 | * a-except-2005.adb: Alphabetize all routines. | |
1899 | (Triggered_By_Abort): New routine. | |
1900 | * a-except-2005.ads (Triggered_By_Abort): New routine. | |
1901 | * a-except.adb Alphabetize all routines. | |
1902 | (Triggered_By_Abort): New routine. | |
1903 | * a-except.ads (Triggered_By_Abort): New routine. | |
1904 | * exp_ch7.adb: Update all comments involving the detection of aborts in | |
1905 | finalization code. | |
1906 | (Build_Object_Declarations): Do not generate code to detect the | |
1907 | presence of an abort at the start of finalization code, use a runtime | |
1908 | routine istead. | |
1909 | * rtsfind.ads: Add RE_Triggered_By_Abort to tables RE_Id and | |
1910 | RE_Unit_Table. | |
1911 | * sem_res.adb (Resolve_Allocator): Emit a warning when attempting to | |
1912 | allocate a task on a subpool. | |
1913 | * s-stposu.adb: Add library-level flag Finalize_Address_Table_In_Use. | |
1914 | The flag disables all actions related to the maintenance of | |
1915 | Finalize_Address_Table when subpools are not in use. | |
1916 | (Allocate_Any_Controlled): Signal the machinery that subpools are in | |
1917 | use. | |
1918 | (Deallocate_Any_Controlled): Do not call Delete_Finalize_Address which | |
1919 | performs costly task locking when subpools are not in use. | |
1920 | ||
57a8057a AC |
1921 | 2011-08-29 Yannick Moy <moy@adacore.com> |
1922 | ||
1923 | * gnat1drv.adb (Adjust_Global_Switches): Restore expansion of tagged | |
1924 | types and dispatching calls in Alfa mode. | |
1925 | * lib-xref-alfa.adb (Collect_ALFA): Rewrite computation of | |
1926 | correspondance between body and spec scopes, to reuse utility functions | |
1927 | (Traverse_Declarations_Or_Statements): Protect access to body for stub | |
1928 | by testing the presence of the library unit for the body | |
1929 | * sem_ch6.adb (Set_Actual_Subtypes): take into account that in Alfa | |
1930 | mode the expansion of accept statements is skipped | |
1931 | * sem_util.adb, sem_util.ads (Unique_Entity): New function returning | |
1932 | the unique entity corresponding to the one returned by | |
1933 | Unique_Defining_Entity applied to the enclosing declaration of the | |
1934 | argument. | |
1935 | ||
1936 | 2011-08-29 Bob Duff <duff@adacore.com> | |
1937 | ||
1938 | * treepr.ads: Improve debugging facilities. pn(x) no longer crashes in | |
1939 | gdb when x is not a node (it can be a node list, name_id, etc). pp is | |
1940 | an alias for pn. ppp is an alias for pt. | |
1941 | ||
1942 | 2011-08-29 Javier Miranda <miranda@adacore.com> | |
1943 | ||
1944 | * exp_aggr.adb (Expand_Record_Aggregate): Use the top-level enclosing | |
1945 | aggregate to take a consistent decision on the need to convert into | |
1946 | assignments aggregates that initialize constant objects. | |
1947 | ||
1948 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> | |
1949 | ||
1950 | * exp_ch4.adb (Expand_Allocator_Expression): Add a call to | |
1951 | Build_Allocate_Deallocate_Proc in order to handle allocation of | |
1952 | non-controlled objects on subpools. | |
1953 | * impunit.adb: Remove s-finmas and s-spsufi since they were never meant | |
1954 | to be end-user visible. | |
1955 | * s-finmas.adb: Add with and use clause for System.HTable. | |
1956 | Add an instantiation of Simple_HTable which provides a mapping between | |
1957 | the address of a controlled object and the corresponding | |
1958 | Finalize_Address used to clean up the object. The table is used when a | |
1959 | master is operating in heterogeneous mode. | |
1960 | (Attach): Explain why the input node is not verified on being already | |
1961 | attached. | |
1962 | (Delete_Finalize_Address): New routine. | |
1963 | (Detach): Add pragma Assert which ensures that a node is already | |
1964 | attached. | |
1965 | (Finalize): Add local variable Cleanup. Rewrite the iteration scheme | |
1966 | since nodes are no longer removed on traversal. Explain why node | |
1967 | detachment is undesirable in this case. | |
1968 | (Get_Finalize_Address): New routine. | |
1969 | (Hash): New routine. | |
1970 | (Is_Empty_List): Removed. | |
1971 | (pm): Renamed to Print_Master. Add output for discriminant | |
1972 | Is_Homogeneous. | |
1973 | Comment reformatting. | |
1974 | (Set_Finalize_Address (Address, Finalize_Address_Ptr)): New routine. | |
1975 | * s-finmas.ads: Various comments additions / improvements. | |
1976 | Type Finalization_Master has a discriminant which determines the mode of | |
1977 | operation. | |
1978 | (Delete_Finalize_Address): New routine. | |
1979 | (Get_Finalize_Address): New routine. | |
1980 | (pm): Renamed to Print_Master. | |
1981 | (Set_Finalize_Address (Address, Finalize_Address_Ptr)): New routine. | |
1982 | * s-stposu.adb: Add with clause for System.Address_Image; Add with and | |
1983 | use clause for System.IO. | |
1984 | (Allocate_Any_Controlled): Add machinery to set TSS primitive | |
1985 | Finalize_Address depending on the mode of allocation and the mode of | |
1986 | the master. | |
1987 | (Deallocate_Any_Controlled): Remove the relation pair object - | |
1988 | Finalize_Address regardless of the master mode. Add comment explaining | |
1989 | the reason. | |
1990 | (Detach): Ensure that fields Prev and Next are null after detachment. | |
1991 | (Finalize_Pool): Remove local variable Next_Ptr. Rewrite the iteration | |
1992 | scheme to check whether the list of subpools is empty. There is no | |
1993 | longer need to store the next subpool or advance the current pointer. | |
1994 | (Is_Empty_List): New routine. | |
1995 | (Print_Pool): New routine. | |
1996 | (Print_Subpool): New routine. | |
1997 | * s-stposu.ads: Various comments additions / improvements. | |
1998 | Field Master of type Root_Subpool is now a heterogeneous collection. | |
1999 | (Print_Pool): New routine. | |
2000 | (Print_Subpool): New routine. | |
2001 | ||
2002 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
2003 | ||
2004 | * exp_ch5.adb (Expand_N_Iterator_Loop): Implement Ada2012 loop iterator | |
2005 | forms, using aspects of container types. | |
2006 | * sem_ch3.adb (Find_Type_Name): Preserve Has_Delayed_Aspects and | |
2007 | Has_Implicit_Dereference flags, that may be set on the partial view. | |
2008 | * sem_ch4.adb (Process_Overloaded_Indexed_Component): Prefix may be a | |
2009 | container type with an indexing aspect. | |
2010 | (Analyze_Quantified_Expression): Analyze construct with expansion | |
2011 | disabled, because it will be rewritten as a loop during expansion. | |
2012 | (Try_Container_Indexing): The prefix itself may be a container type | |
2013 | with an indexing aspect, as with a vector of vectors. | |
2014 | * sem_ch5.adb (Analyze_Iteration_Scheme): In a generic context, analyze | |
2015 | the original doamin of iteration, for name capture. | |
2016 | (Analyze_Iterator_Specification): If the domain is an expression that | |
2017 | needs finalization, create a separate declaration for it. | |
2018 | For an iterator with "of" retrieve default iterator info from aspect of | |
2019 | container type. For "in" iterator, retrieve type of Iterate function. | |
2020 | * sem_ch13.adb (Check_Iterator_Function): Fix typo. | |
2021 | (Check_Aspect_At_End_Of_Declaration): Make type unfrozen before | |
2022 | analysis, to prevent spurious errors about late attributes. | |
2023 | * sprint.adb: Handle quantified expression with either loop or iterator | |
2024 | specification. | |
2025 | * a-convec.ads, a-convec.adb: Iterate function returns a reversible | |
2026 | iterator. | |
2027 | ||
ddf67a1d AC |
2028 | 2011-08-29 Vincent Celier <celier@adacore.com> |
2029 | ||
2030 | * make.adb (Scan_Make_Arg): Take any option as is in packages Compiler, | |
2031 | Binder or Linker of the main project file. | |
2032 | ||
2033 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
2034 | ||
2035 | * inline.adb (Add_Scopes_To_Clean): Exclude any entity within a generic | |
2036 | unit. | |
2037 | ||
2038 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
2039 | ||
2040 | * exp_ch9.adb: Partial revert of previous change for Alfa mode | |
2041 | ||
2042 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
2043 | ||
2044 | * exp_ch11.adb: Minor expansion of comment. | |
2045 | ||
2046 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
2047 | ||
2048 | * lib-xref-alfa.adb (Add_ALFA_Scope): Treat generic entities. | |
2049 | ||
2050 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
2051 | ||
2052 | * sem_res.adb (Resolve_Arithmetic_Op): If the node has a universal | |
2053 | interpretation, set the type before resolving the operands, because | |
2054 | legality checks on an exponention operand need to know the type of the | |
2055 | context. | |
2056 | ||
2057 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
2058 | ||
2059 | * sem_ch12.adb (Analyze_Package_Instantiation): Do not set delayed | |
2060 | cleanups on a master if the instance is within a generic unit. | |
2061 | Complement to the corresponding fix to inline.adb for K520-030. | |
2062 | ||
2063 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
2064 | ||
2065 | * exp_ch7.adb (Build_Raise_Statement): Raise PE instead of the current | |
2066 | occurrence. | |
2067 | * exp_intr.adb: Minor comment fix. | |
2068 | ||
2069 | 2011-08-29 Bob Duff <duff@adacore.com> | |
2070 | ||
2071 | * sem_ch13.adb (Analyze_Aspect_Specifications): Fix cases where | |
2072 | Delay_Required was used as an uninitialized variable. | |
2073 | ||
690943fc RD |
2074 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
2075 | ||
2076 | * a-cdlili.adb, a-cdlili.ads, a-coinve.adb, a-coinve.ads, | |
2077 | sem_util.adb, sem_util.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, | |
2078 | a-coorse.ads, aspects.ads, sem_ch8.adb: Minor reformatting. | |
2079 | ||
9f0ee988 TQ |
2080 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
2081 | ||
2082 | * system-freebsd-x86_64.ads (Backend_Overflow_Checks): Set true True. | |
2083 | Remove unused variables. | |
2084 | ||
3e24afaa AC |
2085 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> |
2086 | ||
2087 | * sem_res.adb: Remove Build_Explicit_Dereference. | |
2088 | * sem_util.adb, sem_util.ads (Build_Explicit_Dereference): Moved here | |
2089 | from sem_res.adb, used in analysis of additional constructs. | |
2090 | (Is_Iterator, Is_Reversible_Iterator): New predicates for Ada2012 | |
2091 | expansion of iterators. | |
2092 | (Is_Object_Reference): Recognize variables rewritten as explicit | |
2093 | dereferences in Ada2012. | |
2094 | * snames.ads-tmpl: Add Has_Element, Forward_Iterator, | |
2095 | Reversible_Iterator names, for expansion of Ada2012 iterators. | |
2096 | * aspects.ads, aspects.adb (Find_Aspect): Utility. | |
2097 | * a-cdlili.ads, a-cdlili.adb: Add new iterator machinery to doubly | |
2098 | linked list container. | |
2099 | * a-coinve.ads, a-coinve.adb: Ditto for indefinite vector containers. | |
2100 | * a-coorse.ads, a-coorse.adb: Ditto for ordered sets. | |
2101 | ||
2102 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
2103 | ||
2104 | * a-cohama.adb, a-cohama.ads: Add iterator primitives to hashed map | |
2105 | containers. | |
2106 | ||
2107 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
2108 | ||
2109 | * make.adb (Gnatmake): Get the maximum number of simultaneous | |
2110 | compilation processes after the Builder switches has been scanned, as | |
2111 | there may include -jnn. | |
2112 | ||
2113 | 2011-08-29 Matthew Heaney <heaney@adacore.com> | |
2114 | ||
2115 | * a-chtgbo.adb (Generic_Equal): Use correct overloading of Next. | |
2116 | ||
2117 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
2118 | ||
2119 | * gnatcmd.adb (GNATCmd): On OpenVMS, truncate the length of | |
2120 | GNAT_DRIVER_COMMAND_LINE to 255. | |
2121 | ||
2122 | 2011-08-29 Pascal Obry <obry@adacore.com> | |
2123 | ||
2124 | * freeze.adb, sem_ch8.adb, a-convec.adb, a-convec.ads: Minor | |
2125 | reformatting and style fix (class attribute casing). | |
2126 | ||
2127 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
2128 | ||
2129 | * exp_ch11.adb: Yet another case where expansion should be common | |
2130 | between CodePeer and Alfa. | |
2131 | ||
2132 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
2133 | ||
2134 | * exp_ch9.adb: Partial revert of previous change for Alfa mode. | |
2135 | ||
2136 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
2137 | ||
2138 | * sem_ch6.adb (Matches_Limited_With_View): The limited views of an | |
2139 | incomplete type and its completion match. | |
2140 | ||
3ddd922e AC |
2141 | 2011-08-29 Yannick Moy <moy@adacore.com> |
2142 | ||
2143 | * exp_ch13.adb: Adjust previous change. | |
2144 | ||
2145 | 2011-08-29 Robert Dewar <dewar@adacore.com> | |
2146 | ||
2147 | * sem_prag.adb, prj.adb, sem_util.adb, sem_res.adb, gnat1drv.adb, | |
2148 | exp_ch4.adb, sem_ch8.adb: Minor code reorganization | |
2149 | Minor reformatting. | |
2150 | ||
444acbdd AC |
2151 | 2011-08-29 Emmanuel Briot <briot@adacore.com> |
2152 | ||
2153 | * make.adb, prj.adb, prj.ads (Compute_All_Imported_Projects): Also | |
2154 | initialize aggregated projects. | |
2155 | ||
2156 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
2157 | ||
2158 | * sem_ch8.adb (Find_Renamed_Entity): Within an instance, use scope | |
2159 | depth of candidates to resolve a potentially spurious ambiguity between | |
2160 | two visible subprograms. | |
2161 | ||
e0296583 AC |
2162 | 2011-08-29 Yannick Moy <moy@adacore.com> |
2163 | ||
2164 | * sem_prag.adb (Analyze_Pragma): Allow Test_Case pragma without | |
2165 | Requires/Ensures. | |
2166 | * sem_util.adb (Get_Ensures_From_Test_Case_Pragma, | |
2167 | Get_Requires_From_Test_Case_Pragma): Allow Test_Case pragma without | |
2168 | Requires/Ensures. | |
2169 | ||
2170 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> | |
2171 | ||
2172 | * gnat1drv.adb (Adjust_Global_Switches): Improve previous change. | |
2173 | Add comment. | |
2174 | ||
2175 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
2176 | ||
2177 | * sem_res.adb: Minor reformatting. | |
2178 | ||
69794413 JK |
2179 | 2011-08-29 Johannes Kanig <kanig@adacore.com> |
2180 | ||
2181 | * exp_ch4.adb (Expand_Quantified_Expression): Do not expand in ALFA | |
2182 | mode. | |
2183 | * gnat1drv.adb (Adjust_Global_Switches): Set | |
2184 | Use_Expressions_With_Actions to False in ALFA mode. | |
2185 | * sem_res.adb (Resolve_Quantified_Expression): Simpler treatment in | |
2186 | ALFA mode. | |
2187 | ||
59e6b23c AC |
2188 | 2011-08-29 Yannick Moy <moy@adacore.com> |
2189 | ||
2190 | * exp_ch13.adb (Expand_N_Freeze_Entity): Do nothing in Alfa mode. | |
2191 | * exp_ch9.adb: Do not expand tasking constructs in Alfa mode. | |
2192 | * gnat1drv.adb (Adjust_Global_Switches): Suppress the expansion of | |
2193 | tagged types and dispatching calls in Alfa mode. | |
2194 | ||
2195 | 2011-08-29 Javier Miranda <miranda@adacore.com> | |
2196 | ||
2197 | * sem_ch3.adb (Process_Discriminants): Add missing check to ensure that | |
2198 | we do not report an error on an Empty node. | |
2199 | ||
2200 | 2011-08-29 Geert Bosch <bosch@adacore.com> | |
2201 | ||
2202 | * Makefile.rtl (GNATRTL_NONTASKING_OBJECTS): Add a-nllrar.o, | |
2203 | a-nlrear.o and a-nurear.o. | |
2204 | ||
2205 | 2011-08-29 Robert Dewar <dewar@adacore.com> | |
2206 | ||
2207 | * freeze.adb: Minor code reorganization. | |
2208 | Minor reformatting. | |
2209 | * sem_util.adb, errout.adb, exp_ch11.adb, a-ngrear.adb, s-gearop.adb, | |
2210 | sem_ch6.adb: Minor reformatting | |
2211 | ||
2212 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
2213 | ||
2214 | * s-except.ads, s-except.adb: Provide dummy body. | |
2215 | ||
2216 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
2217 | ||
2218 | * sem_warn.adb (Within_Postcondition): Take into account the case of | |
2219 | an Ensures component in a Test_Case. | |
2220 | ||
4d792549 AC |
2221 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
2222 | ||
2223 | * s-excdeb.ads, s-excdeb.adb: New files, created from s-except. | |
2224 | * rtsfind.ads (RTU_Id): Replaces System_Exceptions by | |
2225 | System_Exceptions_Debug | |
2226 | (RE_Unit_Table): Search RE_Local_Raise in System_Exceptions_Debug | |
2227 | * a-except.adb: With and use System.Exceptions_Debug instead of | |
2228 | System.Exceptions. | |
2229 | * a-except-2005.adb: Likewise. | |
2230 | * s-assert.adb: Likewise. | |
2231 | * s-except.adb, s-except.ads: Move debugging hooks to s-excdeb. | |
2232 | * Makefile.rtl: Add s-excdeb. Adjust compilation rule. | |
2233 | * gcc-interfaces/Makefile.in, gcc-interface/Make-lang.in: Add | |
2234 | s-excdeb. Update dependencies. | |
2235 | (GNATRTL_LINEARALGEBRA_OBJS): Remove a-nlrear.o a-nurear.o a-nllrar.o | |
2236 | as these no longer need external libraries. | |
2237 | ||
2238 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
2239 | ||
2240 | * sem_res.adb (Resolve_Op_Expon): Additional check to reject an | |
2241 | exponentiation operator on universal values in a context that requires | |
2242 | a fixed-point type. | |
2243 | ||
2244 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
2245 | ||
2246 | * raise-gcc.c (personnality_routine): Fix thinko. Set Ada occurrence | |
2247 | before calling notify_handled_exception. | |
2248 | * a-exextr.adb: Fix comment. | |
2249 | ||
b254da66 AC |
2250 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
2251 | ||
2252 | * exp_ch4.adb (Expand_Allocator_Expression): Add code to set attribute | |
2253 | Finalize_Address of the access type's finalization master. | |
2254 | (Expand_N_Allocator): Add code to set attribute Finalize_Address of the | |
2255 | access type's finalization master. Add a guard to prevent | |
2256 | Associated_Storage_Pool from being set on .NET/JVM. | |
2257 | * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Add code to set | |
2258 | attribute Finalize_Address of the access type's finalization master. | |
2259 | * exp_ch7.adb (Make_Finalize_Address_Call): New routine. | |
2260 | * exp_ch7.ads (Make_Finalize_Address_Call): New routine. | |
2261 | * rtsfind.ads: Add RE_Set_Finalize_Address to tables RE_Id and | |
2262 | RE_Unit_Table. | |
2263 | * s-finmas.adb: Add with clause for System.Address_Image. Add with and | |
2264 | use clause for System.IO | |
2265 | (Detach): Relax the assertion, to be reinstated later. | |
2266 | (Finalize): Rewrite the iteration loop to avoid pointer comparison. | |
2267 | Relax the assertion on Finalize_Address, to be reinstated later. | |
2268 | (Is_Empty_List): New routine. | |
2269 | (pm): New debug routine. | |
2270 | (Set_Finalize_Address): New routine. | |
2271 | * s-finmas.ads (pm): New debug routine. | |
2272 | (Set_Finalize_Address): New routine. | |
2273 | * s-stposu.adb (Allocate_Any_Controlled): Code reformatting. | |
2274 | ||
2275 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
2276 | ||
2277 | * a-exexpr-gcc.adb (GCC_Exception_Access, GNAT_GCC_Exception_Access): | |
2278 | Remove convention C. | |
2279 | ||
2280 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
2281 | ||
2282 | * s-taprop-vms.adb (Get_Exc_Stack_Addr): Remove. | |
2283 | (Initialize_TCB): Remove Exc_Stack_Ptr initialization. | |
2284 | (Finalize_TCB): Remove its finalization. | |
2285 | (Initialize): Remove assignment of GET_Exc_Stack_Addr | |
2286 | * s-soflin.adb (NT_Exc_Stack): Remove | |
2287 | (Get_Exc_Stack_Addr_NT): Likewise. | |
2288 | (Get_Exc_Stack_Addr_Soft): Likewise. | |
2289 | * s-soflin.ads (Get_Exc_Stack_Addr_NT): Remove. | |
2290 | (Get_Exc_Stack_Addr): Likewise. | |
2291 | (Get_Exc_Stack_Addr_Soft): Likewise | |
2292 | * s-taspri-vms.ads (Exc_Stack_T): Remove. | |
2293 | (Exc_Stack_Ptr_T): Likewise. | |
2294 | (Private_Data): Remove Exc_Stack_Ptr component. | |
2295 | ||
2296 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
2297 | ||
2298 | * raise-gcc.c (get_ip_from_context): New function. Factorize code. | |
2299 | ||
2300 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
2301 | ||
2302 | * gnat_ugn.texi: Fix aix and x86-solaris info for run-time. | |
2303 | ||
2304 | 2011-08-29 Geert Bosch <bosch@adacore.com> | |
2305 | ||
2306 | * s-gearop.ads (Back_Substitute, Diagonal, Forward_Eliminate, | |
2307 | L2_Norm, Swap_Column): New generic subprograms | |
2308 | * s-gearop.adb (Back_Substitute, Diagonal, Forward_Eliminate, | |
2309 | L2_Norm, Swap_Column): Implement new subprograms in order to | |
2310 | eliminate dependency on BLAS and LAPACK libraries in | |
2311 | Ada.Numerics.Generic_Real_Arrays and eventually also the complex | |
2312 | version. Forward_Eliminate/Back_Substitute can be used to put a | |
2313 | matrix in row echelon or reduced row echelon form using partial | |
2314 | pivoting. | |
2315 | * a-ngrear.adb: (Back_Substitute, Diagonal, Forward_Eleminate, | |
2316 | Swap_Column): Instantiate from System.Generic_Array_Operations. | |
2317 | ("*", "abs"): Implement by instantiation from Generic_Array_Operations. | |
2318 | (Sqrt): Local function for simple computation of square root without | |
2319 | adding dependencies on Generic_Elementary_Functions. | |
2320 | (Swap): New subprogram to exchange floating point numbers. | |
2321 | (Inverse): Reimplement using Jordan-Gauss elimination. | |
2322 | (Jacobi): New procedure implementing Jacobi's method for computation | |
2323 | of eigensystems, based on Rutishauser's implementation. | |
2324 | (L2_Norm): Implement directly using the inner product. | |
2325 | (Sort_Eigensystem): Sort eigenvalue/eigenvector pairs in order of | |
2326 | decreasing eigenvalue as required by the Ada RM. | |
2327 | (Swap_Column): New helper procedure for Sort_Eigensystem. | |
2328 | Remove with of System.Generic_Real_BLAS and System.Generic_Real_LAPACK. | |
2329 | Add with of Ada.Containers.Generic_Anonymous_Array_Sort, for | |
2330 | Sort_Eigensystems. | |
2331 | ||
2332 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
2333 | ||
2334 | * put_scos.adb (Put_SCOs): Do not emit a newline for an empty | |
2335 | statements line. | |
2336 | ||
60370fb1 AC |
2337 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
2338 | ||
2339 | * s-finmas.adb (Finalize): Check Finalize_Address of the master rather | |
2340 | than the current node. | |
2341 | * s-finmas.ads: Move field Finalize_Address from type FM_Node to | |
2342 | Finalization_Master. The list headers have two fields instead of three. | |
2343 | This should fix alignment issue but subpool allocations are now | |
2344 | unusable. Alphabetize subprograms. | |
2345 | * s-stposu.adb (Allocate_Any_Controlled): Use the offset rather than | |
2346 | the size of the header when converting the beginning of the object to | |
2347 | a FM_Node. Set the master's Finalize_Address attribute if not already | |
2348 | set. | |
2349 | (Deallocate_Any_Controlled): Use the offset rather than the size of the | |
2350 | header when converting the beginning of the object to a FM_Node. | |
2351 | ||
2352 | 2011-08-29 Gary Dismukes <dismukes@adacore.com> | |
2353 | ||
2354 | * exp_ch11.adb (Expand_N_Raise_Statement): Don't suppress expansion of | |
2355 | reraise when compiling for CodePeer. | |
2356 | ||
2357 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> | |
2358 | ||
2359 | * a-iteint.ads, Makefile.rtl: Add missing compilation of a-iteint.ads, | |
2360 | now needed by a-convec.adb. Fix warning. | |
2361 | ||
2362 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> | |
2363 | ||
2364 | * exp_util.adb (Build_Allocate_Deallocate_Proc): Add a guard for the | |
2365 | processing of TSS routine Finalize_Address when compiling in | |
2366 | CodePeer_Mode. | |
2367 | ||
2368 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
2369 | ||
2370 | * a-strunb.ads, einfo.ads, g-comlin.ads, sem_ch6.adb, | |
2371 | sem_warn.adb: Minor reformatting. | |
2372 | ||
2373 | 2011-08-29 Emmanuel Briot <briot@adacore.com> | |
2374 | ||
2375 | * prj-conf.adb (Get_Config_Switches): Also collect the list of | |
2376 | languages from aggregated projects. | |
2377 | ||
2378 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
2379 | ||
2380 | * lib-xref-alfa.adb, lib-xref.ads (Traverse_Declarations_Or_Statements, | |
2381 | Traverse_Handled_Statement_Sequence, Traverse_Package_Body, | |
2382 | Traverse_Package_Declaration, Traverse_Subprogram_Body, | |
2383 | Traverse_Compilation_Unit): Add a parameter Inside_Stubs so that bodies | |
2384 | for stubs are traversed too when parameter is set | |
2385 | (Traverse_All_Compilation_Units): Traverse without going inside stubs | |
2386 | (Traverse_Declarations_Or_Statements): Do the special traversing for | |
2387 | stubs when required. | |
2388 | * sem_util.adb, sem_util.ads (Get_Body_From_Stub): New function to | |
2389 | return subprogram or package body from stub. | |
2390 | (Is_Subprogram_Stub_Without_Prior_Declaration): New function to detect | |
2391 | stubs without prior subprogram decl. | |
2392 | ||
2393 | 2011-08-29 Vasiliy Fofanov <fofanov@adacore.com> | |
2394 | ||
2395 | * gnat_ugn.texi: Fix typo. | |
2396 | ||
e9c9d122 HK |
2397 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
2398 | ||
2399 | * s-stposu.adb (Allocate_Any_Controlled): Reimplement the mechanism | |
2400 | which accounts for size vs alignment issues and calculates the size of | |
2401 | the list header. | |
2402 | (Deallocate_Any_Controlled): Ditto. | |
2403 | (Nearest_Multiple_Rounded_Up): New routine. | |
2404 | ||
25ebc085 AC |
2405 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
2406 | ||
2407 | * a-exstat.adb (String_To_EO): Do no set Cleanup_Flag. | |
2408 | * a-exexda.adb (Set_Exception_C_Msg): Ditto. | |
2409 | (Set_Exception_Msg): Ditto. | |
2410 | * a-exexpr-gcc.adb (Setup_Current_Excep): Ditto. Do not set | |
2411 | Private_Data. | |
2412 | * a-except.adb, a-except-2005.adb (Save_Occurrence_No_Private): Remove. | |
2413 | Use Save_Occurrence instead of Save_Occurrence_No_Private. | |
2414 | (Raise_With_Msg): Remove Cleanup_Flag. | |
2415 | * a-except.ads, a-except-2005.ads (Exception_Occurrence): Remove | |
2416 | Clean_Flag and Private_Data components. | |
2417 | ||
2418 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
2419 | ||
2420 | * freeze.adb (Freeze_Record_Type): Ignore packing in Alfa mode, like | |
2421 | in CodePeer mode. | |
2422 | * sem_ch3.adb (Signed_Integer_Type_Declaration): Correct the generation | |
2423 | of an explicitly declared type, so that the base types of the original | |
2424 | type and this generated type are the same, and a "type" (not a subtype | |
2425 | like previously). | |
2426 | * errout.adb (Special_Msg_Delete): Do not issue messages "Size too | |
2427 | small" in Alfa mode, like in CodePeer mode. | |
2428 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore rep | |
2429 | clauses in Alfa mode. | |
2430 | ||
2431 | 2011-08-29 Javier Miranda <miranda@adacore.com> | |
2432 | ||
2433 | * exp_ch6.ads, exp_ch6.adb (Is_Null_Procedure): Move the spec of this | |
2434 | function to the package spec. | |
2435 | * sem_ch6.adb (Find_Corresponding_Spec, New_Overloaded_Entity): For | |
2436 | internally generated bodies of null procedures locate the internally | |
2437 | generated spec enforcing mode conformance. | |
2438 | (Is_Interface_Conformant): Ensure that the controlling formal of the | |
2439 | primitives match. | |
2440 | ||
2441 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
2442 | ||
2443 | * sem_prag.adb (Analyze_Pragma, case Inline): In an instance, do not | |
2444 | reject the pragma if it appears to apply to a formal subprogram. | |
2445 | ||
2446 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
2447 | ||
2448 | * exp_ch4.adb (Expand_Allocator_Expression): Use consistent name for | |
2449 | inner expression, to prevent double evaluation. | |
2450 | ||
590549fb AC |
2451 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
2452 | ||
2453 | * a-exexpr.adb (Propagate_Exception): Remove all the parameters as | |
2454 | they were unused. | |
2455 | * a-exexpr-gcc.adb (Propagate_Exception): Ditto. | |
2456 | * a-except-2005.adb (Propagate_Exception): Adjust spec. | |
2457 | (Raise_Current_Excep): Adjust call. | |
2458 | (Raise_From_Signal_Handler): Call now simply call Raise_Current_Excep. | |
2459 | ||
2460 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
2461 | ||
2462 | * exp_disp.adb: Minor reformatting. | |
2463 | ||
62380e66 TG |
2464 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
2465 | ||
2466 | * a-exexpr.adb (Setup_Exception): Removed. | |
2467 | * a-exexpr-gcc.adb (Setup_Exception): Removed. | |
2468 | * a-except.adb (Exception_Propagation): Removed. | |
2469 | * a-except-2005.adb (Setup_Exception): Removed. | |
2470 | (Reraise): Remove call to Setup_Exception. | |
2471 | (Reraise_Occurrence): Ditto. | |
2472 | (Reraise_Occurrence_Always): Ditto. | |
2473 | (Reraise_Occurrence_No_Defer): Ditto. | |
2474 | (Transfer_Occurrence): Ditto. | |
2475 | * a-exexda.adb (Set_Exception_C_Msg): Remove call to Setup_Exception. | |
2476 | (Set_Exception_Msg): Ditto. | |
2477 | ||
c95aa61c AC |
2478 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
2479 | ||
2480 | * a-convec.adb, exp_disp.adb: Minor reformatting. | |
2481 | ||
2482 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
2483 | ||
2484 | * a-exexpr-gcc.adb (GNAT_GCC_Exception_Access): Set to convention C. | |
2485 | ||
624e1688 AC |
2486 | 2011-08-29 Gary Dismukes <dismukes@adacore.com> |
2487 | ||
2488 | * exp_ch3.adb (Build_Record_Init_Proc.Build_Init_Procedure): Set | |
2489 | Exception_Handlers to No_List instead of Empty_List in the case where | |
2490 | there are no handlers. | |
2491 | ||
2492 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
2493 | ||
2494 | * gcc-interface/gigi.h (enum standard_datatypes): Add | |
2495 | ADT_reraise_zcx_decl | |
2496 | (reraise_zcx_decl): New macro. | |
2497 | * gcc-interface/trans.c (gnu_incoming_exc_ptr): New variable. | |
2498 | (gigi): Set reraise_zcx_decl. | |
2499 | (Exception_Handler_to_gnu_zcx): Save and restore gnu_incoming_exc_ptr. | |
2500 | (gnat_to_gnu): Handle N_Raise_Statement. | |
2501 | ||
7134062a AC |
2502 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
2503 | ||
2504 | * sem_ch6.adb, exp_ch3.adb, s-stposu.adb, a-undesu.ads, | |
2505 | a-undesu.adb: Minor reformatting. | |
2506 | ||
2507 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
2508 | ||
2509 | * exp_disp.adb (Check_Premature_Freezing): When building a dispatch | |
2510 | table, accept an unfrozen untagged component if it is an actual for a | |
2511 | formal incomplete type. | |
2512 | * a-convec.ads, a-convec.adb: Instantiate Ada.Iterator_Interfaces to | |
2513 | provide new iterator forms over vectors. | |
2514 | Introduce type Iterator in package body to implement operations of | |
2515 | Reversible_Iterator interface. | |
2516 | * a-iteint.ads: Make package pure so it is usable with new container | |
2517 | packages, that are categorized Remote_Types. | |
2518 | ||
ca5af305 AC |
2519 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
2520 | ||
2521 | * a-exexpr-gcc.adb, a-synbar.adb, sem_ch13.adb: Minor reformatting. | |
2522 | ||
2523 | 2011-08-29 Bob Duff <duff@adacore.com> | |
2524 | ||
2525 | * sem_aggr.adb (Resolve_Aggr_Expr): Call this routine even in the case | |
2526 | of <>, because this is the routine that checks for dimensionality | |
2527 | errors (for example, for a two-dimensional array, (others => <>) should | |
2528 | be (others => (others => <>)). | |
2529 | ||
2530 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> | |
2531 | ||
2532 | * impunit.adb: Add new run-time units. | |
2533 | * freeze.adb, exp_ch7.ads, exp_ch7.adb, exp_util.ads, exp_util.adb, | |
2534 | s-stposu.ads, s-stposu.adb: Code clean up. | |
2535 | Handle protected class-wide or task class-wide types | |
2536 | Handle C/C++/CIL/Java types. | |
2537 | * s-spsufi.adb, s-spsufi.ads: New files. | |
2538 | ||
5accd7b6 AC |
2539 | 2011-08-29 Yannick Moy <moy@adacore.com> |
2540 | ||
2541 | * sem_ch13.adb (Analyze_Aspect_Specifications): Reject test-case on | |
2542 | library-level subprogram. | |
2543 | * sem_prag.adb (Check_Test_Case): Stricter rules for test-case | |
2544 | placement. | |
2545 | (Analyze_Pragma): Change name "Normal" for "Nominal" in test-case | |
2546 | component. | |
2547 | * snames.ads-tmpl: Change name "Normal" for "Nominal" in test-case | |
2548 | component. | |
2549 | * gnat_rm.texi: Update doc for Test_Case pragma. | |
2550 | ||
2551 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
2552 | ||
2553 | * a-exexpr-gcc.adb (Unwind_Exception): Remove default value, made it | |
2554 | convention C. | |
2555 | (GCC_Exception_Access): New type. | |
2556 | (Unwind_DeleteException): New imported procedure | |
2557 | (Foreign_Exception): Import it. | |
2558 | (GNAT_GCC_Exception): Simply have the occurrence inside. | |
2559 | (To_GCC_Exception): New function. | |
2560 | (To_GNAT_GCC_Exception): New function. | |
2561 | (GNAT_GCC_Exception_Cleanup): New procedure.. | |
2562 | (Propagate_GCC_Exception): New procedure. | |
2563 | (Reraise_GCC_Exception): New procedure. | |
2564 | (Setup_Current_Excep): New procedure. | |
2565 | (CleanupUnwind_Handler): Change type of UW_Exception parameter. | |
2566 | (Unwind_RaiseException): Ditto. | |
2567 | (Unwind_ForcedUnwind): Ditto. | |
2568 | (Remove): Removed. | |
2569 | (Begin_Handler): Change type of parameter. | |
2570 | (End_Handler): Ditto. Now delete the exception if still present. | |
2571 | (Setup_Key): Removed. | |
2572 | (Is_Setup_And_Not_Propagated): Removed. | |
2573 | (Set_Setup_And_Not_Propagated): Ditto. | |
2574 | (Clear_Setup_And_Not_Propagated): Ditto. | |
2575 | (Save_Occurrence_And_Private): Ditto. | |
2576 | (EID_For): Add 'not null' constraint on parameter. | |
2577 | (Setup_Exception): Does nothing. | |
2578 | (Propagate_Exception): Simplified. | |
2579 | * exp_ch11.adb (Expand_N_Raise_Statement): In back-end exception model, | |
2580 | re-raise is not expanded anymore. | |
2581 | * s-except.ads (Foreign_Exception): New exception - placeholder for | |
2582 | non Ada exceptions. | |
2583 | * raise-gcc.c (__gnat_setup_current_excep): Declare | |
2584 | (CXX_EXCEPTION_CLASS): Define (not yet used) | |
2585 | (GNAT_EXCEPTION_CLASS): Define. | |
2586 | (is_handled_by): Handle foreign exceptions. | |
2587 | (PERSONALITY_FUNCTION): Call __gnat_setup_current_excep. | |
2588 | ||
2589 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
2590 | ||
2591 | * a-synbar.adb (Synchronous_Barrier): Some additional clarification. | |
2592 | ||
2ef48385 AC |
2593 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
2594 | ||
2595 | * a-synbar-posix.adb: Minor reformatting. | |
2596 | ||
2597 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
2598 | ||
2599 | * a-exetim-posix.adb, a-exetim-mingw.adb, a-exetim-mingw.ads, | |
2600 | a-exetim-default.ads (Interrupt_Clocks_Supported, | |
2601 | Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these | |
2602 | definitions to be compliant with AI-0171. The target systems do not | |
2603 | support separate account for the execution time of interrupt handlers. | |
2604 | ||
2605 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
2606 | ||
2607 | * a-synbar.adb (Wait): Change the order of evaluation of the conditions | |
2608 | in the barrier to put first the easiest to evaluate (and the one which | |
2609 | will be True more often). More efficient. | |
2610 | ||
2611 | 2011-08-29 Eric Botcazou <ebotcazou@adacore.com> | |
2612 | ||
2613 | * s-atocou-x86.adb: Fix constraint in machine code insertion. | |
2614 | ||
2615 | 2011-08-29 Bob Duff <duff@adacore.com> | |
2616 | ||
2617 | * aspects.ads, aspects.adb: Add new aspects for various pragmas and | |
2618 | attributes that are now aspects, as specified by AI05-0229-1. | |
2619 | * sem_ch13.adb (Analyze_Aspect_Specifications, | |
2620 | Check_Aspect_At_Freeze_Point): Analyze the new aspects. Turn them into | |
2621 | pragmas or attribute references, as appropriate. | |
2622 | ||
0db16b1e AC |
2623 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
2624 | ||
2625 | * a-synbar.ads, a-synbar.adb, a-synbar-posix.adb, | |
2626 | a-synbar-posix.ads: Minor reformatting. | |
2627 | ||
2628 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
2629 | ||
2630 | * snames.ads-tmpl: Add name Force. | |
2631 | ||
978ffe02 AC |
2632 | 2011-08-29 Pascal Obry <obry@adacore.com> |
2633 | ||
2634 | * prj-nmsc.adb: Minor reformatting. | |
2635 | ||
2636 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
2637 | ||
2638 | * a-exetim.ads (Interrupt_Clocks_Supported, | |
2639 | Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these | |
2640 | definitions to be compliant with AI-0171. | |
2641 | ||
2642 | 2011-08-29 Robert Dewar <dewar@adacore.com> | |
2643 | ||
2644 | * a-ngelfu.adb: Add comments. | |
2645 | ||
718f39dc AC |
2646 | 2011-08-29 Geert Bosch <bosch@adacore.com> |
2647 | ||
2648 | * a-ngelfu.adb (Tan): Do not raise Constraint_Error if the argument is | |
2649 | the closest machine number to Pi / 2.0. | |
2650 | ||
2651 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
2652 | ||
2653 | * impunit.adb (Non_Imp_File_Names_12): Add a-synbar for new Ada 2012 | |
2654 | package Ada.Synchronous_Barriers. | |
2655 | * a-synbar.ads, a-synbar.adb, a-synbar-posix.ads, a-synbar-posix.adb: | |
2656 | Add new specs and bodies for Ada.Synchronous_Barriers. There is a | |
2657 | default implementation using protected objects and another one | |
2658 | a-synbar-posix using POSIX barriers as the underlying support. | |
2659 | * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for Linux (x86, | |
2660 | x86_64, ia64) and MIPS IRIX): Use the a-synbar-posix implementation of | |
2661 | Ada.Synchronous_Barriers which uses POSIX barriers (more efficient). | |
2662 | Clean up dependencies. | |
2663 | * Makefile.rtl (GNATRTL_TASKING_OBJS): Add a-synbar.o | |
2664 | ||
ee2e3f6b AC |
2665 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
2666 | ||
2667 | * sem_ch7.adb, make.adb, sem_res.adb, exp_intr.adb, | |
2668 | exp_dist.adb: Minor code reorganization. | |
2669 | Minor reformatting. | |
2670 | ||
2671 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
2672 | ||
2673 | * sem_cat.adb (Validate_RACW_Primitive): The return type of an RACW | |
2674 | primitive operation must support external streaming if it is not a | |
2675 | controlling access result. | |
2676 | ||
646e2823 AC |
2677 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
2678 | ||
2679 | * sinfo.ads, sem_ch7.adb: Minor reformatting. | |
2680 | ||
2681 | 2011-08-29 Bob Duff <duff@adacore.com> | |
2682 | ||
2683 | * sem_ch4.adb (Analyze_Allocator): Check No_Nested_Finalization | |
2684 | restriction on allocators, as required by AI05-0013-1. | |
2685 | * restrict.ads: Minor comment fix. | |
2686 | ||
5d59eef2 AC |
2687 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
2688 | ||
2689 | * a-exexpr.adb, a-except-2005.ads (Jmpbuf_Address): Move to a-exexpr.adb | |
2690 | (To_Jmpbuf_Address): Ditto | |
2691 | (builtin_longjmp): Ditto | |
2692 | ||
2693 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
2694 | ||
2695 | * sem_res.adb: Minor reformatting. | |
2696 | ||
2697 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
2698 | ||
2699 | * make.adb (Gnatmake): Move special processing for VM targets after the | |
2700 | call to Get_Target_Parameters. | |
2701 | ||
2702 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
2703 | ||
2704 | * sem_ch12.adb, par-ch12.adb: Minor reformatting. | |
2705 | ||
949a18cc AC |
2706 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
2707 | ||
2708 | * sem_res.adb (Resolve_Allocator): Implement Ada2012-B052. Detect cases | |
2709 | where an anonymous access discriminant of a limited designated type | |
2710 | appears in a non-immutably limited discriminated type and issue an | |
2711 | error message. Add local variable Desig_T and replace all occurrences | |
2712 | of Designated_Type. | |
2713 | ||
2714 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
2715 | ||
2716 | * a-rttiev.adb (Set_Handler): Update comment to indicate that our | |
2717 | implementation is compliant to RM D.15(15/2) after the modification | |
2718 | imposed by AI05-0094-1 (binding interpretation). | |
2719 | ||
cb25faf8 AC |
2720 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
2721 | ||
2722 | * exp_ch9.adb, s-tasren.adb, exp_sel.adb, exp_sel.ads, exp_ch11.adb, | |
2723 | s-interr-hwint.adb, s-tpobop.adb, sem_ch13.adb: Minor reformatting. | |
2724 | ||
2725 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
2726 | ||
2727 | * par-endh.adb (Check_End): For an END where it is mandatory to repeat | |
2728 | the scope name, do not report a missing label as a style violation (it | |
2729 | will be diagnosed as an illegality). | |
2730 | * exp_dist.adb (Add_Params_For_Variant_Components): Fix handling of | |
2731 | variant records: Get_Enum_Lit_From_Pos already returns a usage | |
2732 | occurrence of the literal, no need to use New_Occurrence_Of. Set Etype | |
2733 | on Expr in Integer_Literal case so that it can be used by | |
2734 | Build_To_Any_Call. | |
2735 | ||
1d10f669 AC |
2736 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
2737 | ||
2738 | * exp_sel.ads (Build_Abort_BLock_Handler): New function spec. | |
2739 | Adjust comment. | |
2740 | * exp_sel.adb (Build_Abort_Block): Use Build_Abort_Block_Handler. | |
2741 | (Build_Abort_Block_Handler): New function to build an Abort_Signal | |
2742 | exception handler. | |
2743 | * exp_ch9.adb (Expand_N_Asynchronous_Select): Call | |
2744 | Build_Abort_Block_Handler to build the exception handler. Do not | |
2745 | undefer aborts for the Abort_Signal exception handler if back-end | |
2746 | exception mechanism. | |
2747 | * exp_ch11.adb (Expand_Exception_Handlers): Do not undefer aborts if | |
2748 | back_end exceptions for all others and abort_signal. | |
2749 | * s-except.ads (ZCX_By_Default): New constant. | |
2750 | * a-except-2005.adb (Raise_Exception): Do not defer abort if ZCX. | |
2751 | (Raise_Exception_Always): Ditto. | |
2752 | (Raise_From_Signal_Handler): Ditto. | |
2753 | (Raise_With_Location_And_Msg): Ditto. | |
2754 | (Raise_With_Msg): Ditto. | |
2755 | (Reraise): Ditto. | |
2756 | (Reraise_Occurence): Ditto. | |
2757 | (Reraise_Occurrence_Always): Ditto. | |
2758 | * s-tasren.adb (Exceptional_Complete_Rendezvous): Defer aborts if ZCX. | |
2759 | * s-tpobop.adb: (Exceptional_Complete_Body): Undefer abort if ZCX. | |
1d10f669 AC |
2760 | |
2761 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
2762 | ||
2763 | * sem_util.ads (Get_Enum_Lit_From_Pos): Clarify documentation. | |
2764 | ||
d986066d AC |
2765 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
2766 | ||
2767 | * snames.adb-tmpl, sem_ch13.adb: Minor reformatting | |
2768 | Minor code reorganization. | |
2769 | ||
2770 | 2011-08-29 Bob Duff <duff@adacore.com> | |
2771 | ||
2772 | * usage.adb (-gnatwy): Fix documentation: this switch applies to Ada | |
2773 | 2012, not just Ada 2005. | |
2774 | ||
2775 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
2776 | ||
2777 | * gnat_ugn.texi: Indicate that when the compiler is called by gnatmake | |
2778 | with a project file or with gprbuid, if -gnatep= is specified, the | |
2779 | builder may need to be invoked with -x. | |
2780 | ||
2781 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
2782 | ||
2783 | * a-exexpr-gcc.adb: Minor comment fix. | |
2784 | ||
ff4f0ed0 AC |
2785 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
2786 | ||
2787 | * sem_ch8.adb: Minor reformatting. | |
2788 | ||
2789 | 2011-08-29 Bob Duff <duff@adacore.com> | |
2790 | ||
2791 | * par-ch2.adb (P_Identifier): Warn that "some" is reserved in Ada 2012. | |
2792 | * par-ch4.adb (P_Quantified_Expression): Remove unnecessary code for | |
2793 | treating "some" as unreserved in earlier Ada versions. This is now | |
2794 | handled in Snames.Is_Keyword_Name. Parse "for some" using Tok_Some, | |
2795 | rather than Name_Some, since Tok_Some is now recognized as reserved. | |
2796 | * scans.adb (Initialize_Ada_Keywords): Handle Tok_Some like any other | |
2797 | reserved word. | |
2798 | * scans.ads: Minor comment fixes. | |
2799 | * snames.adb-tmpl (Is_Keyword_Name): Handle Ada 2012 reserved words as | |
2800 | for other language versions. | |
2801 | * scn.adb (Scan_Reserved_Identifier): Remove unnecessary code for | |
2802 | treating "some" as unreserved in earlier Ada versions. This is now | |
2803 | handled in Snames.Is_Keyword_Name. | |
2804 | * par-ch3.adb (P_Defining_Identifier): Warn that "some" is reserved in | |
2805 | Ada 2012. | |
2806 | (P_Subtype_Mark_Resync): Remove unnecessary code for treating "some" as | |
2807 | unreserved in earlier Ada versions. This is now handled in | |
2808 | Snames.Is_Keyword_Name. | |
2809 | * snames.ads-tmpl (Ada_2012_Reserved_Words): Handle Ada 2012 reserved | |
2810 | words as for other language versions. | |
2811 | * gnat_ugn.texi (-gnatwy): Fix documentation: this switch applies to | |
2812 | Ada 2012, not just Ada 2005. | |
2813 | ||
d941cee6 AC |
2814 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> |
2815 | ||
2816 | * sem_ch13.adb: Additional semantic checks for aspects involved in | |
2817 | iterators. | |
2818 | ||
2819 | 2011-08-29 Matthew Heaney <heaney@adacore.com> | |
2820 | ||
2821 | * a-comutr.ads, a-comutr.adb, a-cimutr.ads, a-cimutr.adb, | |
2822 | a-cbmutr.ads, a-cbmutr.adb (Find_In_Subtree): Remove superfluous | |
2823 | Container parameter. | |
2824 | (Ancestor_Find): ditto. | |
2825 | ||
b970af39 TQ |
2826 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
2827 | ||
2828 | * par-endh.adb: Minor reformatting. | |
d941cee6 | 2829 | |
92db5dee AC |
2830 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
2831 | ||
2832 | * a-exexpr-gcc.adb (Unwind_Action) Rewrite as an integer with constants. | |
2833 | (GNAT_GCC_Exception): Remove N_Cleanups_To_Trigger component. | |
2834 | (Adjust_N_CLeanups_For): Remove. | |
2835 | (CleanupUnwind_Handler): Call Unhandled_Exception_Terminate when end of | |
2836 | stack is reached. | |
2837 | (Propgate_Exception): Adjust. | |
2838 | * raise-gcc.c: Add a few static/const. | |
2839 | (Adjust_N_Cleanups_For): Remove declaration. | |
2840 | (PERSONALITY_FUNCTION): Remove code dealing with N_Cleanups_To_Trigger. | |
2841 | ||
2842 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
2843 | ||
2844 | * sem_ch8.adb: Use type of function return when rewriting as object | |
2845 | declaration. | |
2846 | ||
1378bf10 AC |
2847 | 2011-08-29 Gary Dismukes <dismukes@adacore.com> |
2848 | ||
2849 | * sem_type.adb: Minor reformatting. | |
2850 | ||
2851 | 2011-08-29 Robert Dewar <dewar@adacore.com> | |
2852 | ||
2853 | * makeutl.adb: Minor reformatting. | |
2854 | ||
2855 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
2856 | ||
2857 | * sem_ch8.adb (Analyze_Object_Renaming): If the renamed object is a | |
2858 | function call of a limited type, the expansion of the renaming is | |
2859 | complicated by the presence of various temporaries and subtypes that | |
2860 | capture constraints of the renamed object. | |
2861 | Rewrite node as an object declaration, whose expansion is simpler. | |
2862 | Given that the object is limited there is no copy involved and no | |
2863 | performance hit. | |
2864 | ||
164e06c6 AC |
2865 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
2866 | ||
2867 | * exp_ch5.adb, sinfo.ads, make.adb, s-pooglo.adb, sem_ch12.adb, | |
2868 | freeze.adb, sem_ch6.adb, par-ch12.adb: Minor reformatting. | |
2869 | ||
2870 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
2871 | ||
2872 | * system-darwin-x86.ads, system-linux-s390x.ads, system-linux-alpha.ads, | |
2873 | system-tru64.ads, system-irix-n32.ads, system-vxworks-arm.ads, | |
2874 | system-linux-hppa.ads, system-linux-s390.ads, | |
2875 | system-solaris-sparcv9.ads, system-mingw.ads, system-linux-ia64.ads, | |
2876 | system-vms_64.ads, system-vxworks-sparcv9.ads, system-linux-ppc.ads, | |
2877 | system-aix64.ads, system-lynxos-ppc.ads, system-linux-sh4.ads, | |
2878 | system-solaris-x86.ads, system-linux-x86_64.ads, system-linux-x86.ads, | |
2879 | system-vxworks-ppc.ads, system-hpux.ads, system-darwin-ppc.ads, | |
2880 | system-solaris-sparc.ads, system-lynxos-x86.ads, | |
2881 | system-vxworks-m68k.ads, system-hpux-ia64.ads, system-irix-o32.ads, | |
2882 | system-solaris-x86_64.ads, system-mingw-x86_64.ads, | |
2883 | system-vxworks-mips.ads, system-linux-sparc.ads, system-vms-ia64.ads, | |
2884 | system-freebsd-x86.ads, system-aix.ads, system-darwin-x86_64.ads, | |
7d266442 | 2885 | system-vxworks-x86.ads: Remove GCC_ZCX_Support. |
164e06c6 AC |
2886 | * s-taprop-posix.adb, s-taprop-irix.adb, s-taprop-vxworks.adb, |
2887 | s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb: Ditto. | |
2888 | * opt.ads: Adjust comment. | |
2889 | * targparm.ads, targparm.adb: Remove GCC_ZCX_Support_On_Target. | |
2890 | * gnat1drv.adb: Do not check for GCC_ZCX_Support_On_Target. | |
2891 | * system.ads: Move GCC_ZCX_Support to obsolete entries. | |
2892 | ||
2893 | 2011-08-29 Emmanuel Briot <briot@adacore.com> | |
2894 | ||
2895 | * makeutl.adb (Do_Complete): Resolve symbolic links when a relative | |
2896 | file name is specified on the gnatmake or gprbuild command line, and | |
2897 | before we search for that file in the project. | |
2898 | ||
2899 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
2900 | ||
2901 | * sem_type.adb (Within_Instance): New predicate in Collect_Interps, | |
2902 | used to determine whether a possible interpretation for an overloadable | |
2903 | entity is declared within the current instantiation and should be | |
2904 | included in the candidate set. | |
2905 | ||
2906 | 2011-08-29 Vasiliy Fofanov <fofanov@adacore.com> | |
2907 | ||
2908 | * gnat_rm.texi, gnat_ugn.texi: Clean ups. | |
2909 | ||
97216ca8 ES |
2910 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> |
2911 | ||
2912 | * sem_res.adb (Resolve_Actuals): Use base type to determine whether an | |
2913 | access subtype is access_to_subprogram, when applying checks for | |
2914 | RM 3.10.2 (27). | |
2915 | ||
d3cb4cc0 AC |
2916 | 2011-08-29 Matthew Heaney <heaney@adacore.com> |
2917 | ||
2918 | * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Splice_Subtree): Only check | |
2919 | for sibling when common parent. | |
2920 | ||
2921 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
2922 | ||
2923 | * get_scos.adb: Literals of Pragma_Id are pragma names prefixed with | |
2924 | "pragma_". | |
2925 | ||
2926 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
2927 | ||
2928 | * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Enable freeze actions | |
2929 | for the return type when in ASIS mode. | |
2930 | ||
2931 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
2932 | ||
2933 | * make.adb (Gnatmake): Get the default search dirs, then the target | |
2934 | parameters after getting the Builder switches, as the Builder switches | |
2935 | may include --RTS= and that could change the default search dirs. | |
2936 | ||
2937 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> | |
2938 | ||
2939 | * exp_ch7.adb (Make_Adjust_Call): Rewrite to mimic the structure of | |
2940 | Make_Final_Call. Move the processing for class-wide types before the | |
2941 | processing for derivations from [Limited_]Controlled. | |
2942 | (Make_Final_Call): Move the processing for class-wide types before the | |
2943 | processing for derivations from [Limited_]Controlled. | |
2944 | * s-stposu.adb (Allocate_Any_Controlled): Correct the membership check. | |
2945 | Add code to account for alignments larger than the list header. Add a | |
2946 | comment illustrating the structure of the allocated object + padding + | |
2947 | header. | |
2948 | (Deallocate_Any_Controlled): Add code to account for alignments larger | |
2949 | than the list header. | |
2950 | ||
2951 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
2952 | ||
2953 | * sinfo.ads, sinfo.adb: New node kind | |
2954 | N_Formal_Incomplete_Type_Definition, related flags. | |
2955 | par-ch12.adb (P_Formal_Type_Declaration, G_Formal_Type_Definition): | |
2956 | Parse formal incomplete types. | |
2957 | * sem.adb (Analyze): Formal_Incomplete_Type_Definitions are handled in | |
2958 | sem_ch12. | |
2959 | * sem_ch7.adb (Analyze_Package_Specification, Unit_Requires_Body): | |
2960 | Formal incomplete types do not need completion. | |
2961 | * sem_ch12.adb (Analyze_Formal_Incomplete_Type, | |
2962 | Validate_Incomplete_Type_Instance): New procedures to handle formal | |
2963 | incomplete types. | |
2964 | * freeze.adb (Freeze_Entity): Do not freeze the subtype of an actual | |
2965 | that corresponds to a formal incomplete type. | |
2966 | * sprint.adb: Handle formal incomplete type declarations. | |
2967 | * exp_util.adb (Insert_Actions): An incomplete_type_definition is not | |
2968 | an insertion point. | |
2969 | ||
d3f70b35 AC |
2970 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
2971 | ||
2972 | * a-fihema.ads, a-fihema.adb: Unit removed. | |
2973 | * a-undesu.ads, a-undesu.adb: New unit implementing | |
2974 | Ada.Unchecked_Deallocate_Subpool. | |
2975 | * einfo.adb: Remove Associated_Collection from the node usage. | |
2976 | Add Finalization_Master to the node usage. | |
2977 | (Associated_Collection): Removed. | |
2978 | (Finalization_Master): New routine. | |
2979 | (Set_Associated_Collection): Removed. | |
2980 | (Set_Finalization_Master): New routine. | |
2981 | (Write_Field23_Name): Remove Associated_Collection from the output. Add | |
2982 | Finalization_Master to the output. | |
2983 | * einfo.ads: Remove attribute Associated_Collection and its uses in | |
2984 | entities. | |
2985 | Add new attribute Finalization_Master along with its uses in entitites. | |
2986 | (Associated_Collection): Removed along with its pragma import. | |
2987 | (Finalization_Master): New routine along with a pragma import. | |
2988 | (Set_Associated_Collection): Removed along with its pragma import. | |
2989 | (Set_Finalization_Master): New routine along with a pragma import. | |
2990 | * exp_ch3.adb (Expand_Freeze_Array_Type): Replace call to | |
2991 | Build_Finalization_Collection with Build_Finalization_Master. | |
2992 | (Expand_Freeze_Record_Type): Move the generation of Finalize_Address | |
2993 | before the bodies of the predefined routines. Add comment explaining | |
2994 | this. Replace call to Build_Finalization_Collection with | |
2995 | Build_Finalization_Master. | |
2996 | (Freeze_Type): Replace call to Build_Finalization_Collection with | |
2997 | Build_Finalization_Master. | |
2998 | (Make_Finalize_Address_Body): Comment reformatting. | |
2999 | (Make_Predefined_Primitive_Specs): Code reformatting. | |
3000 | (Stream_Operation_OK): Update comment mentioning finalization | |
3001 | collections. Replace RE_Finalization_Collection with | |
3002 | RE_Finalization_Master. | |
3003 | * exp_ch4.adb (Complete_Controlled_Allocation): Replace call to | |
3004 | Associated_Collection with Finalization_Master. Replace call to | |
3005 | Build_Finalization_Collection with Build_Finalization_Master. | |
3006 | (Expand_Allocator_Expression): Replace call to Associated_Collection | |
3007 | with Finalization_Master. Replace call to Set_Associated_Collection with | |
3008 | Set_Finalization_Master. Remove the generation of | |
3009 | Set_Finalize_Address_Ptr. | |
3010 | (Expand_N_Allocator): Replace call to Associated_Collection with | |
3011 | Finalization_Master. Remove the generation of Set_Finalize_Address_Ptr. | |
3012 | * exp_ch6.adb (Add_Collection_Actual_To_Build_In_Place_Call): Renamed to | |
3013 | Add_Finalization_Master_Actual_To_Build_In_Place_Call. Update the | |
3014 | comment on usage. Replace call to Needs_BIP_Collection with | |
3015 | Needs_BIP_Finalization_Master Remplace BIP_Collection with | |
3016 | BIP_Finalization_Master. Update all comments which mention finalization | |
3017 | collections. Replace Associated_Collection with | |
3018 | Finalization_Master. Replace Build_Finalization_Collection with | |
3019 | Build_Finalization_Master. | |
3020 | (BIP_Formal_Suffix): Update BIP_Collection's case. | |
3021 | (Build_Heap_Allocator): Update the related comment. Rename local | |
3022 | variable Collect to Fin_Mas_Id and update its occurrences. Update | |
3023 | comments which mention finalization collections. Replace | |
3024 | Set_Associated_Collection with Set_Finalization_Master. | |
3025 | (Expand_Call): Update the code which detects a special piece of library | |
3026 | code for .NET/JVM. | |
3027 | (Make_Build_In_Place_Call_In_Allocator): Replace the call to | |
3028 | Add_Collection_Actual_To_Build_In_Place_Call with | |
3029 | Add_Finalization_Master_Actual_To_Build_In_Place_Call. Remove the code | |
3030 | which generates a call to Make_Set_Finalize_Address_Ptr_Call. | |
3031 | (Make_Build_In_Place_Call_In_Anonymous_Context): Replace call to | |
3032 | Add_Collection_Actual_To_Build_In_Place_Call with | |
3033 | Add_Finalization_Master_Actual_To_Build_In_Place_Call. | |
3034 | (Make_Build_In_Place_Call_In_Assignment): Replace call to | |
3035 | Add_Collection_Actual_To_Build_In_Place_Call with | |
3036 | Add_Finalization_Master_Actual_To_Build_In_Place_Call. | |
3037 | (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master. | |
3038 | * exp_ch6.ads: Rename BIP_Collection to BIP_Finalization_Master. | |
3039 | (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master. | |
3040 | * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Update comment on usage. | |
3041 | Rename local variable Collect to Fin_Mas_Id and update its occurrences. | |
3042 | Replace call to Set_Associated_Collection with Set_Finalization_Master. | |
3043 | (Build_Finalization_Collection): Renamed to Build_Finalization_Master. | |
3044 | Replace the call to Associated_Collection with Finalization_Master. | |
3045 | Rename local variable Coll_Id to Fin_Mas_Id and update its occurrences. | |
3046 | Update the way finalization master names are generated. Update the | |
3047 | retrieval of the correct access type which will carry the pool and | |
3048 | master attributes. | |
3049 | (Make_Final_Call): Reimplement the way [Deep_]Finalize is retrieved. | |
3050 | (Make_Finalize_Address_Body): Abstract types do not need | |
3051 | Finalize_Address. Code reformatting. | |
3052 | (Make_Finalize_Address_Stmts): Update comment on usage. | |
3053 | (Make_Set_Finalize_Address_Ptr_Call): Removed. | |
3054 | (Process_Declarations): Update comments. | |
3055 | * exp_ch7.ads (Build_Finalization_Collection): Renamed to | |
3056 | Build_Finalization_Master. Update associated comment. | |
3057 | (Make_Set_Finalize_Address_Ptr_Call): Removed. | |
3058 | * exp_ch13.adb: Update comments which mention finalization collections. | |
3059 | (Expand_N_Free_Statement): Replace the call to Associated_Collection | |
3060 | with Finalization_Master. | |
3061 | * exp_util.adb (Build_Allocate_Deallocate_Proc): Reimplemented to | |
3062 | create calls to routines Allocate_Any_Controlled and | |
3063 | Deallocate_Any_Controlled. | |
3064 | (Find_Finalize_Address): New routine. | |
3065 | (Is_Allocate_Deallocate_Proc): Update the RTE entities used in the | |
3066 | comparison. | |
3067 | (Requires_Cleanup_Actions): Update the comment on freeze node | |
3068 | inspection. | |
3069 | * exp_util.ads: Remove comment on generated code for | |
3070 | Build_Allocate_Deallocate_Proc. The code is now quite complex and it | |
3071 | is better to simply look in the body. | |
3072 | * freeze.adb (Freeze_All): Update the comment of finalization | |
3073 | collections. Replace the call to Associated_Collection with | |
3074 | Finalization_Master. Replace the call to Build_Finalization_Collection | |
3075 | with Build_Finalization_Master. | |
3076 | * impunit.adb: Add a-undesu and s-stposu to the list of units. | |
3077 | * Makefile.rtl: Add files a-undesu, s-finmas and s-stposu. Remove file | |
3078 | a-fihema. | |
3079 | * rtsfind.adb (Get_Unit_Name): Remove the processing for children of | |
3080 | Ada.Finalization. Add processing for children of System.Storage_Pools. | |
3081 | * rtsfind.ads: Remove the naming of second level children of | |
3082 | Ada.Finalization. | |
3083 | Remove Ada_Finalization_Heap_Management from the list of units. | |
3084 | Remove subtype Ada_Finalization_Child. | |
3085 | Remove the following subprogram entities: | |
3086 | ||
3087 | RE_Allocate | |
3088 | RE_Deallocate | |
3089 | RE_Finalization_Collection | |
3090 | RE_Finalization_Collection_Ptr | |
3091 | RE_Set_Finalize_Address_Ptr | |
3092 | ||
3093 | Add the naming of second level children of System.Storage_Pools. | |
3094 | Add System_Finalization_Masters and System_Storage_Pools_Subpools to | |
3095 | the list of units. | |
3096 | Add subtype System_Storage_Pools_Child. | |
3097 | Add the following subprogram entities to System.Finalization_Masters: | |
3098 | ||
3099 | RE_Finalization_Master | |
3100 | RE_Finalization_Master_Ptr | |
3101 | ||
3102 | Add the following subprogram entities to System.Storage_Pools.Subpools: | |
3103 | ||
3104 | RE_Allocate_Any_Controlled | |
3105 | RE_Deallocate_Any_Controlled | |
3106 | RE_Root_Storage_Pool_With_Subpools | |
3107 | RE_Root_Subpool | |
3108 | RE_Subpool_Handle | |
3109 | ||
3110 | Move the following subprogram entities from | |
3111 | Ada.Finalization.Heap_Management to System.Finalization_Masters: | |
3112 | ||
3113 | RE_Add_Offset_To_Address | |
3114 | RE_Attach | |
3115 | RE_Base_Pool | |
3116 | RE_Detach | |
3117 | ||
3118 | * sem_ch3.adb (Access_Type_Declaration): Replace the call to | |
3119 | Set_Associated_Collection with Set_Finalization_Master. | |
3120 | * sem_ch6.adb (Create_Extra_Formals): Update the way extra formal | |
3121 | BIP_Finalization_Master is created. | |
3122 | * s-finmas.adb: New unit System.Finalization_Masters. | |
3123 | * s-finmas.ads: New unit System.Finalization_Masters. | |
3124 | * s-stopoo.ads, s-stopoo.adb: Minor code reformatting. | |
3125 | * s-stposu.ads, s-stposu.adb: New unit implementing | |
3126 | System.Storage_Pools.Subpools. | |
3127 | ||
3128 | 2011-08-29 Bob Duff <duff@adacore.com> | |
3129 | ||
3130 | * tbuild.adb: Add assertion. | |
3131 | ||
8c889ae4 AC |
3132 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
3133 | ||
3134 | * s-pooglo.adb: Minor reformatting. | |
3135 | ||
3136 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
3137 | ||
3138 | * exp_ch5.adb (Expand_N_Assignment_Statement): if the left-hand side is | |
3139 | an indexed component of a packed array whose element type is a record | |
3140 | with a representation clause different from that of the right-hand | |
3141 | side, generate a temporary to minimuze the number of bit-field | |
3142 | operations generated. | |
3143 | ||
3144 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
3145 | ||
3146 | * exp_util.adb (Insert_Actions): Use clauses can be part of lists of | |
3147 | declarations, and thus are likely insertion points for actions. | |
3148 | ||
3149 | 2011-08-29 Bob Duff <duff@adacore.com> | |
3150 | ||
3151 | * einfo.ads: Minor comment fix. | |
3152 | ||
1a07a71a AC |
3153 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
3154 | ||
3155 | * frontend.adb, gnat1drv.adb: Minor reformatting. | |
3156 | ||
3157 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
3158 | ||
3159 | * s-pooglo.adb (Allocate, Deallocate): Take into account the alignment. | |
3160 | * a-fihema.adb (Allocate, Deallocate): Ditto. Possibly add padding | |
3161 | space in front of the header. | |
3162 | ||
4bcd6411 JK |
3163 | 2011-08-29 Johannes Kanig <kanig@adacore.com> |
3164 | ||
3165 | * frontend.adb (Frontend): Exit after creating Standard package when | |
3166 | -gnatd.H is present. | |
3167 | * gnat1drv.adb (Gnat1drv): Call Backend right away when -gnatd.H is | |
3168 | present. | |
3169 | ||
f0f88eb6 RD |
3170 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
3171 | ||
3172 | * exp_ch9.adb, mlib-prj.adb, prj.adb, prj.ads, ttypes.ads, sem_ch4.adb, | |
3173 | makeutl.adb, makeutl.ads, atree.ads, snames.adb-tmpl, | |
3174 | snames.ads-tmpl: Minor reformatting. | |
3175 | ||
3e37be71 PG |
3176 | 2011-08-29 Philippe Gil <gil@adacore.com> |
3177 | ||
3178 | * prj.adb (Reset_Units_In_Table): New procedure. | |
3179 | Reset units to avoid access to freed memory. | |
3180 | ||
94fb7608 AC |
3181 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
3182 | ||
3183 | * get_scos.adb: When reading a P statement SCO without a pragma name | |
3184 | (from an older ALI file), ensure that the Pragma_Name component is set | |
3185 | to Unknown_Pragma (not left uninitialized). | |
3186 | ||
3187 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
3188 | ||
3189 | * makeutl.adb (Get_Directories): New procedure moved from Buildgpr and | |
3190 | modified to compute correctly the object path of a SAL project that is | |
3191 | extending another library project. | |
3192 | (Write_Path_File): New procedure. | |
3193 | * makeutl.ads (Directories): New table moved from Buildgpr | |
3194 | (Get_Directories): New procedure moved from Buildgpr | |
3195 | (Write_Path_File): New procedure | |
3196 | * mlib-prj.adb (Build_Library): Use Makeutl.Get_Directories to set the | |
3197 | paths before binding SALs, instead of Set_Ada_Paths. | |
3198 | * prj-env.adb (Set_Path_File_Var): Procedure has been moved to package | |
3199 | Prj. | |
3200 | * prj.adb (Set_Path_File_Var): New procedure moved from Prj.Env | |
3201 | (Current_Source_Path_File_Of): New function | |
3202 | (Set_Current_Object_Path_File_Of): New procedure | |
3203 | (Current_Source_Object_File_Of): New function | |
3204 | (Set_Current_Object_Path_File_Of): New procedure | |
3205 | * prj.ads (Set_Path_File_Var): New procedure moved from Prj.Env | |
3206 | (Current_Source_Path_File_Of): New function | |
3207 | (Set_Current_Object_Path_File_Of): New procedure | |
3208 | (Current_Source_Object_File_Of): New function | |
3209 | (Set_Current_Object_Path_File_Of): New procedure | |
3210 | ||
3211 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
3212 | ||
3213 | * exp_ch5.adb (Expand_N_Assignment_Statement): For an assignment to a | |
3214 | packed entity, use a bit-field assignment only if there is no change of | |
3215 | representation. | |
3216 | ||
c5ecd6b7 AC |
3217 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
3218 | ||
3219 | * rtsfind.ads, exp_ch3.adb (In_Runtime): Minor code improvement, use | |
3220 | Is_RTU instead of using Chars comparisons. | |
3221 | ||
3222 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
3223 | ||
3224 | * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do not create a | |
3225 | temporary object if the actual is constrained, and the discriminants | |
3226 | read from the stream don't match. | |
3227 | ||
3228 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
3229 | ||
3230 | * sem_attr.adb, exp_attr.adb: Add handling of | |
3231 | Attribute_System_Allocator_Alignment | |
3232 | * snames.ads-tmpl: Add Name_System_Allocator_Alignment and | |
3233 | Attribute_System_Allocator_Alignment. | |
3234 | * ttypes.ads, get_targ.ads: Add Get_System_Allocator_Alignment. | |
3235 | * gcc-interface/targtyps.c, gcc-interface/utils2.c, | |
3236 | gcc-interface/gigi.h: Renames get_target_default_allocator_alignment to | |
3237 | get_target_system_allocator_alignment. | |
3238 | ||
3239 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> | |
3240 | ||
3241 | * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update | |
3242 | dependencies. | |
3243 | ||
8abdac29 AC |
3244 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> |
3245 | ||
3246 | * exp_ch3.adb (In_Runtime): Fix typo. | |
3247 | ||
df170605 AC |
3248 | 2011-08-29 Bob Duff <duff@adacore.com> |
3249 | ||
3250 | * sem_ch4.adb (Analyze_Allocator): Analyze the subpool specification. | |
3251 | ||
3252 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
3253 | ||
3254 | * exp_ch3.adb (Expand_N_Object_Declaration): If the entity is tagged | |
3255 | and a separate tag assignment is generated, ensure that the tag | |
3256 | assignment is analyzed. | |
3257 | ||
864a4236 ES |
3258 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> |
3259 | ||
3260 | * atree.ads, atree.adb (Copy_Separate_List): New function that applies | |
3261 | Copy_Separate_Tree to a list of nodes. Used to create disjoint copies | |
3262 | of statement lists that may contain local declarations. | |
df170605 AC |
3263 | * exp_ch9.adb (Expand_N_Timed_Entry_Call): Use Copy_Separate_List to |
3264 | duplicate the triggering statements needed for the expansion of this | |
3265 | construct, when the trigger is a dispatching call to a synchronized | |
3266 | primitive. | |
864a4236 | 3267 | |
7f394c1d AC |
3268 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> |
3269 | ||
3270 | * gnat_rm.texi: Add doc for 'Elab_Subp_Body. | |
3271 | * bindgen.adb: Add comments. | |
3272 | * snames.adb-tmpl (Is_Attribute_Name): Only recognize 'Elab_Subp_Body | |
3273 | in CodePeer mode. | |
3274 | ||
2c1a2cf3 RD |
3275 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
3276 | ||
3277 | * exp_attr.adb: Minor reformatting. | |
3278 | Minor code reorganization and commenting. | |
3279 | * par_sco.adb, checks.adb, sem_attr.adb, get_scos.adb: Minor | |
3280 | reformatting. | |
3281 | ||
0bfc9a64 AC |
3282 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
3283 | ||
3284 | * get_scos.adb: Ignore chaining indicators not currently supported | |
3285 | by Ada. | |
3286 | ||
3287 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> | |
3288 | ||
3289 | * system.ads: Minor editing. | |
3290 | ||
3291 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> | |
3292 | ||
3293 | * bindgen.adb (Gen_Elab_Calls): Generate calls to subp'Elab_Subp_Body in | |
3294 | CodePeer mode. | |
3295 | * sem_attr.ads, sem_attr.adb, exp_Attr.adb, sem_ch6.adb: Add handling of | |
3296 | Attribute_Elab_Subp_Body. | |
3297 | * snames.ads-tmpl (Attribute_Elab_Subp_Body, Name_Elab_Subp_Body): New. | |
3298 | * sem_util.adb: Update comments. | |
3299 | ||
828d4cf0 TQ |
3300 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
3301 | ||
3302 | * par_sco.adb, scos.adb, scos.ads, put_scos.adb, get_scos.adb: Record | |
3303 | pragma name for each SCO statement corresponding to a pragma. | |
3304 | ||
5cd7bb15 AC |
3305 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> |
3306 | ||
3307 | * opt.ads: Minor editing. | |
3308 | ||
3309 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
3310 | ||
3311 | * gnat1drv.adb (Adjust_Global_Switches): Remove options for ALFA mode | |
3312 | that only made sense for CodePeer mode. | |
3313 | ||
3314 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
3315 | ||
3316 | * targparm.ads (Support_64_Bit_Divides_On_Target): Remove this flag | |
3317 | which is no longer used. | |
3318 | * targparm.adb (S64, S64_Str, Get_Target_Parameters): Remove the | |
3319 | handling of the 64-bit division check. | |
3320 | * exp_ch4.adb (Expand_N_Op_Divide): Remove the check for 64-bit | |
3321 | division available. | |
3322 | * system*.ads (Support_64_Bit_Divides): Remove this flag which is no | |
3323 | longer used. | |
3324 | ||
3325 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
3326 | ||
3327 | * get_scos.adb: Minor reformatting. | |
3328 | ||
25b589cb AC |
3329 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
3330 | ||
3331 | * exp_util.adb (Process_Statements_For_Controlled_Objects): Whenever a | |
3332 | statement list is wrapped in a block, the block is explicitly analyzed | |
3333 | in order to properly redecorate the entities and create a servicing | |
3334 | finalizer. | |
3335 | ||
3336 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
3337 | ||
3338 | * sinfo.ads, sinfo.adb (Zero_Cost_Handling): Remove. | |
3339 | (Set_Zero_Cost_Handling): Remove. | |
3340 | ||
3341 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
3342 | ||
3343 | * par_sco.adb, scos.ads, put_scos.adb, get_scos.adb: Minor reformatting | |
3344 | ||
1197ddb1 AC |
3345 | 2011-08-29 Geert Bosch <bosch@adacore.com> |
3346 | ||
3347 | * s-vaflop-vms-alpha.adb (Neg_F): Use subtraction instead of negation | |
3348 | instruction, as the latter may produce -0.0, which is not a valid VAX | |
3349 | F float number. | |
3350 | (Neg_G): Likewise for VAX F float. | |
3351 | ||
3352 | 2011-08-29 Robert Dewar <dewar@adacore.com> | |
3353 | ||
3354 | * exp_util.adb: Minor reformatting. | |
3355 | ||
3356 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
3357 | ||
3358 | * sem_ch3.adb: Minor comment update. | |
3359 | ||
3360 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
3361 | ||
3362 | * checks.adb (Apply_Type_Conversion_Checks): Use the Underlying_Type of | |
3363 | the operand type. | |
3364 | ||
3365 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
3366 | ||
3367 | * par_sco.adb (Traverse_Declarations_Or_Statements): Do not flush | |
3368 | current statement sequence on a generic instantiation or a subprogram | |
3369 | declaration. | |
3370 | ||
8f66cda7 AC |
3371 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
3372 | ||
3373 | * sem_type.adb, einfo.ads, freeze.adb, exp_ch4.adb, sem_ch13.adb: | |
3374 | Minor reformatting. | |
3375 | ||
3376 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> | |
3377 | ||
3378 | * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)): | |
3379 | Correct the check which involves the freeze node of a controlled or | |
3380 | access-to-controlled type. | |
3381 | ||
3382 | 2011-08-29 Geert Bosch <bosch@adacore.com> | |
3383 | ||
3384 | * sem_warn.adb (Check_Code_Statement): Remove check for consecutive Asm | |
3385 | statements. | |
3386 | * s-vaflop-vms-alpha.adb: Remove bogus Volatile => True arguments from | |
3387 | Asm statements. | |
3388 | ||
cf161d66 AC |
3389 | 2011-08-29 Yannick Moy <moy@adacore.com> |
3390 | ||
3391 | * sem_ch3.adb (Array_Type_Declaration): Insert a subtype declaration | |
3392 | for every index type and component type that is not a subtype_mark. | |
3393 | (Process_Subtype): Set Etype of subtype. | |
3394 | ||
3395 | 2011-08-29 Robert Dewar <dewar@adacore.com> | |
3396 | ||
3397 | * a-cbmutr.adb, a-cimutr.adb, a-comutr.adb, prj-nmsc.adb: Minor code | |
3398 | reorganization. Minor reformatting. | |
3399 | ||
7cc83cd8 AC |
3400 | 2011-08-29 Steve Baird <baird@adacore.com> |
3401 | ||
3402 | * exp_ch4.adb (Expand_N_Op_Expon): Suppress N_Op_Expon node expansion | |
3403 | for CodePeer and ALFA modes. | |
3404 | ||
3405 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
3406 | ||
3407 | * sem_type.adb (Collect_Interps): Within an instance, collect a homonym | |
3408 | that comes from an enclosing scope if it is not the renaming of an | |
3409 | actual, to handle properly a spurious ambiguity in an instance. | |
3410 | ||
76af4137 AC |
3411 | 2011-08-29 Eric Botcazou <ebotcazou@adacore.com> |
3412 | ||
3413 | * sem_ch13.adb (Alignment_Check_For_Esize_Change): Rename to... | |
3414 | (Alignment_Check_For_Size_Change): ...this. Add SIZE parameter and | |
3415 | use it instead of the Esize of the first parameter. | |
3416 | (Analyze_Attribute_Definition_Clause) <Object_Size>: Adjust call to | |
3417 | above change. | |
3418 | <Size>: Likewise. Call it for composite types on the RM size. | |
3419 | ||
3420 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
3421 | ||
3422 | * exp_ch4.adb (Expand_N_Op_Not): Do not expand not on array. | |
3423 | * sem_util.adb (Unique_Name): Correct behaviour for names of | |
3424 | compilation units. | |
3425 | ||
9b20e59b AC |
3426 | 2011-08-29 Yannick Moy <moy@adacore.com> |
3427 | ||
3428 | * sem_prag.adb (Check_Precondition_Postcondition): In formal | |
3429 | verification mode, analyze pragma expression for correctness, for | |
3430 | pre/post on library-level subprogram, as it is not expanded later. | |
3431 | ||
3432 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
3433 | ||
3434 | * exp_aggr.adb (Expand_Array_Aggregate): Do not expand array aggregates | |
3435 | in formal verification. | |
3436 | ||
3437 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
3438 | ||
3439 | * sem_util.adb: Minor reformatting. | |
3440 | * freeze.adb, sem_ch13.adb: Fix comment: Bit_Order is an attribute, | |
3441 | there's no pragma. | |
3442 | * par_sco.ads, par_sco.adb: Update comments. | |
3443 | ||
3444 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
3445 | ||
3446 | * einfo.adb, einfo.ads: Remove flag Is_Postcondition_Proc and | |
3447 | associated getter/setter. | |
3448 | * sem_ch6.adb: Remove reference to Is_Postcondition_Proc. | |
3449 | ||
3450 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
3451 | ||
3452 | * prj-attr.adb: New Compiler attribute Dependency_Kind and Language_Kind | |
3453 | * prj-conf.adb: Add_Default_GNAT_Naming_Scheme: Add a package Compiler | |
3454 | with declarations for Language_Kind and Dependency_Kind for Ada. | |
3455 | * prj-nmsc.adb (Check_Unit_Name): New name of procedure Check_Ada_Name | |
3456 | (Process_Compiler): Take into account the new attributes Dependency_Kind | |
3457 | and Language_Kind. | |
3458 | (Check_Configuration): Check if language kind is unit based, not if the | |
3459 | language name is Ada. | |
3460 | (Process_Exceptions_Unit_Based): Ditto | |
3461 | (Add_Language): Remove default additions of language and dependency kind | |
3462 | * prj.ads: Minor comment change | |
3463 | * snames.ads-tmpl: New standard names Dependency_Kind and Language_Kind | |
3464 | ||
3465 | 2011-08-29 Johannes Kanig <kanig@adacore.com> | |
3466 | ||
3467 | * debug.adb: Update comments. | |
3468 | ||
c5bc3df6 JM |
3469 | 2011-08-24 Joseph Myers <joseph@codesourcery.com> |
3470 | ||
3471 | * gcc-interface/Make-lang.in (CFLAGS-ada/tracebak.o) | |
3472 | (CFLAGS-ada/targext.o, CFLAGS-ada/cio.o, CFLAGS-ada/init.o) | |
3473 | (CFLAGS-ada/initialize.o, CFLAGS-ada/raise.o): New. | |
3474 | (ada/tracebak.o, ada/targext.o, ada/cio.o, ada/init.o) | |
3475 | (ada/initialize.o, ada/raise.o): Remove explicit compilation rules. | |
3476 | ||
e3aa9eba RO |
3477 | 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
3478 | ||
3479 | * gcc-interface/Makefile.in (PICFLAG_FOR_TARGET): New. | |
3480 | (GNATLIBCFLAGS_FOR_C): Replace | |
3481 | TARGET_LIBGCC2_CFLAGS by PICFLAG_FOR_TARGET. | |
3482 | (gnatlib-shared-default, gnatlib-shared-dual-win32) | |
3483 | (gnatlib-shared-win32, gnatlib-shared-darwin, gnatlib-shared) | |
3484 | (gnatlib-sjlj, gnatlib-zcx): Likewise. | |
3485 | ||
f446d60e EB |
3486 | 2011-08-07 Eric Botcazou <ebotcazou@adacore.com> |
3487 | ||
3488 | * gcc-interface/Makefile.in (raise-gcc.o): Fix previous change. | |
3489 | ||
588c8f48 EB |
3490 | * gcc-interface/gigi.h (enumerate_modes): Fix formatting. |
3491 | ||
3492 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Revert latest change. | |
3493 | ||
28d711bf NR |
3494 | 2011-08-05 Nicolas Roche <roche@adacore.com> |
3495 | ||
3496 | * gcc-interface/Makefile.in: Don't use directly ../xgcc to build shared | |
3497 | libgnat. Use rather the value of GCC_FOR_TARGET. Fix issue with | |
3498 | canadian cross. | |
3499 | * gcc-interface/Make-lang.in: Add support for canadian cross setting. | |
3500 | ||
993f8920 AC |
3501 | 2011-08-05 Matthew Heaney <heaney@adacore.com> |
3502 | ||
3503 | * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Child_Count, Child_Depth): | |
3504 | subprogram bodies declared out-of-order. | |
3505 | ||
3506 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
3507 | ||
3508 | * sem_util.adb (Unique_Name): only prefix with "standard" the names of | |
3509 | entities directly in package Standard, otherwise skip the standard | |
3510 | prefix. | |
3511 | ||
9b3956dd RD |
3512 | 2011-08-05 Robert Dewar <dewar@adacore.com> |
3513 | ||
3514 | * a-cbmutr.adb: Minor reformatting | |
3515 | (Allocate_Node): refactor node allocation algorithm | |
3516 | ||
3517 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
3518 | ||
3519 | * opt.ads, opt.adb (Debug_Pragmas_Disabled): New switch. | |
3520 | * sem_prag.adb (Analyze_Pragma, case Debug_Policy): Implement Disable | |
3521 | mode. | |
3522 | (Analyze_Pragma, case Check_Policy): Ditto. | |
3523 | * sem_prag.ads (Check_Disabled): New function | |
3524 | * snames.ads-tmpl: Add Name_Disable. | |
3525 | ||
3526 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
3527 | ||
3528 | * gnat_rm.texi: Document implementation-defined policy DISABLE for | |
3529 | pragmas Assertion_Policy, Check_Policy, Debug_Policy. | |
3530 | ||
79e705d6 AC |
3531 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> |
3532 | ||
3533 | * sem_prag.adb (Analyze_Pragma, case Inline): reject an Inline pragma | |
3534 | that appears in a generic formal part and applies to a formal | |
3535 | subprogram. | |
3536 | ||
3537 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
3538 | ||
3539 | * a-cbmutr.ads: Minor reformatting. | |
3540 | ||
23b6deca AC |
3541 | 2011-08-05 Matthew Heaney <heaney@adacore.com> |
3542 | ||
3543 | * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Read): do not use T'Valid | |
3544 | to check count, check sign of value instead. | |
3545 | * a-comutr.adb, a-cimutr.adb (Write): return immediately if tree empty | |
3546 | (Copy_Subtree): allocate copy of source element | |
3547 | (Equal_Subtree): compare elements, not access objects | |
3548 | ||
3549 | 2011-08-05 Vincent Celier <celier@adacore.com> | |
3550 | ||
3551 | * gnat_ugn.texi: Fix VMS alternative. | |
3552 | ||
a2773bd3 AC |
3553 | 2011-08-05 Thomas Quinot <quinot@adacore.com> |
3554 | ||
3555 | * sem_ch11.adb: Add comment. | |
3556 | ||
3557 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
3558 | ||
3559 | * exp_util.adb: Minor comment fix. | |
3560 | ||
3561 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
3562 | ||
3563 | * scng.adb (Error_Unterminated_String): Improve flag position when | |
3564 | comma present. | |
3565 | ||
3566 | 2011-08-05 Matthew Heaney <heaney@adacore.com> | |
3567 | ||
3568 | * Makefile.rtl, impunit.adb: Added a-cbmutr.ad[sb] (bounded multiway | |
3569 | tree containers). | |
3570 | * a-cbmutr.ads, a-cbmutr.adb: This is the new Ada 2012 unit for bounded | |
3571 | multiway tree containers. | |
3572 | ||
3573 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
3574 | ||
3575 | * styleg.adb (Check_Comment): Implement comment spacing of 1 or 2 | |
3576 | * stylesw.adb: Implement -gnatyC to control comment spacing | |
3577 | * stylesw.ads (Style_Check_Comments_Spacing): New switch (set by | |
3578 | -gnatyc/C). | |
3579 | * usage.adb: Add line for -gnatyC. | |
3580 | ||
3581 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
3582 | ||
f446d60e | 3583 | * gnat_ugn.texi: Document -gnatyC. |
a2773bd3 AC |
3584 | * vms_data.ads: Implement COMMENTS1/COMMENTS2 (retaining COMMENTS as a |
3585 | synonym for COMMENTS2). | |
3586 | ||
dedac3eb RD |
3587 | 2011-08-05 Robert Dewar <dewar@adacore.com> |
3588 | ||
3589 | * par_sco.adb, sem_ch3.adb, scos.ads, a-iteint.ads, sem_ch12.adb, | |
3590 | a-cimutr.adb, a-cimutr.ads, sem_util.ads, sem_res.adb, a-fihema.adb, | |
3591 | sem_ch4.adb, lib-xref-alfa.adb, exp_disp.adb, a-comutr.adb, | |
3592 | a-comutr.ads, lib-xref.adb: Minor reformatting. | |
3593 | ||
3594 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
3595 | ||
3596 | * sem_ch11.adb (Analyze_Raise_Statement): Kill assignment to formal | |
3597 | warning if there is an exception handler present. | |
3598 | ||
7c62a85a AC |
3599 | 2011-08-05 Pascal Obry <obry@adacore.com> |
3600 | ||
3601 | * a-iteint.ads: Fix copyright year. | |
3602 | ||
3603 | 2011-08-05 Thomas Quinot <quinot@adacore.com> | |
3604 | ||
3605 | * par_sco.adb (Traverse_Declarations_Or_Statements): Do not generate a | |
3606 | statement SCO for a USE clause or a representation clause. | |
3607 | ||
3608 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
3609 | ||
3610 | * lib-xref-alfa.adb (Collect_ALFA): generate the proper relation | |
3611 | between body and spec for stub. | |
3612 | (Detect_And_Add_ALFA_Scope): take into account subprogram stub | |
3613 | * lib-xref.adb (Enclosing_Subprogram_Or_Package): in the case of a | |
3614 | pragma precondition or postcondition, for which the enclosing | |
3615 | subprogram or package in the AST is not the desired one, return empty. | |
3616 | ||
e49208a9 AC |
3617 | 2011-08-05 Thomas Quinot <quinot@adacore.com> |
3618 | ||
3619 | * g-expect.adb: Minor reformatting. | |
3620 | ||
3621 | 2011-08-05 Bob Duff <duff@adacore.com> | |
3622 | ||
3623 | * a-fihema.adb: Comment out OS_Lib. | |
3624 | ||
3625 | 2011-08-05 Matthew Heaney <heaney@adacore.com> | |
3626 | ||
3627 | * Makefile.rtl, impunit.adb: Added a-c[oi]mutr.ad[sb] | |
3628 | (unbounded multiway tree containers) and a-iteint.ads. | |
3629 | * a-comutr.ads, a-comutr.adb: | |
3630 | This is the new Ada 2012 unit for unbounded multiway tree containers | |
3631 | * a-cimutr.ads, a-cimutr.adb | |
3632 | This is the new Ada 2012 unit for indefinite multiway tree containers | |
3633 | * a-iteint.ads: New file. | |
3634 | ||
201cdb74 RO |
3635 | 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
3636 | ||
f446d60e | 3637 | * gcc-interface/Makefile.in (raise-gcc.o): Search $(srcdir)/../libgcc. |
201cdb74 | 3638 | |
d50f4827 AC |
3639 | 2011-08-05 Bob Duff <duff@adacore.com> |
3640 | ||
3641 | * sinfo.ads, sinfo.adb (Subpool_Handle_Name): New attribute for | |
3642 | subpools. | |
3643 | * par-ch4.adb (P_Allocator): Parse new subpool specification syntax. | |
3644 | ||
3645 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
3646 | ||
3647 | * sem_ch4.adb (Try_Container_Indexing): New procedure to implement the | |
3648 | general indexing aspects of Ada2012. Called when analyzing indexed | |
3649 | components when other interpretations fail. | |
3650 | * sem_ch8.adb (Find_Direct_Name): check for implicit dereference only | |
3651 | in an expression context where overloading is meaningful. This excludes | |
3652 | the occurrence in an aspect specification (efficiency only). | |
3653 | * sem_attr.adb (Analyze_Attribute): indicate that the attributes | |
3654 | related to iterators can be set by an attribute specification, but | |
3655 | cannot be queried. | |
3656 | * sem_ch13.adb (Analyze_Aspect_Specifications): handle | |
3657 | Constant_Indexing and Variable_Indexing. | |
3658 | (Check_Indexing_Functions): New procedure to perform legality checks. | |
3659 | Additional semantic checks at end of declarations. | |
3660 | ||
efe05dfc AC |
3661 | 2011-08-05 Sergey Rybin <rybin@adacore.com> |
3662 | ||
3663 | * tree_io.ads: Update ASIS_Version_Number because of the change of the | |
3664 | order of calling Tree_Write/Tree_Read routines made for aspects. | |
3665 | ||
3666 | 2011-08-05 Bob Duff <duff@adacore.com> | |
3667 | ||
3668 | * a-fihema.adb (Finalize): Fix race condition. | |
3669 | ||
5f9cdefe AC |
3670 | 2011-08-05 Yannick Moy <moy@adacore.com> |
3671 | ||
3672 | * sem_ch12.adb (Analyze_Package_Instantiation, | |
3673 | Need_Subprogram_Instance_Body): do not generate instance bodies in ALFA | |
3674 | mode. | |
3675 | ||
3676 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
3677 | ||
3678 | * sem_type.adb (Specific_Type): in an instance, the type-specific | |
3679 | operand of an equality check that involves null may have a private | |
3680 | type. Use full view to determine legality of construct. | |
3681 | ||
822868aa AC |
3682 | 2011-08-05 Vincent Celier <celier@adacore.com> |
3683 | ||
3684 | * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to | |
3685 | delete or close the file when the call to gnatmake was successful. | |
3686 | ||
3687 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
3688 | ||
3689 | * gnat1drv.adb (Adjust_Global_Switches): in ALFA mode, set | |
3690 | Global_Discard_Names. | |
3691 | ||
3692 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
3693 | ||
3694 | * sinfo.ads: comments on use of entity field for aspect specifications. | |
3695 | ||
3696 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
3697 | ||
3698 | * sem_ch12.adb (Reset_Entity): If the entity field of the associated | |
3699 | node is not itself an entity but a selected component, it is a | |
3700 | rewritten parameterless call to an en enclosing synchronized operation, | |
3701 | and this expansion will be performed again in the instance, so there is | |
3702 | no global information to preserve. | |
3703 | ||
44a10091 AC |
3704 | 2011-08-05 Javier Miranda <miranda@adacore.com> |
3705 | ||
3706 | * exp_disp.adb (Set_All_DT_Position): Cleanup code and improve support | |
3707 | for renamings of predefined primitives. | |
3708 | (In_Predef_Prims_DT): New subprogram. | |
3709 | ||
3710 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
3711 | ||
3712 | * sem_util.adb, sem_util.ads (Check_Implicit_Dereference): If a | |
3713 | possible interpretation of name is a reference type, add an | |
3714 | interpretation that is the designated type of the reference | |
3715 | discriminant of that type. | |
3716 | * sem_res.adb (resolve): If the interpretation imposed by context is an | |
3717 | implicit dereference, rewrite the node as the deference of the | |
3718 | reference discriminant. | |
3719 | * sem_ch3.adb (Analyze_Subtype_Declaration, Build_Derived_Record_Type, | |
3720 | Build_Discriminated_Subtype): Inherit Has_Implicit_Dereference from | |
3721 | parent type or base type. | |
3722 | * sem_ch4.adb (Process_Indexed_Component, | |
3723 | Process_Overloaded_Indexed_Component, Indicate_Name_And_Type, | |
3724 | Analyze_Overloaded_Selected_Component, Analyze_Selected_Component): | |
3725 | Check for implicit dereference. | |
3726 | (List_Operand_Interps): Indicate when an implicit dereference is | |
3727 | ambiguous. | |
3728 | * sem_ch8.adb (Find_Direct_Name): Check for implicit dereference. | |
3729 | ||
3730 | 2011-08-05 Thomas Quinot <quinot@adacore.com> | |
3731 | ||
3732 | * scos.ads: Update documentation of SCO table. Pragma statements can now | |
3733 | be marked as disabled (using 'p' instead of 'P' as the statement kind). | |
3734 | * par_sco.ads, par_sco.adb: Implement the above change. | |
3735 | (Process_Decisions_Defer): Generate a P decision for the first parameter | |
3736 | of a dyadic pragma Debug. | |
3737 | * sem_prag.adb (Analyze_Pragma, case Debug): Mark pragma as enabled if | |
3738 | necessary. | |
3739 | * put_scos.adb: Code simplification based on above change. | |
3740 | ||
bb3c784c AC |
3741 | 2011-08-05 Robert Dewar <dewar@adacore.com> |
3742 | ||
3743 | * sem_ch3.adb, gnatcmd.adb, switch-c.adb, exp_attr.adb, make.adb, | |
3744 | bindgen.adb, einfo.adb, sem_ch12.adb, sem_attr.adb, a-fihema.adb, | |
3745 | a-fihema.ads, sem_elab.adb, sem_elab.ads, aspects.adb, opt.ads, | |
3746 | prj-conf.adb, sem_ch13.adb, s-ficobl.ads: Minor reformatting | |
3747 | ||
3748 | 2011-08-05 Bob Duff <duff@adacore.com> | |
3749 | ||
3750 | * a-stunau.ads, g-spipat.adb: Update comments. | |
3751 | ||
36f686f9 BD |
3752 | 2011-08-05 Bob Duff <duff@adacore.com> |
3753 | ||
3754 | * a-fihema.ads: Minor comment fix. | |
3755 | * a-fihema.adb (Allocate, Deallocate): Assert that the alignment is | |
3756 | correct. | |
3757 | (Attach, Detach): Remove some unnecessary code. | |
3758 | (Finalize): Remove Node_Ptr_To_Address, replace with a constant. | |
3759 | ||
7882673f BD |
3760 | 2011-08-05 Bob Duff <duff@adacore.com> |
3761 | ||
3762 | * a-fihema.ads, a-fihema.adb (Finalization_Collection): Avoid heap | |
3763 | allocation for Objects component. This simplifies the code somewhat. It | |
3764 | is also a little more efficient in the not-so-unusual case where there | |
3765 | are no controlled objects allocated. | |
3766 | Make Finalization_Started flag atomic. | |
3767 | (Finalize): Avoid unnecessary detachment of items from the list. | |
3768 | (pcol): Minor cleanup. | |
3769 | ||
d34cd274 AC |
3770 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> |
3771 | ||
3772 | * sem_ch12.adb (Analyze_Formal_Package_Declaration): reject a formal | |
3773 | package whose name is the same as that of the generic unit, or its | |
3774 | ultimate prefix. | |
3775 | ||
3776 | 2011-08-05 Bob Duff <duff@adacore.com> | |
3777 | ||
3778 | * a-fihema.adb, a-fihema.ads: Minor comment improvements. | |
3779 | * sem_ch3.adb, exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb: | |
3780 | Minor comment fixes. | |
3781 | ||
00332244 AC |
3782 | 2011-08-05 Arnaud Charlet <charlet@adacore.com> |
3783 | ||
3784 | * make.adb (Linking_Phase): No longer need to set source search path | |
3785 | before calling gnatlink in CodePeer mode. | |
3786 | * gnatlink.adb (Gnatlink): No longer pass -gnat83/95/05/12 switch to | |
3787 | gcc in CodePeer mode, since the binder generated file no longer has a | |
3788 | 'with Main'. | |
3789 | * switch.ads, switch.adb (Is_Language_Switch): Removed. | |
3790 | * switch-c.adb: Update comment. | |
3791 | ||
3792 | 2011-08-05 Thomas Quinot <quinot@adacore.com> | |
3793 | ||
3794 | * exp_strm.adb, bindgen.adb, s-ficobl.ads: Minor reformatting. | |
3795 | ||
3796 | 2011-08-05 Nicolas Roche <roche@adacore.com> | |
3797 | ||
3798 | * gnat_ugn.texi: Fix minor syntax error issue. | |
3799 | ||
3800 | 2011-08-05 Vincent Celier <celier@adacore.com> | |
3801 | ||
3802 | * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to | |
3803 | delete or close the file when the call to gnatmake returns a non | |
3804 | successful return code. | |
3805 | ||
3806 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
3807 | ||
3808 | * exp_ch4.adb (Expand_N_Type_Conversion): When expanding a predicate | |
3809 | check, indicate that the copy of the original node does not come from | |
3810 | source, to prevent an infinite recursion of the expansion. | |
3811 | ||
3812 | 2011-08-05 Johannes Kanig <kanig@adacore.com> | |
3813 | ||
3814 | * debug.adb: document switch -gnatd.G for gnat2why, which deactivates | |
3815 | VC generation for subprogram bodies. | |
3816 | ||
3817 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
3818 | ||
3819 | * einfo.ads: Typo. | |
3820 | * sem_ch3.adb (Signed_Integer_Type_Declaration): in ALFA mode, define | |
3821 | the base type with the smallest allowed base type. | |
3822 | ||
3823 | 2011-08-05 Sergey Rybin <rybin@adacore.com> | |
3824 | ||
3825 | * tree_gen.adb, tree_in.adb, aspects.adb: Fix tree read-write for | |
3826 | aspects. | |
3827 | ||
3828 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
3829 | ||
3830 | * sem_ch12.ads: minor comment updates. | |
3831 | ||
3832 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
3833 | ||
3834 | * sem_ch12.adb (Analyze_Formal_Package_Declaration): in an | |
3835 | instantiation and a formal package the compiler generates a package | |
3836 | renaming declaration so that the generic name within the declaration | |
3837 | is interpreted as a renaming of the instance. At the end of a formal | |
3838 | package declaration, this renaming must become invisible. | |
3839 | ||
0da80d7d AC |
3840 | 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com> |
3841 | ||
3842 | * exp_ch7.adb (Is_Init_Call): Reimplemented to avoid character | |
3843 | comparison and rely on concrete entities instead. | |
3844 | ||
3845 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
3846 | ||
3847 | * einfo.ads, einfo.adb (Has_Implicit_Dereference): new flag on types | |
3848 | and discriminants, to indicate that the type has an access discriminant | |
3849 | that supports implicit dereference. | |
3850 | * snames.ads-tmpl: Add names of aspects and attributes related to | |
3851 | Ada2012 iterators: constant_indexing, default_iterator, | |
3852 | iterator_element, implicit_dereference, variable_indexing. | |
3853 | * aspects.ads, aspects.adb: entries for iterator-related aspects. | |
3854 | * sem_ch13.adb (Analyze_aspect_specifications): dummy entries for | |
3855 | iterator-related aspects. | |
3856 | * sem_attr.adb, exp_attr.adb Dummy entries for iterator-related aspects. | |
3857 | ||
3858 | 2011-08-05 Sergey Rybin <rybin@adacore.com> | |
3859 | ||
3860 | * gnat_ugn.texi, vms_data.ads: Extend the subsection about coupling | |
3861 | metrics in gnatmetric to cover new kinds of coupling mentrics. | |
3862 | ||
3863 | 2011-08-05 Steve Baird <baird@adacore.com> | |
3864 | ||
3865 | * bindgen.adb (Gen_CodePeer_Wrapper): Call Ada_Main_Program instead | |
2c7f9cc0 | 3866 | of calling the user-defined main subprogram. |
0da80d7d AC |
3867 | (Gen_Main): Declare Ada_Main_Program and (if CodePeer_Mode |
3868 | is set) Call_Main_Subprogram ahead of, as opposed to | |
3869 | inside of, Main. | |
3870 | (Gen_Output_File_Ada): Remove CodePeer_Mode-conditional | |
3871 | generation of a "with" of the user-defined main subprogram. | |
3872 | Remove CodePeer_Mode-conditional call to Gen_CodePeer_Wrapper | |
3873 | (which is now called from Gen_Main instead). | |
3874 | ||
73242473 AC |
3875 | 2011-08-05 Emmanuel Briot <briot@adacore.com> |
3876 | ||
3877 | * projects.texi: Added reference to the Makefile package. | |
3878 | ||
3879 | 2011-08-05 Thomas Quinot <quinot@adacore.com> | |
3880 | ||
3881 | * exp_ch7.adb: Minor comment rewording. | |
3882 | ||
3883 | 2011-08-05 Ed Falis <falis@adacore.com> | |
3884 | ||
3885 | * env.c: Fix comment. | |
3886 | ||
3887 | 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com> | |
3888 | ||
3889 | * sem_elab.adb (Is_Finalization_Procedure): Reimplemented to avoid | |
3890 | character comparison and rely on concrete entities instead. | |
3891 | ||
97ed5872 AC |
3892 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> |
3893 | ||
3894 | * sem_ch3.adb: (Check_Private_Overriding): better error message, | |
3895 | suggested by AI95-0068. | |
3896 | ||
3897 | 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com> | |
3898 | ||
3899 | * exp_ch7.adb (Find_Last_Init): Use Next_Suitable_Statement to retrieve | |
3900 | the two potential initialization calls. This accounts for any | |
3901 | access-before-elaboration checks which may precede the initialization | |
3902 | calls. | |
3903 | (Next_Suitable_Statement): New routine. Returns the next real statement | |
3904 | after the input node while skipping generated checks. | |
3905 | * sem_elab.adb (Check_A_Call): New formal parameter In_Init_Proc along | |
3906 | with comment on usage. | |
3907 | Do not generate Elaborate_All when the trigger is a finalization call | |
3908 | coming from a type init proc. | |
3909 | (Check_Elab_Call): Propagate the initialization procedure context to | |
3910 | subsequent calls to Check_A_Call. | |
3911 | (Check_Internal_Call_Continue): Propagate the initialization procedure | |
3912 | context to subsequent calls to Check_Elab_Call. | |
3913 | (Is_Finalization_Procedure): New routine. Returns True if the input | |
3914 | entity denotes a [Deep_]Finalize routine. | |
3915 | * sem_elab.ads (Check_Elab_Call): New formal parameter In_Init_Proc | |
3916 | along with comment on usage. | |
3917 | ||
3918 | 2011-08-05 Vadim Godunko <godunko@adacore.com> | |
3919 | ||
3920 | * s-atocou.ads: Add list of supported platforms. | |
3921 | ||
3922 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
3923 | ||
3924 | * sem_prag.adb, restrict.adb: Correct style for or'ing Boolean variables | |
3925 | ||
3926 | * opt.ads (Disable_ALI_File): new Boolean flag | |
3927 | * lib-writ.adb (Write_ALI): when Disable_ALI_File is set, do nothing | |
3928 | ||
3929 | 2011-08-05 Ed Falis <falis@adacore.com> | |
3930 | ||
3931 | * env.c (__gnat_environ): Fix includes for RTPs and VTHREADS so that | |
3932 | environ is properly defined. | |
3933 | ||
3934 | 2011-08-05 Vincent Celier <celier@adacore.com> | |
3935 | ||
3936 | * make.adb (Compilation_Phase): Exit immediately when all objects have | |
3937 | been found up to date, to avoid multiple exit messages. | |
3938 | * prj-nmsc.adb (Add_Source): Allow duplicate source file names in the | |
3939 | same project for languages with no compiler. | |
3940 | * gnat_ugn.texi: Document compiler switch -gnateI and gnatmake switch | |
3941 | -eI. | |
9aff36e9 RD |
3942 | 2011-08-05 Robert Dewar <dewar@adacore.com> |
3943 | ||
3944 | * exp_ch7.ads, sem_type.adb, make.adb, sem_prag.adb, sem_util.adb, | |
3945 | sem_util.ads, sem_attr.adb, restrict.ads, sem_ch6.adb, prj-conf.adb, | |
3946 | prj-conf.ads, s-atocou.ads, s-atocou.adb, s-atocou-x86.adb, | |
3947 | s-atocou-builtin.adb: Minor reformatting. | |
3948 | ||
406935b6 AC |
3949 | 2011-08-05 Yannick Moy <moy@adacore.com> |
3950 | ||
3951 | * exp_ch7.adb (Establish_Transient_Scope): in formal verification mode, | |
3952 | if the node to wrap is a pragma check, this node and enclosed | |
3953 | expression are not expanded, so do not apply any transformations here. | |
3954 | * exp_prag.adb (Expand_Pragma_Check): document the need to avoid | |
3955 | introducing transient scopes. | |
3956 | ||
3957 | 2011-08-05 Jose Ruiz <ruiz@adacore.com> | |
3958 | ||
3959 | * adaint.c (__gnat_set_writable, __gnat_set_readable, | |
3960 | __gnat_set_executable, __gnat_set_non_writable, __gnat_set_non_readable, | |
3961 | __gnat_copy_attribs): On VxWorks 6.x and later, the required chmod | |
3962 | routine is available, so we use the default implementation of these | |
3963 | functions. | |
3964 | * s-os_lib.ads (Copy_File, Copy_Time_Stamps): Document that there is | |
3965 | support for copying attributes on VxWorks 6. | |
3966 | ||
3967 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
3968 | ||
3969 | * debug.adb: Remove use of -gnatd.D. | |
3970 | * gnat1drv.adb (Adjust_Global_Switches): adjust switches for ALFA mode | |
3971 | * opt.ads: Simplify variables for ALFA mode, to keep one only | |
3972 | * restrict.adb, sem_prag.adb: Adapt treatment done for CodePeer mode | |
3973 | to ALFA mode. | |
3974 | ||
3975 | 2011-08-05 Vincent Celier <celier@adacore.com> | |
3976 | ||
3977 | * prj-conf.adb (Do_Autoconf): Look also for --RTS in | |
3978 | Builder'Default_Switches. | |
3979 | ||
3980 | 2011-08-05 Vincent Celier <celier@adacore.com> | |
3981 | ||
3982 | * makeusg.adb: Add lines for --create-map-file switches. | |
3983 | ||
3984 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
3985 | ||
3986 | * freeze.adb (Freeze_Entity): For a subprogram, if a type in the | |
3987 | profile is incomplete and the full view is available, replace it with | |
3988 | the full view. | |
3989 | * sem_ch6.adb (Possible_Freeze): if a type in the profile is | |
3990 | incomplete, freezing the subprogram is delayed until the full view is | |
3991 | frozen. | |
3992 | * sem_type.adb (Disambiguate): an ambiguity between a user-defined | |
3993 | fixed-point multiplication operator and the predefined operator is | |
3994 | resolved in favor of the user-defined one. | |
3995 | ||
96c891b3 RO |
3996 | 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
3997 | ||
3998 | * init.c [__alpha__ && __osf__] (__gnat_error_handler): Use | |
3999 | CONST_CAST. | |
4000 | ||
276e7ed0 AC |
4001 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> |
4002 | ||
4003 | * sem_util.ads, sem_unit.adb (Type_Without_Stream_Operation): determine | |
4004 | whether a type lacks user-defined Read or Write operations, or has a | |
4005 | component that lacks them. | |
4006 | * sem_attr.adb (Check_Stream_Attribute): if restriction | |
4007 | No_Default_Stream_Attributes is active, verify that all subcomponent | |
4008 | types of the target have user-defined stream operations, and report | |
4009 | error otherwise. | |
4010 | * exp_ch3.adb (Stream_Operqtion_OK): use Type_Without_Stream_Operation. | |
4011 | * exp_strm.adb: Build_Elementary_Input_Call, | |
4012 | Build_Elementary_Write_Call): remove checks for restriction | |
4013 | No_Default_Stream_Attributes, now checked in semantics. | |
4014 | ||
4015 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
4016 | ||
4017 | * prj-conf.ads, prj-conf.adb (Do_Autoconf): If there is no --RTS | |
4018 | switches on the command line, look for all valid --RTS switches in the | |
4019 | Builder switches and for each language use the first runtime name found | |
4020 | to invoke gprconfig. | |
4021 | (Get_Or_Create_Configuration_File): Warn if --RTS is specified on the | |
4022 | command line and there is no auto-configuration. | |
4023 | (Runtime_Name_Set_For): New function. | |
4024 | ||
4025 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
4026 | ||
4027 | * exp_ch7.adb (Build_Object_Declarations): Do not generate the | |
4028 | elaborate initialization expression for variable Abort when processing | |
4029 | a package body or a declaration. | |
4030 | (Create_Finalizer): Propagate the package context when creating the | |
4031 | exception-related variables. | |
4032 | * exp_ch7.ads (Build_Object_Declarations): New formal parameter | |
4033 | For_Package along with usage comment. | |
4034 | ||
19172ae9 AC |
4035 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
4036 | ||
4037 | * gcc-interface/Makefile.in: Clean up targets. | |
4038 | Enable new package for atomic counters and copy-on-write implementation | |
4039 | of unbounded strings on x86 platforms. | |
4040 | * gcc-interface/Make-lang.in: Update dependencies. | |
4041 | ||
0319cacc AC |
4042 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
4043 | ||
4044 | * exp_ch7.adb: Minor reformatting. | |
4045 | ||
4046 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
4047 | ||
4048 | * exp_strm.adb: Minor reformatting. | |
4049 | ||
4050 | 2011-08-04 Vadim Godunko <godunko@adacore.com> | |
4051 | ||
4052 | * s-atocou.adb: Replace by dummy version and use on targets where atomic | |
4053 | operations are not supported. | |
4054 | * s-atocou-builtin.adb: Renamed from s-atocou.adb. | |
4055 | * s-atocou-x86.adb: New file. | |
4056 | * Makefile.rtl: Add s-atocou.o file | |
4057 | ||
4058 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
4059 | ||
4060 | * make.adb (Compile): Move setting of CodePeer_Mode to ... | |
4061 | (Compilation_Phase): ... here. | |
4062 | (Scan_Make_Arg): Now bind and link by default in CodePeer mode. | |
4063 | ||
4064 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
4065 | ||
4066 | * Make-generated.in: Fix minor typo in comment. | |
4067 | ||
26e7e1a0 AC |
4068 | 2011-08-04 Thomas Quinot <quinot@adacore.com> |
4069 | ||
4070 | * gnatls.adb: Use Prj.Env.Initialize_Default_Project_Path to retrieve | |
4071 | the project path. | |
4072 | ||
4073 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
4074 | ||
4075 | * a-coinho.adb: Minor reformatting. | |
4076 | ||
4077 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
4078 | ||
4079 | * a-coinho.ads: Minor reformatting. | |
4080 | ||
4081 | 2011-08-04 Vadim Godunko <godunko@adacore.com> | |
4082 | ||
4083 | * s-atocou.ads, s-atocou.adb: New files. | |
4084 | * a-strunb-shared.ads, a-strunb-shared.adb, a-stwiun-shared.ads, | |
4085 | a-stwiun-shared.adb, a-stzunb-shared.ads, a-stzunb-shared.adb: Remove | |
4086 | direct use of GCC's atomic builtins and replace them by use of new | |
4087 | atomic counter package. | |
4088 | ||
4089 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
4090 | ||
4091 | * exp_strm.adb: better error message for No_Default_Stream_Attributes. | |
4092 | ||
4093 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
4094 | ||
4095 | * a-tags.adb (Unregister_Tag): Replace the complex address arithmetic | |
4096 | with a call to Get_External_Tag. | |
4097 | * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on | |
4098 | subprogram usage. Remove the guard against package declarations and | |
4099 | bodies since Build_Cleanup_Statements is no longer invoked in that | |
4100 | context. | |
4101 | (Build_Components): Initialize Tagged_Type_Stmts when the context | |
4102 | contains at least one library-level tagged type. | |
4103 | (Build_Finalizer): New local variables Has_Tagged_Types and | |
4104 | Tagged_Type_Stmts along with associated comments on usage. Update the | |
4105 | logic to include tagged type processing. | |
4106 | (Create_Finalizer): Insert all library-level tagged type unregistration | |
4107 | code before the jump block circuitry. | |
4108 | (Expand_N_Package_Body): Remove the call to Build_Cleanup_Statements. | |
4109 | (Expand_N_Package_Declaration): Remove the call to | |
4110 | Build_Cleanup_Statements. | |
4111 | (Process_Tagged_Type_Declaration): New routine. Generate a call to | |
4112 | unregister the external tag of a tagged type. | |
4113 | (Processing_Actions): Reimplemented to handle tagged types. | |
4114 | (Process_Declarations): Detect the declaration of a library-level | |
4115 | tagged type and carry out the appropriate actions. | |
4116 | (Unregister_Tagged_Types): Removed. The machinery has been directly | |
4117 | merged with Build_Finalizer. | |
4118 | ||
7483c888 AC |
4119 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
4120 | ||
4121 | * bindgen.ads, gnatlink.adb, sem_ch4.adb, gnatbind.adb, put_alfa.adb, | |
4122 | gnatls.adb, exp_ch3.adb: Minor reformatting. | |
4123 | ||
4124 | 2011-08-04 Marc Sango <sango@adacore.com> | |
4125 | ||
4126 | * sem_attr.adb (Analyze_Attribute): Replace the message | |
4127 | "invisible attribute of}" of the spark restriction violation in | |
4128 | attribute reference by the simple message "invisible attribute of type". | |
4129 | Indeed, the node value Error_Msg_Node_1 used is in conflit with the | |
4130 | two insertion characters: '&' and '}'. | |
4131 | ||
4132 | 2011-08-04 Vadim Godunko <godunko@adacore.com> | |
4133 | ||
4134 | * impunit.adb (Non_Imp_File_Names_12): Add "a-coinho". | |
4135 | * a-coinho.ads, a-coinho.adb: New file. | |
4136 | * Makefile.rtl: Add Ada.Containers.Indefinite_Holders. | |
4137 | ||
5207696c AC |
4138 | 2011-08-04 Nicolas Roche <roche@adacore.com> |
4139 | ||
4140 | * alfa_test.adb: Not all ali files are containing alfa information even | |
4141 | if compiled with -gnatd.F. So suppress warning about missing ALFA | |
4142 | information. | |
4143 | ||
4144 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
4145 | ||
4146 | * lib-xref-alfa.adb (Add_ALFA_Scope): use non-empty unique name for | |
4147 | scope. | |
4148 | * put_alfa.adb: Check that scope name is not empty. | |
4149 | ||
4150 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
4151 | ||
4152 | * exp_ch3.adb (Stream_Operation_Ok): new predicate | |
4153 | Needs_Elementary_Stream_Operation, to determine whether user-defined | |
4154 | Read and Write attributes are available for the elementary components | |
4155 | of the given type. If only the predefined attributes are available, | |
4156 | then when restriction No_Default_Stream_Attributes is active the | |
4157 | predefined stream attributes for the composite type cannot be created. | |
4158 | ||
4159 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
4160 | ||
4161 | * bindgen.adb: Fix obsolete comments and names from Ada/C days. | |
4162 | Put routines in alpha order | |
4163 | ||
2bd2d858 JR |
4164 | 2011-08-04 Jose Ruiz <ruiz@adacore.com> |
4165 | ||
4166 | * gcc-interface/Makefile.in: Remove xenomai specific versions of system. | |
4167 | * gcc-interface/Make-lang.in: Update dependencies. | |
4168 | ||
8fae6016 AC |
4169 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
4170 | ||
4171 | * gcc-interface/lang.opt: Add AdaWhy language, simimlar to Ada. | |
4172 | * gcc-interface/lang-specs.h: Add handling of AdaWhy specs (calls | |
4173 | gnat1why). | |
4174 | ||
a54d0eb4 AC |
4175 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
4176 | ||
4177 | * sem_ch3.adb, make.adb, a-cohata.ads, sem_prag.adb, makeutl.adb, | |
4178 | lib-xref-alfa.adb: Minor reformatting. | |
4179 | ||
4180 | 2011-08-04 Marc Sango <sango@adacore.com> | |
4181 | ||
4182 | * sem_ch12.adb (Analyze_Generic_Package_Declaration, | |
4183 | Analyze_Generic_Subprogram_Declaration, Analyze_Package_Instantiation, | |
4184 | Analyze_Subprogram_Instantiation): Check absence of generic in SPARK | |
4185 | mode. | |
4186 | ||
4187 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
4188 | ||
4189 | * bindgen.adb (Gen_Adainit_C): Remove. | |
4190 | (Gen_Adafinal_C): Ditto. | |
4191 | (Gen_Elab_Externals_C): Ditto. | |
4192 | (Gen_Elab_Calls_C): Ditto. | |
4193 | (Gen_Elab_Order_C): Ditto. | |
4194 | (Gen_Elab_Defs_C): Ditto. | |
4195 | (Gen_Finalize_Library_C): Ditto. | |
4196 | (Gen_Finalize_Library_Defs_C): Ditto. | |
4197 | (Gen_Main_C): Ditto. | |
4198 | (Gen_Output_File_C): Ditto. | |
4199 | (Gen_Restrictions_C): Ditto. | |
4200 | (Gen_Versions_C): Ditto. | |
4201 | (Write_Info_Ada_C): Ditto. | |
4202 | (Gen_Object_Files_Options): Call WBI instead of Write_Info_Ada_C | |
4203 | (Gen_Output_File): Do not force Ada_Bind_File anymore. | |
4204 | Always call Gen_Output_File_Ada. | |
4205 | * gnatlink.adb (Begin_Info): Now a constant. | |
4206 | (End_Info): Ditto. | |
4207 | (Ada_Bind_File): Remove | |
4208 | (Process_Args): Do not handle -A/-C. Remove not Ada_Bind_File cases. | |
4209 | * switch-b.adb (Scan_Binder_Switches): Do not handle -C. | |
4210 | * gnatbind.adb (Gnatbind): Remove not Ada_Bind_File cases. | |
4211 | * opt.ads (Ada_Bind_File): Remove. | |
4212 | ||
4213 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
4214 | ||
4215 | * projects.texi: Document target-specific directory in default project | |
4216 | path for gnatmake. | |
4217 | ||
4218 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
4219 | ||
4220 | * gnatls.adb, prj-env.adb: Add $prefix/share/gpr to default project | |
4221 | path in all cases . | |
4222 | ||
24558db8 AC |
4223 | 2011-08-04 Yannick Moy <moy@adacore.com> |
4224 | ||
4225 | * sem_ch3.adb, sem_ch5.adb, sem_util.adb, sem_ch4.adb, sem_ch8.adb, | |
4226 | opt.ads, lib-xref.ads: Code clean up. | |
4227 | ||
4228 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
4229 | ||
4230 | * gnat_rm.texi: Update description of Test_Case | |
4231 | * gnat_ugn.texi: Typo. | |
4232 | ||
4233 | 2011-08-04 Ed Falis <falis@adacore.com> | |
4234 | ||
4235 | * adaint.c (__gnat_get_number_of_cpus): fix typo in last checkin. | |
4236 | ||
4237 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
4238 | ||
4239 | * exp_ch4.adb (Suitable_Element): Skip field _parent on .NET/JVM when | |
4240 | it is of type Root_Controlled. This action eliminates fields Prev and | |
4241 | Next from type equality. | |
4242 | ||
4243 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
4244 | ||
4245 | * lib-xref-alfa.adb: Correct typo. | |
4246 | ||
4247 | 2011-08-04 Matthew Heaney <heaney@adacore.com> | |
4248 | ||
4249 | * a-cohata.ads (Hash_Table_Type): default-initialize the Nodes | |
4250 | component. | |
4251 | ||
1f9939b5 AC |
4252 | 2011-08-04 Yannick Moy <moy@adacore.com> |
4253 | ||
4254 | * sem_prag.adb (Check_Arg_Is_String_Literal): remove useless procedure | |
4255 | (Analyze_Pragma): allow static string expression for name of Test_Case, | |
4256 | instead of simply string literals. | |
4257 | * sem_util.adb (Get_Name_From_Test_Case_Pragma): adapt to static string | |
4258 | expressions. | |
4259 | ||
4260 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
4261 | ||
4262 | * makeutl.adb (Complete_Mains.Find_File_Add_Extension): Use canonical | |
4263 | case suffixes to find truncated main sources. | |
4264 | ||
4265 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
4266 | ||
4267 | * impunit.adb (Non_Imp_File_Names_95): Add g-tastus. | |
4268 | s-stusta.adb (Compute_All_Task): Use Put_Line instead of Put. | |
4269 | (Compute_Current_Task): Ditto. | |
4270 | ||
4271 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
4272 | ||
4273 | * gnat_ugn.texi: Mention GNAT.Task_Stack_Usage. | |
4274 | ||
4275 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
4276 | ||
4277 | * lib-xref-alfa.adb (Is_Global_Constant): new function that detects | |
4278 | library-level constant. | |
4279 | (Add_ALFA_Xrefs): ignore global constants in ALFA xref. | |
4280 | * sem_res.adb (Resolve_Actuals): do not add cross-reference to Formal | |
4281 | used as selector of parameter association, in ALFA mode. | |
4282 | ||
15d8a51d AC |
4283 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
4284 | ||
4285 | * exp_ch5.adb, exp_ch7.adb, exp_util.adb, bindgen.adb, sem_prag.adb, | |
4286 | s-tassta.adb, exp_ch4.adb, exp_disp.adb, s-stausa.adb: Minor | |
4287 | reformatting. | |
4288 | ||
4289 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
4290 | ||
4291 | * make.adb (Linking_Phase): Set source search path before calling | |
4292 | gnatlink in CodePeer mode. | |
4293 | ||
f46faa08 AC |
4294 | 2011-08-04 Javier Miranda <miranda@adacore.com> |
4295 | ||
4296 | * exp_ch7.adb (Expand_N_Package_Body, Expand_N_Package_Declaration): | |
4297 | Remove code which takes care of building TSDs. | |
4298 | * rtsfind.ads (RE_Check_Interface_Conversion): New entity. | |
4299 | * exp_ch4.adb (Apply_Accessibility_Check): Add support for generating | |
4300 | the accessibility check in VM targets. | |
4301 | * exp_disp.adb (Make_VM_TSD): Spec moved to exp_disp.ads | |
4302 | (Building_Static_DT): Now returns false for VM targets. | |
4303 | (Build_VM_TSDs): Removed. | |
4304 | (Expand_Interface_Conversion): Generate missing runtime check for | |
4305 | conversions to interface types whose target type is unknown at compile | |
4306 | time. | |
4307 | (Make_VM_TSD): Add missing code to disable the generation of calls to | |
4308 | Check_TSD if the tagged type is not defined at library level, or not | |
4309 | has a representation clause specifying its external tag, or -gnatdQ is | |
4310 | active. | |
4311 | * exp_disp.ads (Build_VM_TSDs): Removed. | |
4312 | (Make_VM_TSDs): Spec relocated from exp_disp.adb | |
4313 | * sem_disp.adb (Check_Dispatching_Operation): No code required to | |
4314 | register primitives in the dispatch tables in VM targets. | |
4315 | * exp_ch3.adb (Expand_N_Object_Declaration): Remove wrong expansion of | |
4316 | initialization of class-wide interface objects in VM targets. | |
4317 | (Expand_Freeze_Record_Type): For VM targets call Make_VM_TSD (instead | |
4318 | of Make_DT). | |
4319 | ||
4320 | 2011-08-04 Jerome Lambourg <lambourg@adacore.com> | |
4321 | ||
4322 | * gnatlink.adb (Gnatlink): Correct missleading error message displayed | |
4323 | when dotnet-ld cannot be found. | |
4324 | ||
4325 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
4326 | ||
4327 | * bindgen.adb: Simplify significantly generation of binder body file in | |
4328 | CodePeer mode. | |
4329 | * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Prevent assert failure | |
4330 | when compiling binder generated file in CodePeer mode (xxx'Elab_Spec | |
4331 | not expanded). | |
4332 | ||
2ba7e31e AC |
4333 | 2011-08-04 Yannick Moy <moy@adacore.com> |
4334 | ||
4335 | * sem_prag.adb, sem.ads: Code cleanup. | |
4336 | ||
4337 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
4338 | ||
4339 | * s-tassta.adb (Task_Wrapper): Rewrite the dynamic stack usage part. | |
4340 | * s-stausa.adb, s-stausa.ads: Major rewrite. Now provides accurate | |
4341 | results if possible. | |
4342 | * s-stusta.adb (Print): Adjust after changes in s-stausa. | |
4343 | * gnat_ugn.texi: Update dynamic stack usage section. | |
4344 | ||
4345 | 2011-08-04 Steve Baird <baird@adacore.com> | |
4346 | ||
4347 | * bindgen.adb (Gen_CodePeer_Wrapper): new procedure. | |
4348 | Generate (if CodePeer_Mode is set) a "wrapper" subprogram which | |
4349 | contains only a call to the user-defined main subprogram. | |
4350 | (Gen_Main_Ada) - If CodePeer_Mode is set, then | |
4351 | call the "wrapper" subprogram instead of directly | |
4352 | calling the user-defined main subprogram. | |
4353 | ||
4354 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
4355 | ||
4356 | * exp_ch5.adb (Expand_N_Case_Statement): Check the statements of all | |
4357 | alternatives of a case statement for controlled objects. Rename local | |
4358 | variable A to Dead_Alt. | |
4359 | (Expand_N_If_Statement): Check the then and else statements of an if | |
4360 | statement for controlled objects. Check the then statements of all | |
4361 | elsif parts of an if statement for controlled objects. | |
4362 | (Expand_N_Loop_Statement): Check the statements of a loop for controlled | |
4363 | objects. | |
4364 | * exp_ch7.adb (Process_Transient_Objects): Rewrite the condition which | |
4365 | detects a loop associated with the expansion of an array object. | |
4366 | Augment the processing of the loop statements to account for a possible | |
4367 | wrap done by Process_Statements_For_Controlled_Objects. | |
4368 | * exp_ch9.adb (Expand_N_Asynchronous_Select): Check the triggering | |
4369 | statements and abortable part of an asynchronous select for controlled | |
4370 | objects. | |
4371 | (Expand_N_Conditional_Entry_Call): Check the else statements of a | |
4372 | conditional entry call for controlled objects. | |
4373 | (Expand_N_Selective_Accept): Check the alternatives of a selective | |
4374 | accept for controlled objects. | |
4375 | (Expand_N_Timed_Entry_Call): Check the entry call and delay | |
4376 | alternatives of a timed entry call for controlled objects. | |
4377 | * exp_ch11.adb (Expand_Exception_Handlers): Check the statements of an | |
4378 | exception handler for controlled objects. | |
4379 | * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)): | |
4380 | Add formal parameter Nested_Constructs along with its associated | |
4381 | comment. | |
4382 | (Requires_Cleanup_Actions (Node_Id)): Update all calls to | |
4383 | Requires_Cleanup_Actions. | |
4384 | (Process_Statements_For_Controlled_Objects): New routine. | |
4385 | * exp_util.ads (Process_Statements_For_Controlled_Objects): New | |
4386 | routine. Inspect a node which contains a non-handled sequence of | |
4387 | statements for controlled objects. If such an object is found, the | |
4388 | statements are wrapped in a block. | |
4389 | ||
1bf773bb AC |
4390 | 2011-08-04 Bob Duff <duff@adacore.com> |
4391 | ||
4392 | * sem_type.adb (Covers): If T2 is a subtype of a class-wide type, we | |
4393 | need to compare with Class_Wide_Type (T2), in order to get at the | |
4394 | original class-wide type node. | |
4395 | * sem_type.ads (Covers): Improve the comment. | |
4396 | * einfo.ads (Class_Wide_Type): Improve the comment. | |
4397 | * exp_intr.adb (Expand_Unc_Deallocation): Remove unnecessary setting of | |
4398 | the type of the Deref. | |
4399 | ||
4400 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
4401 | ||
4402 | * gnat_rm.texi: Document that Test_Case pragma can only appear on | |
4403 | separate declarations. | |
4404 | * sem_prag.adb (procedure Check_Identifier_Is_One_Of): new procedure to | |
4405 | check identifier of pragma argument. | |
4406 | (Chain_TC): check that no other test case associated to the same entity | |
4407 | share the same name. | |
4408 | (Check_Test_Case): disallow test case inside subprogram body | |
4409 | (Analyze_Pragma): correct call to check identifier and not argument | |
4410 | * sem_util.adb, sem_util.ads (Get_Name_From_Test_Case_Pragma): new | |
4411 | function gets name from test case pragma. | |
4412 | ||
dac3bede YM |
4413 | 2011-08-04 Yannick Moy <moy@adacore.com> |
4414 | ||
4415 | * gnat_rm.texi: Document new pragma and aspect. | |
4416 | * aspects.adb, aspects.ads (Aspect_Id): new value Aspect_Test_Case | |
4417 | (No_Duplicates_Allowed): new constant array defining whether duplicates | |
4418 | aspects of each kind can appear on the same declaration. | |
4419 | * einfo.adb, einfo.ads (Spec_PPC_List): replace field with Contract | |
4420 | field, which points to a node holding the previous Spec_PPC_List. | |
4421 | * exp_ch9.adb, sem_ch6.adb, sem_prag.adb: Reach to Spec_PPC_List | |
4422 | through the indirection with Contract. | |
4423 | * exp_util.adb (Insert_Actions): raise Program_Error on N_Contract node | |
4424 | * par-prag.adb (Prag): do nothing on Test_Case pragma | |
4425 | * sem.adb (Analyze): abort on N_Contract, on which Analyze should not | |
4426 | be called directly. | |
4427 | * sem_attr.adb (Analyze_Attribute): allow attribute 'Result in | |
4428 | component Ensures of Test_Case. | |
4429 | * sem_ch12.adb, sem_ch6.adb, sem_ch9.adb | |
4430 | (Analyze_Generic_Subprogram_Declaration, | |
4431 | Analyze_Subprogram_Instantiation, | |
4432 | Analyze_Abstract_Subprogram_Declaration, | |
4433 | Analyze_Subprogram_Body_Helper, | |
4434 | Analyze_Subprogram_Specification, Analyze_Entry_Declaration): | |
4435 | insert contract in subprogram node at point of definition | |
4436 | * sem_ch13.adb | |
4437 | (Aspect_Loop): do not raise error on duplicate Test_Case aspect | |
4438 | (Analyze_Aspect_Specifications): analyze Test_Case aspect and create | |
4439 | corresponding pragma | |
4440 | (Check_Aspect_At_Freeze_Point): raise Program_Error on Test_Case aspect | |
4441 | * sem_ch3.adb (Analyze_Declarations): insert analysis of test-cases, | |
4442 | similar to the analysis of pre/post | |
4443 | (Derive_Subprogram): insert contract in subprogram node at point of | |
4444 | derivation. | |
4445 | * sem_prag.adb, sem_prag.ads | |
4446 | (Check_Arg_Is_String_Literal, Check_Identifier): | |
4447 | new checking procedures to be called in treatment of pragmas | |
4448 | (Check_Test_Case): new procedure to check that a Test_Case aspect or | |
4449 | pragma is well-formed. This does not check currently that 'Result is | |
4450 | used only in the Ensures component of a Test_Case. | |
4451 | (Analyze_Pragma): add case for Test_Case | |
4452 | (Analyze_TC_In_Decl_Part): pre-analyze the Requires and Ensures | |
4453 | components of a Test_Case. | |
4454 | (Preanalyze_TC_Args): new procedure to preanalyze the boolean | |
4455 | expressions in the 3rd (and 4th if present) arguments of a Test_Case | |
4456 | pragma, treated as spec expressions. | |
4457 | (Sig_Flags): add value -1 for Test_Case. | |
4458 | * sem_util.adb, sem_util.ads (Get_Ensures_From_Test_Case_Pragma, | |
4459 | Get_Requires_From_Test_Case_Pragma): getters for both expression | |
4460 | components of a Test_Case. | |
4461 | * sinfo.adb, sinfo.ads (N_Contract): new kind of node used as | |
4462 | indirection between an entry or [generic] subprogram entity and its | |
4463 | pre/post + test-cases. | |
4464 | (Spec_PPC_List, Spec_TC_List, Set_Spec_PPC_List, Set_Spec_TC_List): | |
4465 | get/set for fields of an N_Contract node. | |
4466 | * snames.ads-tmpl (Name_Test_Case, Name_Ensures, Name_Mode, | |
4467 | Name_Normal, Name_Requires, Name_Robustness, Pragma_Test_Case): new | |
4468 | names and pragma for Test_Case. | |
4469 | * sprint.adb (Sprint_Node): raise Program_Error on N_Contract node | |
4470 | ||
6a2e5d0f AC |
4471 | 2011-08-04 Vincent Celier <celier@adacore.com> |
4472 | ||
4473 | * gnat_ugn.texi: Improve documentation of gnatmake switch | |
4474 | --source-info-file=. | |
4475 | ||
4476 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
4477 | ||
4478 | * exp_ch7.adb (Make_Final_Call): Add local variable Atyp (assertion | |
4479 | type). Initialize Atyp to the appropriate type which is later checked | |
4480 | for completion. Rewrite the assertion associated with private type | |
4481 | completion. | |
4482 | ||
4483 | 2011-08-04 Ed Falis <falis@adacore.com> | |
4484 | ||
4485 | * adaint.c: Add call to vxCpuConfiguredGet for VxWorks SMP to | |
4486 | initialize the number of CPUs. | |
4487 | ||
4488 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
4489 | ||
4490 | * sem_type.adb (Disambiguate): New subsidiary routine | |
4491 | In_Same_Declaration_List, to implement AI05-0020: a user-defined | |
4492 | equality on an anonymous access type whose designated type is private | |
4493 | does not lead to an ambiguity with the universal access equality | |
4494 | operator in the body or child units of the defining package. The same | |
4495 | is true for a multiplication operator on a private type completed with | |
4496 | a fixed-point-type. | |
4497 | ||
4498 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
4499 | ||
4500 | * opt.ads (Init_Or_Norm_Scalars_Config): Removed. | |
4501 | (Normalize_Scalars_Config): Removed. | |
4502 | * opt.adb | |
4503 | (Register_Opt_Config_Switches): Remove registering config values of | |
4504 | Init_Or_Norm_Scalars_Config and Normalize_Scalars_Config. | |
4505 | (Restore_Opt_Config_Switches): Remove code which restores the values of | |
4506 | Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of | |
4507 | Init_Or_Norm_Scalars. | |
4508 | (Save_Opt_Config_Switches): Remove code which saves values of | |
4509 | Init_Or_Norm_Scalars and Normalize_Scalars. | |
4510 | (Set_Opt_Config_Switches): Remove code which restores config values of | |
4511 | Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of | |
4512 | Init_Or_Norm_Scalars. | |
4513 | ||
4514 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
4515 | ||
4516 | * frontend.adb (Frontend): remove previous patch to avoid full | |
4517 | qualification in ALFA mode. | |
4518 | * lib-xref-alfa.adb (Add_ALFA_Xrefs): use unique name for variables. | |
4519 | * sem_util.adb, sem_util.ads (Unique_Name): new function to define a | |
4520 | unique name for an entity, which could be used to identify the entity | |
4521 | across compilation units. | |
4522 | ||
4523 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
4524 | ||
4525 | * prj-env.adb | |
4526 | (Initialize_Default_Project_Path): Add target specific directory | |
4527 | ($prefix/$target/lib/gnat) in front of project path in all cases | |
4528 | (making gnatmake's behaviour consistent with gprbuild). | |
4529 | * gnatcmd.adb, make.adb, prj-makr.adb, clean.adb: | |
4530 | Pass target name from Sdefault to project subsystem. | |
4531 | * gnatls.adb: Show new target specific default project directory. | |
4532 | ||
4533 | 2011-08-04 Johannes Kanig <kanig@adacore.com> | |
4534 | ||
4535 | * cstand.adb: Add Information to Identifier in Standard | |
4536 | (Identifer_For): Set Entity to the corresponding entity | |
4537 | ||
483361a6 AC |
4538 | 2011-08-04 Sergey Rybin <rybin@adacore.com> |
4539 | ||
4540 | * gnat_ugn.texi: Update doc on gnatcheck. | |
4541 | ||
4542 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
4543 | ||
4544 | * lib-xref-alfa.adb (Add_ALFA_Xrefs): correct definition of ranges of | |
4545 | xrefs in a scope. | |
4546 | ||
4547 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
4548 | ||
4549 | * exp_prag.adb (Expand_Pragma_Check): in ALFA mode, return without | |
4550 | performing expansion. | |
4551 | * sem_ch6.adb (Analyze_Subprogram_Body_Helper, | |
4552 | Analyze_Generic_Subprogram_Body): protect call to Process_PCCs so that | |
4553 | it is not called in ALFA mode. | |
4554 | ||
ef5569c6 AC |
4555 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
4556 | ||
4557 | * make.adb, osint.adb, osint.ads (Reset_Command_Line_Files): not used | |
4558 | after all, so removed. | |
4559 | ||
4560 | 2011-08-04 Sergey Rybin <rybin@adacore.com> | |
4561 | ||
4562 | * vms_data.ads: Add missing VMS qualifiers. | |
4563 | ||
1ab4a286 EB |
4564 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
4565 | ||
4566 | * make.adb, makeutl.adb, osint.adb, osint.ads (Check_Mains): rebuild | |
4567 | the list of files on the command line after processing it through | |
4568 | Complete_Mains. | |
4569 | ||
7ae0d98c AC |
4570 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> |
4571 | ||
4572 | * exp_ch7.adb (Build_Raise_Statement): Remove the specialized | |
4573 | processing for .NET/JVM. These targets can now benefit from | |
4574 | Raise_From_Controlled_Operation and they share the same processing with | |
4575 | standard targets. | |
4576 | (Establish_Transient_Scope): Remove the restriction for .NET/JVM. | |
4577 | These targets need transient scopes in order to properly finalize short | |
4578 | lived controlled objects. | |
4579 | (Make_Handler_For_Ctrl_Operation): Remove the specialized processing for | |
4580 | NET/JVM. These targets can now benefit from | |
4581 | Raise_From_Controlled_Operation and they share the same processing with | |
4582 | standard targets. | |
4583 | ||
4584 | 2011-08-04 Geert Bosch <bosch@adacore.com> | |
4585 | ||
4586 | * tracebak.c (STOP_FRAME): Stop at any next pointer outside the stack | |
4587 | ||
4588 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
4589 | ||
4590 | * exp_aggr.adb (Has_Visible_Private_Ancestor): subsidiary routine to | |
4591 | Expand_Record_Aggregate, to determine whether aggregate must be | |
4592 | expanded into assignments. This is the case if the ancestor part is | |
4593 | private, regarless of the setting of the flag Has_Private_Ancestor. | |
4594 | ||
4595 | 2011-08-04 Ed Falis <falis@adacore.com> | |
4596 | ||
4597 | * vxaddr2line.adb: Add support for e500v2 and for Linux hosts | |
4598 | ||
4599 | 2011-08-04 Bob Duff <duff@adacore.com> | |
4600 | ||
4601 | * sinfo.ads: Fix comment. | |
4602 | ||
4603 | 2011-08-04 Steve Baird <baird@adacore.com> | |
4604 | ||
4605 | * bindgen.adb (Get_Ada_Main_Name): If CodePeer_Mode is set, then | |
4606 | choose a package name in much the same way as is | |
4607 | done for JGNAT when VM_Target /= No_VM, except that | |
4608 | a slightly more distinctive prefix string is used. | |
4609 | ||
4610 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
4611 | ||
4612 | * makeutl.adb (Complete_Mains): no longer accept unit names on the | |
4613 | gnatmake command line. | |
4614 | This behavior was never documented (and was supported only because of | |
4615 | an early bug in the code). This case might lead to ambiguous cases | |
4616 | (between unit names and truncated base names without suffixes). | |
4617 | ||
87729e5a AC |
4618 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> |
4619 | ||
4620 | * a-tags.ads, a-tags.adb (Unregister_Tag): New routine. | |
4621 | Remove the external tag of a tagged type from the internal hash table. | |
4622 | * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on the | |
4623 | expanded usage of the routine. Strenghten the check for Is_Master. Add | |
4624 | processing for tagged types. | |
4625 | (Build_Finalizer): Create all the necessary lists used in finalizer | |
4626 | creation when the processed context is a package that may contain | |
4627 | tagged types. | |
4628 | (Expand_Cleanup_Actions): Rename the call to Has_Controlled_Objects to | |
4629 | Requires_Cleanup_Actions. | |
4630 | (Expand_N_Package_Body): Package bodies may need clean up code | |
4631 | depending on whether they contain tagged types. | |
4632 | (Expand_N_Package_Declaration): Package declarations may need clean up | |
4633 | code depending on whether they contain tagged types. | |
4634 | (Unregister_Tagged_Types): New routine. Search through a list of | |
4635 | declarations or statements, looking for non-abstract Ada tagged types. | |
4636 | For each such type, generate code to unregister the external tag. | |
4637 | * exp_util.adb (Has_Controlled_Objects (Node_Id)): Renamed to | |
4638 | Requires_Cleanup_Actions. | |
4639 | (Requires_Cleanup_Actions (List_Id, Boolean)): New routine. Search | |
4640 | through a list of declarations or statements looking for non-abstract | |
4641 | Ada tagged types or controlled objects. | |
4642 | * exp_util.ads (Has_Controlled_Objects (Node_Id)): Renamed to | |
4643 | Requires_Cleanup_Actions. | |
4644 | (Has_Controlled_Objects (List_Id, Boolean)): Removed. | |
4645 | * rtsfind.ads: Add entry RE_Unregister_Tag to tables RE_Id and | |
4646 | RE_Unit_Table. | |
4647 | ||
4648 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
4649 | ||
4650 | * prj-env.adb (For_All_Source_Dirs.For_Project): Check if project Prj | |
4651 | has Ada sources, not project Project, because if the root project | |
4652 | Project has no sources of its own, all projects will be deemed without | |
4653 | sources. | |
4654 | ||
4655 | 2011-08-04 Gary Dismukes <dismukes@adacore.com> | |
4656 | ||
4657 | * bindgen.adb (Gen_Adainit_Ada): Move the generation of the declaration | |
4658 | of the No_Param_Proc acc-to-subp type used for initialization of | |
4659 | __gnat_finalize_library_objects so that it's declared at library level | |
4660 | rather than nested inside of the adainit routine. | |
4661 | ||
4662 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
4663 | ||
4664 | * exp_disp.adb (Make_DT): Generate code to check the external tag ONLY | |
4665 | if the tagged type has a representation clause which specifies its | |
4666 | external tag. | |
4667 | ||
4668 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
4669 | ||
4670 | * einfo.ads, einfo.adb (Has_Private_Ancestor): now a flag on types. | |
4671 | Remove previous procedure with that name. | |
4672 | * sem_ch3.adb (Build_Derived_Record_Type): set Has_Private_Ancestor | |
4673 | when appropriate. | |
4674 | * sem_aggr.adb (Resolve_Extension_Aggregate): if the ancestor part is a | |
4675 | subtype mark, the ancestor cannot have unknown discriminants. | |
4676 | (Resolve_Record_Aggregate): if the type has invisible components | |
4677 | because of a private ancestor, the aggregate is illegal. | |
4678 | ||
4679 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
4680 | ||
4681 | * switch-m.adb (Normalize_Compiler_Switches): Recognize and take into | |
4682 | account switches -gnat2005, -gnat12 and -gnat2012. | |
4683 | ||
4684 | 2011-08-04 Bob Duff <duff@adacore.com> | |
4685 | ||
4686 | * s-tasdeb.ads: Minor comment fix. | |
4687 | ||
4688 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
4689 | ||
4690 | * gnatlink.adb (Gnatlink): Pass -gnat83/95/05/12 switch to gcc in | |
4691 | CodePeer mode. | |
4692 | * switch.ads, switch.adb (Is_Language_Switch): New function. | |
4693 | ||
4694 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
4695 | ||
4696 | * switch-c.adb: Minor comment addition. | |
4697 | ||
4698 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
4699 | ||
4700 | * vms_conv.adb (Process_Argument): Fail graciously when qualifier | |
4701 | ending with '=' is followed by a space (missing file name). | |
4702 | ||
4703 | 2011-08-04 Pascal Obry <obry@adacore.com> | |
4704 | ||
4705 | * g-regist.ads: Fix size of HKEY on x86_64-windows. | |
4706 | ||
4707 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
4708 | ||
4709 | * sem_ch12.adb (Analyze_Associations): New routine | |
4710 | Check_Overloaded_Formal_Subprogram to reject a formal package when | |
4711 | there is a named association or a box initialisation for an overloaded | |
4712 | formal subprogram of the corresponding generic. | |
4713 | ||
4714 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
4715 | ||
4716 | * alfa.ads (ALFA_Xref_Record): add component for type of entity | |
4717 | * get_alfa.adb, put_alfa.adb: Read and write new component of | |
4718 | cross-reference. | |
4719 | * lib-xref-alfa.adb (Collect_ALFA): generate new component. | |
4720 | ||
88f47280 AC |
4721 | 2011-08-04 Pascal Obry <obry@adacore.com> |
4722 | ||
4723 | * urealp.adb: Minor reformatting. | |
4724 | ||
4725 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
4726 | ||
4727 | * exp_ch7.adb (build_finalizer.process_declarations.processing_actions): | |
4728 | Handle the case when Cleanup_Protected_Object returns Empty. | |
4729 | ||
4730 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
4731 | ||
4732 | * frontend.adb (Frontend): only qualify names in non-ALFA mode | |
4733 | ||
4734 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
4735 | ||
4736 | * sem_ch4.adb (Try_Class_Wide_Operation): if the context is a procedure | |
4737 | call, ignore functions. | |
4738 | ||
05c53a69 GB |
4739 | 2011-08-04 Geert Bosch <bosch@adacore.com> |
4740 | ||
4741 | * urealp.adb (Equivalent_Decimal_Exponent): Avoid the use of floating | |
4742 | point. | |
4743 | ||
23cc1ace EB |
4744 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
4745 | ||
4746 | * makeutl.adb (Compute_Builder_Switches): no longer accept a unit name | |
4747 | as an index for Builder'Switches. This conforms to the documentation. | |
4748 | * make.adb (Insert_Project_Sources): avoid duplicate code | |
4749 | ||
cef14201 AC |
4750 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
4751 | ||
4752 | * makeutl.adb (Complete_Mains): if the user has passed a relative file | |
4753 | name on the command line (for instance "../dummy"), never assume it can | |
4754 | be a unit name. | |
4755 | ||
4756 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
4757 | ||
4758 | * bindgen.adb: Remove code the reference or create the | |
4759 | Break_Start/__gnat_break_start procedure. | |
4760 | * s-stalib.adb (Break_Start): Removed. | |
4761 | ||
e2fee30d EB |
4762 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
4763 | ||
4764 | * make.adb, makeutl.adb, makeutl.ads (Compute_Builder_Switches): now | |
4765 | shared with gprbuild. | |
4766 | ||
2d395256 AC |
4767 | 2011-08-04 Yannick Moy <moy@adacore.com> |
4768 | ||
4769 | * par-ch4.adb (P_Primary): preferentially issue an error message about | |
4770 | a missing parenthesis arount a conditional or case expression in Ada | |
4771 | 2012 mode, if we detect that the alignment is not correct for a | |
4772 | statement. | |
4773 | ||
4774 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
4775 | ||
4776 | * exp_ch7.adb (Process_Declarations): Do not consider the result of a | |
4777 | tag-to-class-wide conversion as needing finalization actions. | |
4778 | * exp_util.adb (Has_Controlled_Objects): Do not consider the result of | |
4779 | a tag-to-class-wide conversion as needing finalization actions. | |
4780 | (Is_Finalizable_Transient): The result of a tag-to-class-wide | |
4781 | conversion does not need finalization actions. | |
4782 | (Is_Tag_To_CW_Conversion): New routine. | |
4783 | * exp_util.ads (Is_Tag_To_CW_Conversion): New routine. Determines | |
4784 | whether an object is the result of a tag-to-class-wide conversion. | |
4785 | ||
4786 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
4787 | ||
4788 | * sem_ch13.adb (Analyze_Aspect_Specifications): correct order in which | |
4789 | the left-hand-side and right-hand-side of a conjunct are inserted when | |
4790 | translating a pre- or postcondition | |
4791 | * sem_ch6.adb: Correct typo in comment | |
4792 | ||
4793 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
4794 | ||
4795 | * gnat_rm.texi: Ravenscar does not prohibit dependence on | |
4796 | Unchecked_Conversion and Unchecked_Deallocation. | |
4797 | ||
4798 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
4799 | ||
4800 | * make.adb: Minor reformatting. | |
4801 | ||
767ab2fd EB |
4802 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
4803 | ||
4804 | * prj.adb, prj.ads, makeutl.adb (Complete_Mains): search for the | |
4805 | sources in the project and its imported projects, but not in the whole | |
4806 | tree. | |
4807 | ||
8fb3f5df AC |
4808 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
4809 | ||
4810 | * make.adb: Remove debug trace. | |
4811 | ||
4812 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
4813 | ||
4814 | * makeutl.adb (Do_Complete): Get the absolute path name of a relative | |
4815 | path in canonical form, to be able to compare path names on platforms | |
4816 | such as Windows or Darwin. | |
4817 | ||
4818 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
4819 | ||
4820 | * par_sco.adb (Traverse_Declarations_Or_Statements.Set_Statement_Entry): | |
4821 | For a pragma (statement with C1 = 'P'), record the sloc of the pragma. | |
4822 | * scos.ads: Update documentation accordingly. | |
4823 | * put_scos.adb (Output_SCO_Line): Omit statement SCOs for disabled | |
4824 | pragmas. | |
4825 | ||
9515740f AC |
4826 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> |
4827 | ||
4828 | * sem_attr.adb (Bad_Attribute_For_Predicate): flag illegal use of | |
4829 | attribute only if prefix type is scalar. | |
4830 | ||
4831 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
4832 | ||
4833 | * make.adb, makeutl.adb, prj-env.adb (Check_Mains): put back support | |
4834 | in gnatmake for specifying mains on the command line that do not belong | |
4835 | to the main project. These mains must currently all belong to the same | |
4836 | project, though. | |
4837 | (Ultimate_Extension_Of): removed, since duplicated | |
4838 | Ultimate_Extending_Project. | |
4839 | ||
92966893 AC |
4840 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
4841 | ||
4842 | * make.adb (Do_Codepeer_Globalize_Step): Removed. Use CodePeer_Mode | |
4843 | instead. | |
4844 | (CodePeer_Mode_String): New. | |
4845 | (Linking_Phase, Binding_Phase): Call gnatlink with -P switch in | |
4846 | CodePeer mode. | |
4847 | (Scan_Make_Arg): Do not disable binding/linking phase in CodePeer mode. | |
4848 | * bindgen.adb (Gen_Elab_Calls_Ada): Ignore subprograms in CodePeer | |
4849 | mode, since no useful elaboration subprogram is needed by CodePeer. | |
4850 | * gnatlink.adb (Gnatlink): Add support for -P switch (CodePeer mode). | |
4851 | In this mode, compile binder file with -gnatC and do stop after this | |
4852 | step. | |
4853 | ||
4854 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
4855 | ||
4856 | * exp_ch7.adb: Minor comment fix. | |
4857 | ||
5969611f RD |
4858 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
4859 | ||
4860 | * exp_ch7.adb, make.adb, sem_ch10.adb, bindgen.adb, sem_res.adb, | |
4861 | exp_ch4.adb, makeutl.adb: Minor reformatting. | |
4862 | ||
6367dd30 AC |
4863 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
4864 | ||
4865 | * make.adb, makeutl.adb, makeutl.ads (Make): major refactoring. | |
4866 | Create several new subprograms to move code out of Make. This makes the | |
4867 | code more readable, removes code duplication, and is a preparation work | |
4868 | for adding support for aggregate projects. | |
4869 | ||
4870 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
4871 | ||
4872 | * s-po32gl.ads, s-po32gl.adb: New files. | |
4873 | * exp_ch7.ads (Get_Global_Pool_For_Access_Type): New function. | |
4874 | * exp_ch7.adb (Get_Global_Pool_For_Access_Type): New function. | |
4875 | (Build_Finalization_Collection): Use it. | |
4876 | * exp_ch4.adb (Complete_Controlled_Allocation): Ditto. | |
4877 | * rtsfind.ads: System_Pool_32_Global, Re_Global_Pool_32_Object: New | |
4878 | literals. | |
4879 | * gcc-interface/Makefile.in: Use s-po32gl.o on VMS. | |
4880 | * gcc-interface/Make-lang.in: Update dependencies. | |
4881 | ||
cd8bfe35 EB |
4882 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
4883 | ||
4884 | * makeutl.adb (Complete_Mains): add support for specs with no suffix on | |
4885 | the command line. | |
4886 | ||
7db29ea7 EB |
4887 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
4888 | ||
4889 | * make.adb, makeutl.adb (Complete_Mains): if a main specified on the | |
4890 | command line is not a file name, also check whether it could be a unit | |
4891 | name. | |
4892 | ||
d9b056ea AC |
4893 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> |
4894 | ||
4895 | * bindgen.adb (Gen_Finalize_Library_Ada): Factor out code to generate | |
4896 | the header of the finalization routine. | |
4897 | If the unit has no finalizer but is a body whose spec has one, then | |
4898 | generate the decrement of the elaboration entity only. | |
4899 | If the unit has a finalizer and is a spec, then do not generate the | |
4900 | decrement of the elaboration entity. | |
4901 | (Gen_Finalize_Library_C): Likewise. | |
4902 | ||
4903 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
4904 | ||
4905 | * exp_ch7.adb (Alignment_Of): New subsidiary routine. | |
4906 | (Bounds_Size_Expression): Removed. | |
4907 | (Double_Alignment_Of): New subsidiary routine. | |
4908 | (Make_Finalize_Address_Stmts): New local variable Index_Typ. Account | |
4909 | for a hole in the dope vector of unconstrained arrays due to different | |
4910 | index and element alignments. | |
4911 | ||
4912 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
4913 | ||
4914 | * sem_res.adb (Resolve_Allocator): diagnose task allocator that will | |
4915 | raise program_error because body has not been seen yet. | |
4916 | ||
4917 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
4918 | ||
4919 | * sem_ch10.adb (Analyze_With_Clause): Protect against child unit with | |
4920 | an unresolved name. | |
4921 | ||
4922 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
4923 | ||
4924 | * makeutl.adb (Do_Complete): Check absolute paths in canonical forms | |
4925 | ||
4926 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
4927 | ||
4928 | * alfa.adb, alfa.ads (Unique_Defining_Entity): move function from here | |
4929 | * sem_util.adb, sem_util.ads (Unique_Defining_Entity): ...to here | |
4930 | ||
4931 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
4932 | ||
4933 | * sem_ch12.adb (Analyze_Package_Instantiation): Do not omit body for | |
4934 | instantiation in RCI. | |
4935 | ||
4936 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
4937 | ||
4938 | * make.adb: Share more code with gprbuild | |
4939 | ||
f5fc5b9d AC |
4940 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
4941 | ||
4942 | * projects.texi: Added documentation for the IDE'Gnat project file | |
4943 | attribute. | |
4944 | ||
4945 | 2011-08-04 Nicolas Roche <roche@adacore.com> | |
4946 | ||
4947 | * gnat_rm.texi: Minor editing. | |
4948 | ||
4949 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
4950 | ||
4951 | * bindgen.adb (Gen_Adafinal_Ada): Do not differentiate the main case | |
4952 | and the library case for VM targets. | |
4953 | (Gen_Adainit_Ada): Likewise. | |
4954 | ||
4955 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
4956 | ||
4957 | * g-altive.ads: Minor comment updates. | |
4958 | * prj-nmsc.adb: Minor reformatting. | |
4959 | ||
4960 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
4961 | ||
4962 | * opt.ads | |
4963 | (Normalize_Scalars_Config): Value of the configuration switch set by | |
4964 | pragma Normalize_Scalars when it appears in the gnat.adc file. | |
4965 | (Normalize_Scalars): New field for record Config_Switches_Type. Used | |
4966 | to save and restore settings of this pragma. | |
4967 | * opt.adb | |
4968 | (Register_Opt_Config_Switches, Save_Opt_Config_Switches, | |
4969 | Restore_Opt_Config_Switches): Add missing support for Normalize_Scalars. | |
4970 | ||
4971 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
4972 | ||
4973 | * gnat_ugn.texi: Document gnatlink options -M and -M=mapfile | |
4974 | ||
0c4683cf AC |
4975 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
4976 | ||
4977 | * makeutl.adb: Minor reformatting. | |
4978 | ||
4979 | 2011-08-04 Olivier Hainque <hainque@adacore.com> | |
4980 | ||
4981 | * g-altive.ads: Update comments to reflect that only the soft | |
4982 | binding is available today. | |
4983 | ||
2598ee6d RD |
4984 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
4985 | ||
4986 | * bindgen.adb, einfo.adb, sem_ch12.adb, s-tasren.adb, sem_res.adb, | |
4987 | makeutl.adb, prj-nmsc.adb, opt.ads, prj-env.adb: Minor reformatting | |
4988 | * gcc-interface/Make-lang.in: Update dependencies. | |
4989 | ||
c2db4b32 AC |
4990 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
4991 | ||
4992 | * prj-env.adb: Remove local debug traces. | |
4993 | ||
4994 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
4995 | ||
4996 | * checks.adb (Apply_Float_Conversion_Check): correct a typo where Lo_OK | |
4997 | was used instead of Hi_OK, which could cause a read of an uninitialized | |
4998 | value later on. Detected while working on the new warning. | |
4999 | * exp_ch9.adb (Expand_N_Entry_Declaration): remove useless assignment | |
5000 | to local variable. | |
5001 | * sem_ch5.adb (Analyze_Assignment): set the last assignment component | |
5002 | in more cases, in order to detect more unreferenced values. | |
5003 | * sem_util.adb, sem_util.ads (Get_Enclosing_Object): return enclosing | |
5004 | object for expression, if any. | |
5005 | ||
5006 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> | |
5007 | ||
5008 | * exp_intr.adb (Expand_Binary_Operator_Call): Look at the RM size of | |
5009 | the operand types instead of the Esize. | |
5010 | ||
5011 | 2011-08-04 Steve Baird <baird@adacore.com> | |
5012 | ||
5013 | * switch-b.adb (Scan_Binder_Switches): Add -P binder switch, used to | |
5014 | enable CodePeer_Mode. | |
5015 | * bindusg.adb (Display): Add help message describing -P binder switch. | |
5016 | * gnat_ugn.texi: Document -P binder switch. | |
5017 | * bindgen.adb (Gen_Main_Ada): If CodePeer_Mode is set, then call the | |
5018 | user-defined main program directly. | |
5019 | (Gen_Output_File_Ada): If CodePeer_Mode is set, generate a with of the | |
5020 | user-defined main program in the context clause of the package body. | |
5021 | ||
ad05f2e9 AC |
5022 | 2011-08-04 Yannick Moy <moy@adacore.com> |
5023 | ||
5024 | * alfa.adb, alfa.ads (Get_Entity_For_Decl): remove function, partial | |
5025 | duplicate of Defining_Entity | |
5026 | (Get_Unique_Entity_For_Decl): rename function into | |
5027 | Unique_Defining_Entity | |
5028 | * einfo.adb, einfo.ads (Is_In_ALFA, Body_Is_In_ALFA): remove flags | |
5029 | (Formal_Proof_On): remove synthesized flag | |
5030 | * cstand.adb, sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, | |
5031 | sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_res.adb, sem_util.adb, | |
5032 | sem_util.ads, stand.ads: Remove treatment associated to entities in ALFA | |
5033 | * sem_prag.adb (Analyze_Pragma): remove special treatment for pragma | |
5034 | Annotate (Formal_Proof) | |
5035 | ||
5036 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
5037 | ||
5038 | * prj-env.adb (Create_Config_Pragmas_File): fix handling of multi-unit | |
5039 | source files with non-standard naming schemes, in imported projects | |
5040 | ||
756ef2a0 AC |
5041 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
5042 | ||
5043 | * makeutl.adb (Complete_Mains): when a multi-unit source file is | |
5044 | specified on the gprbuild command line, we need to compile all units | |
5045 | within that file, not just the first one we find | |
5046 | Fix error message for mains that are not found. | |
5047 | ||
5048 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
5049 | ||
5050 | * sem_ch6.adb: Update comment. | |
5051 | * sem_ch12.adb: Minor reformatting. | |
5052 | ||
5053 | 2011-08-04 Bob Duff <duff@adacore.com> | |
5054 | ||
5055 | * s-tasren.adb (Task_Do_Or_Queue): Previous code was reading | |
5056 | Acceptor.Terminate_Alternative without locking Acceptor, which causes a | |
5057 | race condition whose symptom is to fail to lock Parent. That, in turn, | |
5058 | causes Parent.Awake_Count to be accessed without locking Parent, which | |
5059 | causes another race condition whose symptom is that Parent.Awake_Count | |
5060 | can be off by 1 (either too high or too low). The solution is to lock | |
5061 | Parent unconditionally, and then lock Acceptor, before reading | |
5062 | Acceptor.Terminate_Alternative. | |
5063 | ||
4fdebd93 AC |
5064 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
5065 | ||
5066 | * debug.adb: Update comment. | |
5067 | ||
5068 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
5069 | ||
5070 | * par_sco.adb, exp_util.adb, make.adb, a-tags.adb, sem_prag.adb, | |
5071 | sem_util.adb, sem_attr.adb, exp_ch4.adb, g-comlin.adb, g-comlin.ads, | |
5072 | exp_ch6.adb: Minor reformatting. | |
5073 | ||
5074 | 2011-08-04 Gary Dismukes <dismukes@adacore.com> | |
5075 | ||
5076 | * gnat_ugn.texi: Add sentence about the case of compile-time-detected | |
5077 | checks for -gnateE. | |
5078 | ||
5079 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
5080 | ||
5081 | * gnat_rm.texi: update Ravenscar desription to reflect Ada2012 RM. | |
5082 | ||
5083 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
5084 | ||
5085 | * sinfo.ads: Minor reformatting. | |
5086 | ||
5087 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
5088 | ||
5089 | * makeutl.adb, makeutl.ads, prj-nmsc.adb (Complete_Mains): report error | |
5090 | even if there is no location. | |
5091 | ||
6aaa0587 ES |
5092 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> |
5093 | ||
5094 | * sem_res.adb, sem_ch4.adb: move check for restriction | |
5095 | No_Task_Hierarchy to resolve_allocator. | |
5096 | ||
35a1c212 AC |
5097 | 2011-08-04 Thomas Quinot <quinot@adacore.com> |
5098 | ||
5099 | * sinfo.adb, sinfo.ads, sem_prag.adb, sem_ch12.adb (Pragma_Enabled): | |
5100 | This flag of N_Pragma nodes is not used, remove it as well as all of | |
5101 | the associated circuitry. | |
5102 | ||
5103 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
5104 | ||
5105 | * exp_disp.adb (Make_DT): Switch -gnatdQ disables the generation of the | |
5106 | runtime check on duplicated externa tags | |
5107 | * debug.adb Document switch -gnatdQ. | |
5108 | ||
5109 | 2011-08-04 Gary Dismukes <dismukes@adacore.com> | |
5110 | ||
5111 | * a-fihema.ads: Minor typo fix. | |
5112 | ||
5113 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
5114 | ||
5115 | * sem_ch10.adb: Minor comment update. | |
5116 | ||
5117 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
5118 | ||
5119 | * einfo.adb: Update the node field usage to reflect the renaming of | |
5120 | Return_Flag to Return_ Flag_Or_Transient_Decl. | |
5121 | (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl. | |
5122 | (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl. | |
5123 | (Write_Field15_Name): Change Return_Flag to | |
5124 | Return_Flag_Or_Transient_Decl. | |
5125 | * einfo.ads: Rename node field Return_Flag to | |
5126 | Return_Flag_Or_Transient_Decl. Update the associated comment and all | |
5127 | occurrences in entities. | |
5128 | (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl. Update | |
5129 | associated Inline pragma. | |
5130 | (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl. Update | |
5131 | associated Inline pragma. | |
5132 | * exp_ch4.ads, exp_ch4.adb (Expand_N_Expression_With_Actions): New | |
5133 | routine. | |
5134 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Update the calls to | |
5135 | Return_Flag and Set_Return_Flag. | |
5136 | * exp_ch7.adb (Process_Declarations): Add code to recognize hook | |
5137 | objects generated for controlled transients declared inside an | |
5138 | Exception_With_Actions. Update the calls to Return_Flag. | |
5139 | (Process_Object_Declaration): Add code to add a null guard for hook | |
5140 | objects generated for controlled transients declared inside an | |
5141 | Exception_With_Actions. Update related comment. | |
5142 | * exp_util.adb (Has_Controlled_Objects): Add code to recognize hook | |
5143 | objects generated for controlled transients declared inside an | |
5144 | Exception_With_Actions. Update the calls to Return_Flag. | |
5145 | * expander.adb (Expand): Add new case for N_Expression_With_Actions. | |
5146 | ||
5147 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
5148 | ||
5149 | * sem_util.adb:(Wrong_Type): Improve error message on a one-element | |
5150 | positional aggregate. | |
5151 | ||
5152 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
5153 | ||
5154 | * par_sco.adb (Process_Decisions.Output_Header): Check and record pragma | |
5155 | SLOC only for pragmas. | |
5156 | ||
5157 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
5158 | ||
5159 | * projects.texi: Minor typo fix. | |
5160 | ||
5161 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
5162 | ||
5163 | * prj-nmsc.adb (Check_File): Minor change to traces, to help debugging | |
5164 | on case-sensitive file systems. | |
5165 | ||
c2873f74 TQ |
5166 | 2011-08-04 Thomas Quinot <quinot@adacore.com> |
5167 | ||
5168 | * put_scos.adb (Put_SCOs): Do not emit decision SCO for an X decision | |
5169 | nested in a disabled pragma. | |
5170 | * scos.ads, scos.adb, par_sco.ads, par_sco.adb: Record sloc of | |
5171 | enclosing pragma, if any, for X decisions. | |
5172 | ||
5173 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
5174 | ||
5175 | * sem_prag.adb: Minor reformatting. | |
5176 | ||
46414266 VC |
5177 | 2011-08-04 Vincent Celier <celier@adacore.com> |
5178 | ||
5179 | * a-tags.adb (Check_TSD): Avoid concatenation of strings, as it is not | |
5180 | allowed in no run time mode. | |
5181 | ||
5182 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
5183 | ||
5184 | * make.adb (Check): When -gnatc is used, check for the source file | |
5185 | inside the ALI file with a canonical case file name. | |
5186 | ||
afab164f EB |
5187 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
5188 | ||
5189 | * g-comlin.adb, g-comlin.ads (Add_Switch): Put back support for | |
5190 | overriding the separator. | |
5191 | ||
fe0ec02f AC |
5192 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
5193 | ||
5194 | * sem_aggr.adb, par_sco.adb, sem_type.adb, exp_util.adb, exp_ch9.adb, | |
5195 | prj-nmsc.adb, sem_ch13.adb, exp_strm.adb: Minor reformatting. | |
5196 | ||
5197 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
5198 | ||
5199 | * gnat_rm.texi: Minor documentation fix for pragma Annotate. | |
5200 | ||
5201 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
5202 | ||
5203 | * sem_attr.adb (Analyze_Attribute): add check during pre-analysis that | |
5204 | 'Result only appears in postcondition of function. | |
5205 | ||
5206 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
5207 | ||
5208 | * a-tags.adb (Check_TSD): When raising PROGRAM_ERROR for a duplicated | |
5209 | external tag, include the value of the external tag in the exception | |
5210 | message. | |
5211 | ||
0180fd26 AC |
5212 | 2011-08-04 Yannick Moy <moy@adacore.com> |
5213 | ||
5214 | * sem_attr.adb (Result): modify error message for misplaced 'Result | |
5215 | ||
5216 | 2011-08-04 Sergey Rybin <rybin@adacore.com> | |
5217 | ||
5218 | * gnat_rm.texi (pragma Annotate): Fix syntax description to make it | |
5219 | clear that the second argument must be an identifier. | |
5220 | ||
5221 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
5222 | ||
5223 | * exp_ch9.adb (Build_Barrier_Function): When compiling with | |
5224 | -fpreserve-control-flow, insert an IF statement on the barrier | |
5225 | condition to ensure that a conditional branch instruction is generated. | |
5226 | ||
5227 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
5228 | ||
5229 | * prj-part.adb, prj.adb, prj.ads, prj-tree.ads | |
5230 | (Processing_Flags.Ignore_Missing_With): new flag. | |
5231 | ||
5232 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
5233 | ||
5234 | * prj-nmsc.adb (Find_Sources, Path_Name_Of): Fix handling of | |
5235 | Source_List_File on case-insensitive systems where the file is actually | |
5236 | on a case-sensitive file system (NFS,...). | |
5237 | ||
5238 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
5239 | ||
5240 | * sem_ch6.adb (Analyze_Function_Return): In a rare case where a | |
5241 | function return contains a controlled [extension] aggregate and the | |
5242 | return statement is not part of a handled sequence of statements, wrap | |
5243 | the return in a block. This ensures that all controlled temporaries | |
5244 | generated during aggregate resolution will be picked up by the | |
5245 | finalization machinery. | |
5246 | ||
5247 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
5248 | ||
5249 | * sem_aggr.adb (Resolve_Aggregate): If aggregate has box-initialized | |
5250 | components, freeze type before resolution, to ensure that default | |
5251 | initializations are present for all components. | |
5252 | * sem_res.adb (Resolve_Actuals): the designated object of an | |
5253 | accces-to-constant type is a legal actual in a call to an | |
5254 | initialization procedure. | |
5255 | ||
5256 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
5257 | ||
5258 | * exp_util.adb (Extract_Renamed_Object): Add N_Type_Conversion and | |
5259 | N_Unchecked_Type_Conversion to the possible containers of a renamed | |
5260 | transient variable. | |
5261 | ||
78efd712 AC |
5262 | 2011-08-04 Yannick Moy <moy@adacore.com> |
5263 | ||
5264 | * par-ch13.adb (Aspect_Specifications_Present): recognize | |
5265 | "with Identifier'Class =>" as an aspect, so that a meaningful warning | |
5266 | is issued in Strict mode. | |
5267 | * par.adb: Fix typos in comments. | |
5268 | ||
5269 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
5270 | ||
5271 | * sem_attr.adb (Result): modify error message to take into account Post | |
5272 | aspect when compiling Ada 2012 (or newer) code. | |
5273 | ||
5274 | 2011-08-04 Nicolas Roche <roche@adacore.com> | |
5275 | ||
5276 | * env.c (__gnat_clearenv): Avoid use of dynamic size array in order to | |
2c7f9cc0 | 5277 | remove need for GCC exceptions. |
78efd712 AC |
5278 | |
5279 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
5280 | ||
5281 | * makeutl.adb (Do_Complete): Call Debug_Output with the name of the | |
5282 | project, not the source file name. | |
5283 | * prj.adb (Find_Sources.Look_For_Sources): If the source has been | |
5284 | excluded, continue looking. This excluded source will only be returned | |
5285 | if there is no other source with the same base name that is not locally | |
5286 | removed. | |
5287 | ||
5288 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
5289 | ||
5290 | * sem_res.adb (Resolve_Intrinsic_Operator): if the result type is | |
5291 | private and one of the operands is a real literal, use a qualified | |
5292 | expression rather than a conversion which is not meaningful to the | |
5293 | back-end. | |
5294 | ||
0170a691 AC |
5295 | 2011-08-04 Yannick Moy <moy@adacore.com> |
5296 | ||
5297 | * sem_ch13.adb (Aspect_Loop): when an aspect X and its classwise | |
5298 | corresponding aspect X'Class are allowed, proceed with analysis of the | |
5299 | aspect instead of skipping it. | |
5300 | ||
5301 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
5302 | ||
5303 | * s-flocon.adb, s-flocon.ads: Add a body for s-flocon.ads | |
5304 | This will allow to have an Ada implementation for the subprogram. | |
5305 | ||
deb4f5ba ES |
5306 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> |
5307 | ||
5308 | * sem_ch3.adb (Analyze_Full_Type_Declaration): If the declaration is a | |
5309 | completion and aspects are present, apply them to the entity for the | |
5310 | type which is currently the partial view, but which is the one that | |
5311 | will be frozen. | |
5312 | * sem_ch13.adb (Analyze_Aspect_Specifications): if the predicate | |
5313 | applies to a partial view, indicate that the full view has predicates | |
5314 | and delayed aspects. | |
5315 | (Replace_Type_Reference): Handle properly predicates that apply to the | |
5316 | full view of a private completion. | |
5317 | ||
fc893455 AC |
5318 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> |
5319 | ||
5320 | * layout.adb (Layout_Type): For composite types, do not set Esize. | |
5321 | * freeze.adb (Set_Small_Size): Remove test on alignment and do not | |
5322 | set Esize. | |
5323 | (Size_Known): Look at the RM size of components instead of the Esize. | |
5324 | (Freeze_Record_Type): Look at the RM size instead of the Esize to | |
5325 | issue warning and activate Implicit_Packing. | |
5326 | (Freeze_Entity): Likewise. Do not issue a warning for alias/atomic | |
5327 | if the Esize is not known. | |
5328 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause) <Size>: Set Esize | |
5329 | for elementary types only. | |
5330 | (Analyze_Record_Representation_Clause): Look at the RM size instead | |
5331 | of the Esize to issue errors. | |
5332 | * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set Esize if it | |
5333 | is not known. | |
5334 | <E_Record_Type>: Look at the RM size instead of the Esize. Remove | |
2c7f9cc0 | 5335 | obsolete block. |
fc893455 AC |
5336 | Look at the RM size instead of the Esize for types if the latter is |
5337 | not known. | |
5338 | (gnat_to_gnu_field): Use Known_Esize instead of Known_Static_Esize. | |
5339 | ||
5340 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
5341 | ||
5342 | * sem_type.adb: proper handling of equality not involving anonymous | |
5343 | access types. | |
5344 | ||
b37d5bc6 AC |
5345 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> |
5346 | ||
5347 | * exp_ch7.adb (Create_Finalizer): Remove local variables Spec_Nod and | |
5348 | Vis_Decls. When creating a library-level finalizer for a package spec, | |
5349 | both the declaration and body of the finalizer are inserted either in | |
5350 | the visible or private declarations of the package spec. | |
5351 | ||
5352 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
5353 | ||
5354 | * sem_ch3.adb (Derive_Subprograms): Complete assertion to request the | |
5355 | use of the full-view of a type when invoking Is_Ancestor. | |
5356 | * sem_type.adb (Is_Ancestor): For consistency, when the traversal of | |
5357 | the full-view of private parents is requested, then use also the | |
5358 | full-view of the parent of the first derivation. | |
5359 | ||
7ab4d95a AC |
5360 | 2011-08-04 Tristan Gingold <gingold@adacore.com> |
5361 | ||
5362 | * s-taprop-vxworks.adb (Enter_Task): Use System.Float_Control.Reset | |
5363 | instead of the locally imported procedure. | |
5364 | * s-taprop-mingw.adb (Enter_Task): Ditto. | |
5365 | * s-valrea.adb (Scan_Real): Ditto. | |
5366 | * s-imgrea.adb (Set_Image_Real): Ditto. | |
5367 | * s-flocon.ads: Make the package pure. | |
5368 | ||
5369 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
5370 | ||
5371 | * sinfo.ads, sinfo.adb (Debug_Statement, Set_Debug_Statement): Remove. | |
5372 | * tbuild.ads, tbuild.adb (Make_Pragma): Adjust accordingly. | |
5373 | * sinfo-cn.ads, sinfo-cn.adb (Change_Name_To_Procedure_Call_Statement): | |
5374 | New subprogram, moved here from... | |
5375 | * par.adb, par-ch5.adb (P_Statement_Name): ... here. | |
5376 | * par-prag.adb (Par.Prag, case Pragma_Debug): Do not perform any | |
5377 | rewriting of the last argument into a procedure call statement here... | |
5378 | * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): ...do it there | |
5379 | instead. | |
5380 | ||
5381 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
5382 | ||
5383 | * par_sco.adb: Minor reformatting. | |
5384 | ||
51c400f5 AC |
5385 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
5386 | ||
5387 | * erroutc.adb: Minor reformatting. | |
5388 | ||
5389 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
5390 | ||
5391 | * par_sco.adb: Comment update. | |
5392 | ||
5393 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
5394 | ||
5395 | * s-flocon.ads: New file. | |
5396 | * g-flocon.ads: Now a renaming of s-flocon. | |
5397 | * Makefile.rtl: Add s-flocon.o | |
5398 | ||
6a49f110 AC |
5399 | 2011-08-04 Javier Miranda <miranda@adacore.com> |
5400 | ||
5401 | * exp_strm.adb (Build_Array_Input_Function): if the array type is | |
5402 | constrained, do not attempt to build a subtype of it. | |
5403 | ||
5404 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
5405 | ||
5406 | * errout.ads Change comments: remove 'R'M as an example where quotes | |
5407 | are needed; add ALFA as another case where quotes are not needed | |
5408 | * erroutc.adb (Set_Msg_Insertion_Reserved_Word): add ALFA as another | |
5409 | case where quotes are not needed. | |
5410 | * sem_ch11.adb, sem_ch13.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, | |
5411 | sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_prag.adb, sem_res.adb: | |
5412 | Remove all occurrences of 'A'L'F'A | |
5413 | ||
5414 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
5415 | ||
5416 | * sem_ch13.adb: check legality of invariant pragma. | |
5417 | ||
a4640a39 AC |
5418 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> |
5419 | ||
5420 | * bindgen.adb: Add comments. | |
5421 | ||
5422 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
5423 | ||
5424 | * einfo.adb, einfo.ads: Free Flag254 and make Formal_Proof_On a | |
5425 | synthesized flag. | |
5426 | * sem_prag.adb (Analyze_Pragma): record the pragma Annotate | |
5427 | (Formal_Proof, On/Off) in the Rep_Item list of the current subprogram. | |
5428 | ||
5429 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
5430 | ||
5431 | * exp_ch7.adb, exp_ch6.adb, sem_ch3.adb, layout.adb, sem_ch5.adb, | |
5432 | osint-c.ads, sem_util.ads, gnat1drv.adb, targparm.ads, sem_ch6.adb, | |
5433 | sem_ch13.adb, s-pooloc.adb: Minor reformatting. | |
5434 | ||
39ade2f9 AC |
5435 | 2011-08-04 Thomas Quinot <quinot@adacore.com> |
5436 | ||
5437 | * s-pooloc.ads, s-pooglo.ads: Minor reformatting | |
5438 | ||
5439 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
5440 | ||
5441 | PR ada/47880 | |
5442 | * s-pooloc.adb (Deallocate): Fix the case of deallocating the only | |
5443 | allocated object. | |
5444 | ||
5445 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
5446 | ||
5447 | * einfo.ads, exp_ch4.adb: Minor reformatting. | |
5448 | ||
5449 | 2011-08-04 Jerome Lambourg <lambourg@adacore.com> | |
5450 | ||
5451 | * back_end.ads (Gen_Or_Update_Object_File): Add more comments. | |
5452 | ||
7efc3f2d AC |
5453 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> |
5454 | ||
5455 | * exp_ch4.adb (Expand_Composite_Equality): code cleanup: use component | |
5456 | type in all cases to compute list of primitive operations, because full | |
5457 | view may be an itype that is not attached to the list of declarations. | |
5458 | ||
5459 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> | |
5460 | ||
5461 | * bindgen.adb (Gen_Adafinal_Ada): Generate an early return if the | |
5462 | library has already been finalized. | |
5463 | (Gen_Adafinal_C): Likewise. | |
5464 | (Gen_Adainit_Ada): Generate an early return if the library has | |
5465 | already been elaborated. | |
5466 | (Gen_Adainit_C): Likewise. | |
5467 | (Gen_Output_File_Ada): Generate an elaboration flag. | |
5468 | (Gen_Output_File_C): Likewise. | |
5469 | ||
f65df609 HK |
5470 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> |
5471 | ||
5472 | * exp_ch4.adb (Expand_Allocator_Expression): Disable the generation of | |
5473 | Set_Finalize_Address_Ptr for CodePeer because Finalize_Address was not | |
5474 | built in the first place. | |
5475 | (Expand_N_Allocator): Disable the generation of Set_Finalize_Address_Ptr | |
5476 | for CodePeer because Finalize_Address was not built to begin with. | |
5477 | * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Ditto. | |
5478 | ||
a0fb8fe8 AC |
5479 | 2011-08-04 Pascal Obry <obry@adacore.com> |
5480 | ||
5481 | * adaint.c (__gnat_tmp_name): Use current process id to create temp | |
5482 | filenames, this ensures unicity of filenames across processes. | |
5483 | ||
5484 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
5485 | ||
5486 | * bindgen.adb (Gen_Finalize_Library_Ada): Rename generated routine | |
5487 | Raise_Controlled to Raise_From_Controlled_Operation. Update the | |
5488 | signature of Raise_From_Controlled_Operation by adding flag From_Abort. | |
5489 | Add False as the actual to From_Abort in the generated call to | |
5490 | Raise_From_Controlled_Operation. | |
5491 | ||
5492 | 2011-08-04 Jerome Lambourg <lambourg@adacore.com> | |
5493 | ||
5494 | * osint-c.ads, osint-c.adb (Set_Library_Info_Name): Move to declaration | |
5495 | so that the ali file name can be retrieved from outside of this package. | |
5496 | * back_end.ads, back_end.adb (Gen_Or_Update_Object_File): New method | |
5497 | doing nothing in the general case, but used to update the object file | |
5498 | timestamp if directly generated by the backend. | |
5499 | * gnat1drv.adb (Gnat1drv): Make sure the object file's timestamp is set | |
5500 | to a later time than the ali file one. | |
5501 | ||
9534ab17 AC |
5502 | 2011-08-04 Yannick Moy <moy@adacore.com> |
5503 | ||
5504 | * einfo.adb, einfo.ads (Formal_Proof_On): new flag set on subprogram | |
5505 | entities whose body contains an Annotate pragma which forces formal | |
5506 | proof on this body. | |
5507 | * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, | |
5508 | sem_ch6.adb, sem_ch9.adb, sem_res.adb: Adapt call to | |
5509 | Mark_Non_ALFA_Subprogram to pass in a message and node. | |
5510 | * sem_prag.adb (Analyze_Pragma): add treatment of pragma Annotate | |
5511 | (Forma_Proof, On) which sets the flag Formal_Proof_On in the | |
5512 | surrounding subprogram. | |
5513 | * sem_util.adb, sem_util.ads (Mark_Non_ALFA_Subprogram, | |
5514 | Mark_Non_ALFA_Subprogram_Unconditional): if the subprogram being marked | |
5515 | as not in ALFA is annotated with Formal_Proof being On, then an error | |
5516 | is issued based on the additional parameters for message and node. | |
5517 | * snames.ads-tmpl (Name_Formal_Proof): new name for annotation. | |
5518 | * gcc-interface/Make-lang.in: Update dependencies. | |
5519 | ||
5520 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
5521 | ||
5522 | * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Do not generate | |
5523 | Finalize_Address when CodePeer is enabled. | |
5524 | ||
5525 | 2011-08-04 Pascal Obry <obry@adacore.com> | |
5526 | ||
5527 | * adaint.c (__gnat_tmp_name): Use _tempnam() instead of tempnam() as | |
5528 | the latter returns a pointer to a static buffer which is deallocated | |
5529 | at the end of the routine. | |
5530 | ||
5c0e97dd AC |
5531 | 2011-08-04 Yannick Moy <moy@adacore.com> |
5532 | ||
5533 | * sem_ch3.adb (Array_Type_Declaration): move test for type in ALFA | |
5534 | after index creation; mark unconstrained base array type generated as | |
5535 | being in/not in ALFA as well | |
5536 | (Make_Index): mark subtype created as in/not in ALFA | |
5537 | * sem_ch5.adb (Analyze_Iteration_Scheme): mark entity for iterating | |
5538 | over a loop as in/not in ALFA, depending on its type and form of loop | |
5539 | iteration. | |
5540 | ||
5541 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
5542 | ||
5543 | * exp_ch7.adb (Build_Object_Declarations): Initialize flag Abort | |
5544 | directly to False on .NET and JVM. | |
5545 | ||
7a93c64b YM |
5546 | 2011-08-04 Yannick Moy <moy@adacore.com> |
5547 | ||
5548 | * sem_ch3.adb (Constrain_Enumeration, Constrain_Integer): remove | |
5549 | constraint that subtype must come from source code to be in ALFA, so | |
5550 | that anonymous subtypes can be in ALFA too. | |
5551 | ||
e9a1ed9b YM |
5552 | 2011-08-04 Yannick Moy <moy@adacore.com> |
5553 | ||
5554 | * sem_ch3.adb (Analyze_Object_Declaration): remove obsolete addition of | |
5555 | reference for ALFA mode. | |
5556 | * lib-xref-alfa.adb, lib-xref.ads (Traverse_Compilation_Unit): make | |
5557 | procedure public so as to use it from formal verification back-end. | |
5558 | ||
8e293fbd AC |
5559 | 2011-08-04 Jerome Lambourg <lambourg@adacore.com> |
5560 | ||
5561 | * g-comlin.adb (For_Each_Simple_Switch.Is_In_Config): Remove the | |
5562 | invalid checks of the Parameter, making Remove_Switch not working | |
5563 | correctly. | |
5564 | ||
5565 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
5566 | ||
5567 | * targparm.ads: Update header: no run-time exception is needed on this | |
5568 | file. | |
5569 | ||
5570 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
5571 | ||
5572 | * a-fihema.adb: Use System.IO instead of GNAT.IO | |
5573 | ||
5574 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
5575 | ||
5576 | * sem_ch3.adb (Access_Definition): Anonymous access to subprogram types | |
5577 | are forbidden in Compiler_Unit mode. | |
5578 | ||
cfae2bed AC |
5579 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
5580 | ||
5581 | * sem_util.adb: Minor reformatting. | |
5582 | ||
5583 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
5584 | ||
5585 | * bindgen.adb (Gen_Finalize_Library_Ada): Update the import string for | |
5586 | library-level finalizers. | |
5587 | (Gen_Finalize_Library_C): Update the import string for library-level | |
5588 | finalizers. | |
5589 | (Gen_Finalize_Library_Defs_C): Update the definition name of a | |
5590 | library-level finalizer. | |
5591 | * exp_ch7.adb: Remove with and use clauses for Stringt. | |
5592 | (Create_Finalizer): Remove local variables Conv_Name, Prag_Decl, | |
5593 | Spec_Decl. Add local variable Body_Id. The names of library-level | |
5594 | finalizers are now manually fully qualified and are no longer external. | |
5595 | A single name is now capable of servicing .NET, JVM and non-VM targets. | |
5596 | Pragma Export is no longer required to provide visibility for the name. | |
5597 | (Create_Finalizer_String): Removed. | |
5598 | (New_Finalizer_Name): New routine which mimics New_..._Name. | |
5599 | ||
01f0729a AC |
5600 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> |
5601 | ||
5602 | * sem_elab.adb (Check_Internal_Call_Continue): Change the type of the | |
5603 | elaboration counter to Standard_Short_Integer. | |
5604 | * sem_util.adb (Build_Elaboration_Entity): Likewise. | |
5605 | * bindgen.adb (Gen_Elab_Externals_Ada): Adjust to above change. | |
5606 | (Gen_Elab_Externals_C): Likewise. | |
5607 | ||
5608 | 2011-08-04 Ed Falis <falis@adacore.com> | |
5609 | ||
5610 | * system-vxworks-arm.ads, system-vxworks-sparcv9.ads, | |
5611 | system-vxworks-ppc.ads, system-vxworks-m68k.ads, | |
5612 | system-vxworks-mips.ads, system-vxworks-x86.ads | |
5613 | (Always_Compatible_Rep): set to False for all VxWorks targets. | |
5614 | ||
2c1b72d7 AC |
5615 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
5616 | ||
5617 | * par_sco.adb, prj-proc.adb, make.adb, bindgen.adb, prj.adb, prj.ads, | |
5618 | makeutl.adb, makeutl.ads, prj-nmsc.adb, exp_ch5.adb, exp_ch12.adb, | |
5619 | exp_ch7.ads, exp_util.ads, sem_util.ads, g-comlin.ads, exp_ch6.adb, | |
5620 | exp_ch6.ads, lib-xref.ads, exp_ch7.adb, exp_util.adb, exp_dist.adb, | |
5621 | exp_strm.adb, gnatcmd.adb, freeze.adb, g-comlin.adb, lib-xref-alfa.adb, | |
5622 | sem_attr.adb, sem_prag.adb, sem_util.adb, sem_elab.adb, sem_ch8.adb, | |
5623 | sem_ch11.adb, sem_eval.adb, sem_ch13.adb, sem_disp.adb, a-fihema.adb: | |
5624 | Minor reformatting and code reorganization. | |
5625 | ||
5626 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
5627 | ||
5628 | * projects.texi: Added doc for aggregate projects. | |
5629 | ||
824e9320 AC |
5630 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
5631 | ||
5632 | * prj-proc.adb, prj-nmsc.adb, prj-env.adb (Process_Declarative_Items): | |
5633 | Add support for overriding the Project_Path in aggregate projects. | |
5634 | ||
5635 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
5636 | ||
5637 | * a-cofove.ads: Minor reformatting. | |
5638 | ||
5639 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
5640 | ||
5641 | * exp_ch7.adb (Build_Adjust_Or_Finalize_Statements): Update the comment | |
5642 | on the generated code. | |
5643 | (Build_Finalize_Statements): Update the comment on the generated code. | |
5644 | (Build_Initialize_Statements): Update the comment on the generated code. | |
5645 | (Build_Object_Declarations): Add local variable Result. The object | |
5646 | declarations are now built in sequence. | |
5647 | * rtsfind.ads: Add RE_Exception_Occurrence_Access to tables RE_Id and | |
5648 | RE_Unit_Table. | |
5649 | ||
5650 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
5651 | ||
5652 | * checks.adb, alfa.adb, alfa.ads: Minor reformatting. | |
5653 | ||
5654 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> | |
5655 | ||
5656 | * einfo.ads (Elaboration_Entity): Document new definition and use. | |
5657 | (Elaboration_Entity_Required): Adjust to above change. | |
5658 | * exp_attr.adb (Expand_N_Attribute_Reference): Likewise. | |
5659 | * exp_ch12.adb: And with and use for Snames. | |
5660 | (Expand_N_Generic_Instantiation): Test 'Elaborated attribute. | |
5661 | * exp_util.adb (Set_Elaboration_Flag): Likewise. | |
5662 | * sem_attr.adb (Analyze_Attribute) <Check_Library_Unit>: Delete. | |
5663 | <Check_Unit_Name>: Deal with N_Expanded_Name. | |
5664 | <Attribute_Elaborated>: Extend to all unit names. | |
5665 | * sem_elab.adb: And with and use for Uintp. | |
5666 | (Check_Internal_Call_Continue): Adjust to Elaboration_Entity change. | |
5667 | * sem_util.ads (Build_Elaboration_Entity): Adjust comment. | |
5668 | * sem_util.adb (Build_Elaboration_Entity): Change type to Integer. | |
5669 | * bindgen.adb (Gen_Elab_Externals_Ada): New local subprogram taken | |
5670 | from Gen_Adainit_Ada. | |
5671 | (Gen_Elab_Externals_C): Likewise, but taken from Gen_Adainit_C. | |
5672 | (Gen_Adafinal_Ada): Remove redundant test. In the non-main program | |
5673 | case, do not call System.Standard_Library.Adafinal; instead call | |
5674 | finalize_library if needed. | |
5675 | (Gen_Adafinal_C): Likewise. | |
5676 | (Gen_Adainit_Ada): Do not set SSL.Finalize_Library_Objects in the | |
5677 | non-main program case. | |
5678 | (Gen_Adainit_C): Generate a couple of external declarations here. | |
5679 | In the main program case, set SSL.Finalize_Library_Objects. | |
5680 | (Gen_Elab_Calls_Ada): Adjust to Elaboration_Entity change. | |
5681 | (Gen_Elab_Calls_C): Likewise. | |
5682 | (Gen_Finalize_Library_Ada): Likewise. Skip SAL interface units. | |
5683 | (Gen_Finalize_Library_C): Likewise. Generate a full function. | |
5684 | (Gen_Main_C): Put back call to Ada_Final and don't finalize library | |
5685 | objects here. | |
5686 | (Gen_Output_File_Ada): Generate pragma Linker_Destructor for Ada_Final | |
5687 | if -a is specified. Call Gen_Elab_Externals_Ada. Move around call to | |
5688 | Gen_Adafinal_Ada. | |
5689 | (Gen_Output_File_C): Generate __attribute__((destructor)) for Ada_Final | |
5690 | if -a is specified. Call Gen_Elab_Externals_C. Remove useless couple | |
2c7f9cc0 | 5691 | of external declarations. Call Gen_Finalize_Library_C. |
824e9320 | 5692 | |
316d9d4f EB |
5693 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
5694 | ||
5695 | * prj.adb, prj.ads, makeutl.adb, makeutl.ads (Complete_Mains, | |
5696 | Compute_Compilation_Phases): new subprogram. | |
5697 | (Builder_Data, Builder_Project_Tree_Data): new subprogram and type | |
5698 | The number of mains as well as the various compilation phases that | |
5699 | need to be run are now project tree specific, since various | |
5700 | aggregated trees might have different requirements. In particular, | |
5701 | they do not all require bind or link phases. | |
5702 | ||
9434c32e EB |
5703 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
5704 | ||
5705 | * prj.adb, prj.ads, makeutl.adb, makeutl.ads, prj-env.adb | |
5706 | (Project_Tree_Appdata): New type. | |
5707 | It is now possible to associate application-specific data to a project | |
5708 | tree. In particular, this is used in the gprbuild builder to avoid a | |
5709 | number of global tables and htables, especially now that there can be | |
5710 | several project trees loaded at once because of aggregate projects. | |
5711 | (Debug_Name): new procedure. | |
5712 | * projects.texi: Clarify syntax of "**" for Source_Dirs | |
5713 | ||
41ba34db EB |
5714 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
5715 | ||
5716 | * prj.ads, makeutl.adb, makeutl.ads (Queue.Insert): now also inserts | |
5717 | the "roots" for a main. | |
5718 | (Fill_From_Project): add support for aggregate projects. Main units | |
5719 | in aggregated projects are now automatically added in the list of | |
5720 | files to build (although this fails later on in gprbuild, because | |
5721 | these files are not using the root proejct tree, so this needs | |
5722 | further cleanup) | |
5723 | * gcc-interface/Make-lang.in: Update dependencies. | |
5724 | ||
fccd42a9 AC |
5725 | 2011-08-03 Yannick Moy <moy@adacore.com> |
5726 | ||
5727 | * sem_ch4.adb (Analyze_Conditional_Expression): only allow boolean | |
5728 | conditional expression in ALFA. | |
5729 | * sem_res.adb (Resolve_Conditional_Expression): mark non-boolean | |
5730 | expressions as not in ALFA. | |
5731 | ||
5732 | 2011-08-03 Robert Dewar <dewar@adacore.com> | |
5733 | ||
5734 | * a-cofove.adb: Minor reformatting. | |
5735 | ||
5736 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
5737 | ||
5738 | * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads | |
5739 | (Insert_Project_Sources, Insert_withed_Sources_For): moved from the | |
5740 | gprbuild sources. | |
5741 | These packages are more logically placed in the Queue package, since | |
5742 | they manipulate the queue. It is also likely that they can be adapted | |
5743 | for gnatmake, thus sharing more code. | |
5744 | (Finish_Program, Fail_Program): moved from the gprbuild sources, so | |
5745 | that we could move the above. | |
5746 | ||
5747 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
5748 | ||
5749 | * errutil.adb (Finalize): clean up the list of error messages on exit. | |
5750 | Calling this subprogram multiple times will no longer show duplicate | |
5751 | error messages on stderr. | |
5752 | ||
5753 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
5754 | ||
5755 | * g-comlin.adb, g-comlin.ads (Set_Command_Line): ignore the parameter | |
5756 | Getopt_Switches when we have already define a command line | |
5757 | configuration. | |
5758 | ||
5e8c8e44 YM |
5759 | 2011-08-03 Yannick Moy <moy@adacore.com> |
5760 | ||
5761 | * sem_ch11.adb (Analyze_Raise_xxx_Error): do not mark such nodes as not | |
5762 | in ALFA. Instead, they are considered as assertions to prove. | |
5763 | * sem_ch4.adb (Analyze_Conditional_Expression): do not always mark such | |
5764 | nodes as not in ALFA. Instead, include conditional expressions in ALFA | |
5765 | if they have no ELSE part, or if they occur in pre- and postconditions, | |
5766 | where the Condition cannot have side-effects in ALFA | |
5767 | (Analyze_Membership_Op): do not mark such nodes as not in ALFA | |
5768 | (Analyze_Type_Conversion): do not always mark such nodes as not in ALFA. | |
5769 | Instead, include type conversion between scalar types in ALFA. | |
5770 | * sem_ch6.adb (Process_Formals): correctly mark a parameter in ALFA | |
5771 | if-and-only-if its type is in ALFA. | |
5772 | ||
5ffe0bab AC |
5773 | 2011-08-03 Thomas Quinot <quinot@adacore.com> |
5774 | ||
5775 | * scos.adb, get_scos.adb, put_scos.adb | |
5776 | New code letter for decisions: G (entry guard) | |
5777 | * par_sco.adb | |
5778 | (Traverse_Subprogram_Body): Rename to... | |
5779 | (Traverse_Subprogram_Or_Task_Body): New subrpogram. | |
5780 | (Traverse_Protected_Body): New subprogram | |
5781 | (Traverse_Declarations_Or_Statements): Add traversal of task bodies, | |
5782 | protected bodies and entry bodies. | |
5783 | ||
5784 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
5785 | ||
5786 | * einfo.adb, einfo.ads (Is_Postcondition_Proc): new flag for procedure | |
5787 | entities with get/set subprograms, which is set on procedure entities | |
5788 | generated by the compiler for a postcondition. | |
5789 | * sem_ch6.adb (Process_PPCs): set new flag on postcondition procedures | |
5790 | * alfa.adb, alfa.ads (Get_Entity_For_Decl): new function returning the | |
5791 | entity for a declaration | |
5792 | (Get_Unique_Entity_For_Decl): new function returning an entity which | |
5793 | represents a declaration, so that matching spec and body have the same | |
5794 | entity. | |
5795 | ||
5796 | 2011-08-03 Robert Dewar <dewar@adacore.com> | |
5797 | ||
5798 | * a-except-2005.adb, a-cfhama.adb, a-cfhase.adb, a-cfhase.ads, | |
5799 | a-cforma.adb, a-cforse.ads, a-cforse.adb: Minor reformatting | |
5800 | ||
5801 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
5802 | ||
5803 | * lib-xref-alfa.adb (Detect_And_Add_ALFA_Scope): make the subprogram | |
5804 | library-level because retriction No_Implicit_Dynamic_Code in the | |
5805 | front-end prevents its definition as a local subprogram | |
5806 | (Traverse_Compilation_Unit): extract new procedure from Add_ALFA_File, | |
5807 | for reuse in other contexts | |
5808 | (Traverse_Declarations_Or_Statements, | |
5809 | Traverse_Handled_Statement_Sequence, Traverse_Package_Body, | |
5810 | Traverse_Package_Declaration, Traverse_Subprogram_Body): make all these | |
5811 | procedures take a callback parameter to be called on all declarations | |
5812 | * lib-xref.ads | |
5813 | (Traverse_All_Compilation_Units): new generic function to traverse a | |
5814 | compilation unit and call a callback parameter on all declarations | |
5815 | ||
f9ad6b62 AC |
5816 | 2011-08-03 Javier Miranda <miranda@adacore.com> |
5817 | ||
5818 | * sem_prag.adb (Process_Interface_Name): Allow duplicated export names | |
5819 | in Java since they are always enclosed in a namespace that | |
5820 | differentiates them, and overloaded entities are supported by the VM. | |
5821 | ||
5822 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5823 | ||
5824 | * checks.adb (Determine_Range): If a computed bound of an operation is | |
5825 | outside the range of the base type of the expression, and overflow | |
5826 | checks are enabled, the result is unknown and cannot be used for any | |
5827 | subsequent constant folding. | |
5828 | * sem_eval.adb (Compile_Time_Compare): if the bounds of one operand are | |
5829 | unknown, so is the result of the comparison. | |
5830 | ||
5831 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> | |
5832 | ||
5833 | * a-except-2005.adb (Raise_From_Controlled_Operation): Add new formal | |
5834 | From_Abort. When finalization was triggered by an abort, propagate | |
5835 | Standard'Abort_Signal rather than Program_Error. | |
5836 | * a-except-2005.ads (Raise_From_Controlled_Operation): Add new formal | |
5837 | From_Abort. | |
5838 | * a-except.adb (Raise_From_Controlled_Operation): Add new formal | |
5839 | From_Abort. When finalization was triggered by an abort, propagate | |
5840 | Standard'Abort_Signal rather than Program_Error. | |
5841 | * a-except.ads:(Raise_From_Controlled_Operation): Add new formal | |
5842 | From_Abort. | |
5843 | * exp_ch7.adb:(Build_Adjust_Or_Finalize_Statements): New local variable | |
5844 | Abort_Id. Update the calls to Build_Object_Declarations and | |
5845 | Build_Raise_Statement to include Abort_Id. | |
5846 | (Build_Adjust_Statements): New local variable Abort_Id. Update the | |
5847 | calls to Build_Object_Declarations and Build_Raise_Statement to include | |
5848 | Abort_Id. | |
5849 | (Build_Finalize_Statements): New local variable Abort_Id. Update the | |
5850 | calls to Build_Object_Declarations and Build_Raise_Statement to include | |
5851 | Abort_Id. | |
5852 | (Build_Components): Create an entity for Abort_Id when exceptions are | |
5853 | allowed on the target. | |
5854 | (Build_Finalizer): New local variable Abort_Id. | |
5855 | (Build_Initialize_Statements): New local variable Abort_Id. Update the | |
5856 | calls to Build_Object_Declarations and Build_Raise_Statement to include | |
5857 | Abort_Id. | |
5858 | (Build_Object_Declarations): Add new formal Abort_Id. Create the | |
5859 | declaration of flag Abort_Id to preserve the original abort status | |
5860 | before finalization code is executed. | |
5861 | (Build_Raise_Statement): Add new formal Abort_Id. Pass Abort_Id to | |
5862 | runtime routine Raise_From_Controlled_Operation. | |
5863 | (Create_Finalizer): Update the call to Build_Raise_Statement to include | |
5864 | Abort_Id. Update the call to Build_Object_Declarations to include | |
5865 | Abort_Id. Update the layout of the finalizer body. | |
5866 | (Make_Handler_For_Ctrl_Operation): Add an actual for From_Abort. | |
5867 | (Process_Transient_Objects): New local variable Abort_Id. Remove the | |
5868 | clunky code to create all flags and objects related to | |
5869 | exception propagation and replace it with a call to | |
5870 | Build_Object_Declarations. Update the call to Build_Raise_Statement to | |
5871 | include Abort_Id. | |
5872 | * exp_ch7.ads (Build_Object_Declarations): Moved from body to spec. | |
5873 | Add new formal Abort_Id and associated comment on its use. | |
5874 | (Build_Raise_Statement): Add new formal Abort_Id and associated comment | |
5875 | on its use. | |
5876 | * exp_intr.adb (Expand_Unc_Deallocation): New local variable Abort_Id. | |
5877 | Remove the clunky code to create all flags and objects related to | |
5878 | exception propagation and replace it with a call to | |
5879 | Build_Object_Declarations. Update the call to Build_Raise_Statement. | |
5880 | ||
5881 | 2011-08-03 Eric Botcazou <ebotcazou@adacore.com> | |
5882 | ||
5883 | * s-tassta.adb: Fix minor typos. | |
5884 | ||
5885 | 2011-08-03 Robert Dewar <dewar@adacore.com> | |
5886 | ||
5887 | * rtsfind.ads, makeutl.ads, prj.ads, prj.adb, make.adb, | |
5888 | lib-writ.adb, makeutl.adb, s-soflin.ads, clean.adb: Minor reformatting. | |
5889 | ||
1cdfa9be AC |
5890 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> |
5891 | ||
5892 | * exp_ch7.adb (Create_Finalizer): Treat freeze nodes in similar fashion | |
5893 | to packages. This ensures that the finalizer body will not end up | |
5894 | inside the freeze node. | |
5895 | (Process_Declarations): Add code to detect whether a freeze node has a | |
5896 | nested finalization collection. | |
5897 | ||
5898 | 2011-08-03 Pascal Obry <obry@adacore.com> | |
5899 | ||
5900 | * g-awk.adb, g-awk.ads: Make GNAT.AWK API compatible with Ada 2005. | |
5901 | (Current_Session): Return a not null access to Session_Type. | |
5902 | (Default_Session): Likewise. | |
5903 | ||
243cae0a AC |
5904 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
5905 | ||
5906 | * a-cfdlli.adb, bindgen.adb, exp_ch4.adb, exp_ch13.adb, sem_warn.adb, | |
5907 | exp_ch3.adb, exp_ch3.ads: Minor reformatting. | |
5908 | ||
5909 | 2011-08-03 Pascal Obry <obry@adacore.com> | |
5910 | ||
5911 | * g-awk.ads: Minor comment fix. | |
5912 | ||
5913 | 2011-08-03 Sergey Rybin <rybin@adacore.com> | |
5914 | ||
5915 | * tree_io.ads (ASIS_Version_Number): Update because of the changes in | |
5916 | the tree structure related to discriminant constraints. | |
5917 | Original_Discriminant cannot be used any more for computing the | |
5918 | defining name for the reference to a discriminant. | |
5919 | ||
5920 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5921 | ||
5922 | * sem_disp.adb (Is_Tag_Indeterminate): If the return type of the | |
5923 | function is not visibly tagged, this is not a dispatching call and | |
5924 | therfore is not Tag_Indeterminate, even if the function is marked as | |
5925 | dispatching on result. | |
5926 | ||
f553e7bc AC |
5927 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> |
5928 | ||
5929 | * exp_ch13.adb: Add with and use clauses for Restrict and Rident. | |
5930 | (Expand_N_Free_Statement): Add a guard to protect against run-times | |
5931 | which do not support controlled types. | |
5932 | * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Add a guard to protect | |
5933 | against run-times which do not support controlled types. | |
5934 | * exp_ch4.adb (Complete_Controlled_Allocation): Add a guard to protect | |
5935 | against run-times which do not support controlled types. | |
5936 | * exp_ch7.adb (Build_Finalization_Collection): Add a guard to protect | |
5937 | against run-times which do not support controlled types. | |
5938 | * exp_util.adb (Needs_Finalization): Code reformatting. Add a guard to | |
5939 | protect against run-times which do not support controlled types. | |
5940 | ||
5941 | 2011-08-03 Eric Botcazou <ebotcazou@adacore.com> | |
5942 | ||
5943 | * exp_intr.adb: Put back with and use clauses for Exp_Ch11. | |
5944 | (Expand_Unc_Deallocation): Expand the AT_END handler at the very end. | |
5945 | ||
e4982b64 AC |
5946 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> |
5947 | ||
5948 | * exp_ch5.adb (Expand_Iterator_Loop): indicate that the cursor is | |
5949 | modified in the source, to prevent spurious warnings when compiling | |
5950 | with -gnatg. | |
5951 | ||
5952 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
5953 | ||
5954 | * a-except-2005.adb: Minor reformatting. | |
5955 | ||
5956 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5957 | ||
5958 | * sem_warn.adb (Check_One_Unit): if the only mention of a withed unit | |
5959 | is a renaming declaration in the private part of a package, do not emit | |
5960 | a warning that the with_clause could be moved because the renaming may | |
5961 | be used in the body or in a child unit. | |
5962 | ||
5963 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> | |
5964 | ||
5965 | * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): | |
5966 | Propagate the Comes_From_Source attribute from the original return | |
5967 | object to the renaming. | |
5968 | ||
5969 | 2011-08-03 Jose Ruiz <ruiz@adacore.com> | |
5970 | ||
5971 | * exp_ch7.adb (Build_Raise_Statement): Do not call | |
5972 | Raise_From_Controlled_Operation when this routine is not present in | |
5973 | the run-time library. | |
5974 | (Cleanup_Protected_Object, Cleanup_Task): For restricted run-time | |
5975 | libraries (Ravenscar), tasks are non-terminating, and protected objects | |
5976 | and tasks can only appear at library level, so we do not want | |
5977 | finalization of protected objects nor tasks. | |
5978 | * exp_intr.adb: Minor clarification in comment. | |
5979 | bindgen.adb (Gen_Adainit_Ada, Gen_Main_C, Gen_Output_File_Ada, | |
5980 | Gen_Output_File_C): Remove references to finalization of library-level | |
5981 | objects when using restricted run-time libraries. | |
5982 | ||
5983 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5984 | ||
5985 | * sem_ch3.adb (Build_Discriminant_Constraints): Set | |
5986 | Original_Discriminant only if the parent type is a generic formal. | |
5987 | ||
deb8dacc HK |
5988 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> |
5989 | ||
5990 | * exp_ch13.adb: Add with and use clause for Targparm; | |
5991 | (Expand_N_Free_Statement): Prevent the generation of a custom | |
5992 | Deallocate on .NET/JVM targets since this requires pools and address | |
5993 | arithmetic. | |
5994 | * exp_ch4.adb (Expand_Allocator_Expression): When compiling for | |
5995 | .NET/JVM targets, attach the newly allocated object to the access | |
5996 | type's finalization collection. Do not generate a call to | |
5997 | Set_Finalize_Address_Ptr on .NET/JVM because this routine does not | |
5998 | exist in the runtime. | |
5999 | (Expand_N_Allocator): When compiling for .NET/JVM targets, do not | |
6000 | create a custom Allocate for object that do not require initialization. | |
6001 | Attach a newly allocated object to the access type's finalization | |
6002 | collection on .NET/JVM. | |
6003 | * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add special processing for | |
6004 | assignment of controlled types on .NET/JVM. The two hidden pointers | |
6005 | Prev and Next and stored and later restored after the assignment takes | |
6006 | place. | |
6007 | * exp_ch6.adb (Expand_Call): Add local constant Curr_S. Add specialized | |
6008 | kludge for .NET/JVM to recognize a particular piece of code coming from | |
6009 | Heap_Management and change the call to Finalize into Deep_Finalize. | |
6010 | * exp_ch7.adb (Build_Finalization_Collection): Allow the creation of | |
6011 | finalization collections on .NET/JVM only for types derived from | |
6012 | Controlled. Separate the association of storage pools with a collection | |
6013 | and only allow it on non-.NET/JVM targets. | |
6014 | (Make_Attach_Call): New routine. | |
6015 | (Make_Detach_Call): New routine. | |
6016 | (Process_Object_Declarations): Suppress the generation of | |
6017 | build-in-place return object clean up code on .NET/JVM since it uses | |
6018 | pools. | |
6019 | * exp_ch7.ads (Make_Attach_Call): New routine. | |
6020 | (Make_Detach_Call): New routine. | |
6021 | * exp_intr.adb Add with and use clause for Targparm. | |
6022 | (Expand_Unc_Deallocation): Detach a controlled object from a collection | |
6023 | on .NET/JVM targets. | |
6024 | * rtsfind.ads: Add entries RE_Attach, RE_Detach and | |
6025 | RE_Root_Controlled_Ptr to tables RE_Id and RE_Unit_Table. | |
6026 | * snames.ads-tmpl: Add name Name_Prev. Move Name_Prev to the special | |
6027 | names used in finalization. | |
6028 | ||
6029 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> | |
6030 | ||
6031 | * a-fihema.adb: Add with and use clauses for System.Soft_Links. | |
6032 | (Attach, Detach): Lock the current task when chaining an object onto a | |
6033 | collection. | |
6034 | ||
df3e68b1 HK |
6035 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> |
6036 | ||
6037 | * a-except.adb, a-except-2005.adb (Raise_From_Controlled_Operation): | |
6038 | Rewritten to create the message strings when the exception is not | |
6039 | raised by an abort during finalization. | |
6040 | * a-except.ads, a-except-2005.ads: Add pragma Export for procedure | |
6041 | Raise_From_Controlled_Operation and update its associated comment. | |
6042 | * a-fihema.ads, a-fihema.adb: New GNAT unit. | |
6043 | Ada.Finalization.Heap_Management provides key functionality | |
6044 | associated with controlled objects on the heap, their creation, | |
6045 | finalization and reclamation. Type Finalization_Collection is | |
6046 | effectively a wrapper which sits ontop of a storage pool and performs | |
6047 | all necessary bookkeeping for all the objects it contains. Each | |
6048 | access-to-controlled or access-to-class-wide type receives a collection | |
6049 | as part of its expansion. The compiler generates buffer code and | |
6050 | invokes Allocate / Deallocate to create and destroy allocated | |
6051 | controlled objects. | |
6052 | * a-finali.adb ("="): Removed. | |
6053 | * a-finali.ads ("="): Removed. Controlled types no longer carry hidden | |
6054 | fields Prev and Next. | |
6055 | * ali.adb (Scan_ALI): Add parsing code to process PF / Has_Finalizer. | |
6056 | A library unit with at least one controlled object on the library level | |
6057 | has a special finalizer which is invoked by the binder. To signal this, | |
6058 | ali files carry field PF. | |
6059 | * ali.ads: New field in type Unit_Record called Has_Finalizer. Add | |
6060 | associated comment on field usage. | |
6061 | * a-tags.adb (Get_RC_Offset): Removed. | |
6062 | (Needs_Finalization): New routine. | |
6063 | * a-tags.ads: Update the structure of the GNAT dispatch tables. | |
6064 | Dispatch tables now carry field Needs_Finalization which provides | |
6065 | runtime indication whether a type is controlled or has controlled | |
6066 | components or both. Remove field RC_Offset. | |
6067 | (Get_RC_Offset): Removed along with its associated pragma Export. | |
6068 | Since tagged types with controlled components no longer carry hidden | |
6069 | field _controller, the special mechanism to retrieve its location is no | |
6070 | longer needed. | |
6071 | (Needs_Finalization): New routine. | |
6072 | * atree.ads, atree.adb (Elist24): New routine. | |
6073 | (Set_Elist24): New routine. | |
6074 | * atree.h: Add a define clause for Elist24. | |
6075 | * bindgen.adb New library-level variable Lib_Final_Built. | |
6076 | (Gen_Adafinal_Ada): Reimplemented. Depending on the restrictions or the | |
6077 | presence of a VM target, the routine generates calls to the proper | |
6078 | library finalization routine. | |
6079 | (Gen_Adainit_Ada): Import Finalize_Library_Objects only on non-VM | |
6080 | targets. Set the correct library finalization routine depending on | |
6081 | whether the library has controlled objects or this is a VM compilation. | |
6082 | (Gen_Finalize_Library_Ada): New routine. This procedure generates calls | |
6083 | to library-level finalizers of compiled units in reverse order of | |
6084 | elaboration. It also produces exception management code and reraises a | |
6085 | potential exception after all units have been finalized. | |
6086 | (Gen_Finalize_Library_C): New routine. This procedure generates calls to | |
6087 | library-level finalizers of compiled units in reverse order of | |
6088 | elaboration. | |
6089 | (Gen_Finalize_Library_Defs_C): New routine. This procedure generates the | |
6090 | definitions of all library-level finalizers available to the compilation | |
6091 | (Gen_Main_Ada): Directly call Adafinal which now contails all target | |
6092 | dependent code. | |
6093 | (Gen_Main_C): Add new local constant Needs_Library_Finalization. Call | |
6094 | System.Standard_Library.Adafinal directly. If the library needs | |
6095 | finalization actions, create the sequence of finalization calls. | |
6096 | (Gen_Output_File_Ada): Alphabetize local variables and constants. | |
6097 | Generate a with clause for System.Soft_Links when compiling for a VM. | |
6098 | Remove the code which imports System.Standard_Library.Adafinal as | |
6099 | Do_Finalize. Generate the library finalization routine. | |
6100 | (Gen_Output_File_C): Add new local constant Needs_Library_Finalization. | |
6101 | If the library needs finalization actions, create all the definitions | |
6102 | of library- level finalizers. | |
6103 | (Has_Finalizer): New routine. Determines whether at least one compiled | |
6104 | unit has a library-level finalizer. | |
6105 | Add type Qualification_Mode. | |
6106 | (Set_Unit_Name): Add a formal which controls the replacement of a dot. | |
6107 | * einfo.adb: New usage of field 15 as Return_Flag. | |
6108 | Remove Finalization_Chain_Entity from the usages of field 19. | |
6109 | Remove Associated_Final_Chain from the usages of field 23. | |
6110 | New usage of field 23 as Associated_Collection. | |
6111 | New usage of field 24 as Finalizer. | |
6112 | New usage of flag 252 as Is_Processed_Transient. | |
6113 | (Associated_Final_Chain): Removed. | |
6114 | (Associated_Collection): New routine. | |
6115 | (Finalization_Chain_Entity): Removed. | |
6116 | (Finalizer): New routine. | |
6117 | (Is_Finalizer): New routine. | |
6118 | (Is_Processed_Transient): New routine. | |
6119 | (Return_Flag): New routine. | |
6120 | (Set_Associated_Final_Chain): Removed. | |
6121 | (Set_Associated_Collection): New routine. | |
6122 | (Set_Finalization_Chain_Entity): Removed. | |
6123 | (Set_Finalizer): New routine. | |
6124 | (Set_Is_Processed_Transient): New routine. | |
6125 | (Set_Return_Flag): New routine. | |
6126 | (Write_Entity_Flags): Include Is_Processed_Transient to the list of | |
6127 | displayed flags. | |
6128 | (Write_Field8_Name): Alphabetize the output. | |
6129 | (Write_Field11_Name): Alphabetize the output. | |
6130 | (Write_Field12_Name): Alphabetize the output. | |
6131 | (Write_Field13_Name): Alphabetize the output. | |
6132 | (Write_Field14_Name): Alphabetize the output. | |
6133 | (Write_Field15_Name): Alphabetize the output. | |
6134 | (Write_Field16_Name): Alphabetize the output. | |
6135 | (Write_Field17_Name): Alphabetize the output. | |
6136 | (Write_Field18_Name): Alphabetize the output. | |
6137 | (Write_Field19_Name): Alphabetize the output. Remove the output of | |
6138 | Finalization_Chain_Entity. | |
6139 | (Write_Field20_Name): Alphabetize the output. | |
6140 | (Write_Field21_Name): Alphabetize the output. | |
6141 | (Write_Field22_Name): Alphabetize the output. | |
6142 | (Write_Field23_Name): Alphabetize the output. Remove the output of | |
6143 | Associated_Final_Chain. Add output for Associated_Collection. | |
6144 | (Write_Field24_Name): Alphabetize the output. | |
6145 | (Write_Field25_Name): Add output for Finalizer. | |
6146 | (Write_Field26_Name): Alphabetize the output. | |
6147 | (Write_Field27_Name): Alphabetize the output. | |
6148 | (Write_Field28_Name): Alphabetize the output. | |
6149 | * einfo.ads: Add new field description for Associated_Collection and | |
6150 | its uses in nodes. | |
6151 | Remove Associated_Final_Chain and its uses in nodes. | |
6152 | Remove Finalization_Chain_Entity and its uses in nodes. | |
6153 | Add new field description for Finalizer and its uses in nodes. | |
6154 | Add new synthesized attribute Is_Finalizer. | |
6155 | Add new flag description for Is_Processed_Transient and its uses in | |
6156 | nodes. | |
6157 | Add new field description for Return_Flag and its uses in nodes. | |
6158 | (Associated_Final_Chain): Removed along with its pragma Inline. | |
6159 | (Associated_Collection): New routine and pragma Inline. | |
6160 | (Finalization_Chain_Entity): Removed along with its pragma Inline. | |
6161 | (Finalizer): New routine and pragma Inline. | |
6162 | (Is_Finalizer): New routine and pragma Inline. | |
6163 | (Is_Processed_Transient): New routine and pragma Inline. | |
6164 | (Return_Flag): New routine and pragma Inline. | |
6165 | (Set_Associated_Final_Chain): Removed along with its pragma Inline. | |
6166 | (Set_Associated_Collection): New routine and pragma Inline. | |
6167 | (Set_Finalization_Chain_Entity): Removed along with its pragma Inline. | |
6168 | (Set_Finalizer): New routine and pragma Inline. | |
6169 | (Set_Is_Processed_Transient): New routine and pragma Inline. | |
6170 | (Set_Return_Flag): New routine and pragma Inline. | |
6171 | * exp_aggr.adb: Alphabetize subprograms. | |
6172 | (Build_Array_Aggr_Code): Remove formal Flist and its associated comment. | |
6173 | (Build_Record_Aggr_Code): Remove formals Flist and Obj along with their | |
6174 | associated comments. Remove local variables External_Final_List and | |
6175 | Attach. | |
6176 | Rename Ctrl_Stuff_Done to Finalization_Done. Rename local variable A to | |
6177 | Ancestor. Remove the retrieval of finalization lists. Update the call to | |
6178 | Make_Adjust_Call. | |
6179 | (Convert_Aggr_In_Allocator): Remove the retrieval of finalization | |
6180 | lists. Update the call to Late_Expansion. | |
6181 | (Convert_Aggr_In_Assignment): Update the call to Late_Expansion. | |
6182 | (Convert_Aggr_In_Object_Decl): Update the call to Late_Expansion. | |
6183 | (Gen_Assign): Remove the retrieval of the finalization list used to | |
6184 | build the assignment. Update the calls to Make_Init_Call and | |
6185 | Make_Adjust_Call. | |
6186 | (Gen_Ctrl_Actions_For_Aggr): Renamed to Generate_Finalization_Actions. | |
6187 | Remove the mechanism to determine attachment levels and finalization | |
6188 | list retrieval. Remove the processing for coextensions. | |
6189 | (Init_Controller): Removed. Controllers no longer exist. | |
6190 | (Late_Expansion): Remove formals Flist and Obj along with their | |
6191 | associated comments. Update the calls to Build_Record_Aggr_Code and | |
6192 | Build_Array_Aggr_Code. | |
6193 | * exp_ch13.adb (Expand_N_Free_Statement): New routine. | |
6194 | (Expand_N_Freeze_Entity): Add special processing for finalizers which | |
6195 | appear in entry bodies, protected subprograms and task bodies. | |
6196 | * exp_ch13.ads (Expand_N_Free_Statement): New routine. | |
6197 | * exp_ch3.adb (Add_Final_Chain): Removed. | |
6198 | (Build_Array_Init_Proc): Alphabetize local variables. | |
6199 | (Build_Assignment): Alphabetize local variables. Update the call to | |
6200 | Maked_Adjust_Call. | |
6201 | (Build_Class_Wide_Master): Rename local variables to better reflect | |
6202 | their role. | |
6203 | (Build_Discriminant_Assignments): Code reformatting. | |
6204 | (Build_Init_Call_Thru): Code reformatting. | |
6205 | (Build_Init_Procedure): Code reformatting. Generate a special version | |
6206 | of Deep_Finalize which is capable of finalizing all initialized | |
6207 | components and ignore the rest. | |
6208 | (Build_Init_Statements): Rename local variables to better reflect their | |
6209 | role. | |
6210 | Reimplement the mechanism to include the creation and update of an index | |
6211 | variable called a "counter". It is used as a bookmark for tracing | |
6212 | initialized and non-initialized components. | |
6213 | (Build_Initialization_Call): Remove local variable Controller_Typ. | |
6214 | Alphabetize all local variables. Remove the initialization of the | |
6215 | record controller and update the call to Make_Init_Call. | |
6216 | (Build_Record_Init_Proc): Rename formal Pe to Rec_Ent. | |
6217 | New local variable Counter. | |
6218 | (Constrain_Array): Alphabetize. | |
6219 | (Expand_Freeze_Array_Type): Create a collection instead of a | |
6220 | finalization list. | |
6221 | (Expand_Freeze_Class_Wide_Type): New routine. Creates TSS primitive | |
6222 | Finalize_Address which is used in conjunction with allocated controlled | |
6223 | objects. | |
6224 | (Expand_N_Object_Declaration): Remove the creation of a finalization | |
6225 | list for anonymous access types. Update the calls to Make_Init_Call and | |
6226 | Make_Adjust_Call. | |
6227 | (Expand_Freeze_Record_Type): Remove local variable Flist. Remove the | |
6228 | retrieval of finalization lists. Remove the expansion of the record | |
6229 | controller. Create TSS primitive Finalize_Address used in conjunction | |
6230 | with controlled objects on the heap. Create finalization collections | |
6231 | for access-to-controlled record components. | |
6232 | (Expand_Record_Controller): Removed. | |
6233 | (Freeze_Type): Remove the freezing of record controllers. Freezing of | |
6234 | class-wide types now requires additional processing. Create | |
6235 | finalization collections for access-to-controlled types. | |
6236 | (Increment_Counter): New routine. | |
6237 | (Make_Counter): New routine. | |
6238 | (Make_Eq_If): Remove the mention of Name_uController. | |
6239 | (Make_Predefined_Primitive_Specs): There is no longer need to skip | |
6240 | types coming from System.Finalization_Root. | |
6241 | (Predef_Deep_Spec): Reimplemented to reflect the new parameter profiles. | |
6242 | (Predefined_Primitive_Bodies): There is no longer need to skip types | |
6243 | coming from System.Finalization_Root. | |
6244 | (Stream_Operation_OK): Do not generate stream routines for | |
6245 | type Ada.Finalization.Heap_Management.Finalization_Collection. | |
6246 | * exp_ch3.ads: Alphabetize subprograms. | |
6247 | * exp_ch4.adb: Remove with and use clause for Sem_Ch8. | |
6248 | Add with and use clause for Lib. | |
6249 | (Complete_Coextension_Finalization): Removed. | |
6250 | (Complete_Controlled_Allocation): New routine. Create a finalization | |
6251 | collection for anonymous access-to-controlled types. Create a custom | |
6252 | Allocate which interfaces with the back end and the machinery in | |
6253 | Heap_Management. | |
6254 | (Expand_Allocator_Expression): Add necessary calls to | |
6255 | Complete_Controlled_Allocation. Remove the retrieval of finalization | |
6256 | lists. Update the calls to Make_Adjust_Call. Generate a call to | |
6257 | Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate | |
6258 | the associated collection. | |
6259 | (Expand_N_Allocator): Remove the processing for dynamic coextensions. | |
6260 | Code clean up. Remove the retrieval of finalization lists and | |
6261 | attachment levels. | |
6262 | Update the call to Make_Init_Call. Generate a call to | |
6263 | Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate | |
6264 | the associated collection. | |
6265 | (Get_Allocator_Final_List): Removed. Finalization lists are not | |
6266 | available. | |
6267 | (Suitable_Element): Remove the mention of Name_uController. | |
6268 | * exp_ch5.adb: Remove with and use clauses for Ttypes and Uintp. | |
6269 | (Make_Tag_Ctrl_Assignment): Rewritten to simply do a finalization of | |
6270 | the left hand side, carry out the assignment and adjust the left hand | |
6271 | side. | |
6272 | * exp_ch6.adb (Add_Final_List_Actual_To_Build_In_Place_Call): Removed. | |
6273 | (Add_Collection_Actual_To_Build_In_Place_Call): New routine. | |
6274 | (BIP_Formal_Suffix): Rename BIP_Final_List and BIPfinallist to | |
6275 | BIP_Collection and BIPcollection. | |
6276 | (Build_Heap_Allocator): New routine used to allocate the return object | |
6277 | of a build-in-place function onto a collection. | |
6278 | (Expand_Ctrl_Function_Call): Moved from Exp_Ch7. | |
6279 | (Expand_Call): Do not replace direct calls to Deep routines with their | |
6280 | aliases. | |
6281 | (Expand_N_Extended_Return_Statement): Give all variables shorter names | |
6282 | and update their occurrences. Add a special return flag to monitor the | |
6283 | [ab]normal execution of the function. The flag is set right before the | |
6284 | return statement. | |
6285 | Rewrite the mechanism used to allocate a build-in-place return object | |
6286 | on the heap or on a storage pool. | |
6287 | (Is_Direct_Deep_Call): New routine. | |
6288 | (Make_Build_In_Place_Call_In_Allocator): Add a collection to a | |
6289 | build-in-place function call instead of a final list. Build a call to | |
6290 | Set_Finalize_Address_Ptr to decorate the associated collection. | |
6291 | (Make_Build_In_Place_Call_In_Anonymous_Context): Create a temporary in | |
6292 | order to name the build-in-place function call's result for later | |
6293 | finalization. Add a collection to a build-in-place function call | |
6294 | instead of a final list. | |
6295 | (Make_Build_In_Place_Call_In_Assignment): Add a collection to a | |
6296 | build-in-place function call instead of a final list. Remove the code | |
6297 | which moves one final list and transforms it into the actual in a | |
6298 | nested build-in-place call. | |
6299 | (Make_Build_In_Place_Call_In_Object_Declaration): Add a collection to a | |
6300 | build-in-place function call instead of a final list. | |
6301 | (Move_Final_List): Removed. | |
6302 | (Needs_BIP_Collection): New routine. | |
6303 | (Needs_BIP_Final_List): Removed. | |
6304 | * exp_ch6.ads: Replace BIP_Final_List with BIP_Collection in | |
6305 | enumeration type BIP_Formal_Kind. | |
6306 | Update the related comment. | |
6307 | (Needs_BIP_Collection): New routine. | |
6308 | (Needs_BIP_Final_List): Removed. | |
6309 | * exp_ch7.adb: Add with and use clauses for Elists, Exp_Ch6, Stringt | |
6310 | and Ttypes. Remove with and use clauses for Sem_Type. Alphabetize the | |
6311 | majority of subprograms in this unit. Add Name_Finalize_Address to | |
6312 | array Name_Of and TSS_Finalize_Address to array Deep_Name_Of. | |
6313 | (Build_Adjust_Or_Finalize_Statements): Create the adjust or finalization | |
6314 | statements for an array type. | |
6315 | (Build_Adjust_Statements): Create the adjust statements for a record | |
6316 | type. | |
6317 | (Build_Cleanup_Statements): New routine. A procedure which given any | |
6318 | construct containing asynchronous calls, references to _master, or is a | |
6319 | task body, a task allocation or a protected body produces the necessary | |
6320 | runtime calls to clean up these constructs. | |
6321 | (Build_Exception_Handler): New routine. | |
6322 | (Build_Final_List): Removed. | |
6323 | (Build_Finalization_Collection): New routine. A core procedure which | |
6324 | creates a collection to service heap allocated controlled objects | |
6325 | associated with an access-to-controlled type. | |
6326 | (Build_Finalize_Statements): Create the finalization statements for a | |
6327 | record types. | |
6328 | (Build_Finalizer): New routine. A core procedure which given any | |
6329 | construct with declarations and/or statements detects all objects which | |
6330 | need any type of clean up (controlled objects, protected objects) and | |
6331 | generates all necessary code to clean up the said objects in the proper | |
6332 | order. | |
6333 | (Build_Finalizer_Call): New routine. | |
6334 | (Build_Initialize_Statements): Create the initialization statements for | |
6335 | an array type. The generated routine contains code to finalize partially | |
6336 | initialized arrays. | |
6337 | (Build_Object_Declarations): New routine. | |
6338 | (Build_Raise_Statement): New routine. | |
6339 | (Clean_Simple_Protected_Objects): Removed. | |
6340 | (Controller_Component): Removed. | |
6341 | (Enclosing_Function): New routine. | |
6342 | (Expand_Cleanup_Actions): Create a finalizer for a construct which has | |
6343 | either declarations or statements or both. | |
6344 | (Expand_N_Package_Body): Create a finalizer for a non-generic package. | |
6345 | (Expand_N_Package_Declaration): Create a finalizer for a non-generic | |
6346 | package. | |
6347 | (Find_Final_List): Removed. | |
6348 | (Global_Flist_Ref): Removed. | |
6349 | (In_Finalization_Root): Removed. | |
6350 | (Insert_Actions_In_Scope_Around): Determine the range of the transient | |
6351 | scope in terms of tree nodes. Process all transient variables within | |
6352 | that range. | |
6353 | (Make_Adjust_Call): Rewritten. There is no longer an attach call | |
6354 | generated after the adjust. | |
6355 | (Make_Attach_Call): Removed. | |
6356 | (Make_Call): New routine. | |
6357 | (Make_Clean): Removed. | |
6358 | (Make_Deep_Array_Body): Rewritten to simply invoke the appropriate | |
6359 | build routines. | |
6360 | (Make_Deep_Proc): Rewritten to generate the new profile signature used | |
6361 | in Deep routines. | |
6362 | (Make_Deep_Record_Body): Rewritten to simply invoke the appropriate | |
6363 | build routines. | |
6364 | (Make_Final_Call): Modified to simply create a call to either | |
6365 | Deep_Finalize or Finalize. | |
6366 | (Make_Finalize_Address_Body): New routine. | |
6367 | (Make_Finalize_Address_Stmts): New routine. A function which produces | |
6368 | TSS primitive Finalize_Address used in conjunction with heap allocated | |
6369 | controlled objects. | |
6370 | (Make_Handler_For_Ctrl_Operation): Add specialized code for .NET/JVM. | |
6371 | (Make_Init_Call): Rewritten. There is no longer an attach call | |
6372 | generated after initialization. | |
6373 | (Make_Local_Deep_Finalize): New routine. | |
6374 | (Make_Set_Finalize_Address_Ptr_Call): New routine. | |
6375 | (Make_Transient_Block): Remove the finalization list retrieval and | |
6376 | manipulation. | |
6377 | (Needs_Finalization): Moved to Exp_Util. | |
6378 | (Parent_Field_Type): New routine. | |
6379 | (Preprocess_Components): New routine. | |
6380 | (Process_Transient_Objects): New routine. | |
6381 | (Wrap_HSS_In_Block): New routine. | |
6382 | (Wrap_Transient_Declaration): Remove finalization list management and | |
6383 | controller insertion. | |
6384 | (Wrap_Transient_Expression): Code reformatting. | |
6385 | (Wrap_Transient_Statement): Code reformatting. | |
6386 | * exp_ch7.ads (Build_Final_List): Removed. | |
6387 | (Build_Finalization_Collection): New routine. | |
6388 | (Build_Raise_Statement): New routine. | |
6389 | (Controller_Component): Removed. | |
6390 | (Expand_Ctrl_Function_Call): Moved to Exp_Ch6. | |
6391 | (Find_Final_List): Removed. | |
6392 | (In_Finalization_Root): Removed. | |
6393 | (Is_Simple_Protected_Type): Update related comment. | |
6394 | (Make_Adjust_Call): New parameter profile and associated comments. | |
6395 | (Make_Attach_Call): Removed. | |
6396 | (Make_Final_Call): New parameter profile and associated comments. | |
6397 | (Make_Finalize_Address_Body): New routine. | |
6398 | (Make_Init_Call): New parameter profile and associated comments. | |
6399 | (Make_Local_Deep_Finalize): New routine. | |
6400 | (Make_Set_Finalize_Address_Ptr_Call): New routine. | |
6401 | (Needs_Finalization): Moved to Exp_Util. | |
6402 | * exp_ch9.adb (Add_Object_Pointer): Code reformatting. | |
6403 | (Expand_N_Protected_Body): Remove the handling of finalization lists. | |
6404 | (Find_Protection_Type): Moved to Exp_Util. | |
6405 | * exp_disp.adb: Remove with and use clauses for Exp_Ch7. | |
6406 | (Make_DT): Update sequence of dispatch table initialization. Remove the | |
6407 | initialization of field RC_Offset. Add initialization of field Needs_ | |
6408 | Finalization. | |
6409 | * exp_intr.adb (Expand_Unc_Deallocation): Code reformatting. | |
6410 | Reimplement how an object is first finalized, then deallocated. | |
6411 | * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): | |
6412 | Code reformatting. | |
6413 | * exp_tss.ads: Add special suffix for TSS primitive Finalize_Address. | |
6414 | Register TSS_Finalize_Address with type TSS_Names. | |
6415 | * exp_util.adb (Build_Allocate_Deallocate_Proc): New routine. This core | |
6416 | procedure provides the interface between an allocation / deallocation | |
6417 | and the support machinery in Ada.Finalization.Heap_Management. | |
6418 | (Find_Init_Call): Code reformatting. | |
6419 | (Find_Init_Call_In_List): Code reformatting. | |
6420 | (Find_Protection_Type): Moved from Exp_Ch9. | |
6421 | (Find_Prim_Op): Reimplement to add preference of recovered primitive. | |
6422 | (Has_Controlled_Coextensions): Removed. | |
6423 | (Has_Controlled_Objects): New routine. | |
6424 | (In_Library_Level_Package_Body): New routine. | |
6425 | (Insert_Action_After): New routine. | |
6426 | (Is_Finalizable_Transient): New routine. This predicate determines | |
6427 | whether an object declaration is one of the many variants of controlled | |
6428 | transients. | |
6429 | (Is_Null_Access_BIP_Func_Call): New routine. | |
6430 | (Is_Non_BIP_Func_Call): New routine. | |
6431 | (Is_Related_To_Func_Return): New routine. | |
6432 | (Needs_Finalization): Moved from Exp_Ch7. | |
6433 | * exp_util.ads (Build_Allocate_Deallocate_Proc): New routine. | |
6434 | (Find_Protection_Type): Moved from Exp_Ch9. | |
6435 | (Has_Controlled_Coextensions): Removed. | |
6436 | (Has_Controlled_Objects): New routine. | |
6437 | (In_Library_Level_Package_Body): New routine. | |
6438 | (Insert_Action_After): New routine. | |
6439 | (Is_Finalizable_Transient): New routine. | |
6440 | (Is_Null_Access_BIP_Func_Call): New routine. | |
6441 | (Is_Non_BIP_Func_Call): New routine. | |
6442 | (Is_Related_To_Func_Return): New routine. | |
6443 | (Needs_Finalization): Moved from Exp_ch7. | |
6444 | * expander.adb (Expand): Add a case for N_Free_Statement. | |
6445 | * freeze.adb (Freeze_All): Replace the generation of a finalization | |
6446 | list with a collection for access-to-controlled types. | |
6447 | (Freeze_Entity): Code reformatting. | |
6448 | (Freeze_Record_Type): Remove the freezing of a record controller | |
6449 | component. | |
6450 | (Freeze_Subprogram): Code reformatting. | |
6451 | * inline.adb (Cleanup_Scopes): Remove the reset of the scope | |
6452 | finalization list. | |
6453 | * lib-writ.adb (Write_Unit_Information): Output "PF" when a package | |
6454 | has a library-level finalizer. | |
6455 | * lib-writ.ads: Add "PF" to the sequence of unit attributes. | |
6456 | * a-filico.ads, a-filico.adb, s-finimp.ads, s-finimp.adb: Removed. | |
6457 | * Makefile.rtl: Remove a-filico and s-finimp from the list of object | |
6458 | files. Add a-fihema to the list of object files. | |
6459 | * par-ch4.adb: | |
6460 | Alphabetize the associations in type Is_Parameterless_Attribute. | |
6461 | * rtsfind.ads: Ada.Finalization_List.Controller and | |
6462 | System.Finalization_Implementation are no longer a GNAT unit. | |
6463 | Update the range of type Ada_Finalization_Child. Remove the following | |
6464 | recoverable entities: | |
2c7f9cc0 | 6465 | |
df3e68b1 HK |
6466 | RE_Attach_To_Final_List |
6467 | RE_Deep_Tag_Attach | |
6468 | RE_Finalize_List | |
6469 | RE_Finalize_One | |
6470 | RE_Finalizable_Ptr_Ptr | |
6471 | RE_Global_Final_List | |
6472 | RE_Limited_Record_Controller | |
6473 | RE_List_Controller | |
6474 | RE_Move_Final_List | |
6475 | RE_Record_Controller | |
6476 | RE_Simple_List_Controller | |
2c7f9cc0 | 6477 | |
df3e68b1 | 6478 | Add the following recoverable entities: |
2c7f9cc0 | 6479 | |
df3e68b1 HK |
6480 | RE_Add_Offset_To_Address |
6481 | RE_Allocate | |
6482 | RE_Base_Pool | |
6483 | RE_Deallocate | |
6484 | RE_Exception_Identity | |
6485 | RE_Finalization_Collection | |
6486 | RE_Finalization_Collection_Ptr | |
6487 | RE_Needs_Finalization | |
6488 | RE_Save_Library_Occurrence | |
6489 | RE_Set_Finalize_Address_Ptr | |
6490 | RE_Set_Storage_Pool_Ptr | |
6491 | RE_Storage_Count | |
6492 | * sem_aggr.adb (Resolve_Record_Aggregate): Remove mention of | |
6493 | Name_uController. | |
6494 | * sem_aux.adb (First_Discriminant): Remove mention of Name_uController. | |
6495 | (First_Stored_Discriminant): Remove the mention of Name_uController. | |
6496 | * sem_aux.ads: Comment reformatting. | |
6497 | * sem_ch10.adb (Build_Chain): Signal the class-wide creation machinery | |
6498 | to redecorate an already existing class-wide type. | |
6499 | (Decorate_Tagged_Type): New parameter profile and associated comment. | |
6500 | Create a "shadow class-wide type" for a shadow entity. | |
6501 | * sem_ch11.adb (Analyze_Exception_Handlers): Remove the dubious setting | |
6502 | of the final chain along with the associated comment. | |
6503 | * sem_ch3.adb (Access_Type_Declaration): Add new local variable | |
6504 | Full_Desig and set it to the full view of the designated type. | |
6505 | Initialize the finalization collection to empty. | |
6506 | (Build_Derived_Record_Type): Alphabetize local variables. Code | |
6507 | reformatting. | |
6508 | (Collect_Fixed_Components): Remove the mention of Name_uController. | |
6509 | (Create_Constrained_Components): Remove the mention of Name_uController. | |
6510 | (Make_Class_Wide_Type): Add specialized code to redecorate an existing | |
6511 | class-wide type of a shadow entity. | |
6512 | (Process_Full_View): Update the machinery which marks type | |
6513 | Limited_Controlled's entity as limited. | |
6514 | * sem_ch4.adb (Analyze_One_Call): Code reformatting. | |
6515 | * sem_ch6.adb (Create_Extra_Formals): Do not generate a finalization | |
6516 | list, instead make a collection build-in-place formal. | |
6517 | * sem_ch8.adb (Analyze_Object_Renaming): Look at the available view of | |
6518 | a designated type in order to establish a match between the renaming | |
6519 | and the renamed entity. | |
6520 | (Find_Selected_Component): Add guard to prevent spurious exceptions | |
6521 | from being raised on .NET/JVM. | |
6522 | * sem_disp.adb (Check_Dispatching_Operation): Include Finalize_Address | |
6523 | to the list of primitive that need special processing. Update arrays | |
6524 | C_Names and D_Names. | |
6525 | (Replace_Types): Handle class-wide types. | |
6526 | * sem_elab.adb (Check_A_Call): Since Deep_Initialize now has a | |
6527 | different parameter profile, look at the first formal. | |
6528 | * sem_prag.adb: Remove with and use clauses for Exp_Ch7. Add with and | |
6529 | use clauses for Exp_Util. | |
6530 | * sem_res.adb: Remove with and use clauses for Elists. | |
6531 | (Propagate_Coextensions): Removed. | |
6532 | (Resolve_Allocator): Do not propagate the list of coextensions from one | |
6533 | allocator to another. | |
6534 | * sem_util.adb (Build_Actual_Subtype_Of_Component): Rename variable | |
6535 | Deaccessed_T to Desig_Typ. | |
6536 | (Enter_Name): Remove the mention of Name_uController. | |
6537 | (Gather_Components): Remove the mention of Name_uController. | |
6538 | (Incomplete_Or_Private_View): New routine. | |
6539 | (Is_Coextension_Root): Removed. | |
6540 | (Is_Fully_Initialized_Type): Remove the mention of Name_uController. | |
6541 | * sem_util.ads (Incomplete_Or_Private_View): New routine. | |
6542 | (Is_Coextension_Root): Removed. | |
6543 | * s-finroo.ads: Remove with clause for Ada.Unchecked_Conversion. | |
6544 | Controlled types are now derived from a null tagged record. Remove | |
6545 | types Finalizable_Ptr, Finalizable and Empty_Root_Controlled. | |
6546 | * sinfo.adb (Coextensions): Removed. | |
6547 | (Set_Coextensions): Removed. | |
6548 | * sinfo.ads: Remove Coextensions from the explanation of node fields | |
6549 | and its uses in nodes. | |
6550 | Update the field usage of N_Allocator. | |
6551 | (Coextensions): Removed along with its pragma Inline. | |
6552 | (Set_Coextensions): Removed along with its pragma Inline. | |
6553 | * snames.ads-tmpl: Remove names | |
2c7f9cc0 | 6554 | |
df3e68b1 HK |
6555 | Name_uClean |
6556 | Name_uController | |
6557 | Name_uFinal_List | |
6558 | Name_uLocal_Final_List | |
6559 | Name_Finalization_Root | |
6560 | Name_Next | |
6561 | Name_Prev | |
2c7f9cc0 | 6562 | |
df3e68b1 | 6563 | Add names |
2c7f9cc0 | 6564 | |
df3e68b1 HK |
6565 | Name_uFinalizer |
6566 | Name_Finalize_Address | |
6567 | * s-pooglo.adb (Allocate): Add overriding indicator. | |
6568 | (Deallocate): Add overriding indicator. | |
6569 | (Storage_Size): Add overriding indicator. | |
6570 | * s-soflin.adb (Adafinal_NT): Invoke Finalize_Library_Objects rather | |
6571 | than Finalize_Global_List. | |
6572 | (Null_Finalize_Global_List): Removed. | |
6573 | (Save_Library_Occurrence): New routine. | |
6574 | * s-soflin.ads: Remove variable Finalize_Global_List along with its | |
6575 | initialization. Add variable Finalize_Library_Objects along with its | |
6576 | pragma Export. Add variables Library_Exception and | |
6577 | Library_Exception_Set along with their pragma Export. | |
6578 | (Null_Finalize_Global_List): Removed. | |
6579 | (Save_Library_Occurrence): New routine. | |
6580 | * s-tassta.adb (Finalize_Global_Tasks): Call Finalize_Library_Objects | |
6581 | rather than Finalize_Global_List. | |
6582 | * tbuild.adb (Unchecked_Convert_To): Capture and set the parent field | |
6583 | of the constructed node. | |
6584 | ||
2ee06322 RO |
6585 | 2011-08-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
6586 | ||
6587 | * link.c: Include "auto-host.h" before system headers. | |
6588 | ||
f77b022b VC |
6589 | 2011-08-03 Vincent Celier <celier@adacore.com> |
6590 | ||
6591 | * make.adb (Gnatmake): Add to table Library_Projs only library projects | |
6592 | that are not extended. Do not check if a library project that is | |
6593 | extended should be regenerated. Do not add to table Library_Paths the | |
6594 | libraries that are in extended projects. Link only with libraries that | |
6595 | are in libray projects that are not extended. | |
6596 | * prj-nmsc.adb (Check_Library_Attributes): Do not reset flag Library | |
6597 | for a library project that is extended. | |
6598 | ||
0187b60e AC |
6599 | 2011-08-03 Gary Dismukes <dismukes@adacore.com> |
6600 | ||
6601 | * sem_ch6.adb (Find_Corresponding_Spec): When in an instance, skip | |
6602 | conforming subprogram renamings that appear to be completions if they | |
6603 | are not fully conformant. | |
6604 | Such renamings are homographs but not completions. | |
6605 | * sem_type.adb (Disambiguate): Handle disambiguation of overloaded | |
6606 | names in a subprogram renaming that appears in an instance. | |
6607 | ||
6608 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
6609 | ||
6610 | * exp_util.adb (Expand_Subtype_From_Expr): if the type is limited but | |
6611 | not immutably limited, build actual subtype from expression to provide | |
6612 | proper bounds to caller. | |
6613 | ||
6614 | 2011-08-03 Gary Dismukes <dismukes@adacore.com> | |
6615 | ||
6616 | * sem_ch8.adb: Minor comment correction. | |
6617 | ||
6618 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
6619 | ||
6620 | * exp_strm.adb (Build_Array_Input_Function): In Ada 2005 mode, when | |
6621 | returning a limited array, use an extended return statement. | |
6622 | ||
6623 | 2011-08-03 Vincent Celier <celier@adacore.com> | |
6624 | ||
6625 | * make.adb (Initialize): If --subdirs= is used, but no project file is | |
6626 | specified, attempt to create the specify subdir if it does not already | |
6627 | exist and use it as the object directory as if -D had been specified. | |
6628 | ||
6629 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
6630 | ||
6631 | * s-tpopsp-vms.adb: New file. | |
6632 | * s-taprop-vms.adb: Put back ATCB_Key, since needed by this file on VMS. | |
6633 | * gcc-interfaces/Makefile.in: Use s-taprop-vms.adb on VMS. | |
6634 | ||
e280f981 AC |
6635 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
6636 | ||
6637 | * make.adb, makeutl.adb, makeutl.ads, clean.adb (Makeutl.Queue): new | |
6638 | package. | |
6639 | ||
6640 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
6641 | ||
6642 | * cstand.adb (Create_Standard): select Universal_Integer as an ALFA type | |
6643 | * sem_ch3.adb (Array_Type_Declaration): detect array types in ALFA | |
6644 | * sem_util.adb, sem_util.ads (Has_Static_Array_Bounds): new function to | |
6645 | detect that an array has static bounds. | |
6646 | ||
98c99a5a AC |
6647 | 2011-08-03 Thomas Quinot <quinot@adacore.com> |
6648 | ||
6649 | * exp_dist.adb: Minor reformatting. | |
6650 | ||
6651 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
6652 | ||
6653 | * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-vms.adb | |
6654 | (ATCB_Key): Removed, not always used. | |
6655 | ||
6656 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
6657 | ||
6658 | * gnatcmd.adb, make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads, | |
6659 | clean.adb, prj-conf.adb, prj-env.adb, prj-env.ads (Makeutl): remove | |
6660 | most remaining global variables. | |
6661 | ||
686d0984 AC |
6662 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
6663 | ||
6664 | * gnatcmd.adb, prj-proc.adb, mlib-prj.adb, prj.adb, makeutl.ads, | |
6665 | prj-util.adb, prj-util.ads, prj-conf.adb, prj-env.adb: Minor | |
6666 | reformatting. | |
6667 | ||
6668 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
6669 | ||
6670 | * exp_util.adb (Is_VM_By_Copy_Actual): Include N_Slide nodes as actuals | |
6671 | that must be passed by copy in VM targets. | |
6672 | ||
6673 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
6674 | ||
6675 | * prj.ads, prj-nmsc.adb (Files_Htable): removed this htable, which | |
6676 | duplicates a similar htable now in the project tree. | |
6677 | ||
6678 | 2011-08-03 Claire Dross <dross@adacore.com> | |
6679 | ||
6680 | * a-cfdlli.adb, a-cfhama.adb, a-cfhase.adb, a-cforma.adb, a-cforse.adb, | |
6681 | a-cofove.adb ("=", Length, Is_Empty, Clear, Assign, Copy, Element, | |
6682 | Replace_Element, Query_Element, Update_Element, Move, Insert, Prepend, | |
6683 | Append, Delete, Delete_First, Delete_Last, Reverse_Element, Swap, | |
6684 | Splice, First, First_Element, Last, Last_Element, Next, Previous, Find, | |
6685 | Reverse_Find, Contains, Has_Element, Iterate, Reverse_Iterate, Capacity, | |
6686 | Reserve_Length, Length, Strict_Equal, Left, Right): Data-structure | |
6687 | update. | |
6688 | ||
6689 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
6690 | ||
6691 | * s-taprop-posix.adb, s-taprop-linux.adb, s-taprop-tru64.adb | |
6692 | (ATCB_Key): Removed, not always used. | |
6693 | * s-tpopsp-posix.adb, s-tpopsp-posix-foreign.adb (ATCB_Key): Moved from | |
6694 | s-taprop-posix.adb. | |
6695 | * s-tpopsp-tls.adb: New file. | |
6696 | * gcc-interface/Makefile.in: Use TLS implementation of s-tpopsp.adb on | |
6697 | x86/x64/ia64/powerpc/sparc Linux. | |
6698 | ||
6699 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
6700 | ||
6701 | * system-aix.ads, system-aix64.ads: Set ZCX_By_Default to True. | |
6702 | * gcc-interface/Makefile.in: Switch to ZCX by default on AIX ports. | |
6703 | ||
6704 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
6705 | ||
6706 | * rtsfind.ads, exp_dist.adb, exp_dist.ads | |
6707 | (Build_From_Any_Call, Build_To_Any_Call, Build_TypeCode_Call): | |
6708 | Fix type selection for mapping integer types to PolyORB types. | |
6709 | ||
6710 | 2011-08-03 Bob Duff <duff@adacore.com> | |
6711 | ||
6712 | * sem_ch7.adb: Minor comment clarification. | |
6713 | ||
6714 | 2011-08-03 Bob Duff <duff@adacore.com> | |
6715 | ||
6716 | * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): If we get | |
6717 | an error analyzing a choice, skip further processing. Further | |
6718 | processing could cause a crash or cascade errors. | |
6719 | ||
40ecf2f5 EB |
6720 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
6721 | ||
6722 | * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, mlib-prj.adb, | |
6723 | prj.adb, prj.ads, makeutl.adb, makeutl.ads, clean.adb, prj-nmsc.adb, | |
6724 | prj-util.adb, prj-util.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, | |
6725 | prj-env.ads (Shared_Project_Tree_Data): new type | |
6726 | An aggregate project and its aggregated trees need to share the common | |
6727 | data structures used for lists of strings, packages,... This makes the | |
6728 | code simpler since otherwise we have to pass the root tree (also used | |
6729 | for the configuration file data) in addition to the current project | |
6730 | tree. This also avoids ambiguities as to which tree should be used. | |
6731 | And finally this saves a bit of memory. | |
6732 | (For_Every_Project_Imported): new parameter Tree. | |
6733 | Since aggregated projects are using a different tree, we need to let | |
6734 | the caller know which tree to use to manipulate the returned project. | |
6735 | ||
9fde638d RD |
6736 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
6737 | ||
6738 | * prj-proc.adb, exp_util.ads, exp_ch9.adb, make.adb, prj-ext.adb, | |
6739 | prj-ext.ads, alfa.ads, sem_ch4.adb, makeutl.adb, makeutl.ads, | |
6740 | lib-xref-alfa.adb, sem_cat.adb, exp_dist.adb, get_alfa.adb, | |
6741 | prj-env.adb, prj-env.ads, prj-tree.adb, alfa.ads: Minor reformatting. | |
6742 | ||
95eb8b69 AC |
6743 | 2011-08-03 Javier Miranda <miranda@adacore.com> |
6744 | ||
6745 | * exp_util.adb, sem_aux.adb, exp_util.ads, sem_aux.ads: | |
6746 | Move routine Is_VM_By_Copy_Actual from sem_aux to exp_util. | |
6747 | ||
6748 | 2011-08-03 Bob Duff <duff@adacore.com> | |
6749 | ||
6750 | * sem_ch8.adb (Is_Primitive_Operator_In_Use): Always check In_Use on | |
6751 | the Base_Type. | |
6752 | ||
6753 | 2011-08-03 Joel Brobecker <brobecker@adacore.com brobecker> | |
6754 | ||
6755 | * g-sha256.ads, g-sha512.ads, g-sha1.ads, g-sha224.ads, g-sha384.ads, | |
6756 | g-sehash.ads: Fix typo. Update header. | |
6757 | ||
6758 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
6759 | ||
6760 | * exp_ch6.adb (Expand_Actuals): Remove Ada_2005 guard on build-in-place | |
6761 | expansion. | |
6762 | ||
6763 | 2011-08-03 Gary Dismukes <dismukes@adacore.com> | |
6764 | ||
6765 | * sem_ch4.adb (Analyze_Overloaded_Selected_Component): Consider | |
6766 | prefixes of private types along with records, since the selector may be | |
6767 | a discriminant. | |
6768 | * sem_res.adb (Resolve_Selected_Component): Consider prefixes of | |
6769 | private types along with records, since the selector may be a | |
6770 | discriminant. | |
6771 | ||
92e77027 AC |
6772 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
6773 | ||
b2f7ebc1 | 6774 | * prj-pp.adb (Pretty_Print): Remove trailing blank line. |
92e77027 AC |
6775 | |
6776 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
6777 | ||
6778 | * sem_aux.adb (Is_VM_By_Copy_Actual): Fix wrong use of | |
6779 | Tagged_Type_Expansion. | |
6780 | ||
6781 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
6782 | ||
b2f7ebc1 GP |
6783 | * sem_res.adb (Resolve_Op_Concat_Arg): Do not issue a SPARK |
6784 | violation when the argument of concatenation is the name of a | |
6785 | constant. | |
92e77027 | 6786 | |
ab29a348 EB |
6787 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
6788 | ||
6789 | * prj-proc.adb, prj-ext.adb, prj-ext.ads, prj-env.adb, prj-env.ads, | |
6790 | prj-tree.adb, prj-tree.ads (Initialize_And_Copy, Copy): new subprograms | |
6791 | (Process_Declarative_Items): new parameter Child_Env. | |
6792 | ||
9466892f AC |
6793 | 2011-08-03 Yannick Moy <moy@adacore.com> |
6794 | ||
589ef536 GP |
6795 | * alfa.ads: Update format of ALFA section in ALI file in order to |
6796 | add a mapping from bodies to specs when both are present. | |
6797 | (ALFA_Scope_Record): Add components for spec file/scope. | |
6798 | * get_alfa.adb (Get_ALFA): Read the new file/scope for spec when | |
6799 | present. | |
6800 | * lib-xref-alfa.adb (Collect_ALFA): After all scopes have been | |
6801 | collected, fill in the spec information when relevant. | |
6802 | * put_alfa.adb (Put_ALFA): Write the new file/scope for spec when | |
9466892f AC |
6803 | present. |
6804 | ||
6805 | 2011-08-03 Eric Botcazou <ebotcazou@adacore.com> | |
6806 | ||
6807 | * inline.adb (Add_Inlined_Subprogram): Do not consider the enclosing | |
6808 | code unit to decide whether to add internally generated subprograms. | |
2c7f9cc0 | 6809 | |
9466892f AC |
6810 | 2011-08-03 Javier Miranda <miranda@adacore.com> |
6811 | ||
6812 | * sem_aux.ads, sem_aux.adb (Is_VM_By_Copy_Actual): New subprogram. | |
589ef536 GP |
6813 | * exp_ch9.adb (Build_Simple_Entry_Call): Handle actuals that must |
6814 | be handled by copy in VM targets. | |
9466892f AC |
6815 | |
6816 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
6817 | ||
589ef536 | 6818 | * make.adb, makeutl.adb, makeutl.ads (Make.Switches_Of): Share |
9466892f AC |
6819 | code with Makeutl.Get_Switches. |
6820 | * prj-tree.adb: Update comment. | |
6821 | ||
b5ea9143 AC |
6822 | 2011-08-03 Thomas Quinot <quinot@adacore.com> |
6823 | ||
6824 | * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Reject a remote | |
6825 | subprogram with a limited formal that does not support external | |
6826 | streaming. | |
6827 | ||
6828 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
6829 | ||
6830 | * get_alfa.adb (Get_ALFA): add missing Skip_Spaces at start of | |
6831 | continuation line | |
6832 | * lib-xref-alfa.adb (Add_ALFA_File): split removal of scopes that are | |
6833 | not from current unit in two phases, because it is not possible to | |
6834 | change the table while iterating over its content. | |
6835 | * put_alfa.adb (Put_ALFA): reset current file/scope at each new entity | |
6836 | ||
6837 | 2011-08-03 Sergey Rybin <rybin@adacore.com> | |
6838 | ||
6839 | * vms_data.ads: Add qualifier for gnatmetric --no-static-loop option | |
6840 | * gnat_ugn.texi: Update description of complexity metrics (gnatmetric) | |
6841 | ||
668a19bc ES |
6842 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> |
6843 | ||
6844 | * sem_res.adb (Resolve_Op_Concat_Arg): if the argument is an aggregate | |
6845 | and the component type is composite, this is ambiguous for predefined | |
6846 | concatenation, but if the node is not overloaded and the entity is a use | |
6847 | -defined function its profile can be used to resolve that aggregate. | |
6848 | ||
170b2989 AC |
6849 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
6850 | ||
6851 | * exp_ch4.adb: Minor code cleanup. | |
6852 | ||
6853 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
6854 | ||
6855 | * exp_dist.adb: Do not generate distribution stubs if serious errors | |
6856 | have been diagnosed. | |
6857 | ||
6858 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
6859 | ||
6860 | * sem_ch4.adb (Try_Primitive_Operation): when checking the validity of | |
6861 | the first formal of a primitive operation, go to the base type to | |
6862 | handle properly an access to a derived type with constrained | |
6863 | discriminants. | |
6864 | * sem_type.adb (Disambiguate): an immediately visible operator hides a | |
6865 | user-defined function that is only use-visible. | |
170b2989 | 6866 | |
e917aec2 RD |
6867 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
6868 | ||
6869 | * sem_aggr.adb, sem_ch3.adb, lib.ads, gnatcmd.adb, prj-proc.adb, | |
6870 | make.adb, lib-writ.adb, prj-part.adb, prj-part.ads, prj-ext.adb, | |
6871 | fname-uf.adb, prj-ext.ads, prj.adb, prj.ads, sem_attr.adb, alfa.adb, | |
6872 | prj-makr.adb, errout.adb, makeutl.adb, makeutl.ads, restrict.ads, | |
6873 | sem_ch6.adb, g-pehage.adb, clean.adb, put_alfa.adb, lib-xref-alfa.adb, | |
6874 | prj-nmsc.adb, prj-nmsc.ads, sem_ch8.adb, prj-pars.ads, exp_aggr.adb, | |
6875 | prj-attr.ads, sem_ch13.adb, get_alfa.adb, prj-env.adb, prj-env.ads, | |
6876 | alfa_test.adb, prj-tree.adb, prj-tree.ads, einfo.ads: Minor reformatting | |
6877 | ||
6878 | 2011-08-03 Robert Dewar <dewar@adacore.com> | |
6879 | ||
6880 | * repinfo.adb (List_Mechanism): Add handling of | |
6881 | Convention_Ada_Pass_By_XXX. | |
6882 | * sem_mech.adb (Set_Mechanism): Ditto. | |
6883 | * sem_prag.adb (Process_Convention): Add entries for | |
6884 | Convention_Ada_Pass_By_XXX. | |
6885 | * snames.adb-tmpl, snames.ads-tmpl: Ditto. | |
6886 | ||
49bfcf43 AC |
6887 | 2011-08-03 Pascal Obry <obry@adacore.com> |
6888 | ||
6889 | * makeutl.adb: Minor reformatting. | |
6890 | ||
6891 | 2011-08-03 Vincent Celier <celier@adacore.com> | |
6892 | ||
6893 | * fname-uf.adb | |
6894 | (Get_File_Name) If the file cannot be found when there are no config | |
6895 | pragmas file and May_Fail is True, return No_File instead of the file | |
6896 | name, to be consistent. | |
6897 | ||
6898 | 2011-08-03 Pascal Obry <obry@adacore.com> | |
6899 | ||
6900 | * adaint.c (__gnat_is_executable_file_attr): Avoid access | |
6901 | to null pointer. | |
6902 | ||
6903 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
6904 | ||
6905 | * sem_ch13.adb | |
6906 | (Same_Representation): In VM targets the representation of arrays with | |
6907 | aliased components differs from arrays with non-aliased components. | |
6908 | ||
34798441 EB |
6909 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
6910 | ||
6911 | * prj-proc.adb, prj-attr.adb, prj-attr.ads (Get_Attribute_Index): do | |
6912 | not systematically lower case attribute indexes that contain no "." | |
6913 | Fix definition of several Naming attributes, which take | |
6914 | a unit name as index and therefore should be case insensitive. | |
6915 | Minor refactoring (reduce length of variable names). | |
6916 | ||
6917 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
6918 | ||
6919 | * makeutl.adb, makeutl.ads (Get_Switches): new subprogram. | |
6920 | ||
4437a530 EB |
6921 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
6922 | ||
6923 | * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb, | |
6924 | prj-part.ads, switch-m.adb, switch-m.ads, prj-makr.adb, clean.adb, | |
6925 | prj-pars.adb, prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb, | |
6926 | prj-tree.ads (Prj.Tree.Environment): new type. | |
6927 | ||
804fe3c4 EB |
6928 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
6929 | ||
6930 | * prj-proc.adb, prj.ads, makeutl.adb, makeutl.ads, prj-conf.adb, | |
6931 | prj-tree.adb, prj-tree.ads (Environment): new type. | |
6932 | ||
c565bc66 AC |
6933 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
6934 | ||
6935 | * prj-tree.ads: Remove unused variable. | |
6936 | ||
6937 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
6938 | ||
6939 | * restrict.adb (Restriction_Msg): set "SPARK" all in upper case for | |
6940 | issuing messages related to SPARK restriction violation. | |
6941 | ||
4ee646da AC |
6942 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> |
6943 | ||
6944 | * sem_ch6.adb: guard against error nodes in return statements. | |
6945 | ||
6946 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
6947 | ||
6948 | * errout.adb (Error_Msg_Internal): the main unit has not been read yet, | |
6949 | a warning can only appear on a configuration file, so emit warning | |
6950 | without further checks. | |
6951 | ||
6952 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
6953 | ||
6954 | * s-interr.ads: add overriding keyword. | |
6955 | ||
6956 | 2011-08-03 Geert Bosch <bosch@adacore.com> | |
6957 | ||
6958 | * exp_attr.adb: Fix minor typo. | |
6959 | ||
6960 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
6961 | ||
6962 | * par-ch4.adb: improve error recovery. | |
6963 | ||
c0e538ad AC |
6964 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
6965 | ||
6966 | * prj-part.adb, prj-part.ads, prj-makr.adb, prj-pars.adb, prj-conf.adb, | |
6967 | prj-env.adb (Prj.Part.Parse): change parameter Always_Errout_Finalize | |
6968 | to Errout_Handling. | |
6969 | ||
6970 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
6971 | ||
6972 | * prj-dect.adb (Parse_Attribute_Declaration): make sure we can use | |
6973 | "external" as an attribute name in aggregate projects. | |
6974 | ||
6975 | 2011-08-03 Jose Ruiz <ruiz@adacore.com> | |
6976 | ||
6977 | * s-taprop-vxworks.adb: (Create_Task, Initialize): Ada 2012 pragma CPU | |
6978 | uses CPU numbers starting 1, while VxWorks uses CPU numbers starting | |
6979 | from 0, so we need to adjust. | |
6980 | ||
6981 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
6982 | ||
6983 | * prj-proc.adb, prj-ext.adb, prj-ext.ads, makeutl.adb, prj-tree.adb, | |
6984 | prj-tree.ads, gnatcmd.adb, clean.adb (External_References): new type. | |
6985 | ||
c4d67e2d AC |
6986 | 2011-08-03 Yannick Moy <moy@adacore.com> |
6987 | ||
6988 | * sem_ch6.adb (New_Overloaded_Entity): only issue error for SPARK | |
6989 | restriction on overloaded entity if the entity is not an operator. | |
6990 | ||
6991 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
6992 | ||
6993 | * sem_ch7.adb, sem_res.adb, sem_attr.adb, restrict.adb, | |
6994 | restrict.ads: Rename remaining Check_Formal_Restriction* into | |
6995 | Check_SPARK_Restriction*. | |
6996 | ||
6997 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
6998 | ||
6999 | * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, | |
7000 | prj-nmsc.ads, prj-err.adb (Project_Data): now discriminated on its | |
7001 | qualifier. | |
7002 | (Project_Empty): removed | |
7003 | (Empty_Project): new parameter Qualifier | |
7004 | This is used to have fields specific to aggregate projects, cleaner | |
7005 | New field to store the list of aggregated projects. | |
7006 | (Check_Aggregate_Project): removed | |
7007 | (Process_Aggregated_Projects, Free): new subprograms. | |
7008 | ||
3f5a8fee AC |
7009 | 2011-08-03 Olivier Hainque <hainque@adacore.com> |
7010 | ||
7011 | * tracebak.c (STOP_FRAME ppc AIX): Stop at null return address as well. | |
7012 | ||
7013 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
7014 | ||
7015 | * sem_ch8.adb (Analyze_Object_Renaming): if the renamed object is an | |
7016 | explicit dereference of an unconstrained type, create a constrained | |
7017 | subtype for it, as is done for function calls that return an | |
7018 | unconstrained type. | |
7019 | ||
7020 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
7021 | ||
7022 | * g-pehage.adb (Finalize): Avoid possible double-free. | |
7023 | ||
7024 | 2011-08-03 Steve Baird <baird@adacore.com> | |
7025 | ||
7026 | * exp_attr.adb (Expand_N_Attribute_Reference): Don't expand | |
7027 | Elab_Spec/Body attrs in CodePeer_Mode. | |
7028 | ||
7029 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
7030 | ||
7031 | * exp_aggr.adb (Flatten): Convert to positional form aggregates whose | |
7032 | low bound is not known at compile time but they have no others choice. | |
7033 | Done because in this case the bounds can be obtained directly from the | |
7034 | aggregate. | |
7035 | ||
7036 | 2011-08-03 Ed Falis <falis@adacore.com> | |
7037 | ||
7038 | * s-tasinf-vxworks.ads: Update comment to reflect 0 indexing of CPUs | |
7039 | on VxWorks SMP. Remove unusable constant ANY_CPU. | |
7040 | ||
a96ca600 EB |
7041 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
7042 | ||
7043 | * gnatcmd.adb, make.adb, prj-part.adb, prj-part.ads, prj-makr.adb, | |
7044 | clean.adb, prj-nmsc.adb, prj-pars.adb, prj-conf.adb, prj-env.adb, | |
7045 | prj-env.ads (Prj.Env.Initialize_Default_Project_Path, | |
7046 | Prj.Env.Initialize_Empty): new subprograms | |
7047 | (Get_Env, Find_Project): remove parameter Target_Name. | |
7048 | ||
3e582869 AC |
7049 | 2011-08-03 Gary Dismukes <dismukes@adacore.com> |
7050 | ||
7051 | * sem_ch3.adb (Build_Derived_Record_Type): Test the Derive_Subps formal | |
7052 | as a condition for the delayed call to Derived_Subprograms done for the | |
7053 | case of the rewriting of a derived type that constrains the | |
7054 | discriminants of its parent type. | |
7055 | Avoids redundant subprogram derivations for private subtype derivations. | |
7056 | ||
7057 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
7058 | ||
7059 | * exp_aggr.adb (Init_Hidden_Discriminants): New subprogram of | |
7060 | Build_Record_Aggr_Code. | |
7061 | (Build_Record_Aggr_Code): Add missing support to initialize hidden | |
7062 | discriminants in extension aggregates. | |
7063 | ||
7064 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
7065 | ||
7066 | * prj-pp.adb (Print): also output project qualifiers, since in | |
7067 | particular "aggregate" is mandatory in an aggregate project. | |
7068 | ||
7069 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
7070 | ||
7071 | * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb: | |
7072 | (Debug_Output): new function. | |
7073 | ||
56e94186 AC |
7074 | 2011-08-03 Eric Botcazou <ebotcazou@adacore.com> |
7075 | ||
7076 | * gnat_ugn.texi: Document -Wstack-usage. | |
7077 | * gcc-interface/misc.c (enumerate_modes): Add guard for ghost FP modes. | |
7078 | ||
7079 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
7080 | ||
7081 | * sem_prag.adb Issue an error (not a warning) when a C++ type does not | |
7082 | have keyword LIMITED. | |
7083 | ||
7084 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
7085 | ||
7086 | * alfa.adb, alfa.ads, alfa_test.adb: New files. | |
7087 | * ali.adb (Known_ALI_Lines): add 'C' lines (SCO) and 'F' lines (ALFA) | |
7088 | (Scan_ALI): do not issue a fatal error if parsing known lines after Xref | |
7089 | section (does not happen in compiler, only if code directly calls | |
7090 | Scan_ALI). | |
7091 | * get_alfa.adb, get_alfa.ads: New files. | |
7092 | * lib-writ.adb, lib-writ.ads (Write_ALI): output ALFA information if | |
7093 | needed. | |
7094 | * lib-xref-alfa.adb: New file. | |
7095 | * lib-xref.adb, lib-xref.ads | |
7096 | (Xref_Entry): redefine information needed in cross-references for ALFA. | |
7097 | Push ALFA treatments in separated local package. | |
7098 | (Enclosing_Subpragram_Or_Package): treat specially subprogram | |
7099 | identifiers. Return entity of package body instead of spec. Return | |
7100 | Empty for a scope with no location. | |
7101 | (Generate_Reference): adapt to new components for ALFA information. | |
7102 | Remove the need for D references on definitions. | |
7103 | (Is_Local_Reference): moved to ALFA local package | |
7104 | (Output_References): extract subfunction as Extract_Source_Name | |
7105 | (Output_Local_References): remove procedure, replaced by filtering of | |
7106 | cross-references in package ALFA and printing in Put_ALFA. | |
7107 | (Write_Entity_Name): remove procedure | |
7108 | * lib.adb, lib.ads (Extract_Source_Name): extract here function to | |
7109 | print exact name of entity as it appears in source file | |
7110 | (Unit_Ref_Table): make type public for use in Lib.Xref.ALFA | |
7111 | * put_alfa.adb, put_alfa.ads: New files. | |
7112 | * xref_lib.adb (Search_Xref): protect read of cross-references against | |
7113 | reading other sections of the ALI file, in gnatxref | |
7114 | (Search): protect read of cross-references against reading other | |
7115 | sections of the ALI file, in gnatfind. | |
7116 | * gcc-interface/Make-lang.in: Update dependencies. | |
7117 | ||
7118 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
7119 | ||
7120 | * sem_ch3.adb: Minor reformatting. | |
7121 | ||
7122 | 2011-08-03 Jose Ruiz <ruiz@adacore.com> | |
7123 | ||
7124 | * s-inmaop-vxworks.adb (Setup_Interrupt_Mask): Do nothing instead of | |
7125 | raising an exception. | |
7126 | ||
7127 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
7128 | ||
7129 | * sem_res.adb (Set_String_Literal_Subtype): if index type is an integer | |
7130 | type, always use 1 as the lower bound or string, even if lower bound of | |
7131 | context is not static, to handle properly null strings in a non-static | |
7132 | context. | |
7133 | ||
7134 | 2011-08-03 Bob Duff <duff@adacore.com> | |
7135 | ||
7136 | * sem_prag.adb (Resolve_Aggregate): An array aggregate with 'others' is | |
7137 | always legal on the right-hand side of an assignment statement; there | |
7138 | is always an applicable index constraint in this case. Therefore, the | |
7139 | check for Pkind = N_Assignment_Statement is now unconditional -- it | |
7140 | doesn't depend on whether Is_Constrained (Typ). | |
7141 | ||
4317e442 AC |
7142 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
7143 | ||
7144 | * exp_ch5.adb, sem_prag.adb, exp_ch4.adb: Minor reformatting. | |
7145 | ||
7146 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
7147 | ||
7148 | * sem_ch3.adb (Build_Itype_Reference): do not create an itype reference | |
7149 | for an itype created within a generic unit. | |
7150 | ||
7151 | 2011-08-03 Eric Botcazou <ebotcazou@adacore.com> | |
7152 | ||
7153 | * gnat_ugn.texi (Switches for gcc): Make it clearer that -fno-inline | |
7154 | suppresses all inlining. | |
7155 | ||
53f29d4f AC |
7156 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
7157 | ||
7158 | * sem_ch3.adb, sem_res.adb, exp_ch13.adb, exp_disp.adb, | |
7159 | exp_aggr.adb: Minor reformatting. | |
7160 | ||
7161 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
7162 | ||
7163 | * exp_ch5.adb (Expand_N_Assignment_Statement): Do not force inlining of | |
7164 | tagged assignment when discriminant checks are suppressed. This is | |
7165 | useless and extremely costly in terms of static stack usage. | |
7166 | ||
7167 | 2011-08-03 Bob Duff <duff@adacore.com> | |
7168 | ||
7169 | * sem_prag.adb (Get_Base_Subprogram): Do not follow Alias for instances | |
7170 | of generics, because this leads to the wrong entity in the wrong scope, | |
7171 | causing (e.g.) pragma Export_Procedure to get an error if the entity is | |
7172 | an instance. | |
7173 | (Process_Interface_Name): Follow Alias for instances of generics, to | |
7174 | correct for the above change. | |
7175 | ||
7176 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
7177 | ||
7178 | * exp_ch4.adb (Expand_N_Selected_Component): If the discriminant value | |
7179 | is an integer literal it is always safe to replace the reference. In | |
7180 | addition, if the reference appears in the generated code for an object | |
7181 | declaration it is necessary to copy because otherwise the reference | |
7182 | might be to the uninitilized value of the discriminant of the object | |
7183 | itself. | |
7184 | ||
7185 | 2011-08-03 Pascal Obry <obry@adacore.com> | |
7186 | ||
7187 | * adaint.c (__gnat_is_executable_file_attr): Fix Win32 circuitry when no | |
7188 | ACL used, in this case we want to check for ending .exe, not .exe | |
7189 | anywhere in the path. | |
7190 | ||
7191 | 2011-08-03 Sergey Rybin <rybin@adacore.com> | |
7192 | ||
7193 | * tree_io.ads (ASIS_Version_Number): Update because of the changes in | |
7194 | the tree structure (semantic decoration of references to record | |
7195 | discriminants). | |
7196 | ||
c0b11850 AC |
7197 | 2011-08-03 Gary Dismukes <dismukes@adacore.com> |
7198 | ||
7199 | * sem_aggr.adb (Analyze_Array_Aggregate): When checking the discrete | |
7200 | choices of a named array aggregate, bail out when any choices are | |
7201 | marked as Errors_Posted. | |
7202 | ||
7203 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
7204 | ||
7205 | * exp_ch13.adb (Expand_N_Freeze_Entity): cleanup determination of scope | |
7206 | in which entity is frozen, to handle properly loop variables in | |
7207 | iterators. | |
7208 | ||
7209 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
7210 | ||
7211 | * sem_res.adb (Set_String_Literal_Subtype): if the lower bound of the | |
7212 | subtype is not static, compute the upper bound using attributes, to | |
7213 | handle properly index types that are not integer types. | |
7214 | ||
7215 | 2011-08-03 Bob Duff <duff@adacore.com> | |
7216 | ||
7217 | * gnat_rm.texi, gnat_ugn.texi: Fix some dangling URLs. | |
7218 | Update copyright notice. | |
7219 | ||
7220 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
7221 | ||
7222 | * sem_ch3.adb (Build_Discriminant_Constraints): Only use | |
7223 | Original_Discriminant if within an instance. | |
7224 | * sem_ch4.adb (Analyze_Selected_Component): Ditto. | |
7225 | ||
7226 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
7227 | ||
7228 | * einfo.ads: Minor reformatting. | |
7229 | ||
7230 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
7231 | ||
7232 | * exp_disp.adb (Check_Premature_Freezing): diagnose the presence of a | |
7233 | composite type with an unfrozen subcomponent, in the profile of a | |
7234 | primitive operation. | |
7235 | ||
5c34e9cd AC |
7236 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
7237 | ||
7238 | * sem_util.ads, exp_aggr.adb, exp_ch3.adb: Minor reformatting. | |
7239 | ||
7240 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
7241 | ||
7242 | * sem_ch3.adb (Analyze_Object_Declaration): if a constant object of an | |
7243 | unconstrained type with discriminants is initialized with an aggregate, | |
7244 | use the constrained subtype of the aggregate as the type of the object, | |
7245 | because it is immutable, and this allows the back-end to generate no | |
7246 | code for the object declaration. | |
7247 | ||
abcd9db2 AC |
7248 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
7249 | ||
7250 | * exp_ch4.adb (Optimize_Length_Check): Fix bad handling of case where | |
7251 | comparison operand is variable, and turns out to be zero or negative. | |
7252 | ||
7253 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
7254 | ||
7255 | * exp_intr.adb | |
7256 | (Expand_Dispatching_Constructor_Call): Disable expansion of | |
7257 | code required for native targets. Done to avoid generating | |
7258 | references to unavailable runtime entities in VM targets. | |
7259 | * exp_ch3.adb | |
7260 | (Expand_N_Object_Declaration): Add missing support to handle | |
7261 | the explicit initialization of class-wide interface objects. | |
7262 | Fix documentation. | |
7263 | ||
7264 | 2011-08-03 Matthew Heaney <heaney@adacore.com> | |
7265 | ||
7266 | * a-cobove.adb (Merge): Move source onto target, instead of using Assign | |
7267 | ||
7268 | 2011-08-03 Matthew Heaney <heaney@adacore.com> | |
7269 | ||
7270 | * a-cbdlli.adb (Splice): move source items from first to last | |
7271 | ||
7272 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
7273 | ||
7274 | * sem_util.ads: comment added. | |
7275 | ||
7276 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
7277 | ||
7278 | * exp_aggr.adb | |
7279 | (Expand_Record_Aggregate): In VM targets disable the expansion into | |
7280 | assignments of aggregates whose type is not known at compile time. | |
7281 | ||
b474d6c3 ES |
7282 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> |
7283 | ||
7284 | * exp_ch9.adb (Build_Renamed_Formal_Declaration): common procedure for | |
7285 | protected entries and task entries, to build the proper renaming | |
7286 | declaration for entry formals, used in debugging. | |
7287 | * exp_ch2.adb (Expand_Entry_Parameter): handle task and entry | |
7288 | parameters in the same way. | |
7289 | ||
0580d807 AC |
7290 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
7291 | ||
7292 | * a-direct.adb, sinfo.ads, exp_ch9.adb, scng.adb, sem_util.adb, | |
7293 | sem_util.ads, restrict.ads, par-prag.adb: Minor reformatting and/or | |
7294 | code reorganization. | |
7295 | ||
7296 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7297 | ||
7298 | * debug.adb: Debug flag d.P to suppress length comparison optimization | |
7299 | * exp_ch4.adb (Optimize_Length_Comparison): New routine to optimize | |
7300 | comparison of Length by comparing First/Last instead. | |
7301 | ||
7302 | 2011-08-02 Matthew Heaney <heaney@adacore.com> | |
7303 | ||
7304 | * a-cobove.ads: Code clean up. | |
7305 | ||
b191a125 AC |
7306 | 2011-08-02 Vincent Celier <celier@adacore.com> |
7307 | ||
7308 | * adaint.c (file_names_case_sensitive_cache): New static int. | |
7309 | (__gnat_get_file_names_case_sensitive): Cache the return value in | |
7310 | file_names_case_sensitive_cache at the first invocation, to avoid | |
7311 | multiple calls to getenv. | |
7312 | ||
7313 | 2011-08-02 Bob Duff <duff@adacore.com> | |
7314 | ||
7315 | * sem_ch12.adb (Validate_Derived_Type_Instance): Implement AI05-0218-1. | |
7316 | ||
316a0661 AC |
7317 | 2011-08-02 Yannick Moy <moy@adacore.com> |
7318 | ||
7319 | * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_prag.adb, sem.ads, | |
7320 | sem_util.adb, sem_util.ads, sem_res.adb, sem_ch2.adb, sem_ch4.adb, | |
7321 | sem_ch6.adb, sem_ch11.adb: Add semantic flag In_Pre_Post_Expression to | |
7322 | indicate that we are in a precondition or postcondition. This is used in | |
7323 | Mark_Non_ALFA_Subprogram (renaming of Mark_Non_ALFA_Subprogram_Body) to | |
7324 | decide whether to flag the spec or body of the current subprogram as | |
7325 | not in ALFA. | |
7326 | ||
7327 | 2011-08-02 Fabien Chouteau <chouteau@adacore.com> | |
7328 | ||
7329 | * impunit.adb: Add Ada.Execution_Time.Interrupts in the Ada2012 package | |
7330 | list. | |
7331 | * a-extiin.ads: New file. | |
7332 | ||
7333 | 2011-08-02 Bob Duff <duff@adacore.com> | |
7334 | ||
7335 | * a-direct.adb (Rename): Implement AI05-0231-1. In particular, Rename | |
7336 | now raises Name_Error instead of Use_Error in certain cases. The other | |
7337 | parts of this AI were already implemented properly. | |
7338 | ||
f9adb9d4 AC |
7339 | 2011-08-02 Vincent Celier <celier@adacore.com> |
7340 | ||
7341 | * link.c: Only import "auto-host.h" when building the gnattools. | |
7342 | ||
7343 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7344 | ||
7345 | * sem_util.adb: Inter-unit inlining does not work for a subprogram | |
7346 | which calls a local subprogram, so extract subprogram | |
7347 | from Mark_Non_ALFA_Subprogram_Body. | |
7348 | ||
7349 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
7350 | ||
7351 | * exp_ch9.adb | |
7352 | (Extract_Dispatching_Call): If the type of the dispatching object is an | |
7353 | access type then return an explicit dereference in the Object out-mode | |
7354 | parameter. | |
7355 | ||
7356 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> | |
7357 | ||
7358 | * sem_ch3.adb (Analyze_Subtype_Declaration): Generate range | |
7359 | compatibility checks for all indexes of an array subtype, not just the | |
7360 | first. Reset Has_Dynamic_Range_Check on the subtype before each | |
7361 | potential check to ensure that Insert_Range_Checks will not elide any | |
7362 | of the dynamic checks. | |
7363 | ||
7364 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7365 | ||
7366 | * par-prag.ad (Process_Restrictions_Or_Restriction_Warnings): recognize | |
7367 | SPARK restriction at parsing time. | |
7368 | * scng.adb (Scan): Generate a token Tok_SPARK_Hide for a SPARK HIDE | |
7369 | directive only if the SPARK restriction is set for this unit. | |
7370 | ||
83f33150 YM |
7371 | 2011-08-02 Yannick Moy <moy@adacore.com> |
7372 | ||
7373 | * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb, sem_util.ads, | |
7374 | sem_res.adb, sem_ch2.adb, sem_ch4.adb, sem_ch6.adb, | |
7375 | sem_ch11.adb: Protect call to Current_Subprogram which might be costly | |
7376 | when repeated. Rename Current_Subprogram_Is_Not_In_ALFA into | |
7377 | Mark_Non_ALFA_Subprogram_Body. | |
7378 | Split body of Mark_Non_ALFA_Subprogram_Body to get body small and | |
7379 | inlined. | |
7380 | ||
7b98672f YM |
7381 | 2011-08-02 Yannick Moy <moy@adacore.com> |
7382 | ||
7383 | * sem_res.adb: Protect calls to Matching_Static_Array_Bounds which | |
7384 | might be costly. | |
7385 | ||
052e0603 AC |
7386 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
7387 | ||
7388 | * exp_ch9.adb, exp_sel.adb, restrict.ads, exp_disp.adb, erroutc.ads, | |
7389 | exp_ch3.adb: Minor reformatting. | |
7390 | ||
7391 | 2011-08-02 Emmanuel Briot <briot@adacore.com> | |
7392 | ||
7393 | * adaint.c (__gnat_locate_exec_on_path): only returns executable | |
7394 | files, not any regular file. | |
7395 | (__gnat_locate_file_with_predicate): new subprogram. | |
7396 | ||
7397 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7398 | ||
7399 | * sinfo.adb, sinfo.ads: Restrict the use of flags | |
7400 | Has_Dynamic_Length_Check and Has_Dynamic_Range_Check to expression | |
7401 | nodes, plus N_Subtype_Declaration for the 2nd one. | |
7402 | ||
4fbad0ba AC |
7403 | 2011-08-02 Sergey Rybin <rybin@adacore.com> |
7404 | ||
7405 | * gnat_rm.texi: Ramification of pragma Eliminate documentation | |
7406 | - fix bugs in the description of Source_Trace; | |
7407 | - get rid of UNIT_NAME; | |
7408 | ||
052e0603 AC |
7409 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
7410 | ||
7411 | * exp_ch9.adb | |
7412 | (Build_Dispatching_Requeue): Adding support for VM targets | |
7413 | since we cannot directly reference the Tag entity. | |
7414 | * exp_sel.adb (Build_K): Adding support for VM targets. | |
7415 | (Build_S_Assignment): Adding support for VM targets. | |
7416 | * exp_disp.adb | |
7417 | (Default_Prim_Op_Position): In VM targets do not restrict availability | |
7418 | of predefined interface primitives to compiling in Ada 2005 mode. | |
7419 | (Is_Predefined_Interface_Primitive): In VM targets this service is not | |
7420 | restricted to compiling in Ada 2005 mode. | |
7421 | (Make_VM_TSD): Generate code that declares and initializes the OSD | |
7422 | record. Needed to support dispatching calls through synchronized | |
7423 | interfaces. | |
7424 | * exp_ch3.adb | |
7425 | (Make_Predefined_Primitive_Specs): Enable generation of predefined | |
7426 | primitives associated with synchronized interfaces. | |
7427 | (Make_Predefined_Primitive_Bodies): Enable generation of predefined | |
7428 | primitives associated with synchronized interfaces. | |
7429 | ||
7430 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7431 | ||
7432 | * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of | |
7433 | statements hidden in SPARK if preceded by the HIDE directive | |
7434 | (Parse_Exception_Handlers): mark each exception handler in a sequence of | |
7435 | exception handlers as hidden in SPARK if preceded by the HIDE directive | |
7436 | * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK | |
7437 | if starting with the HIDE directive | |
7438 | * par-ch7.adb (P_Package): mark a package body hidden in SPARK if | |
7439 | starting with the HIDE directive; mark the declarations in a private | |
7440 | part as hidden in SPARK if the private part starts with the HIDE | |
7441 | directive | |
7442 | * restrict.adb, restrict.ads | |
7443 | (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK | |
7444 | (Is_In_Hidden_Part_In_SPARK): new function which returns whether its | |
7445 | argument node belongs to a part which is hidden in SPARK | |
7446 | (Check_SPARK_Restriction): do not issue violations on nodes in hidden | |
7447 | parts in SPARK; protect the possibly costly call to | |
7448 | Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on | |
7449 | * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration | |
7450 | * scng.adb (Accumulate_Token_Checksum_GNAT_6_3, | |
7451 | Accumulate_Token_Checksum_GNAT_5_03): add case for new token | |
7452 | Tok_SPARK_Hide. | |
7453 | (Scan): recognize special comment starting with '#' and followed by | |
7454 | SPARK keyword "hide" as a HIDE directive. | |
7455 | ||
7456 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7457 | ||
7458 | * types.ads, erroutc.ads: Minor reformatting. | |
7459 | ||
7460 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
7461 | ||
7462 | * link.c: Add response file support for cross platforms. | |
7463 | ||
7464 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7465 | ||
7466 | * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression | |
7467 | in an association, set parent field of copy before partial analysis. | |
7468 | * sem_res.adb (Resolve_Slice): create reference to itype only when | |
7469 | expansion is enabled. | |
7470 | ||
7471 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7472 | ||
7473 | * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set | |
7474 | for new flag denoting which subprogram bodies are in ALFA | |
7475 | * restrict.adb, sem_ch7.adb: Update comment | |
7476 | * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, | |
7477 | sem_ch9.adb, sem_res.adb: Add calls to | |
7478 | Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs. | |
7479 | * sem_ch6.adb (Analyze_Function_Return): add calls to | |
7480 | Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the | |
7481 | middle of the body, and extended return. | |
7482 | (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument | |
7483 | False when missing return. | |
7484 | (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA | |
7485 | to True for subprograms whose spec is in ALFA. Remove later on the flag | |
7486 | on the entity used for a subprogram body when there exists a separate | |
7487 | declaration. | |
7488 | * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA): | |
7489 | if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to | |
7490 | False, otherwise do nothing. | |
7491 | ||
7492 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7493 | ||
7494 | * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting. | |
7495 | ||
7496 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7497 | ||
7498 | * sem_ch4.ads: minor formatting. | |
7499 | ||
7500 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7501 | ||
7502 | * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, | |
7503 | debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb, | |
7504 | errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb, | |
7505 | restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb, | |
7506 | opt.ads: cleanup of SPARK mode | |
7507 | ||
7508 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7509 | ||
7510 | * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard | |
7511 | types. | |
7512 | * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities | |
7513 | (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA | |
7514 | * sem_ch3.adb | |
7515 | (Analyze_Object_Declaration): set Is_In_ALFA flag for objects | |
7516 | (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes | |
7517 | (Constrain_Integer): set Is_In_ALFA flag for integer subtypes | |
7518 | (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration | |
7519 | types. | |
7520 | (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with | |
7521 | non-static range. | |
7522 | * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for | |
7523 | functions whose return type is not in ALFA. | |
7524 | (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram | |
7525 | specifications. | |
7526 | (Process_Formals): unset Is_In_ALFA flag for subprograms if a | |
7527 | parameter's type is not in ALFA. | |
7528 | * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard | |
7529 | types are in ALFA. | |
7530 | ||
7531 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7532 | ||
7533 | * sem_ch6 (Analyze_Expression_Function): treat the function as | |
7534 | Inline_Always, and introduce a subprogram declaration for it when it is | |
7535 | not a completion. | |
7536 | * inline.adb (Add_Inlined_Body): recognize bodies that come from | |
7537 | expression functions, so that the back-end can determine whether they | |
7538 | can in fact be inlined. | |
7539 | * sem_util.adb (Is_Expression_Function): predicate to determine whether | |
7540 | a function body comes from an expression function. | |
7541 | ||
7542 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> | |
7543 | ||
7544 | * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming | |
7545 | null exclusions to test Can_Never_Be_Null on the anonymous access types | |
7546 | of the formals rather than testing the formals themselves. Exclude this | |
7547 | check in cases where the Old_Formal is marked as a controlling formal, | |
7548 | to avoid issuing spurious errors for bodies completing dispatching | |
7549 | operations (due to the flag not getting set on controlling access | |
7550 | formals in body specs). | |
7551 | (Find_Corresponding_Spec): When checking full and subtype conformance of | |
7552 | subprogram bodies in instances, pass Designated and E in that order, for | |
7553 | consistency with the expected order of the formals (New_Id followed by | |
7554 | Old_Id). | |
7555 | ||
7556 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7557 | ||
7558 | * sem_ch8.adb: Minor reformatting. | |
7559 | ||
7560 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7561 | ||
7562 | * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure | |
7563 | Check_Class_Wide_Actual, to implement AI05-0071, on defaulted | |
7564 | primitive operations of class-wide actuals. | |
7565 | ||
7566 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
7567 | ||
7568 | * exp_atag.ads, exp_atag.adb | |
7569 | (Build_Common_Dispatching_Select_Statements): Remove argument Loc | |
7570 | since its value is implicitly passed in argument Typ. | |
7571 | * exp_disp.adb (Make_Disp_Conditional_Select_Body, | |
7572 | Make_Disp_Timed_Select_Body): Remove Loc in calls to routine | |
7573 | Build_Common_Dispatching_Select_Statements. | |
7574 | ||
7575 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7576 | ||
7577 | * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads, | |
7578 | exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments. | |
7579 | Minor reformatting. | |
7580 | ||
7581 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7582 | ||
7583 | * sem_res.adb: Minor reformatting. | |
7584 | * sem_prag.adb: Minor reformatting. | |
7585 | ||
7586 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
7587 | ||
7588 | * exp_atag.adb, exp_atags.ads | |
7589 | (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr | |
7590 | by the tagged type Entity. Required to use this routine in the VM | |
7591 | targets since we do not have available the Tag entity in the VM | |
7592 | platforms. | |
7593 | * exp_ch6.adb | |
7594 | (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package | |
7595 | Ada.Tags has not been previously loaded. | |
7596 | * exp_ch7.adb | |
7597 | (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke | |
7598 | Build_VM_TSDs if package Ada.Tags has not been previously loaded. | |
7599 | * sem_aux.adb | |
7600 | (Enclosing_Dynamic_Scope): Add missing support to handle the full | |
7601 | view of enclosing scopes. Required to handle enclosing scopes that | |
7602 | are synchronized types whose full view is a task type. | |
7603 | * exp_disp.adb | |
7604 | (Build_VM_TSDs): Minor code improvement to avoid generating and | |
7605 | analyzing lists with empty nodes. | |
7606 | (Make_Disp_Asynchronous_Select_Body): Add support for VM targets. | |
7607 | (Make_Disp_Conditional_Select_Body): Add support for VM targets. | |
7608 | (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets. | |
7609 | (Make_Disp_Timed_Select_Body): Add support for VM targets. | |
7610 | (Make_Select_Specific_Data_Table): Add support for VM targets. | |
7611 | (Make_VM_TSD): Generate code to initialize the SSD structure of | |
7612 | the TSD. | |
7613 | ||
7614 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7615 | ||
7616 | * lib-writ.adb (Write_ALI): when ALFA mode is set, write local | |
7617 | cross-references section in ALI. | |
7618 | * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub | |
7619 | (enclosing subprogram), Slc (location of Sub) and Sun (unit number of | |
7620 | Sub). | |
7621 | (Enclosing_Subprogram_Or_Package): new function to return the enclosing | |
7622 | subprogram or package entity of a node | |
7623 | (Is_Local_Reference_Type): new function returns True for references | |
7624 | selected in local cross-references. | |
7625 | (Lt): function extracted from Lt in Output_References | |
7626 | (Write_Entity_Name): function extracted from Output_References | |
7627 | (Generate_Definition): generate reference with type 'D' for definition | |
7628 | of objects (object declaration and parameter specification), with | |
7629 | appropriate locations and units, for use in local cross-references. | |
7630 | (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created | |
7631 | references of type 'I' for initialization in object definition. | |
7632 | (Output_References): move part of function Lt and procedure | |
7633 | Write_Entity_Name outside of the body. Ignore references of types 'D' | |
7634 | and 'I' introduced for local cross-references. | |
7635 | (Output_Local_References): new procedure to output the local | |
7636 | cross-references sections. | |
7637 | (Lref_Entity_Status): new array defining whether an entity is a local | |
7638 | * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference | |
7639 | with 'I' type when initialization expression is present. | |
7640 | * get_scos.adb, get_scos.ads: Correct comments and typos | |
7641 | ||
7642 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
7643 | ||
7644 | * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in | |
7645 | the JVM target. | |
7646 | * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in | |
7647 | the JVM target. | |
7648 | * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no | |
7649 | TSD support. | |
7650 | ||
7651 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
7652 | ||
7653 | * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line | |
7654 | (No_Space_Img): New function | |
7655 | (Find_Excluded_Sources): When reading from a file, record the file name | |
7656 | and the line number for each excluded source. | |
7657 | (Mark_Excluded_Sources): When reporting an error, if the excluded | |
7658 | sources were read from a file, include file name and line number in | |
7659 | the error message. | |
7660 | ||
7661 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7662 | ||
7663 | * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2). | |
7664 | ||
7665 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7666 | ||
7667 | * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting | |
7668 | ||
7669 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
7670 | ||
7671 | * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the | |
7672 | generation of TSDs to the DOTNET compiler. | |
7673 | * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the | |
7674 | generation of TSDs to the DOTNET compiler. | |
7675 | ||
7676 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
7677 | ||
7678 | * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data | |
7679 | record of all the tagged types declared inside library level package | |
7680 | declarations, library level package bodies or library level subprograms. | |
7681 | * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD | |
7682 | associated with a given tagged type. | |
7683 | (Build_VM_TSDs): New subprogram. | |
7684 | * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main | |
7685 | compilation units that are subprograms. | |
7686 | * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main | |
7687 | compilation units that are package bodies. | |
7688 | (Expand_N_Package_Declaration): Generate TSDs of the main compilation | |
7689 | units that are a package declaration or a package instantiation. | |
7690 | * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code | |
7691 | reorganization to improve the error generated by the frontend when the | |
7692 | function Ada.Tags.Secondary_Tag is not available. | |
7693 | * rtsfind.ads (RE_Register_TSD): New runtime entity. | |
7694 | * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup. | |
7695 | ||
7696 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
7697 | ||
7698 | * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode. | |
7699 | ||
7700 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7701 | ||
7702 | * s-imenne.ads: Minor reformatting. | |
7703 | ||
7704 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7705 | ||
7706 | * a-stunau.ads: Add pragma Suppress_Initialization for Big_String | |
7707 | * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed | |
7708 | * s-stalib.ads: Add pragma Suppress_Initialization for Big_String | |
7709 | ||
7710 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7711 | ||
7712 | * einfo.ads (Materialize_Entity): Document this is only for renamings | |
7713 | * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate | |
7714 | required debug information in the case where we transform the object | |
7715 | declaration into a renaming declaration. | |
7716 | * exp_ch4.adb (Expand_Concatenate): Generate debug info for result | |
7717 | object | |
7718 | * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of | |
7719 | Materialize_Entity. | |
7720 | ||
7721 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7722 | ||
7723 | * einfo.ads, einfo.adb (Suppress_Initialization): Replaces | |
7724 | Suppress_Init_Procs. | |
7725 | * exp_ch3.adb, exp_disp.adb, freeze.adb: Use | |
7726 | Suppress_Initialization/Initialization_Suppressed. | |
7727 | * gnat_rm.texi: New documentation for pragma Suppress_Initialization | |
7728 | * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function | |
7729 | * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed | |
7730 | * sem_prag.adb: New processing for pragma Suppress_Initialization. | |
7731 | ||
7732 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7733 | ||
7734 | * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb: | |
7735 | Minor reformatting. | |
7736 | ||
7737 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7738 | ||
7739 | * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can | |
7740 | only have inheritable classwide pre/postconditions. | |
7741 | ||
7742 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
7743 | ||
7744 | * a-tags.ads, a-tags.adb (Check_TSD): New subprogram. | |
7745 | * rtsfind.ads (RE_Check_TSD): New runtime entity. | |
7746 | * exp_disp.adb (Make_DT): Generate call to the new runtime routine that | |
7747 | checks if the external tag of a type is the same as the external tag | |
7748 | of some other declaration. | |
7749 | ||
7750 | 2011-08-02 Thomas Quinot <quinot@adacore.com> | |
7751 | ||
7752 | * s-taskin.ads: Minor reformatting. | |
7753 | ||
7754 | 2011-08-02 Emmanuel Briot <briot@adacore.com> | |
7755 | ||
7756 | * g-comlin.adb (Display_Help): swap the order in which it prints the | |
7757 | short help and the general usage. | |
7758 | ||
7759 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7760 | ||
7761 | * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly | |
7762 | the aspect declarations and attach them to the generic copy for | |
7763 | subsequent analysis. | |
7764 | (Analyze_Subprogram_Instantiation): copy explicitly the aspect | |
7765 | declarations of the generic tree to the new subprogram declarations. | |
7766 | * sem_attr.adb (Check_Precondition_Postcondition): recognize | |
7767 | conditions that apply to a subprogram instance. | |
7768 | ||
7769 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7770 | ||
7771 | * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project]. | |
7772 | ||
7773 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7774 | ||
7775 | * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged | |
7776 | private type with a tagged full view is not derived in the immediate | |
7777 | scope of the partial view, (RM 7.3 (7)) use the scope of the base type. | |
7778 | ||
7779 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7780 | ||
7781 | * exp_ch4.adb: Minor reformatting. | |
7782 | ||
7783 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7784 | ||
7785 | * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an | |
7786 | Ada2012 iterator, the loop will be rewritten during expansion into a | |
7787 | while loop with a cursor and an element declaration. Do not analyze the | |
7788 | body in this case, because if the container is for indefinite types the | |
7789 | actual subtype of the elements will only be determined when the cursor | |
7790 | declaration is analyzed. | |
7791 | ||
7792 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
7793 | ||
7794 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore | |
7795 | size/alignment related attributes in CodePeer_Mode. | |
7796 | ||
7797 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> | |
7798 | ||
7799 | * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to | |
7800 | Prepend_Element, since this can result in the operation getting the | |
7801 | wrong slot in the full type's dispatch table if the full type has | |
7802 | inherited operations. The incomplete type's operation will get added | |
7803 | to the proper position in the full type's primitives | |
7804 | list later in Sem_Disp.Check_Operation_From_Incomplete_Type. | |
7805 | (Process_Incomplete_Dependents): Add Is_Primitive test when checking for | |
7806 | dispatching operations, since there are cases where nonprimitive | |
7807 | subprograms can get added to the list of incomplete dependents (such | |
7808 | as subprograms in nested packages). | |
7809 | * sem_ch6.adb (Process_Formals): First, remove test for being in a | |
7810 | private part when determining whether to add a primitive with a | |
7811 | parameter of a tagged incomplete type to the Private_Dependents list. | |
7812 | Such primitives can also occur in the visible part, and should not have | |
7813 | been excluded from being private dependents. | |
7814 | * sem_ch7.adb (Uninstall_Declarations): When checking the rule of | |
7815 | RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents | |
7816 | list of a Taft-amendment incomplete type is a primitive before issuing | |
7817 | an error that the full type must appear in the same unit. There are | |
7818 | cases where nonprimitives can be in the list (such as subprograms in | |
7819 | nested packages). | |
7820 | * sem_disp.adb (Derives_From): Use correct condition for checking that | |
7821 | a formal's type is derived from the type of the corresponding formal in | |
7822 | the parent subprogram (the condition was completely wrong). Add | |
7823 | checking that was missing for controlling result types being derived | |
7824 | from the result type of the parent operation. | |
7825 | ||
7826 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7827 | ||
7828 | * errout.adb (First_Node): minor renaming | |
7829 | * restrict.adb (Check_Formal_Restriction): put restriction warning on | |
7830 | first node. | |
7831 | ||
7832 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7833 | ||
7834 | * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator | |
7835 | before accessing operands. | |
7836 | * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to | |
7837 | decide whether an initialization expression respects SPARK rules, as | |
7838 | the plain node is the expanded one. This allows for more valid warnings | |
7839 | to be issued. | |
7840 | * gnat_rm.texi: Minor update. | |
7841 | ||
7842 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
7843 | ||
7844 | * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert | |
7845 | previous change. | |
7846 | ||
7847 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7848 | ||
7849 | * sem_ch3.adb, sem_ch4.adb: Minor reformatting. | |
7850 | ||
7851 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
7852 | ||
7853 | * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original | |
7854 | loop statements and the element renaming declaration with a block when | |
7855 | the element type is controlled. | |
7856 | ||
7857 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7858 | ||
7859 | * sinfo.ads: Minor formatting. | |
7860 | ||
7861 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7862 | ||
7863 | * sem_aggr.adb (Add_Association): if the association has a box and no | |
7864 | expression, use the Sloc of the aggregate itself for the new | |
7865 | association. | |
7866 | * errout.adb (First_Node): Exclude nodes with no Sloc, and always use | |
7867 | the Original_Node. | |
7868 | ||
7869 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
7870 | ||
7871 | * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring. | |
7872 | When a container is provided via a function call, generate a renaming | |
7873 | of the function result. This avoids the creation of a transient scope | |
7874 | and the premature finalization of the container. | |
7875 | * exp_ch7.adb (Is_Container_Cursor): Removed. | |
7876 | (Wrap_Transient_Declaration): Remove the supression of the finalization | |
7877 | of the list controller when the declaration denotes a container cursor, | |
7878 | it is not needed. | |
7879 | ||
7880 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7881 | ||
7882 | * restrict.adb (Check_Formal_Restriction): only issue a warning if the | |
7883 | node is from source, instead of the original node being from source. | |
7884 | * sem_aggr.adb | |
7885 | (Resolve_Array_Aggregate): refine the check for a static expression, to | |
7886 | recognize also static ranges | |
7887 | * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration, | |
7888 | Array_Type_Declaration): postpone the test for the type being a subtype | |
7889 | mark after the type has been resolved, so that component-selection and | |
7890 | expanded-name are discriminated. | |
7891 | (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm | |
7892 | to distinguish the case of an iteration scheme, so that an error is | |
7893 | issed on a non-static range in SPARK except in an iteration scheme. | |
7894 | * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with | |
7895 | In_Iter_Schm = True. | |
7896 | * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for | |
7897 | user-defined operators so that they are allowed in renaming | |
7898 | * sem_ch8.adb | |
7899 | (Find_Selected_Component): refine the check for prefixing of operators | |
7900 | so that they are allowed in renaming. Move the checks for restrictions | |
7901 | on selector name after analysis discriminated between | |
7902 | component-selection and expanded-name. | |
7903 | * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on | |
7904 | concatenation argument of string type if it is static. | |
7905 | * sem_util.adb, sem_util.ads | |
7906 | (Check_Later_Vs_Basic_Declarations): add a new function | |
7907 | Is_Later_Declarative_Item to decice which declarations are allowed as | |
7908 | later items, in the two different modes Ada 83 and SPARK. In the SPARK | |
7909 | mode, add that renamings are considered as later items. | |
7910 | (Enclosing_Package): new function to return the enclosing package | |
7911 | (Enter_Name): correct the rule for homonyms in SPARK | |
7912 | (Is_SPARK_Initialization_Expr): default to returning True on nodes not | |
7913 | from source (result of expansion) to avoid issuing wrong warnings. | |
7914 | ||
7915 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7916 | ||
7917 | * errout.adb: On anything but an expression First_Node returns its | |
7918 | argument. | |
7919 | ||
7920 | 2011-08-02 Pascal Obry <obry@adacore.com> | |
7921 | ||
7922 | * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting. | |
7923 | ||
7924 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
7925 | ||
7926 | * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization. | |
7927 | Set the associated loop as the related expression of internally | |
7928 | generated cursors. | |
7929 | * exp_ch7.adb (Is_Container_Cursor): New routine. | |
7930 | (Wrap_Transient_Declaration): Supress the finalization of the list | |
7931 | controller when the declaration denotes a container cursor. | |
7932 | ||
7933 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7934 | ||
7935 | * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through | |
7936 | command line now. | |
7937 | * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the | |
7938 | expression is a simple expression. This check cannot be performed in | |
7939 | the semantics, so just drop it. | |
7940 | (P_Index_Or_Discriminant_Constraint): move check that the index or | |
7941 | discriminant is a subtype mark to Analyze_Subtype_Declaration in the | |
7942 | semantics. Other cases were previously checked in the semantics. | |
7943 | * par-ch4.adb (P_Name): move checks that a selector name is not | |
7944 | character literal or an operator symbol to Find_Selected_Component in | |
7945 | the semantics | |
7946 | * par-ch5.adb (Parse_Decls_Begin_End): move check that basic | |
7947 | declarations are not placed after later declarations in a separate | |
7948 | procedure in Sem_Util (possibly not the best choice?), to be used both | |
7949 | during parsing, for Ada 83 mode, and during semantic analysis, for | |
7950 | SPARK mode. | |
7951 | * par-endh.adb (Check_End): move check that end label is not missing | |
7952 | to Process_End_Label in the semantics | |
7953 | * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove | |
7954 | the special case for SPARK restriction | |
7955 | * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End | |
7956 | * restrict.adb, restrict.ads (Check_Formal_Restriction): add a | |
7957 | parameter Force to issue the error message even on internal node (used | |
7958 | for generated end label). Call Check_Restriction to check when an error | |
7959 | must be issued. In SPARK mode, issue an error message even if the | |
7960 | restriction is not set. | |
7961 | (Check_Restriction): new procedure with an additional out parameter to | |
7962 | inform the caller that a message has been issued | |
7963 | * sem_aggr.adb: Minor modification of message | |
7964 | * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction | |
7965 | instead of issuing an error message directly | |
7966 | * sem_ch3.adb (Analyze_Declarations): move here the check that basic | |
7967 | declarations are not placed after later declarations, by calling | |
7968 | Check_Later_Vs_Basic_Declarations | |
7969 | (Analyze_Subtype_Declaration): move here the check that an index or | |
7970 | discriminant constraint must be a subtype mark. Change the check that | |
7971 | a subtype of String must start at one so that it works on subtype marks. | |
7972 | * sem_ch4.adb (Analyze_Call): move here the check that a named | |
7973 | association cannot follow a positional one in a call | |
7974 | * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction | |
7975 | instead of issuing an error message directly | |
7976 | * sem_ch8.adb (Find_Selected_Component): move here the check that a | |
7977 | selector name is not a character literal or an operator symbol. Move | |
7978 | here the check that the prefix of an expanded name cannot be a | |
7979 | subprogram or a loop statement. | |
7980 | * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new | |
7981 | procedure called from parsing and semantics to check that basic | |
7982 | declarations are not placed after later declarations | |
7983 | (Process_End_Label): move here the check that end label is not missing | |
7984 | ||
7985 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
7986 | ||
7987 | * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum | |
7988 | representation clause in codepeer mode, since it confuses CodePeer and | |
7989 | does not bring useful info. | |
7990 | ||
7991 | 2011-08-02 Ed Falis <falis@adacore.com> | |
7992 | ||
7993 | * init.c: initialize fp hw on MILS. | |
7994 | ||
7995 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7996 | ||
7997 | * errout.adb (First_Node): for bodies, return the node itself (small | |
7998 | optimization). For other nodes, do not check source_unit if the node | |
7999 | comes from Standard. | |
8000 | ||
8001 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8002 | ||
8003 | * exp_ch3.adb: Minor comment additions. | |
8004 | * sem_ch13.adb: Minor reformatting. | |
8005 | ||
8006 | 2011-08-02 Pascal Obry <obry@adacore.com> | |
8007 | ||
8008 | * make.adb, makeutl.adb: Removes some superfluous directory separator. | |
8009 | ||
8010 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8011 | ||
8012 | * sem_attr.adb: Minor reformatting. | |
8013 | ||
8014 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8015 | ||
8016 | * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value | |
8017 | (Has_Default_Component_Value): Removed | |
8018 | * einfo.ads Comment updates | |
8019 | (Has_Default_Aspect): Replaces Has_Default_Value | |
8020 | (Has_Default_Component_Value): Removed | |
8021 | * exp_ch13.adb | |
8022 | (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects | |
8023 | * exp_ch3.adb | |
8024 | (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects | |
8025 | (Get_Simple_Init_Val): Handle Default_Value aspect | |
8026 | (Needs_Simple_Initialization): Handle Default_Value aspect | |
8027 | * exp_ch3.ads: Needs_Simple_Initialization | |
8028 | * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect | |
8029 | * par-prag.adb (Pragma_Default[_Component]Value) Removed | |
8030 | * sem_ch13.adb | |
8031 | (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects | |
8032 | * sem_prag.adb (Pragma_Default[_Component]Value) Removed | |
8033 | * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed | |
8034 | ||
8035 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8036 | ||
8037 | * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate | |
8038 | package containing iteration primitives. | |
8039 | exp_ch5.adb (Expand_Iterator_Loop): ditto. | |
8040 | ||
8041 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8042 | ||
8043 | * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with | |
8044 | "of", pre-analyze expression in case it is a function call with | |
8045 | finalization actions that must be placed ahead of the loop. | |
8046 | * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present | |
8047 | on an Ada2012 iterator, insert them ahead of the rewritten loop. | |
8048 | ||
8049 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
8050 | ||
8051 | * cstand.adb (Create_Float_Types): Only consider C's long double for | |
8052 | Long_Long_Float, in addition to double. | |
8053 | ||
8054 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8055 | ||
8056 | * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads, | |
8057 | sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads, | |
8058 | prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb: | |
8059 | Minor reformatting. | |
8060 | ||
8061 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8062 | ||
8063 | * sem_attr.adb: handle properly 'Result when it is a prefix of an | |
8064 | indexed component. | |
8065 | ||
8066 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
8067 | ||
8068 | * einfo.ads, einfo.adb | |
8069 | (Original_Access_Type): Move this attribute to Node26 since there was | |
8070 | an undocumented use of Node21 in E_Access_Subprogram_Type entities | |
8071 | which causes conflicts and breaks the generation of the .NET compiler. | |
8072 | (Interface_Name): Add missing documentation on JGNAT only uses of | |
8073 | this attribute. | |
8074 | ||
8075 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
8076 | ||
8077 | * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist | |
8078 | (Find_Back_End_Float_Type): Likewise | |
8079 | (Create_Back_End_Float_Types): Likewise | |
8080 | (Create_Float_Types): Likewise | |
8081 | (Register_Float_Type): Likewise | |
8082 | * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of | |
8083 | Nlist and split out type selection in new local Find_Base_Type function. | |
8084 | * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of | |
8085 | Nlist | |
8086 | * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist | |
8087 | ||
8088 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8089 | ||
8090 | * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in | |
8091 | alpha order). | |
8092 | * opt.ads: Minor comment change. | |
8093 | * sem_ch12.adb: Minor code reorganization. | |
8094 | ||
8095 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> | |
8096 | ||
8097 | * sem_ch3.adb (Complete_Private_Subtype): Don't append the private | |
8098 | subtype's list of rep items to the list on the full subtype in the case | |
8099 | where the lists are the same. | |
8100 | ||
8101 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
8102 | ||
8103 | * switch-c.adb (Free): New deallocation procedure to avoid implicitly | |
8104 | using the one from System.Strings, which also deallocates all strings. | |
8105 | ||
8106 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
8107 | ||
8108 | * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New | |
8109 | function. | |
8110 | * gcc-interface/Make-lang.in: Update dependencies. | |
8111 | ||
8112 | 2011-08-02 Olivier Hainque <hainque@adacore.com> | |
8113 | ||
8114 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function | |
8115 | end_locus. | |
8116 | ||
8117 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
8118 | ||
8119 | * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals | |
8120 | associated with anonymous access to subprograms. | |
8121 | ||
8122 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
8123 | ||
8124 | * opt.ads | |
8125 | (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions. | |
8126 | (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition. | |
8127 | * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads | |
8128 | (Add_Symbol_Definition): Move to switch-c.adb | |
8129 | (Process_Command_Line_Symbol_Definitions): Adjust references to above. | |
8130 | * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation. | |
8131 | (Add_Symbol_Definition): Move to switch-c.adb. | |
8132 | * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw. | |
8133 | * sem_warn.adb | |
8134 | (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch): | |
8135 | Move to warnsw.adb. | |
8136 | * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size, | |
8137 | Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch): | |
8138 | Move to warnsw.adb. | |
8139 | * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw. | |
8140 | (Add_Symbol_Definition): Moved from Prepcomp. | |
8141 | * switch-c.ads: Update copyright notice. Use String_List instead of | |
8142 | Argument_List, removing dependency on System.OS_Lib. | |
8143 | ||
8144 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
8145 | ||
8146 | * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal | |
8147 | mode on initialization expression which does not respect SPARK | |
8148 | restrictions. | |
8149 | * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines | |
8150 | if the tree referenced by its argument represents an initialization | |
8151 | expression in SPARK, suitable for initializing an object in an object | |
8152 | declaration. | |
8153 | ||
8154 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
8155 | ||
8156 | * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the | |
8157 | internally generated access to subprogram with its associated protected | |
8158 | subprogram type. | |
8159 | * einfo.ads, einfo.adb (Original_Access_Type): New attribute. | |
8160 | ||
8161 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
8162 | ||
8163 | * cstand.adb (Register_Float_Type): Print information about type to | |
8164 | register, if the Debug_Flag_Dot_B is set. | |
8165 | * debug.adb (Debug_Flag_Dot_B): Document d.b debug option. | |
8166 | * rtsfind.ads (RE_Max_Base_Digits): New run time entity. | |
8167 | * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations | |
8168 | with a requested precision of more than Max_Digits digits and no more | |
8169 | than Max_Base_Digits digits, if a range specification is present and the | |
8170 | Predefined_Float_Types list has a suitable type to derive from. | |
8171 | * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the | |
8172 | case of type completion with pragma Import | |
8173 | * sem_prag.adb | |
8174 | (Process_Import_Predefined_Type): Processing to complete a type | |
8175 | with pragma Import. Currently supports floating point types only. | |
8176 | (Set_Convention_From_Pragma): Do nothing without underlying type. | |
8177 | (Process_Convention): Guard against absence of underlying type, | |
8178 | which may happen when importing incomplete types. | |
8179 | (Process_Import_Or_Interface): Handle case of importing predefined | |
8180 | types. Tweak error message. | |
8181 | ||
8182 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
8183 | ||
8184 | * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined | |
8185 | functions to previous change. Reorganize code slightly. | |
8186 | ||
8187 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
8188 | ||
8189 | * back_end.ads (Register_Type_Proc): New call back procedure type for | |
8190 | allowing the back end to provide information about available types. | |
8191 | (Register_Back_End_Types): New procedure to register back end types. | |
8192 | * back_end.adb (Register_Back_End_Types): Call the back end to enumerate | |
8193 | available types. | |
8194 | * cstand.adb (Back_End_Float_Types): New list for floating point types | |
8195 | supported by the back end. | |
8196 | (Build_Float_Type): Add extra parameter for Float_Rep_Kind. | |
8197 | (Copy_Float_Type): New procedure to make new copies of predefined types. | |
8198 | (Register_Float_Type): New call back procedure to populate the BEFT list | |
8199 | (Find_Back_End_Float_Type): New procedure to find a BEFT by name | |
8200 | (Create_Back_End_Float_Types): New procedure to populate the BEFT list. | |
8201 | (Create_Float_Types): New procedure to create entities for floating | |
8202 | point types predefined in Standard, and put these and any remaining | |
8203 | BEFTs on the Predefined_Float_Types list. | |
8204 | * stand.ads (Predefined_Float_Types): New list for predefined floating | |
8205 | point types that do not have declarations in package Standard. | |
8206 | ||
8207 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
8208 | ||
8209 | * inline.adb (Get_Code_Unit_Entity): New local function. Returns the | |
8210 | entity node for the unit containing the parameter. | |
8211 | (Add_Inlined_Body): Use it to find the unit containing the subprogram. | |
8212 | (Add_Inlined_Subprogram): Likewise. | |
8213 | * gcc-interface/Make-lang.in: Update dependencies. | |
8214 | ||
8215 | 2011-08-02 Thomas Quinot <quinot@adacore.com> | |
8216 | ||
8217 | * s-stusta.adb (Print): Make sure Pos is always initialized to a | |
8218 | suitable value. | |
8219 | ||
8220 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
8221 | ||
8222 | * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image. | |
8223 | ||
8224 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
8225 | ||
8226 | * sem_type.adb (Covers): Move trivial case to the top and reuse the | |
8227 | computed value of Base_Type. | |
8228 | ||
8229 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
8230 | ||
8231 | * restrict.adb (Check_Restriction): issue an error for any use of | |
8232 | class-wide, even if the No_Dispatch restriction is not set. | |
8233 | * sem_aggr.adb: Correct typos in comments and messages in formal mode | |
8234 | * sem_ch3.adb (Process_Full_View): issue an error in formal mode is, | |
8235 | when completing a private extension, the type named in the private part | |
8236 | is not the same as that named in the visible part. | |
8237 | * sem_res.adb (Resolve_Call): issue an error in formal mode on the use | |
8238 | of an inherited primitive operations of a tagged type or type extension | |
8239 | that returns the tagged type. | |
8240 | * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new | |
8241 | function which returns True for an implicit operation inherited by the | |
8242 | derived type declaration for the argument type. | |
8243 | (Is_SPARK_Object_Reference): move to appropriate place in alphabetic | |
8244 | order. | |
8245 | ||
8246 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8247 | ||
8248 | * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from | |
8249 | Process_Bounds, to perform analysis with expansion of a range or an | |
8250 | expression that is the iteration scheme for a loop. | |
8251 | (Analyze_Iterator_Specification): If domain of iteration is given by a | |
8252 | function call with a controlled result, as is the case if call returns | |
8253 | a predefined container, ensure that finalization actions are properly | |
8254 | generated. | |
8255 | * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range. | |
8256 | ||
8257 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
8258 | ||
8259 | * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo. | |
8260 | * gcc-interface/Make-lang.in: Update dependencies. | |
8261 | ||
8262 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
8263 | ||
8264 | * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to | |
8265 | determine if the analysis is performed using N or Original_Node (N). | |
8266 | * exp_util.adb (Side_Effect_Free): Code cleanup since the new | |
8267 | functionality of routine Is_Variable avoids code duplication. | |
8268 | * checks.adb (Determine_Range): Handle temporaries generated by | |
8269 | Remove_Side_Effects. | |
8270 | ||
8271 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
8272 | ||
8273 | * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and | |
8274 | expansion of the condition. Required since the previous analysis was | |
8275 | done with expansion disabled (see Resolve_Quantified_Expression) and | |
8276 | hence checks were not inserted and record comparisons have not been | |
8277 | expanded. | |
8278 | ||
8279 | 2011-08-02 Ed Falis <falis@adacore.com> | |
8280 | ||
8281 | * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads: | |
8282 | Update header. | |
8283 | ||
8284 | 2011-08-02 Bob Duff <duff@adacore.com> | |
8285 | ||
8286 | * opt.ads: Minor comment fix. | |
8287 | ||
8288 | 2011-08-02 Bob Duff <duff@adacore.com> | |
8289 | ||
8290 | * sem_ch12.adb (Analyze_Package_Instantiation, | |
8291 | Analyze_Subprogram_Instantiation): Turn off style checking while | |
8292 | analyzing an instance. Whatever style checks that apply to the generic | |
8293 | unit should apply, so it makes no sense to apply them in an instance. | |
8294 | This was causing trouble when compiling an instance of a runtime | |
8295 | unit that violates the -gnatyO switch. | |
8296 | * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from | |
8297 | one of the two case statements, causing spurious errors. | |
8298 | ||
8299 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8300 | ||
8301 | * uname.adb: Minor reformatting. | |
8302 | * gnatcmd.adb: Minor reformatting. | |
8303 | * exp_attr.adb: Minor reformatting. | |
8304 | ||
8305 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8306 | ||
8307 | * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction | |
8308 | No_Dispatching_Calls, do not look for the Assign primitive, because | |
8309 | predefined primitives are not created in this case. | |
8310 | ||
8311 | 2011-08-02 Bob Duff <duff@adacore.com> | |
8312 | ||
8313 | * stylesw.ads: Minor comment fixes. | |
8314 | ||
8315 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8316 | ||
8317 | * freeze.adb (Add_To_Result): New procedure. | |
8318 | ||
8319 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
8320 | ||
8321 | * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run | |
8322 | time, if the specific run-time routines for handling streams of strings | |
8323 | are not available, use the default mechanism. | |
8324 | ||
8325 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
8326 | ||
8327 | * s-regpat.ads: Fix typo. | |
8328 | ||
8329 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
8330 | ||
8331 | * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is | |
8332 | not null, call it to create the in memory config project file without | |
8333 | parsing an existing default config project file. | |
8334 | ||
8335 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
8336 | ||
8337 | * atree.adb (Allocate_Initialize_Node): Remove useless temporaries. | |
8338 | ||
8339 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8340 | ||
8341 | * sem_elim.adb: an abstract subprogram does not need an eliminate | |
8342 | pragma for its descendant to be eliminable. | |
8343 | ||
8344 | 2011-08-02 Ed Falis <falis@adacore.com> | |
8345 | ||
8346 | * init.c: revert to handling before previous checkin for VxWorks | |
8347 | * s-intman-vxworks.adb: delete unnecessary declarations related to | |
8348 | using Ada interrupt facilities for handling signals. | |
8349 | Delete Initialize_Interrupts. Use __gnat_install_handler instead. | |
8350 | * s-intman-vxworks.ads: Import __gnat_install_handler as | |
8351 | Initialize_Interrupts. | |
8352 | * s-taprop-vxworks.adb: Delete Signal_Mask. | |
8353 | (Abort_Handler): change construction of mask to unblock exception | |
8354 | signals. | |
8355 | ||
8356 | 2011-08-02 Jerome Guitton <guitton@adacore.com> | |
8357 | ||
8358 | * a-except-2005.adb (Raise_From_Signal_Handler): Call | |
8359 | Debug_Raise_Exception before propagation starts. | |
8360 | ||
8361 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
8362 | ||
8363 | * exp_ch6.adb (Expand_Call): Guard restriction checks with a call | |
8364 | to Restriction_Check_Required. | |
8365 | * sem_ch3.adb (Analyze_Object_Declaration): Likewise. | |
8366 | * sem_res.adb (Resolve_Call): Likewise. | |
8367 | * sem_attr.adb (Check_Stream_Attribute): Likewise. | |
8368 | ||
8369 | 2011-08-02 Bob Duff <duff@adacore.com> | |
8370 | ||
8371 | * stylesw.ads: Update comment. | |
8372 | * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N. | |
8373 | * errout.ads: Remove obsolete comment. | |
8374 | ||
8375 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
8376 | ||
8377 | * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function. | |
8378 | (Set_Is_Safe_To_Reevaluate): new procedure. | |
8379 | * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no | |
8380 | assignment is allowed on safe-to-reevaluate variables. | |
8381 | (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the | |
8382 | temporary created to remove side effects in expressions that use | |
8383 | the secondary stack as safe-to-reevaluate. | |
8384 | * exp_util.adb (Side_Effect_Free): Add missing code to handle well | |
8385 | variables that are not true constants. | |
8386 | ||
8387 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8388 | ||
8389 | * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads, | |
8390 | sem_res.adb, sem_ch6.adb: Minor reformatting. | |
8391 | ||
8392 | 2011-08-02 Jerome Guitton <guitton@adacore.com> | |
8393 | ||
8394 | * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code. | |
8395 | ||
8396 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8397 | ||
8398 | * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do | |
8399 | not set Overridden_Operation if subprogram is an initialization | |
8400 | procedure. | |
8401 | ||
8402 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
8403 | ||
8404 | * par-ch6.adb: Correct obsolete name in comments | |
8405 | * restrict.adb, restrict.ads (Check_Formal_Restriction): new function | |
8406 | which takes two message arguments (existing function takes one), with | |
8407 | second message used for continuation. | |
8408 | * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject | |
8409 | block statements that originate from a source block statement, not | |
8410 | generated block statements | |
8411 | * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for | |
8412 | symmetry with procedure case | |
8413 | * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new | |
8414 | function to issue an error in formal mode if a package specification | |
8415 | contains more than one tagged type or type extension. | |
8416 | * sem_res.adb (Resolve_Actuals): in formal mode, check that actual | |
8417 | parameters matching formals of tagged types are objects (or ancestor | |
8418 | type conversions of objects), not general expressions. Issue an error | |
8419 | on view conversions that are not involving ancestor conversion of an | |
8420 | extended type. | |
8421 | (Resolve_Type_Conversion): in formal mode, issue an error on the | |
8422 | operand of an ancestor type conversion which is not an object | |
8423 | * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the | |
8424 | procedure so that it works also for actuals of function calls | |
8425 | (Is_Actual_Tagged_Parameter): new function which determines if its | |
8426 | argument is an actual parameter of a formal of tagged type in a | |
8427 | subprogram call | |
8428 | (Is_SPARK_Object_Reference): new function which determines if the tree | |
8429 | referenced by its argument represents an object in SPARK | |
8430 | ||
8431 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8432 | ||
8433 | * sem_ch3.adb: Minor reformatting | |
8434 | Minor comment addition | |
8435 | Minor error msg text change | |
8436 | ||
8437 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
8438 | ||
8439 | * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New | |
8440 | function. Used to be more precise when we generate a variable plus one | |
8441 | assignment to remove side effects in the evaluation of the Bound | |
8442 | expressions. | |
8443 | (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes | |
8444 | of the bound expression to force its re-analysis and thus expand the | |
8445 | associated transient scope (if required). Code cleanup replacing the | |
8446 | previous code that declared the constant entity by an invocation to | |
8447 | routine Force_Evaluation which centralizes this work in the frontend. | |
8448 | ||
8449 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8450 | ||
8451 | * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table | |
8452 | (Base_Type): Now uses improved Is_Base_Type function | |
8453 | * einfo.ads (Base_Type): Inline this function | |
8454 | ||
8455 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8456 | ||
8457 | * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion | |
8458 | (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas | |
8459 | ||
8460 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
8461 | ||
8462 | * gcc-interface/Make-lang.in: Update dependencies. | |
8463 | * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks | |
8464 | targets. | |
8465 | ||
8466 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
8467 | ||
8468 | * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on | |
8469 | non-simple expression used in delta constraint | |
8470 | (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on | |
8471 | index constraint which is not a subtype mark | |
8472 | * par.adb: With and use Restrict | |
8473 | * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal | |
8474 | mode on component type which is not a subtype mark and default | |
8475 | expression on component | |
8476 | (Analyze_Subtype_Declaration): issue an error in formal mode on subtype | |
8477 | of string which does not have a lower index bound equal to 1 | |
8478 | (Array_Type_Declaration): issue an error in formal mode on index or | |
8479 | component type which is not a subtype mark, and on aliased keyword on | |
8480 | component | |
8481 | (Derived_Type_Declaration): issue an error in formal mode on interface, | |
8482 | limited or abstract type | |
8483 | (Record_Type_Declaration): issue an error in formal mode on interface | |
8484 | (Record_Type_Definition): issue an error in formal mode on tagged types | |
8485 | and type extensions not declared in the specification of a library unit | |
8486 | package; on null non-tagged record; on variant part | |
8487 | ||
8488 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
8489 | ||
8490 | * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir | |
8491 | not declared for qualified library project when Library_Name is not | |
8492 | declared, but Library_Dir is. | |
8493 | ||
8494 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8495 | ||
8496 | * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated | |
8497 | pragmas (affects aspects [Component_]Default_Value | |
8498 | (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use | |
8499 | component type for the resolution | |
8500 | ||
8501 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
8502 | ||
8503 | * einfo.adb (Base_Type): Tune implementation for speed. | |
8504 | ||
8505 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8506 | ||
8507 | * freeze.adb: Minor reformatting. | |
8508 | ||
8509 | 2011-08-02 Thomas Quinot <quinot@adacore.com> | |
8510 | ||
8511 | * scos.ads: Update comments. | |
8512 | ||
8513 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8514 | ||
8515 | * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the | |
8516 | base type, because the parent may be a subtype of a private type whose | |
8517 | convention is established in a private part. | |
8518 | ||
8519 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
8520 | ||
8521 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return | |
8522 | statement in a block when the expansion of the return expression has | |
8523 | created a finalization chain. | |
8524 | * freeze.adb (Freeze_Expression): Alphabetize all choices associated | |
8525 | with the parent node. | |
8526 | Add N_Extended_Return_Statement to handle the case where a transient | |
8527 | object declaration appears in the Return_Object_Declarations list of | |
8528 | an extended return statement. | |
8529 | ||
8530 | 2011-08-02 Matthew Gingell <gingell@adacore.com> | |
8531 | ||
8532 | * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly | |
8533 | unused parameter 'name'. | |
8534 | ||
8535 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8536 | ||
8537 | * sem_elim.adb (Set_Eliminated): If the overridden operation is an | |
8538 | inherited operation, check whether its alias, which is the source | |
8539 | operastion that it renames, has been marked eliminated. | |
8540 | ||
8541 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
8542 | ||
8543 | * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an | |
8544 | in-mode parameter whose type is an access type since it can be used to | |
8545 | modify its designated object. Enforce code that handles as safe an | |
8546 | access type that is not access-to-constant but it is the result of a | |
8547 | previous removal of side-effects. | |
8548 | (Remove_Side_Effects): Minor code reorganization of cases which require | |
8549 | no action. Done to incorporate documentation on new cases uncovered | |
8550 | working in this ticket: no action needed if this routine was invoked | |
8551 | too early and the nodes are not yet decorated. | |
8552 | * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls | |
8553 | to routine Remove_Side_Effects by calls to Force_Evaluation since they | |
8554 | were issued with actuals that are implicitly provided by | |
8555 | Force_Evaluation. | |
8556 | ||
8557 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8558 | ||
8559 | * sem_ch3.adb, sem_res.adb: Minor reformatting. | |
8560 | ||
8561 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
8562 | ||
8563 | * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure | |
8564 | to issue an error in formal mode on attribute not supported in this mode | |
8565 | (Analyze_Attribute): issue errors on standard attributes not supported | |
8566 | in formal mode. | |
8567 | * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of | |
8568 | comment, and issue error in formal mode on modulus which is not a power | |
8569 | of 2. | |
8570 | (Process_Range_Expr_In_Decl): issue error in formal mode on non-static | |
8571 | range. | |
8572 | * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in | |
8573 | subtype mark. | |
8574 | * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary | |
8575 | operator on modular type (except 'not'). | |
8576 | ||
8577 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8578 | ||
8579 | * gnat_rm.texi: Minor reformatting. | |
8580 | ||
8581 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
8582 | ||
8583 | * s-osinte-linux.ads: Minor comment update and reformatting. | |
8584 | * i-cexten.ads: Make this unit pure, as for its parent. | |
8585 | Will allow its usage in more contexts if needed. | |
8586 | ||
8587 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8588 | ||
8589 | * s-utf_32.ads: Minor comment fix. | |
8590 | ||
8591 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8592 | ||
8593 | * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive | |
8594 | operation of a tagged synchronized type, handle the case where the | |
8595 | controlling argument is overloaded. | |
8596 | ||
8597 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
8598 | ||
8599 | * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl: | |
8600 | Replace pragma SPARK_95 with pragma Restrictions (SPARK) | |
8601 | * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set | |
8602 | SPARK mode and formal verification mode on processing SPARK restriction | |
8603 | * s-rident.ads (Restriction_Id): add SPARK restriction in those not | |
8604 | requiring consistency checking. | |
8605 | ||
8606 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8607 | ||
8608 | * sem_res.adb: Minor reformatting. | |
8609 | ||
8610 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8611 | ||
8612 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
8613 | a-cforse.ads: Remove unneeded with of Ada.Containers | |
8614 | Remove commented out pragma Inline's | |
8615 | Move specifications of new subprograms to the actual specs | |
8616 | ||
8617 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
8618 | ||
8619 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
8620 | a-cforse.ads: Update comments. | |
8621 | ||
8622 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8623 | ||
8624 | * sem_attr.adb: add attribute name when 'Result has the wrong prefix. | |
8625 | ||
8626 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8627 | ||
8628 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
8629 | a-cforse.ads, a-cofove.ads: Minor reformatting. | |
8630 | ||
8631 | 2011-08-02 Claire Dross <dross@adacore.com> | |
8632 | ||
8633 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads, | |
8634 | a-cofove.ads: Add comments. | |
8635 | ||
8636 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
8637 | ||
8638 | * gnat_rm.texi: Document formal containers. | |
8639 | ||
8640 | 2011-08-02 Emmanuel Briot <briot@adacore.com> | |
8641 | ||
8642 | * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there | |
8643 | are empty sections. | |
8644 | ||
8645 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8646 | ||
8647 | * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor | |
8648 | reformatting. | |
8649 | ||
8650 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8651 | ||
8652 | * aspects.adb: New aspects Default_Value and Default_Component_Value | |
8653 | New format of Aspect_Names table checks for omitted entries | |
8654 | * aspects.ads: Remove mention of Aspect_Cancel and add documentation on | |
8655 | handling of boolean aspects for derived types. | |
8656 | New aspects Default_Value and Default_Component_Value | |
8657 | New format of Aspect_Names table checks for omitted entries | |
8658 | * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag | |
8659 | (Has_Default_Value): New flag | |
8660 | (Has_Default_Component_Value): New flag | |
8661 | (Has_Default_Value): New flag | |
8662 | * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names | |
8663 | table. | |
8664 | * par-prag.adb: New pragmas Default_Value and Default_Component_Value | |
8665 | * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects | |
8666 | Default_Value and Default_Component_Value | |
8667 | * sem_prag.adb: New pragmas Default_Value and Default_Component_Value | |
8668 | New aspects Default_Value and Default_Component_Value | |
8669 | * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value | |
8670 | * sprint.adb: Print N_Aspect_Specification node when called from gdb | |
8671 | ||
8672 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
8673 | ||
8674 | * prj-nmsc.adb (Check_Library_Attributes): For virtual library project, | |
8675 | inherit library kind. | |
8676 | ||
8677 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8678 | ||
8679 | * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds. | |
8680 | Minor reformatting. | |
8681 | ||
8682 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8683 | ||
8684 | * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM | |
8685 | ||
8686 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
8687 | ||
8688 | * sem_aggr.adb (Resolve_Aggregate): Fix thinko. | |
8689 | ||
8690 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8691 | ||
8692 | * impunit.adb: Add comment. | |
8693 | ||
8694 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
8695 | ||
8696 | * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks | |
8697 | qualification of aggregates in formal mode | |
8698 | (Is_Top_Level_Aggregate): returns True for an aggregate not contained in | |
8699 | another aggregate | |
8700 | (Resolve_Aggregate): complete the test that an aggregate is adequately | |
8701 | qualified in formal mode | |
8702 | ||
8703 | 2011-08-02 Pascal Obry <obry@adacore.com> | |
8704 | ||
8705 | * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting. | |
8706 | * mlib-prj.adb: Supress warning when compiling binder generated file. | |
8707 | (Build_Library): Supress all warnings when compiling the binder | |
8708 | generated file. | |
8709 | ||
8710 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
8711 | ||
8712 | * errout.adb, errout.ads (Check_Formal_Restriction): move procedure | |
8713 | from here... | |
8714 | * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here | |
8715 | * sem_aggr.adb, sem_ch5.adb, sem_util.adb: | |
8716 | Add with/use clauses to make Check_Formal_Restriction visible | |
8717 | ||
8718 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8719 | ||
8720 | * sem_ch12.adb (Check_Generic_Actuals): handle properly actual | |
8721 | in-parameters when type of the generic formal is private in the generic | |
8722 | spec and non-private in the body. | |
8723 | ||
8724 | 2011-08-02 Claire Dross <dross@adacore.com> | |
8725 | ||
8726 | * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb, | |
8727 | a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads, | |
8728 | a-cofove.adb, a-cofove.ads: New files implementing formal containers. | |
8729 | * impunit.adb, Makefile.rtl: Take new files into account. | |
8730 | ||
8731 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8732 | ||
8733 | * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb, | |
8734 | sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting. | |
8735 | ||
8736 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
8737 | ||
8738 | * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in | |
8739 | formal mode | |
8740 | * sem_util.adb (Matching_Static_Array_Bounds): proper detection of | |
8741 | matching static array bounds, taking into account the special case of | |
8742 | string literals | |
8743 | * sem_ch3.adb: Typo in comment. | |
8744 | ||
8745 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
8746 | ||
8747 | * errout.adb, errout.ads (Check_Formal_Restriction): new procedure | |
8748 | which issues an error in formal mode if its argument node is originally | |
8749 | from source | |
8750 | * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type | |
8751 | has a discriminant specification so that it does not include the case | |
8752 | of derived types | |
8753 | (Derived_Type_Declaration): move here the test that a derived type has a | |
8754 | discriminant specification | |
8755 | * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the | |
8756 | first element of a component association before accessing its choices | |
8757 | (presence of component association is not enough) | |
8758 | * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram | |
8759 | declaration is a library item before accessing the next element in a | |
8760 | list, as library items are not member of lists | |
8761 | * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, | |
8762 | sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use | |
8763 | Check_Formal_Restriction whenever possible. | |
8764 | ||
8765 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8766 | ||
8767 | * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype | |
8768 | reference when needed. | |
8769 | ||
8770 | 2011-08-02 Bob Duff <duff@adacore.com> | |
8771 | ||
8772 | * gnat_ugn.texi: Fix typo. | |
8773 | ||
8774 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
8775 | ||
8776 | * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of | |
8777 | archive file name. Do not use the full path name of archives for Open | |
8778 | VMS. | |
8779 | ||
8780 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8781 | ||
8782 | * sem_ch12.adb, sem_ch11.adb: New calling sequence for | |
8783 | Analyze_Aspect_Specifications | |
8784 | * sem_ch13.adb | |
8785 | (Analyze_Aspect_Specifications): New handling for boolean aspects | |
8786 | * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence | |
8787 | * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling | |
8788 | sequence for Analyze_Aspect_Specifications | |
8789 | * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely | |
8790 | * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used | |
8791 | ||
8792 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8793 | ||
8794 | * freeze.adb (Freeze_Entity): Remove handling of delayed boolean | |
8795 | aspects, since these no longer exist. | |
8796 | ||
8797 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8798 | ||
8799 | * par-ch13.adb (Aspect_Specifications_Present): Always return false on | |
8800 | semicolon, do not try to see if there are aspects following it. | |
8801 | * par-ch3.adb (P_Declarative_Items): Better message for unexpected | |
8802 | aspect spec. | |
8803 | ||
8804 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8805 | ||
8806 | * sem_ch8.adb, aspects.ads: Minor reformatting. | |
8807 | ||
8808 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
8809 | ||
8810 | * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline. | |
8811 | * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure | |
8812 | extracted from... | |
8813 | (Analyze_Aspect_Specifications): ...here. Call above procedure. | |
8814 | ||
8815 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
8816 | ||
8817 | * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal | |
8818 | mode on subprogram declaration outside of package specification, unless | |
8819 | it is followed by a pragma Import | |
8820 | * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration, | |
8821 | Access_Type_Declaration): issue error in formal mode on access type | |
8822 | (Analyze_Incomplete_Type_Decl): issue error in formal mode on | |
8823 | incomplete type | |
8824 | (Analyze_Object_Declaration): issue error in formal mode on object | |
8825 | declaration which does not respect SPARK restrictions | |
8826 | (Analyze_Subtype_Declaration): issue error in formal mode on subtype | |
8827 | declaration which does not respect SPARK restrictions | |
8828 | (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue | |
8829 | error in formal mode on digits or delta constraint | |
8830 | (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on | |
8831 | decimal fixed point type | |
8832 | (Derived_Type_Declaration): issue error in formal mode on derived type | |
8833 | other than type extensions of tagged record types | |
8834 | * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant | |
8835 | with check on access definition | |
8836 | * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal | |
8837 | mode on protected definition. | |
8838 | (Analyze_Task_Definition): issue error in formal mode on task definition | |
8839 | ||
8840 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8841 | ||
8842 | * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting. | |
8843 | ||
8844 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
8845 | ||
8846 | * sem_ch6.adb (Can_Override_Operator): New function. | |
8847 | (Verify_Overriding_Indicator): Add missing code to check overriding | |
8848 | indicator in operators. Fixes regression. | |
8849 | (Check_Overriding_Indicator): Minor reformating after replacing the | |
8850 | code that evaluates if the subprogram can override an operator by | |
8851 | invocations to the above new function. | |
8852 | * einfo.adb | |
8853 | (Write_Field26_Name): Add missing code to ensure that, following | |
8854 | the documentation in einfo.ads, this field is not shown as attribute | |
8855 | "Static_Initialization" on non-dispatching functions. | |
8856 | ||
8857 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
8858 | ||
8859 | * sem_res.adb (Resolve_Call): A call to | |
8860 | Ada.Real_Time.Timing_Events.Set_Handler violates restriction | |
8861 | No_Relative_Delay (AI-0211) only when it sets a relative timing event, | |
8862 | i.e., when the second parameter is of type Time_Span. | |
8863 | ||
8864 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
8865 | ||
8866 | * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link | |
8867 | with an archive instead of -L<library dir> -l<library name>. | |
8868 | ||
8869 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8870 | ||
8871 | * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed, | |
8872 | mark the base types In_Use in addition to making the operations | |
8873 | use_visible. | |
8874 | ||
8875 | 2011-08-02 Ed Falis <falis@adacore.com> | |
8876 | ||
8877 | * init.c: add and setup __gnat_signal_mask for the exception signals | |
8878 | * s-inmaop-vxworks.adb: new file. | |
8879 | * s-intman-vxworks.adb: remove unnecessary initializations and | |
8880 | simplify remaining | |
8881 | * s-intman-vxworks.ads: remove unnecessary variable | |
8882 | * s-taprop-vxworks.adb: simplify signal initialization | |
8883 | ||
8884 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8885 | ||
8886 | * sem_ch8.adb: Minor code reorganization, comment updates. | |
8887 | ||
8888 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8889 | ||
8890 | * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util | |
8891 | * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved | |
8892 | here from Sem_Res. | |
8893 | (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression | |
8894 | (Matching_Static_Array_Bounds): Moved here from Sem_Res | |
8895 | ||
8896 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8897 | ||
8898 | * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5. | |
8899 | * par_ch8.adb (P_Use_Type): initialize Used_Operations for node. | |
8900 | * sinfo.ads, sinfo.adb (Used_Operations): new attribute of | |
8901 | use_type_clauses, to handle more efficiently use_type and use_all_type | |
8902 | constructs. | |
8903 | * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the | |
8904 | Ada2012 Use_All_Type clause. | |
8905 | (Use_Class_Wide_Operations): new procedure. | |
8906 | ||
8907 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8908 | ||
8909 | * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb, | |
8910 | sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized | |
8911 | expression to expression function. | |
8912 | ||
8913 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8914 | ||
8915 | * sem_ch4.adb: transform simple Ada2012 membership into equality only | |
8916 | if types are compatible. | |
8917 | ||
8918 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
8919 | ||
8920 | * sem_res.adb (Matching_Static_Array_Bounds): new function which | |
8921 | returns True if its argument array types have same dimension and same | |
8922 | static bounds at each index. | |
8923 | (Resolve_Actuals): issue an error in formal mode on actuals passed as | |
8924 | OUT or IN OUT paramaters which are not view conversions in SPARK. | |
8925 | (Resolve_Arithmetic_Op): issue an error in formal mode on | |
8926 | multiplication or division with operands of fixed point types which are | |
8927 | not qualified or explicitly converted. | |
8928 | (Resolve_Comparison_Op): issue an error in formal mode on comparisons of | |
8929 | Boolean or array type (except String) operands. | |
8930 | (Resolve_Equality_Op): issue an error in formal mode on equality | |
8931 | operators for array types other than String with non-matching static | |
8932 | bounds. | |
8933 | (Resolve_Logical_Op): issue an error in formal mode on logical operators | |
8934 | for array types with non-matching static bounds. Factorize the code in | |
8935 | Matching_Static_Array_Bounds. | |
8936 | (Resolve_Qualified_Expression): issue an error in formal mode on | |
8937 | qualified expressions for array types with non-matching static bounds. | |
8938 | (Resolve_Type_Conversion): issue an error in formal mode on type | |
8939 | conversion for array types with non-matching static bounds | |
8940 | ||
8941 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8942 | ||
8943 | * par-ch10.adb: Minor code reorganization (use Nkind_In). | |
8944 | ||
8945 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8946 | ||
8947 | * par-ch9.adb: save location of entry for proper error message. | |
8948 | ||
8949 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
8950 | ||
8951 | * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal | |
8952 | (Use_Full_View) which permits this routine to climb through the | |
8953 | ancestors using the full-view of private parents. | |
8954 | * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set | |
8955 | Use_Full_View to true in calls to Is_Ancestor. | |
8956 | * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to | |
8957 | true in call to Is_Ancestor. | |
8958 | * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set | |
8959 | Use_Full_View to true in call to Is_Ancestor. | |
8960 | * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in | |
8961 | call to Is_Ancestor. | |
8962 | * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set | |
8963 | Use_Full_View to true in calls to Is_Ancestor. | |
8964 | * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT, | |
8965 | Make_Select_Specific_Data_Table, Register_Primitive, | |
8966 | Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor. | |
8967 | * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View | |
8968 | to true in call to Is_Ancestor. | |
8969 | * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set | |
8970 | Use_Full_View to true in calls to Is_Ancestor. | |
8971 | * exp_cg.adb | |
8972 | (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor. | |
8973 | (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor. | |
8974 | ||
8975 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8976 | ||
8977 | * gnat_rm.texi: Minor reformatting. | |
8978 | * sem_prag.adb: Minor reformatting. | |
8979 | ||
8980 | 2011-08-02 Tristan Gingold <gingold@adacore.com> | |
8981 | ||
8982 | * vms_data.ads: Add VMS qualifier for -gnateP. | |
8983 | ||
8984 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8985 | ||
8986 | * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty | |
8987 | * par-ch7.adb (P_Package): Proper placement of aspects for package | |
8988 | decl/instantiation. | |
8989 | * par-endh.adb (Check_End): Ad Is_Sloc parameter | |
8990 | (End_Statements): Add Is_Sloc parameterr | |
8991 | * par.adb (P_Aspect_Specification): New meaning of Decl = Empty | |
8992 | (Check_End): Ad Is_Sloc parameter | |
8993 | (End_Statements): Add Is_Sloc parameterr | |
8994 | ||
8995 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
8996 | ||
8997 | * ug_words: Add VMS qualifier equivalent to -gnateP: | |
8998 | /SYMBOL_PREPROCESSING. | |
8999 | ||
9000 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
9001 | ||
9002 | * gnat-style.texi: For hexadecimal numeric literals the typical | |
9003 | grouping of digits is 4 to represent 2 bytes. | |
9004 | A procedure spec which is split into several lines is indented two | |
9005 | characters. | |
9006 | ||
9007 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
9008 | ||
9009 | * exp_aggr.adb (Is_Others_Aggregate): move function to other unit. | |
9010 | * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here | |
9011 | (Resolve_Aggregate): issue errors in formal modes when aggregate is not | |
9012 | properly qualified | |
9013 | (Resolve_Array_Aggregate): issue errors in formal modes on non-static | |
9014 | choice in array aggregate | |
9015 | (Resolve_Extension_Aggregate): issue errors in formal modes on subtype | |
9016 | mark as ancestor | |
9017 | (Resolve_Record_Aggregate): issue errors in formal modes on mixed | |
9018 | positional and named aggregate for record, or others in record | |
9019 | aggregate, or multiple choice in record aggregate | |
9020 | * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when | |
9021 | array operands to logical operations AND, OR and XOR do not have the | |
9022 | same static lower and higher bounds | |
9023 | * sem_ch5.adb, sinfo.ads: Correct typos in comments | |
9024 | ||
9025 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9026 | ||
9027 | * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement): | |
9028 | Replaces Last_Source_Node_In_Sequence. | |
9029 | * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K | |
9030 | * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores | |
9031 | parens and blank in string (this was inconsistently implemented). | |
9032 | * errout.ads | |
9033 | (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and | |
9034 | blank in string (this was inconsistently implemented). | |
9035 | * gnat1drv.adb | |
9036 | (Set_Global_Switches): Set formal mode switches appropriately | |
9037 | * opt.ads, opt.adb: Formal mode is now global switches, more consistent | |
9038 | * par-prag.adb | |
9039 | (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and | |
9040 | call Set_Error_Msg_Lang to set "spark" as language name. | |
9041 | * par.adb: Remove unnecessary call to set formal language for errout | |
9042 | * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches | |
9043 | appropriately and call Set_Error_Msg_Lang to set "spark" as language | |
9044 | name. | |
9045 | * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and | |
9046 | calls to it, moved after resolution so that types are known | |
9047 | * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if | |
9048 | result of concatenation is not of type String | |
9049 | (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of | |
9050 | concatenation is not properly restricted | |
9051 | * gnat_rm.texi: Add doc on pragma Spark_95. | |
9052 | * gcc-interface/Makefile.in: Remove obsolete target pairs for | |
9053 | Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads. | |
9054 | * gcc-interface/Make-lang.in: Update dependencies. | |
9055 | ||
9056 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
9057 | ||
9058 | * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of | |
9059 | condition that detects if the overridden operation must replace an | |
9060 | existing entity. | |
9061 | ||
9062 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
9063 | ||
9064 | * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded | |
9065 | code declarations inserted by Insert_Actions in each alternative of the | |
9066 | N_Case_Expression node. | |
9067 | ||
9068 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9069 | ||
9070 | * sem_ch6.adb: Minor code reorganization. | |
9071 | * sem_util.adb: Minor reformatting. | |
9072 | ||
9073 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
9074 | ||
9075 | * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path. | |
9076 | * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource. | |
9077 | ||
9078 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
9079 | ||
9080 | * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character | |
9081 | literal or operator symbol which is prefixed | |
9082 | * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal | |
9083 | mode on access attributes. | |
9084 | * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check | |
9085 | that concatenation operands are properly restricted in formal mode | |
9086 | (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure | |
9087 | Analyze_Concatenation_Operand. Issue an error in formal mode if the | |
9088 | result of the concatenation has a type different from String. | |
9089 | (Analyze_Conditional_Expression, Analyze_Explicit_Dereference, | |
9090 | Analyze_Quantified_Expression, Analyze_Slice, | |
9091 | Analyze_Null): issue an error in formal mode on unsupported constructs | |
9092 | * sem_ch5.adb | |
9093 | (Analyze_Block_Statement): only issue error on source block statement | |
9094 | * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new | |
9095 | function which returns the last node in a list of nodes for which | |
9096 | Comes_From_Source returns True, if any | |
9097 | * sem_ch6.adb (Check_Missing_Return): minor refactoring to use | |
9098 | Last_Source_Node_In_Sequence | |
9099 | * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming, | |
9100 | Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal | |
9101 | mode on unsupported constructs | |
9102 | * sem_ch9.adb Do not return after issuing error in formal mode, as the | |
9103 | rest of the actions may be needed later on since the error is marked as | |
9104 | not serious. | |
9105 | * sinfo.ads: Typos in comments. | |
9106 | ||
9107 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
9108 | ||
9109 | * projects.texi: Minor editing. | |
9110 | ||
9111 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
9112 | ||
9113 | * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for | |
9114 | insertion character ~~ | |
9115 | * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures | |
9116 | (Set_Error_Msg_Lang): new procedure which fixes the language for use | |
9117 | with insertion character ~~ | |
9118 | (Set_Msg_Text): treat insertion character ~~ | |
9119 | * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb, | |
9120 | sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to | |
9121 | Formal_Error_Msg_... procedures by equivalent Error_Msg_... | |
9122 | procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make | |
9123 | errors related to the formal language restriction not serious | |
9124 | (insertion character |). | |
9125 | * par.adb (Par): set formal language for error messages if needed | |
9126 | * sem_ch6.adb (Check_Missing_Return): take into account possible | |
9127 | generated statements at the end of the function | |
9128 | * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and | |
9129 | enumeration value to define a new pragma SPARK_95 | |
9130 | * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default, | |
9131 | SPARK_Version): new type and variables to store the SPARK version | |
9132 | (none by default). | |
9133 | (SPARK_Mode): return True when SPARK_Version is set | |
9134 | * par-prag.adb: Correct indentation | |
9135 | (Prag): take Pragma_SPARK_95 into account | |
9136 | * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95 | |
9137 | into account. | |
9138 | ||
9139 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9140 | ||
9141 | * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb, | |
9142 | sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb, | |
9143 | sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting | |
9144 | ||
9145 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
9146 | ||
9147 | * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass | |
9148 | Target_Name to Get_Path call. | |
9149 | (Parse_Single_Project): Likewise. | |
9150 | (Post_Parse_Context_Clause): Likewise. | |
9151 | * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter. | |
9152 | Call Initialise_Project_Path with the proper Target_Name. | |
9153 | (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat | |
9154 | search path. | |
9155 | (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path | |
9156 | with the proper Target_Name. | |
9157 | * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to | |
9158 | Part.Parse routine. | |
9159 | (Parse_Project_And_Apply_Config): Likewise. | |
9160 | * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine. | |
9161 | This is fine as this part of the code is supporting only native | |
9162 | compilation. | |
9163 | * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This | |
9164 | is fine as this part of the code is supporting only native compilation. | |
9165 | ||
9166 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
9167 | ||
9168 | * sem_util.adb (Enter_Name): issue error in formal mode on declaration | |
9169 | of homonym, unless the homonym is one of the cases allowed in SPARK | |
9170 | * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for | |
9171 | package declaration occurring after a body. | |
9172 | ||
9173 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9174 | ||
9175 | * checks.adb, exp_ch4.adb: Minor reformatting. | |
9176 | ||
9177 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
9178 | ||
9179 | * einfo.ads (Access_Disp_Table): Fix documentation. | |
9180 | (Dispatch_Table_Wrappers): Fix documentation. | |
9181 | ||
9182 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
9183 | ||
9184 | * prj-env.adb, prj-env.ads: Minor reformatting. | |
9185 | ||
9186 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
9187 | ||
9188 | * sem_util.ads, sem_util.adb, par.adb, par_util.adb | |
9189 | (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move | |
9190 | procedures out of these packages. | |
2c7f9cc0 | 9191 | * errout.ads, errout.adb |
052e0603 AC |
9192 | (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move |
9193 | procedures in of this package | |
9194 | (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE | |
9195 | * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode | |
9196 | on misplaced later vs initial declarations, like in Ada 83 | |
9197 | * sem_attr.adb (Processing for Analyze_Attribute): issue error in | |
9198 | formal mode on attribute of private type whose full type declaration | |
9199 | is not visible | |
9200 | * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a | |
9201 | package declaration inside a package specification | |
9202 | (Analyze_Full_Type_Declaration): issue error in formal mode on | |
9203 | controlled type or discriminant type | |
9204 | * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on | |
9205 | user-defined operator means that it should come from the source | |
9206 | (New_Overloaded_Entity): issue error in formal mode on overloaded | |
9207 | entity. | |
9208 | * sem_ch6.ads, sem_ch13.ads: typos in comments. | |
9209 | ||
9210 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
9211 | ||
9212 | * atree.adb: Minor reformatting. | |
9213 | * checks.adb: Minor reformatting. | |
9214 | ||
9215 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
9216 | ||
9217 | * s-parame-vms-ia64.ads: Fix typo in comment | |
9218 | Minor reformatting | |
9219 | * s-parame-vms-restrict.ads: Removed, unused. | |
9220 | ||
9221 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
9222 | ||
9223 | * exp_ch3.adb | |
9224 | (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound. | |
9225 | * sem_ch3.adb | |
9226 | (Constrain_Index): Remove side effects in the evaluation of the bounds. | |
9227 | * sem_ch3.ads, sem_ch3.adb | |
9228 | (Is_Constant_Bound): New extended version of the subprogram that was | |
9229 | previously located inside function Exp_Ch3.Is_Variable_Size_Array. | |
9230 | Moved here since it is shared by routines of sem_ch3 and exp_ch3. | |
9231 | * sem_aux.ads (Constant_Value): Fix typo in comment. | |
9232 | * checks.adb (Generate_Index_Checks): New implementation which, for | |
9233 | array objects with constant bounds, generates the runtime check | |
9234 | referencing the bounds of the array type. For other cases this routine | |
9235 | provides its previous behavior obtaining such values from the array | |
9236 | object. | |
9237 | * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its | |
9238 | parent type. | |
9239 | * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since | |
9240 | we cannot have semantic interpretations of the new node. | |
9241 | ||
9242 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
9243 | ||
9244 | * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified | |
9245 | expressions. | |
9246 | ||
9247 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
9248 | ||
9249 | * sem_ch8.adb: Minor code editing. | |
9250 | * s-vxwext.adb: Remove trailing space. | |
9251 | * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for | |
9252 | consistency with other files. | |
9253 | ||
9254 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
9255 | ||
9256 | * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting. | |
9257 | ||
9258 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
9259 | ||
9260 | * par-ch10.adb: reject parameterized expressions as compilation unit. | |
9261 | * sem_ch4.adb: handle properly conditional expression with overloaded | |
9262 | then_clause and no else_clause. | |
9263 | ||
9264 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
9265 | ||
9266 | * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address | |
9267 | like done by System.Aux_DEC. | |
9268 | * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table. | |
9269 | ||
9270 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
9271 | ||
9272 | * par-endh.adb (Check_End): issue a syntax error in SPARK mode for | |
9273 | missing label at end of declaration (subprogram or package) | |
9274 | * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing | |
9275 | of positional and named parameter association | |
9276 | * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on | |
9277 | Error_Msg_SP which adds a prefix to the error message giving the name | |
9278 | of the formal language analyzed | |
9279 | * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for | |
9280 | access result type in subprogram, unconstrained array as result type,. | |
9281 | (Analyze_Subprogram_Declaration): issue an error in formal mode for null | |
9282 | procedure | |
9283 | * sem_ch8.adb: Code clean up. | |
9284 | ||
9285 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
9286 | ||
9287 | * sem_ch7.adb (Uninstall_Declarations): Remove useless code. | |
9288 | * einfo.ads (Access_Disp_Table): Fix documentation. | |
9289 | (Dispatch_Table_Wrappers): Fix documentation. | |
9290 | * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers, | |
9291 | Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions | |
9292 | to enforce the documentation of this attribute. | |
9293 | (Set_Is_Interface): Cleanup the assertion. | |
9294 | * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate | |
9295 | the Underlying_Type entity before reading attribute Access_Disp_Table. | |
9296 | * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion): | |
9297 | Locate the Underlying_Type before reading attribute Access_Disp_Table. | |
9298 | * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate | |
9299 | the Underlying_Type entity before reading attribute Access_Disp_Table. | |
9300 | * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration): | |
9301 | Locate the Underlying_Type entity before reading attribute | |
9302 | Access_Disp_Table. | |
9303 | ||
9304 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
9305 | ||
9306 | * s-poosiz.ads: Additional overriding indicators. | |
9307 | ||
9308 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
9309 | ||
9310 | * sem_ch5.adb (Analyze_Exit_Statement): add return after error in | |
9311 | formal mode. | |
9312 | (Analyze_Iteration_Scheme): issue error in formal mode when loop | |
9313 | parameter specification does not include a subtype mark. | |
9314 | * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in | |
9315 | formal mode on abstract subprogram. | |
9316 | (Analyze_Subprogram_Specification): issue error in formal mode on | |
9317 | user-defined operator. | |
9318 | (Process_Formals): issue error in formal mode on access parameter and | |
9319 | default expression. | |
9320 | * sem_ch9.adb (Analyze_Abort_Statement, | |
9321 | Analyze_Accept_Statement, Analyze_Asynchronous_Select, | |
9322 | Analyze_Conditional_Entry_Call, Analyze_Delay_Relative, | |
9323 | Analyze_Delay_Until, Analyze_Entry_Call_Alternative, | |
9324 | Analyze_Requeue, Analyze_Selective_Accept, | |
9325 | Analyze_Timed_Entry_Call): issue error in formal mode on such constructs | |
9326 | * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error): | |
9327 | issue error in formal mode on user-defined raise statement. | |
9328 | ||
9329 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
9330 | ||
9331 | * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a | |
9332 | declaration being hidden when overriding an implicit inherited | |
9333 | subprogram. | |
9334 | * par-ch10.adb (P_Compilation_Unit): In syntax check only mode | |
9335 | (-gnats), do not complain about a source file that contains only a | |
9336 | pragma No_Body. | |
9337 | ||
9338 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
9339 | ||
9340 | * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop | |
9341 | variable if already set. | |
9342 | ||
9343 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
9344 | ||
9345 | * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads, | |
9346 | g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads, | |
9347 | s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads, | |
9348 | g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb, | |
9349 | g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads, | |
9350 | g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads, | |
9351 | g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads, | |
9352 | g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb, | |
9353 | g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb, | |
9354 | g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads, | |
9355 | g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads, | |
9356 | s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb, | |
9357 | g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads, | |
9358 | s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads, | |
9359 | g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb, | |
9360 | g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb, | |
9361 | g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb, | |
9362 | g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb, | |
9363 | g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb, | |
9364 | g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb, | |
9365 | s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads, | |
9366 | s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads, | |
9367 | a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb, | |
9368 | s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads, | |
9369 | s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb, | |
9370 | g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads, | |
9371 | g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb, | |
9372 | g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb, | |
9373 | g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads, | |
9374 | g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads, | |
9375 | g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads, | |
9376 | s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads, | |
9377 | s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb, | |
9378 | g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb, | |
9379 | g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads, | |
9380 | s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb, | |
9381 | s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads, | |
9382 | g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads, | |
9383 | g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb, | |
9384 | g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, | |
9385 | s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads, | |
9386 | g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads, | |
9387 | g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads, | |
9388 | g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb, | |
9389 | s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb, | |
9390 | g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb, | |
9391 | g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb, | |
9392 | g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb, | |
9393 | s-osinte-mingw.ads: Update to GPLv3 run-time license. | |
9394 | Use GNAT instead of GNARL. | |
9395 | ||
9396 | 2011-08-01 Bob Duff <duff@adacore.com> | |
9397 | ||
9398 | * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads, | |
9399 | a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads, | |
9400 | a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor | |
9401 | reformatting. | |
9402 | ||
9403 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
9404 | ||
9405 | * debug.adb (d.D) reverve flag for the SPARK mode | |
9406 | (d.E) reverve flag for SPARK generation mode | |
9407 | (d.F) reverve flag for Why generation mode | |
2c7f9cc0 | 9408 | * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode, |
052e0603 AC |
9409 | ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New |
9410 | functions which return True when the corresponding modes are set | |
9411 | (Formal_Language): return "spark" or "alfa" when in formal verification | |
9412 | mode. | |
9413 | * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on | |
9414 | Error_Msg to prefix the error message with a tag giving the formal | |
9415 | language | |
9416 | (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error | |
9417 | message with a tag giving the formal language | |
9418 | * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on | |
9419 | block statement | |
9420 | (Analyze_Case_Statement): issue error in formal mode on case statement | |
9421 | with a single "others" case alternative | |
9422 | (Analyze_Exit_Statement): issue errors in formal mode on exit | |
9423 | statements which do not respect SPARK restrictions | |
9424 | (Analyze_Goto_Statement): issue error in formal mode on goto statement | |
9425 | (Check_Unreachable_Code): always issue an error (not a warning) in | |
9426 | formal mode on unreachable code (concerns both code after an infinite | |
9427 | loop and after an unconditional jump, both not allowed in SPARK) | |
9428 | * sem_ch6.adb (Analyze_Return_Statement): add call to | |
9429 | Set_Return_Present for a procedure containing a return statement | |
9430 | (already done for functions in Analyze_Function_Return) | |
9431 | (Analyze_Function_Return): issue error in formal mode on extended | |
9432 | return or if return is not last statement in function | |
9433 | (Check_Missing_Return): issue error in formal mode if function does | |
9434 | not end with return or if procedure contains a return | |
9435 | * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new | |
9436 | function to detect if there is an inner scope of its parameter S which | |
9437 | is a loop. | |
9438 | ||
9439 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
9440 | ||
9441 | * sem_ch6.ads: Minor reformatting. | |
9442 | ||
9443 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
9444 | ||
9445 | * sem_util.adb (Abstract_Interface_List): Complete condition when | |
9446 | processing private type declarations to avoid reading unavailable | |
9447 | attribute. | |
9448 | (Is_Synchronized_Tagged_Type): Complete condition when processing | |
9449 | private extension declaration nodes to avoid reading unavailable | |
9450 | attribute. | |
9451 | ||
9452 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
9453 | ||
9454 | * sem_ch3.adb: Minor reformatting. | |
9455 | ||
9456 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
9457 | ||
9458 | * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads, | |
9459 | i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads, | |
9460 | s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads, | |
9461 | s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages | |
9462 | for VMS, instead parametrize the common implementation with | |
9463 | System.Parameters declarations. | |
9464 | ||
9465 | 2011-08-01 Eric Botcazou <ebotcazou@adacore.com> | |
9466 | ||
9467 | * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing. | |
9468 | ||
9469 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
9470 | ||
9471 | * seh_init.c: Fix SEH handler installation on win64. | |
9472 | ||
9473 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
9474 | ||
9475 | * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent | |
9476 | double analysis of an anonymous access to subprogram, because it can | |
9477 | lead to improper sharing of profiles and a back-end crash. | |
9478 | ||
9479 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9480 | ||
9481 | * make.adb, sem_ch4.adb: Minor reformatting. | |
9482 | * gcc-interface/Make-lang.in: Update dependencies. | |
9483 | * sem_util.adb, exp_ch5.adb: Minor reformatting. | |
9484 | ||
9485 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
9486 | ||
9487 | * gnat_rm.texi: Fix definition of Long_Integer. | |
9488 | ||
9489 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
9490 | ||
9491 | * exp_aggr.adb: check limit size of static aggregate unconditionally, | |
9492 | to prevent storage exhaustion. | |
9493 | * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being | |
9494 | finalized is a function body, insert the cleanup code before the final | |
9495 | return statement, to prevent spurious warnings. | |
9496 | * s-pooglo.ads: add overriding indicator. | |
9497 | ||
9498 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
9499 | ||
9500 | * sem_ch4.adb (Operator_Check): improve error message when both a | |
9501 | with_clause and a use_clause are needed to make operator usage legal. | |
9502 | * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to | |
9503 | determine whether a compilation unit is visible within an other, | |
9504 | either through a with_clause in the current unit, or a with_clause in | |
9505 | its library unit or one one of its parents. | |
9506 | ||
9507 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
9508 | ||
9509 | * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator | |
9510 | over an arbitrary expression of an array or container type. | |
9511 | * lib-xref.adb: clarify comment. | |
9512 | ||
9513 | 2011-08-01 Bob Duff <duff@adacore.com> | |
9514 | ||
9515 | * einfo.ads: Minor reformatting. | |
9516 | * debug.adb: Minor comment improvement. | |
9517 | ||
9518 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
9519 | ||
9520 | * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not | |
9521 | consider hidden subprograms as valid candidates. | |
9522 | ||
9523 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
9524 | ||
9525 | * make.adb (Compile): Strip -mxxx switches in CodePeer mode. | |
9526 | ||
9527 | 2011-08-01 Vasiliy Fofanov <fofanov@adacore.com> | |
9528 | ||
9529 | * gnat_ugn.texi: Fix typo. | |
9530 | ||
9531 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9532 | ||
9533 | * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb, | |
9534 | lib-xref.adb: Minor reformatting | |
9535 | ||
9536 | 2011-08-01 Gary Dismukes <dismukes@adacore.com> | |
9537 | ||
9538 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of | |
9539 | when to generate a call to Move_Final_List. | |
9540 | (Has_Controlled_Parts): Remove this function. | |
9541 | ||
9542 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
9543 | ||
9544 | * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra | |
9545 | "," in choice list. | |
9546 | ||
9547 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
9548 | ||
9549 | * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for | |
9550 | explicit raise of a predefined exception as Comes_From_Source if the | |
9551 | original N_Raise_Statement comes from source. | |
9552 | ||
9553 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9554 | ||
9555 | * sinfo.ads: Add comment. | |
9556 | * sem_ch6.adb: Minor reformatting. | |
9557 | ||
9558 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9559 | ||
9560 | * freeze.adb (Freeze_Entity): Refine check for bad component size | |
9561 | clause to avoid rejecting confirming clause when atomic/aliased present. | |
9562 | ||
9563 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
9564 | ||
9565 | * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to | |
9566 | better determine whether an entity reference is a write. | |
9567 | * sem_util.adb (Is_LHS): refine predicate to handle assignment to a | |
9568 | subcomponent. | |
9569 | * lib-xref.adb (Output_References): Do no suppress a read reference at | |
9570 | the same location as an immediately preceeding modify-reference, to | |
9571 | handle properly in-out actuals. | |
9572 | ||
9573 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
9574 | ||
9575 | * env.c (__gnat_setenv) [VMS]: Refine previous change. | |
9576 | ||
9577 | 2011-08-01 Quentin Ochem <ochem@adacore.com> | |
9578 | ||
9579 | * i-cstrin.adb (New_String): Changed implementation, now uses only the | |
9580 | heap to compute the result. | |
9581 | ||
9582 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9583 | ||
9584 | * atree.ads: Minor reformatting. | |
9585 | ||
9586 | 2011-08-01 Emmanuel Briot <briot@adacore.com> | |
9587 | ||
9588 | * g-expect.adb (Get_Command_Output): Fix memory leak. | |
9589 | ||
9590 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
9591 | ||
9592 | * cstand.adb (P_Float_Type): New procedure to print the definition of | |
9593 | predefined fpt types. | |
9594 | (P_Mixed_Name): New procedure to print a name using mixed case | |
9595 | (Print_Standard): Use P_Float_Type for printing floating point types | |
9596 | * einfo.adb (Machine_Emax_Value): Add preliminary support for quad | |
9597 | precision IEEE float. | |
9598 | ||
9599 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
9600 | ||
9601 | * sem_ch3.adb: Minor reformatting. | |
9602 | ||
9603 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
9604 | ||
9605 | * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is | |
9606 | the completion of a generic function, insert the new body rather than | |
9607 | rewriting the original. | |
9608 | ||
9609 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
9610 | ||
9611 | * sinfo.ads, errout.ads: Typos in comments. | |
9612 | ||
9613 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9614 | ||
9615 | * par-endh.adb: Minor reformatting. | |
9616 | ||
9617 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9618 | ||
9619 | * aspects.ads, aspects.adb: Add aspects for library unit pragmas | |
9620 | (Pre_Post_Aspects): New subtype. | |
9621 | * par-ch12.adb (P_Generic): New syntax for aspects in packages | |
9622 | * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter | |
9623 | * par-ch7.adb (P_Package): Remove Decl parameter | |
9624 | (P_Package): Handle new syntax for aspects (before IS) | |
9625 | * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle | |
9626 | new aspect syntax | |
9627 | (P_Task_Definition): Remove Decl parameter, handle new aspect syntax | |
9628 | * par.adb (P_Aspect_Specifications): Add Semicolon parameter | |
9629 | (P_Package): Remove Decl parameter | |
9630 | * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit | |
9631 | aspects | |
9632 | * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect | |
9633 | specs | |
9634 | * sem_util.ads, sem_util.adb (Static_Boolean): New function | |
9635 | * sinfo.ads: Document new syntax for aspects in packages etc. | |
9636 | * sprint.adb: Handle new syntax of aspects before IS in package | |
9637 | ||
9638 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
9639 | ||
9640 | * atree.ads: Minor reformatting. | |
9641 | * sem_prag.adb: Minor reformatting. | |
9642 | ||
9643 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9644 | ||
9645 | * exp_util.adb (Insert_Actions): Fix error in handling Actions for | |
9646 | case expr alternative. | |
9647 | ||
9648 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
9649 | ||
9650 | * sem_ch12.adb: Fix typo. | |
9651 | ||
9652 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
9653 | ||
9654 | * sem_prag.adb (Check_No_Link_Name): New procedure. | |
9655 | (Process_Import_Or_Interface): Use Check_No_Link_Name. | |
9656 | * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float) | |
9657 | instead of Standard_Long_Long_Float_Size global. Preparation for | |
9658 | eventual removal of per type constants. | |
9659 | * exp_util.ads (Get_Stream_Size): New function returning the stream | |
9660 | size value of subtype E. | |
9661 | * exp_util.adb (Get_Stream_Size): Implement new function. | |
9662 | * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size | |
9663 | function. | |
9664 | * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size | |
9665 | * einfo.adb: | |
9666 | (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats | |
9667 | ||
9668 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
9669 | ||
9670 | * cstand.adb: Fix comments. | |
9671 | * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit | |
9672 | count of arguments. | |
9673 | ||
9674 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9675 | ||
9676 | * exp_ch4.adb, sem_cat.adb: Minor reformatting. | |
9677 | ||
9678 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
9679 | ||
9680 | * atree.ads: Fix comment. | |
9681 | ||
9682 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9683 | ||
9684 | * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec. | |
9685 | * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name. | |
9686 | * par.adb: Add with for Namet.Sp. | |
9687 | * par-tchk.adb: Minor reformatting. | |
9688 | ||
9689 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
9690 | ||
9691 | * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb | |
9692 | (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name | |
9693 | of the init procedure of a SAL. | |
9694 | * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name): | |
9695 | New procedure. | |
9696 | ||
9697 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
9698 | ||
9699 | * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor | |
9700 | reformatting. | |
9701 | ||
9702 | 2011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
9703 | ||
9704 | * adaint.c (__gnat_file_time_name_attr): Get rid of warning. | |
9705 | ||
9706 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
9707 | ||
9708 | * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function | |
9709 | conformant with its spec (return True only for types that have | |
9710 | an overriding Initialize primitive operation that prevents them from | |
9711 | having preelaborable initialization). | |
9712 | * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable | |
9713 | initialization for controlled types in Ada 2005 or later mode. | |
9714 | ||
9715 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9716 | ||
9717 | * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition, | |
9718 | Postcondition. | |
9719 | (Same_Aspect): New function. | |
9720 | * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect | |
9721 | Type_Invariant, Precondition, Postcondition. | |
9722 | * snames.ads-tmpl: Add Name_Type_Invariant. | |
9723 | ||
9724 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9725 | ||
9726 | * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point | |
9727 | here. | |
9728 | (Freeze_All_Ent): Fix error in handling inherited aspects. | |
9729 | * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is | |
9730 | already analyzed, but don't skip entire processing of a declaration, | |
9731 | that's wrong in some cases of declarations being rewritten. | |
9732 | (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects. | |
9733 | Don't delay for integer, string literals | |
9734 | Treat predicates in usual manner for delay, remove special case code, | |
9735 | not needed. | |
9736 | (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point | |
9737 | (Build_Predicate_Function): Update saved expression in aspect | |
9738 | (Build_Invariant_Procedure): Update saved expression in aspect | |
9739 | * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization | |
9740 | of replacement of discriminant references if the reference is simple. | |
9741 | ||
9742 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9743 | ||
9744 | * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate. | |
9745 | * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for | |
9746 | Static_Predicate and Dynamic_Predicate. | |
9747 | (Build_Predicate_Function): Add processing for Static_Predicate | |
9748 | and Dynamic_Predicate. | |
9749 | * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag | |
9750 | (From_Static_Predicate): New flag | |
9751 | * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate | |
9752 | ||
9753 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9754 | ||
9755 | * usage.adb: Documentation cleanup for Ada version modes in usage. | |
9756 | * expander.adb: Minor reformatting. | |
9757 | ||
9758 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9759 | ||
9760 | * atree.ads: Minor comment fix. | |
9761 | * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads, | |
9762 | a-witeio.ads, sem_prag.adb: Minor reformatting. | |
9763 | ||
9764 | 2011-08-01 Doug Rupp <rupp@adacore.com> | |
9765 | ||
9766 | * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure | |
9767 | pointers. Use descrip.h header file for convenience. Add some | |
9768 | comments. | |
9769 | ||
9770 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9771 | ||
9772 | * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point | |
9773 | (Freeze_All): Call Check_Aspect_At_End_Of_Declarations | |
9774 | * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point): | |
9775 | New procedure. | |
9776 | (Check_Aspect_At_End_Of_Declarations): New procedure | |
9777 | (Analye_Aspect_Specification): Minor changes for above procedures | |
9778 | * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect | |
9779 | specification node as well. | |
9780 | ||
9781 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
9782 | ||
9783 | * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special | |
9784 | Windows files. Use GetFilesAttributes() in this case to check for file | |
9785 | existence instead of returning with an error code. | |
9786 | ||
9787 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
9788 | ||
9789 | * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when | |
9790 | High is above Source length. | |
9791 | ||
9792 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9793 | ||
9794 | * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment. | |
9795 | ||
9796 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9797 | ||
9798 | * aspects.ads (Boolean_Aspects): New subtype. | |
9799 | * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects | |
9800 | for derived types in cases where the parent type and derived type have | |
9801 | aspects. | |
9802 | * freeze.adb (Freeze_Entity): Fix problems in handling derived type | |
9803 | with aspects when parent type also has aspects. | |
9804 | (Freeze_Entity): Deal with delay of boolean aspects (must evaluate | |
9805 | boolean expression at this point). | |
9806 | * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in | |
9807 | accordance with final decision on the Ada 2012 feature. | |
9808 | * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag. | |
9809 | ||
9810 | 2011-08-01 Matthew Heaney <heaney@adacore.com> | |
9811 | ||
9812 | * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector. | |
9813 | ||
9814 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
9815 | ||
9816 | * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: | |
9817 | Fix Replace_Slice when High is above current string size. | |
9818 | (Replace_Slice): Fix DL computation when High is above current | |
9819 | string length. | |
9820 | ||
9821 | 2011-08-01 Gary Dismukes <dismukes@adacore.com> | |
9822 | ||
9823 | * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired. | |
9824 | ||
9825 | 2011-08-01 Matthew Heaney <heaney@adacore.com> | |
9826 | ||
9827 | * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child | |
9828 | of node. | |
9829 | ||
9830 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
9831 | ||
9832 | * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor | |
9833 | reformatting. | |
9834 | ||
9835 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
9836 | ||
9837 | * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named | |
9838 | access to protected subprograms in generic bodies. | |
9839 | * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a | |
9840 | protected type, indicate that the convention of the subprogram is | |
9841 | Convention_Protected, because it may be used in subsequent declarations | |
9842 | within the protected declaration. | |
9843 | ||
9844 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
9845 | ||
9846 | * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init" | |
9847 | and "final" procedures when the name of the library is "ada", to avoid | |
9848 | duplicate symbols "adainit" and "adafinal" in executables. | |
9849 | ||
9850 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
9851 | ||
9852 | * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a | |
9853 | quantified expression that appears within a postcondition and uses the | |
9854 | Ada2012 'Result attribute. | |
9855 | ||
9856 | 2011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
9857 | ||
9858 | * init.c (__gnat_error_handler): Cast reason to int. | |
9859 | (__gnat_install_handler): Explain sa_sigaction use. | |
9860 | ||
9861 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> | |
9862 | ||
9863 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the | |
9864 | subprogram has copy-in copy-out parameters, try to promote the mode of | |
9865 | the return type if it is passed in registers. | |
9866 | ||
9867 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> | |
9868 | ||
9869 | * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the | |
9870 | left operand as addressable. | |
9871 | ||
9872 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> | |
9873 | ||
9874 | * gcc-interface/gigi.h (build_function_stub): Remove. | |
9875 | (build_return_expr): Likewise. | |
9876 | (convert_vms_descriptor): Declare. | |
9877 | * gcc-interface/utils.c (convert_vms_descriptor): Make global. | |
9878 | (build_function_stub): Move to... | |
9879 | * gcc-interface/utils2.c (build_return_expr): Move to... | |
9880 | * gcc-interface/trans.c (build_function_stub): ...here. | |
9881 | (build_return_expr): ...here. | |
9882 | (Subprogram_Body_to_gnu): Add local variable for language_function. | |
9883 | Disconnect the parameter attributes cache, if any, once done with it. | |
9884 | Call end_subprog_body only after setting the end_locus. | |
9885 | Build the stub associated with the function, if any, at the very end. | |
9886 | (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local | |
9887 | variables and streamline control flow. | |
9888 | ||
9889 | 2011-07-23 Arnaud Charlet <charlet@adacore.com> | |
9890 | ||
9891 | PR ada/49819 | |
9892 | * gcc-interface/Makefile.in (powerpc-linux): Remove reference to | |
9893 | g-trasym-dwarf.adb. | |
9894 | ||
9895 | 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
9896 | ||
9897 | PR bootstrap/49794 | |
9898 | * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler): | |
9899 | Assign to act.sa_sigaction. | |
9900 | * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast | |
9901 | current->return_address to char * before arithmetic. | |
9902 | ||
9903 | 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
9904 | ||
9905 | * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation. | |
9906 | Correct argument types. | |
9907 | Extract code from reason. | |
9908 | (__gnat_install_handler): Assign to act.sa_sigaction. | |
9909 | ||
9910 | 2011-07-21 Eric Botcazou <ebotcazou@adacore.com> | |
9911 | ||
9912 | * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to... | |
9913 | (GNAT1_OBJS): ...here. | |
9914 | ||
9915 | 2011-07-15 Eric Botcazou <ebotcazou@adacore.com> | |
9916 | ||
9917 | PR ada/48711 | |
9918 | * g-socthi-mingw.adb (Fill): Fix formatting. | |
9919 | ||
9920 | * gcc-interface/gigi.h: Move around comment. | |
9921 | ||
9922 | 2011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | |
9923 | ||
9924 | PR ada/46350 | |
9925 | * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast. | |
9926 | ||
9927 | 2011-07-14 Florian Weimer <fw@deneb.enyo.de> | |
9928 | ||
9929 | PR ada/48711 | |
9930 | * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL. | |
9931 | ||
9932 | 2011-07-13 Eric Botcazou <ebotcazou@adacore.com> | |
9933 | ||
9934 | * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit | |
9935 | range comparison if Pmode is SImode. | |
9936 | ||
9937 | 2011-07-12 Laurent GUERBY <laurent@guerby.net> | |
9938 | Eric Botcazou <ebotcazou@adacore.com> | |
9939 | ||
9940 | * adadecode.c: Wrap up in extern "C" block. | |
9941 | * adadecode.h: Likewise. | |
9942 | * adaint.c: Likewise. Remove 'const' keyword. | |
9943 | * adaint.h: Likewise. | |
9944 | * argv.c: Likewise. | |
9945 | * atree.h: Likewise. | |
9946 | * cio.c: Likewise. | |
9947 | * cstreams.c: Likewise. | |
9948 | * env.c: Likewise. | |
9949 | * exit.c: Likewise. | |
9950 | * fe.h: Likewise. | |
9951 | * final.c: Likewise. | |
9952 | * init.c: Likewise. | |
9953 | * initialize.c: Likewise. | |
9954 | * link.c: Likewise. | |
9955 | * namet.h: Likewise. | |
9956 | * nlists.h: Likewise. | |
9957 | * raise.c: Likewise. | |
9958 | * raise.h: Likewise. | |
9959 | * repinfo.h: Likewise. | |
9960 | * seh_init.c: Likewise. | |
9961 | * targext.c: Likewise. | |
9962 | * tracebak.c: Likewise. | |
9963 | * uintp.h: Likewise. | |
9964 | * urealp.h: Likewise. | |
9965 | * xeinfo.adb: Wrap up generated C code in extern "C" block. | |
9966 | * xsinfo.adb: Likewise. | |
9967 | * xsnamest.adb: Likewise. | |
9968 | * gcc-interface/gadaint.h: Wrap up in extern "C" block. | |
9969 | * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block. | |
9970 | * gcc-interface/misc.c: Likewise. | |
9971 | * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER. | |
9972 | (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and | |
9973 | ada/targext.o here... | |
9974 | (GNAT_ADA_OBJS): ...and not here. | |
9975 | (GNAT1_ADA_OBJS): Add ada/b_gnat1.o. | |
9976 | (GNATBIND_OBJS): Reorder. | |
9977 | ||
9978 | 2011-07-07 Richard Henderson <rth@redhat.com> | |
9979 | ||
9980 | * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call | |
9981 | dwarf2out_frame_init. | |
9982 | ||
9983 | 2011-07-07 Eric Botcazou <ebotcazou@adacore.com> | |
9984 | ||
9985 | * gcc-interface/misc.c (gnat_init): Tweak previous change. | |
9986 | ||
9987 | 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
9988 | ||
9989 | PR target/39150 | |
9990 | * gcc-interface/Makefile.in: Handle x86_64-solaris2. | |
9991 | ||
9992 | 2011-07-06 Richard Guenther <rguenther@suse.de> | |
9993 | ||
9994 | * gcc-interface/misc.c (gnat_init): Merge calls to | |
9995 | build_common_tree_nodes and build_common_tree_nodes_2. | |
9996 | Re-initialize boolean_false_node. | |
9997 | ||
9998 | 2011-07-02 Eric Botcazou <ebotcazou@adacore.com> | |
9999 | Olivier Hainque <hainque@adacore.com> | |
10000 | Nicolas Setton <setton@adacore.com> | |
10001 | ||
10002 | * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on | |
10003 | the type according to the ARTIFICIAL_P parameter. | |
10004 | (create_type_decl): Likewise. | |
10005 | (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1. | |
10006 | ||
10007 | 2011-07-01 Eric Botcazou <ebotcazou@adacore.com> | |
10008 | ||
10009 | * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command. | |
10010 | (gnatbind): Likewise. | |
10011 | ||
10012 | 2011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
10013 | ||
10014 | * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL). | |
10015 | ||
10016 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> | |
10017 | ||
10018 | * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE | |
10019 | local variable throughout. Remove useless call to Base_Type. | |
10020 | (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout. | |
10021 | Take it also into account for the volatileness of the field. Set the | |
10022 | TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings. | |
10023 | ||
10024 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> | |
10025 | ||
10026 | * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP | |
10027 | on a dereference built for a by-ref object if it has an address clause. | |
10028 | ||
10029 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> | |
10030 | ||
10031 | * einfo.ads (Address_Taken): Document use for the second argument of | |
10032 | Asm_Input and Asm_Output attributes. | |
10033 | * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second | |
10034 | argument is an entity name, then set Address_Taken on it. | |
10035 | <Attribute_Asm_Output>: Likewise. | |
10036 | * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the | |
10037 | Attr_Asm_Input and Attr_Asm_Output attributes explicitly. | |
10038 | (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in | |
10039 | memory and is a CONST_DECL, retrieve its corresponding VAR_DECL. | |
10040 | ||
10041 | 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com> | |
10042 | ||
10043 | PR middle-end/46500 | |
10044 | * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args. | |
10045 | ||
10046 | 2011-06-14 Joseph Myers <joseph@codesourcery.com> | |
10047 | ||
10048 | * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o. | |
10049 | (ada/utils.o): Update dependencies. | |
10050 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add | |
10051 | ../../../libcpp/libcpp.a. | |
10052 | * gcc-interface/utils.c: Include common/common-target.h. | |
10053 | (process_attributes): Use targetm_common.have_named_sections. | |
10054 | ||
10055 | 2011-06-07 Richard Guenther <rguenther@suse.de> | |
10056 | ||
10057 | * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call | |
10058 | set_sizetype. | |
10059 | ||
10060 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> | |
10061 | ||
10062 | * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the | |
10063 | TREE_THIS_NOTRAP flag. | |
10064 | ||
10065 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> | |
10066 | ||
10067 | * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>: | |
10068 | Fix thinko. | |
10069 | ||
10070 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> | |
10071 | ||
10072 | * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred | |
10073 | constants whose full view has discriminants specially. | |
10074 | ||
10075 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> | |
10076 | ||
10077 | * gcc-interface/utils.c: Include diagnostic.h. | |
10078 | (gnat_write_global_declarations): Output debug information for all | |
10079 | global type declarations before finalizing the compilation unit. | |
10080 | * gcc-interface/Make-lang.in (ada/utils.o): Add dependency. | |
10081 | ||
10082 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> | |
10083 | ||
10084 | * gcc-interface/utils.c (def_fn_type): Remove extra va_end. | |
10085 | ||
10086 | 2011-05-25 Kai Tietz <ktietz@redhat.com> | |
10087 | ||
10088 | * adaint.c (__gnat_to_canonical_file_list_next): Use array | |
10089 | initialization instead of const/none-const pointer assignment. | |
10090 | ||
10091 | 2011-05-24 Joseph Myers <joseph@codesourcery.com> | |
10092 | ||
10093 | * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include | |
10094 | $(EXTRA_GNAT1_OBJS). | |
10095 | (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS). | |
10096 | (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove. | |
10097 | (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a. | |
10098 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use | |
10099 | libcommon-target.a instead of prefix.o. | |
10100 | ||
10101 | 2011-05-21 Joseph Myers <joseph@codesourcery.com> | |
10102 | ||
10103 | PR ada/49097 | |
10104 | * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS). | |
10105 | ||
10106 | 2011-05-20 Joseph Myers <joseph@codesourcery.com> | |
10107 | ||
10108 | * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o. | |
10109 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a | |
10110 | instead of version.o. | |
10111 | ||
10112 | 2011-05-18 Kai Tietz <ktietz@redhat.com> | |
10113 | ||
10114 | * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use | |
10115 | boolean_false_node instead of integer_zero_node. | |
10116 | (convert_with_check): Likewise. | |
10117 | * gcc-interface/decl.c (choices_to_gnu): Likewise. | |
10118 | ||
10119 | 2011-05-12 Eric Botcazou <ebotcazou@adacore.com> | |
10120 | ||
10121 | * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the | |
10122 | type of the parameter is an unconstrained array, convert the actual to | |
10123 | the type of the formal in the In Out and Out cases as well. | |
10124 | ||
10125 | 2011-05-11 Nathan Froyd <froydnj@codesourcery.com> | |
10126 | ||
10127 | * gcc-interface/utils.c (def_fn_type): Don't call build_function_type; | |
10128 | call build_function_type_array or build_varargs_function_type_array | |
10129 | instead. | |
10130 | (create_subprog_type): Don't call build_function_type; call | |
10131 | build_function_type_vec instead. | |
10132 | ||
10133 | 2011-05-11 Nathan Froyd <froydnj@codesourcery.com> | |
10134 | ||
10135 | * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL. | |
10136 | (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL. | |
10137 | (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL. | |
10138 | ||
10139 | 2011-05-07 Eric Botcazou <ebotcazou@adacore.com> | |
10140 | ||
10141 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces. | |
10142 | ||
10143 | * gcc-interface/gigi.h (global_bindings_p): Adjust prototype. | |
10144 | * gcc-interface/utils.c (global_bindings_p): Return bool and simplify. | |
10145 | ||
10146 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> | |
10147 | ||
10148 | * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label. | |
10149 | ||
10150 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> | |
10151 | ||
10152 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators | |
10153 | instead of accessing TYPE_ARG_TYPES directly. | |
10154 | * gcc-interface/utils.c (handle_nonnull_attribute): Likewise. | |
10155 | ||
10156 | 2011-05-05 Eric Botcazou <ebotcazou@adacore.com> | |
10157 | ||
10158 | PR ada/48844 | |
10159 | * gcc-interface/gigi.h (get_variant_part): Declare. | |
10160 | * gcc-interface/decl.c (get_variant_part): Make global. | |
10161 | * gcc-interface/utils2.c (find_common_type): Do not return T1 if the | |
10162 | types have the same constant size, are record types and T1 has a | |
10163 | variant part while T2 doesn't. | |
10164 | ||
10165 | 2011-05-05 Eric Botcazou <ebotcazou@adacore.com> | |
10166 | ||
10167 | * gcc-interface/utils.c (begin_subprog_body): Do not call | |
10168 | get_pending_sizes. | |
10169 | (end_subprog_body): Likewise. | |
10170 | ||
10171 | 2011-05-04 Richard Guenther <rguenther@suse.de> | |
10172 | ||
10173 | * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to | |
10174 | int_const_binop. | |
10175 | (pos_to_constructor): Likewise. | |
10176 | ||
10177 | 2011-05-03 Nathan Froyd <froydnj@codesourcery.com> | |
2c7f9cc0 | 10178 | Eric Botcazou <ebotcazou@adacore.com> |
052e0603 AC |
10179 | |
10180 | * gcc-interface/trans.c (gigi): Call build_function_type_list instead | |
10181 | of build_function_type. Adjust calls to... | |
10182 | (build_raise_check): ...this. Do not take a void_tree parameter. | |
10183 | Call build_function_type_list instead of build_function_type. | |
10184 | Fix head comment and swap couple of conditional blocks. | |
10185 | ||
10186 | 2011-04-30 Eric Botcazou <ebotcazou@adacore.com> | |
10187 | ||
10188 | * gnatvsn.ads (Library_Version): Bump to 4.7. | |
10189 | (Current_Year): Bump to 2011. | |
10190 | ||
10191 | 2011-04-29 Michael Matz <matz@suse.de> | |
10192 | ||
10193 | * gcc-interface/misc.c (gnat_handle_option): Set | |
10194 | warn_maybe_uninitialized. | |
10195 | ||
10196 | 2011-04-23 Gerald Pfeifer <gerald@pfeifer.com> | |
10197 | ||
10198 | * gnat_ugn.texi (Complexity Metrics Control): Update link to | |
10199 | the Watson/McCabe paper. | |
10200 | ||
10201 | 2011-04-23 Jim Meyering <meyering@redhat.com> | |
10202 | ||
10203 | * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/ | |
10204 | ||
10205 | 2011-04-22 Eric Botcazou <ebotcazou@adacore.com> | |
10206 | ||
10207 | * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE | |
10208 | onto the new type. | |
10209 | ||
10210 | 2011-04-22 Eric Botcazou <ebotcazou@adacore.com> | |
10211 | ||
10212 | * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG | |
10213 | parameter. | |
10214 | * gcc-interface/utils.c (create_subprog_decl): Likewise. Set | |
10215 | DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly. | |
10216 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add | |
10217 | ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl. | |
10218 | <all>: Do not set flags on the reused DECL node coming from an alias. | |
10219 | Set DECL_IGNORED_P on the DECL node built for subprograms if they | |
10220 | don't need debug info here... | |
10221 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here. | |
10222 | (gigi): Adjust calls to create_subprog_decl. | |
10223 | (build_raise_check): Likewise. | |
10224 | (establish_gnat_vms_condition_handler): Likewise. | |
10225 | (Compilation_Unit_to_gnu): Likewise. | |
10226 | (gnat_to_gnu): Likewise. | |
10227 | ||
10228 | 2011-04-21 Eric Botcazou <ebotcazou@adacore.com> | |
10229 | ||
10230 | * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define. | |
10231 | (NO_REORDER_ADAFLAGS): New variable. | |
10232 | (EXTRA_GNATTOOLS): Always define. | |
10233 | (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h. | |
10234 | Clean up and adjust list of files compiled with special options. | |
10235 | * gcc-interface/Make-lang.in: Likewise. | |
10236 | (ada/decl.o): Cosmetical change. | |
10237 | (ada/misc.o): Remove dependency on $(PLUGIN_H). | |
10238 | ||
10239 | 2011-04-20 Jim Meyering <meyering@redhat.com> | |
10240 | ||
10241 | * initialize.c (__gnat_initialize): Remove useless if-before-free. | |
10242 | ||
10243 | 2011-04-17 Eric Botcazou <ebotcazou@adacore.com> | |
10244 | ||
10245 | * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with | |
10246 | $(CFLAGS) on the link line. | |
10247 | ||
10248 | 2011-04-17 Eric Botcazou <ebotcazou@adacore.com> | |
10249 | ||
10250 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the | |
10251 | padded type built for the return type if it is unconstrained. | |
10252 | ||
10253 | 2011-04-14 Nathan Froyd <froydnj@codesourcery.com> | |
10254 | ||
10255 | * gcc-interface/utils.c (gnat_poplevel): Use block_chainon. | |
10256 | ||
10257 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> | |
10258 | ||
10259 | * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON | |
10260 | before calling TREE_CHAIN. | |
10261 | * gcc-interface/misc.c (gnat_init_ts): New function. | |
10262 | (LANG_HOOKS_INIT_TS): Define. | |
10263 | ||
10264 | 2011-04-12 Martin Jambor <mjambor@suse.cz> | |
10265 | ||
10266 | * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node | |
10267 | instead of cgraph_node. | |
10268 | ||
10269 | 2011-04-08 Eric Botcazou <ebotcazou@adacore.com> | |
10270 | ||
10271 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum | |
10272 | alignment on fields of the RETURN type built for the Copy-In Copy-Out | |
10273 | mechanism. | |
10274 | ||
10275 | 2011-04-08 Eric Botcazou <ebotcazou@adacore.com> | |
10276 | ||
10277 | * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers | |
10278 | of aggregate types that contain a placeholder. | |
10279 | ||
10280 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> | |
10281 | ||
10282 | * gcc-interface/utils.c (handle_sentinel_attribute): Don't use | |
10283 | TYPE_ARG_TYPES. | |
10284 | (handle_type_generic_attribute): Likewise. | |
10285 | ||
10286 | 2011-04-04 Eric Botcazou <ebotcazou@adacore.com> | |
10287 | ||
10288 | PR ada/47163 | |
10289 | * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change. | |
10290 | ||
10291 | 2011-04-04 Kai Tietz <ktietz@redhat.com> | |
10292 | ||
10293 | PR ada/47163 | |
10294 | * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets | |
10295 | to flag value. | |
10296 | ||
10297 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
10298 | ||
10299 | * gcc-interface/utils2.c (build_allocator): In the unconstrained array | |
10300 | type case, do not strip a padding type around the array type. | |
10301 | ||
10302 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
10303 | ||
10304 | * gcc-interface/utils.c (update_pointer_to): Finalize named pointer | |
10305 | types. | |
10306 | ||
10307 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
10308 | ||
10309 | * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete. | |
10310 | * gcc-interface/misc.c (gnat_handle_option): Remove special handling | |
10311 | code for -feliminate-unused-debug-types. | |
10312 | (gnat_post_options): Likewise. | |
10313 | ||
10314 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
10315 | ||
10316 | * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial | |
10317 | declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a | |
10318 | distinct copy. | |
10319 | ||
10320 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
10321 | ||
10322 | * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the | |
10323 | DECL_ARTIFICIAL flag on enumeration types. | |
10324 | ||
10325 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
10326 | ||
10327 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make | |
10328 | fat pointer types artificial unconditionally. | |
10329 | <E_Array_Subtype>: Attach the base array type as a parallel type if it | |
10330 | isn't artificial. | |
10331 | ||
10332 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
10333 | ||
10334 | * gcc-interface/gigi.h (get_dummy_type): Declare. | |
10335 | (build_dummy_unc_pointer_types): Likewise. | |
10336 | (finish_fat_pointer_type): Likewise. | |
10337 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy | |
10338 | fat pointer type has been built, complete it in place. | |
10339 | <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat | |
10340 | and thin pointers. Remove useless variable. | |
10341 | (finish_fat_pointer_type): Make global and move to... | |
10342 | * gcc-interface/utils.c (finish_fat_pointer_type): ...here. | |
10343 | (get_dummy_type): New function. | |
10344 | (build_dummy_unc_pointer_types): Likewise. | |
10345 | (gnat_pushdecl): Propage the name to the anonymous variants only. | |
10346 | (update_pointer_to): Only adjust the pointer types in the unconstrained | |
10347 | array case. | |
10348 | ||
10349 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
10350 | ||
10351 | * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag. | |
10352 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it | |
10353 | if this is a Taft amendment type and the full declaration is available. | |
10354 | * gcc-interface/trans.c (process_type): Likewise. | |
10355 | If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P. | |
10356 | (process_freeze_entity): Likewise. | |
10357 | * gcc-interface/utils.c (dummy_global): New static variable. | |
10358 | (gnat_write_global_declarations): If there are types declared as used | |
10359 | at the global level, insert them in the global hash table. | |
10360 | ||
10361 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
10362 | ||
10363 | * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param. | |
10364 | * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial | |
10365 | declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct | |
10366 | copy. | |
10367 | (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL | |
10368 | flag of the type accordingly. | |
10369 | * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type. | |
10370 | ||
10371 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
10372 | ||
10373 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer | |
10374 | finalizing types when updating the pointers to the designated type. | |
10375 | <all>: Finalize the deferred types even if we didn't defer processing | |
10376 | of incomplete types in this invocation. | |
10377 | ||
10378 | 2011-04-01 Olivier Hainque <hainque@adacore.com> | |
2c7f9cc0 AS |
10379 | Nicolas Setton <setton@adacore.com> |
10380 | Eric Botcazou <ebotcazou@adacore.com> | |
052e0603 AC |
10381 | |
10382 | * gcc-interface/misc.c (gnat_descriptive_type): New function. | |
10383 | (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type. | |
10384 | ||
10385 | 2011-03-28 Kai Tietz <ktietz@redhat.com> | |
10386 | ||
10387 | * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native | |
10388 | Windows targets. | |
10389 | (EH_MECHANISM): Use GCC exception mechanism for native Windows targets. | |
10390 | * system-mingw.ads (System): Change ZCX_By_Default default to True. | |
10391 | ||
10392 | * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype. | |
10393 | ||
10394 | 2011-03-28 Tristan Gingold <gingold@adacore.com> | |
10395 | ||
10396 | PR ada/44431 | |
10397 | * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c. | |
10398 | Use ada output of gnatbind. | |
10399 | (ada/b_gnatb.adb): Ditto. | |
10400 | (ada/b_gnat1.o, ada/b_gnatb.o): New rules. | |
10401 | (ada.mostlyclean, ada.stage1) | |
10402 | (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile) | |
10403 | (ada.stagefeedback): Adjust. | |
10404 | * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c. | |
10405 | Use ada output of gnatbind. | |
10406 | (b_gnatm.adb): Ditto. | |
10407 | (b_gnatl.o, b_gnatm.o): New rules. | |
10408 | ||
10409 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> | |
10410 | ||
10411 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL | |
10412 | for the padded type built to support a specified size or alignment. | |
10413 | ||
10414 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> | |
10415 | ||
10416 | * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment. | |
10417 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer | |
10418 | unconditionally to the end of the unit when the designated type is | |
10419 | limited_with'ed. | |
10420 | <all>: Rename local variable. Attempt to un-defer types only and do it | |
10421 | for limited_with'ed types as well. | |
10422 | (finalize_from_with_types): Adjust comment. Rename variable and tidy. | |
10423 | * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT | |
10424 | consistently and remove redundant call to finalize_from_with_types. | |
10425 | ||
10426 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> | |
10427 | ||
10428 | * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to | |
10429 | subprograms without a previous spec declared in the same unit. | |
10430 | * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined | |
10431 | subprograms at the end of the unit instead of at the beginning. | |
10432 | * gcc-interface/utils.c (create_subprog_decl): Check that the entity | |
10433 | isn't public for the special handling of non-inline functions nested | |
10434 | inside inline external functions. | |
10435 | ||
10436 | 2011-03-25 Jeff Law <law@redhat.com> | |
10437 | ||
10438 | * gcc-interface/utils.c (def_fn_type): Add missing va_end. | |
10439 | ||
10440 | 2011-03-24 Eric Botcazou <ebotcazou@adacore.com> | |
10441 | ||
10442 | * einfo.ads (Size_Depends_On_Discriminant): Adjust description. | |
10443 | * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure | |
10444 | to compute Set_Size_Depends_On_Discriminant. | |
10445 | (Layout_Type): Call it on array types in back-end layout mode. | |
10446 | * sem_util.adb (Requires_Transient_Scope): Return true for array | |
10447 | types only if the size depends on the value of discriminants. | |
10448 | * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS | |
10449 | type if the RHS is a call to a function that returns an unconstrained | |
10450 | type with default discriminant. | |
10451 | ||
10452 | 2011-03-24 Eric Botcazou <ebotcazou@adacore.com> | |
10453 | ||
10454 | * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of | |
10455 | non-conversion to the nominal result type at the end. | |
10456 | ||
10457 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> | |
10458 | ||
10459 | * gcc-interface/trans.c (create_temporary): New function taken from... | |
10460 | (create_init_temporary): ...here. Call it. | |
10461 | (call_to_gnu): Create the temporary for the return value early, if any. | |
10462 | Create it for a function with copy-in/copy-out parameters if there is | |
10463 | no target; in other cases of copy-in/copy-out, use another temporary. | |
10464 | Push the new binding level lazily. Add and rename local variables. | |
10465 | ||
10466 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> | |
10467 | ||
10468 | * gcc-interface/decl.c (validate_size): Improve comments and tweak | |
10469 | error message. | |
10470 | (set_rm_size): Likewise. | |
10471 | ||
10472 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> | |
10473 | ||
10474 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL | |
10475 | for the padded type built in order to support a specified alignment. | |
10476 | Fix incorrect formatting. | |
10477 | ||
10478 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> | |
10479 | ||
10480 | PR bootstrap/48216 | |
10481 | * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL. | |
10482 | ||
10483 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> | |
10484 | ||
10485 | * gcc-interface/decl.c (components_to_record): Add REORDER parameter, | |
10486 | rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter | |
10487 | to the end of the list. Adjust recursive call. Rename local variable. | |
10488 | If REORDER is true, reorder components of the record type. | |
10489 | (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to | |
10490 | components_to_record and adjust the parameter list. | |
10491 | ||
10492 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> | |
10493 | ||
10494 | * gcc-interface/decl.c (elaborate_expression_1): When optimization is | |
10495 | disabled, use the variable for bounds of loop iteration scheme. | |
10496 | ||
10497 | 2011-03-21 Kai Tietz <ktietz@redhat.com> | |
10498 | ||
10499 | PR target/12171 | |
10500 | * gcc-interface/utils.c (gnat_internal_attribute_table): Add column. | |
10501 | ||
10502 | 2011-03-17 Eric Botcazou <ebotcazou@adacore.com> | |
10503 | ||
10504 | * gcc-interface/decl.c (elaborate_expression_1): Try harder to find | |
10505 | out whether the expression is read-only. Short-circuit placeholder | |
10506 | case and rename a couple of local variables. | |
10507 | ||
10508 | 2011-03-17 Eric Botcazou <ebotcazou@adacore.com> | |
10509 | ||
10510 | * gcc-interface/gigi.h (smaller_form_type_p): Declare. | |
10511 | * gcc-interface/trans.c (smaller_form_type_p): Make global and move... | |
10512 | * gcc-interface/utils.c (smaller_form_type_p): ...to here. | |
10513 | (convert): Deal with conversions from a smaller form type specially. | |
10514 | ||
10515 | 2011-02-14 Eric Botcazou <ebotcazou@adacore.com> | |
10516 | ||
10517 | * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and | |
10518 | its argument, except for the special -I- switch. | |
10519 | ||
10520 | 2011-02-12 Gerald Pfeifer <gerald@pfeifer.com> | |
10521 | ||
10522 | * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to | |
10523 | "Ada Issues". | |
10524 | ||
10525 | 2011-02-08 Eric Botcazou <ebotcazou@adacore.com> | |
10526 | ||
10527 | * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs. | |
10528 | ||
10529 | 2011-02-03 Eric Botcazou <ebotcazou@adacore.com> | |
10530 | ||
10531 | * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of | |
10532 | GNAT_FORMAL. | |
10533 | * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to... | |
10534 | * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE | |
10535 | instead of GNAT_FORMAL. Protect the expression against multiple uses. | |
10536 | Do not generate the check directly, instead instantiate the template | |
10537 | check present in the descriptor. | |
10538 | (make_descriptor_field): Move around. | |
10539 | (build_vms_descriptor32): Build a template check in the POINTER field. | |
10540 | (build_vms_descriptor): Remove useless suffixes. | |
10541 | * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call. | |
10542 | ||
10543 | 2011-01-26 Eric Botcazou <ebotcazou@adacore.com> | |
10544 | ||
10545 | PR bootstrap/47467 | |
10546 | * targext.c: Include target files if IN_RTS is defined. | |
10547 | ||
10548 | 2011-01-26 Richard Guenther <rguenther@suse.de> | |
10549 | ||
10550 | PR bootstrap/47467 | |
10551 | * targext.c: Include config.h. | |
10552 | * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H) | |
10553 | dependency. | |
10554 | ||
10555 | 2011-01-04 Pascal Obry <obry@adacore.com> | |
2c7f9cc0 | 10556 | Eric Botcazou <ebotcazou@adacore.com> |
052e0603 AC |
10557 | |
10558 | * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit. | |
10559 | ||
10560 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> | |
10561 | ||
10562 | * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the | |
10563 | end-of-case on the end label and its associated gotos, if any. | |
10564 | ||
10565 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> | |
10566 | ||
10567 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the | |
10568 | expressions of the parameter cache within the statement group of | |
10569 | the CICO mechanism. | |
10570 | ||
10571 | 2011-01-04 Olivier Hainque <hainque@adacore.com> | |
2c7f9cc0 | 10572 | Eric Botcazou <ebotcazou@adacore.com> |
052e0603 AC |
10573 | |
10574 | * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default. | |
10575 | (set_end_locus_from_node): New function. | |
10576 | (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we | |
10577 | make and the function end_locus. | |
10578 | (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus | |
10579 | for the elaboration subprogram. | |
10580 | (set_gnu_expr_location_from_node) <default case>: Use it to attempt to | |
10581 | set the end_locus of the expression as well. | |
10582 | ||
10583 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> | |
10584 | ||
10585 | PR ada/47131 | |
10586 | * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make | |
10587 | variables that are referenced in exception handlers volatile. | |
10588 | ||
10589 | ||
10590 | \f | |
10591 | Copyright (C) 2011 Free Software Foundation, Inc. | |
10592 | ||
10593 | Copying and distribution of this file, with or without modification, | |
10594 | are permitted in any medium without royalty provided the copyright | |
10595 | notice and this notice are preserved. | |
10596 | ||
10597 | * gnat_rm.texi: Ramification of pragma Eliminate documentation | |
10598 | - fix bugs in the description of Source_Trace; | |
10599 | - get rid of UNIT_NAME; | |
10600 | ||
4fbad0ba AC |
10601 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
10602 | ||
10603 | * exp_ch9.adb | |
10604 | (Build_Dispatching_Requeue): Adding support for VM targets | |
10605 | since we cannot directly reference the Tag entity. | |
10606 | * exp_sel.adb (Build_K): Adding support for VM targets. | |
10607 | (Build_S_Assignment): Adding support for VM targets. | |
10608 | * exp_disp.adb | |
10609 | (Default_Prim_Op_Position): In VM targets do not restrict availability | |
10610 | of predefined interface primitives to compiling in Ada 2005 mode. | |
10611 | (Is_Predefined_Interface_Primitive): In VM targets this service is not | |
10612 | restricted to compiling in Ada 2005 mode. | |
10613 | (Make_VM_TSD): Generate code that declares and initializes the OSD | |
10614 | record. Needed to support dispatching calls through synchronized | |
10615 | interfaces. | |
10616 | * exp_ch3.adb | |
10617 | (Make_Predefined_Primitive_Specs): Enable generation of predefined | |
10618 | primitives associated with synchronized interfaces. | |
10619 | (Make_Predefined_Primitive_Bodies): Enable generation of predefined | |
10620 | primitives associated with synchronized interfaces. | |
10621 | ||
10622 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
10623 | ||
10624 | * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of | |
10625 | statements hidden in SPARK if preceded by the HIDE directive | |
10626 | (Parse_Exception_Handlers): mark each exception handler in a sequence of | |
10627 | exception handlers as hidden in SPARK if preceded by the HIDE directive | |
10628 | * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK | |
10629 | if starting with the HIDE directive | |
10630 | * par-ch7.adb (P_Package): mark a package body hidden in SPARK if | |
10631 | starting with the HIDE directive; mark the declarations in a private | |
10632 | part as hidden in SPARK if the private part starts with the HIDE | |
10633 | directive | |
10634 | * restrict.adb, restrict.ads | |
10635 | (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK | |
10636 | (Is_In_Hidden_Part_In_SPARK): new function which returns whether its | |
10637 | argument node belongs to a part which is hidden in SPARK | |
10638 | (Check_SPARK_Restriction): do not issue violations on nodes in hidden | |
10639 | parts in SPARK; protect the possibly costly call to | |
10640 | Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on | |
10641 | * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration | |
10642 | * scng.adb (Accumulate_Token_Checksum_GNAT_6_3, | |
10643 | Accumulate_Token_Checksum_GNAT_5_03): add case for new token | |
10644 | Tok_SPARK_Hide. | |
10645 | (Scan): recognize special comment starting with '#' and followed by | |
10646 | SPARK keyword "hide" as a HIDE directive. | |
10647 | ||
10648 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
10649 | ||
10650 | * types.ads, erroutc.ads: Minor reformatting. | |
10651 | ||
10652 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
10653 | ||
10654 | * link.c: Add response file support for cross platforms. | |
10655 | ||
6ff6152d ES |
10656 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
10657 | ||
10658 | * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression | |
10659 | in an association, set parent field of copy before partial analysis. | |
10660 | * sem_res.adb (Resolve_Slice): create reference to itype only when | |
10661 | expansion is enabled. | |
10662 | ||
975c6896 YM |
10663 | 2011-08-02 Yannick Moy <moy@adacore.com> |
10664 | ||
10665 | * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set | |
10666 | for new flag denoting which subprogram bodies are in ALFA | |
10667 | * restrict.adb, sem_ch7.adb: Update comment | |
10668 | * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, | |
10669 | sem_ch9.adb, sem_res.adb: Add calls to | |
10670 | Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs. | |
10671 | * sem_ch6.adb (Analyze_Function_Return): add calls to | |
10672 | Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the | |
10673 | middle of the body, and extended return. | |
10674 | (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument | |
10675 | False when missing return. | |
10676 | (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA | |
10677 | to True for subprograms whose spec is in ALFA. Remove later on the flag | |
10678 | on the entity used for a subprogram body when there exists a separate | |
10679 | declaration. | |
10680 | * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA): | |
10681 | if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to | |
10682 | False, otherwise do nothing. | |
10683 | ||
afc8324d AC |
10684 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10685 | ||
10686 | * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting. | |
10687 | ||
10688 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
10689 | ||
10690 | * sem_ch4.ads: minor formatting. | |
10691 | ||
2ba431e5 YM |
10692 | 2011-08-02 Yannick Moy <moy@adacore.com> |
10693 | ||
10694 | * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, | |
10695 | debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb, | |
10696 | errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb, | |
10697 | restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb, | |
10698 | opt.ads: cleanup of SPARK mode | |
10699 | ||
0f853035 YM |
10700 | 2011-08-02 Yannick Moy <moy@adacore.com> |
10701 | ||
10702 | * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard | |
10703 | types. | |
10704 | * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities | |
10705 | (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA | |
10706 | * sem_ch3.adb | |
10707 | (Analyze_Object_Declaration): set Is_In_ALFA flag for objects | |
10708 | (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes | |
10709 | (Constrain_Integer): set Is_In_ALFA flag for integer subtypes | |
10710 | (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration | |
10711 | types. | |
10712 | (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with | |
10713 | non-static range. | |
10714 | * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for | |
10715 | functions whose return type is not in ALFA. | |
10716 | (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram | |
10717 | specifications. | |
10718 | (Process_Formals): unset Is_In_ALFA flag for subprograms if a | |
10719 | parameter's type is not in ALFA. | |
10720 | * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard | |
10721 | types are in ALFA. | |
10722 | ||
d2b10647 ES |
10723 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
10724 | ||
10725 | * sem_ch6 (Analyze_Expression_Function): treat the function as | |
10726 | Inline_Always, and introduce a subprogram declaration for it when it is | |
10727 | not a completion. | |
10728 | * inline.adb (Add_Inlined_Body): recognize bodies that come from | |
10729 | expression functions, so that the back-end can determine whether they | |
10730 | can in fact be inlined. | |
10731 | * sem_util.adb (Is_Expression_Function): predicate to determine whether | |
10732 | a function body comes from an expression function. | |
10733 | ||
c7b9d548 AC |
10734 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> |
10735 | ||
10736 | * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming | |
10737 | null exclusions to test Can_Never_Be_Null on the anonymous access types | |
10738 | of the formals rather than testing the formals themselves. Exclude this | |
10739 | check in cases where the Old_Formal is marked as a controlling formal, | |
10740 | to avoid issuing spurious errors for bodies completing dispatching | |
10741 | operations (due to the flag not getting set on controlling access | |
10742 | formals in body specs). | |
10743 | (Find_Corresponding_Spec): When checking full and subtype conformance of | |
10744 | subprogram bodies in instances, pass Designated and E in that order, for | |
10745 | consistency with the expected order of the formals (New_Id followed by | |
10746 | Old_Id). | |
10747 | ||
10748 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10749 | ||
10750 | * sem_ch8.adb: Minor reformatting. | |
10751 | ||
1138cf59 AC |
10752 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
10753 | ||
10754 | * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure | |
10755 | Check_Class_Wide_Actual, to implement AI05-0071, on defaulted | |
10756 | primitive operations of class-wide actuals. | |
10757 | ||
10758 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
10759 | ||
10760 | * exp_atag.ads, exp_atag.adb | |
10761 | (Build_Common_Dispatching_Select_Statements): Remove argument Loc | |
10762 | since its value is implicitly passed in argument Typ. | |
10763 | * exp_disp.adb (Make_Disp_Conditional_Select_Body, | |
10764 | Make_Disp_Timed_Select_Body): Remove Loc in calls to routine | |
10765 | Build_Common_Dispatching_Select_Statements. | |
10766 | ||
7b9db926 RD |
10767 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10768 | ||
10769 | * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads, | |
10770 | exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments. | |
10771 | Minor reformatting. | |
10772 | ||
e8374e7a AC |
10773 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10774 | ||
10775 | * sem_res.adb: Minor reformatting. | |
10776 | * sem_prag.adb: Minor reformatting. | |
10777 | ||
10778 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
10779 | ||
10780 | * exp_atag.adb, exp_atags.ads | |
10781 | (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr | |
10782 | by the tagged type Entity. Required to use this routine in the VM | |
10783 | targets since we do not have available the Tag entity in the VM | |
10784 | platforms. | |
10785 | * exp_ch6.adb | |
10786 | (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package | |
10787 | Ada.Tags has not been previously loaded. | |
10788 | * exp_ch7.adb | |
10789 | (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke | |
10790 | Build_VM_TSDs if package Ada.Tags has not been previously loaded. | |
10791 | * sem_aux.adb | |
10792 | (Enclosing_Dynamic_Scope): Add missing support to handle the full | |
10793 | view of enclosing scopes. Required to handle enclosing scopes that | |
10794 | are synchronized types whose full view is a task type. | |
10795 | * exp_disp.adb | |
10796 | (Build_VM_TSDs): Minor code improvement to avoid generating and | |
10797 | analyzing lists with empty nodes. | |
10798 | (Make_Disp_Asynchronous_Select_Body): Add support for VM targets. | |
10799 | (Make_Disp_Conditional_Select_Body): Add support for VM targets. | |
10800 | (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets. | |
10801 | (Make_Disp_Timed_Select_Body): Add support for VM targets. | |
10802 | (Make_Select_Specific_Data_Table): Add support for VM targets. | |
10803 | (Make_VM_TSD): Generate code to initialize the SSD structure of | |
10804 | the TSD. | |
10805 | ||
10806 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
10807 | ||
10808 | * lib-writ.adb (Write_ALI): when ALFA mode is set, write local | |
10809 | cross-references section in ALI. | |
10810 | * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub | |
10811 | (enclosing subprogram), Slc (location of Sub) and Sun (unit number of | |
10812 | Sub). | |
10813 | (Enclosing_Subprogram_Or_Package): new function to return the enclosing | |
10814 | subprogram or package entity of a node | |
10815 | (Is_Local_Reference_Type): new function returns True for references | |
10816 | selected in local cross-references. | |
10817 | (Lt): function extracted from Lt in Output_References | |
10818 | (Write_Entity_Name): function extracted from Output_References | |
10819 | (Generate_Definition): generate reference with type 'D' for definition | |
10820 | of objects (object declaration and parameter specification), with | |
10821 | appropriate locations and units, for use in local cross-references. | |
10822 | (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created | |
10823 | references of type 'I' for initialization in object definition. | |
10824 | (Output_References): move part of function Lt and procedure | |
10825 | Write_Entity_Name outside of the body. Ignore references of types 'D' | |
10826 | and 'I' introduced for local cross-references. | |
10827 | (Output_Local_References): new procedure to output the local | |
10828 | cross-references sections. | |
10829 | (Lref_Entity_Status): new array defining whether an entity is a local | |
10830 | * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference | |
10831 | with 'I' type when initialization expression is present. | |
10832 | * get_scos.adb, get_scos.ads: Correct comments and typos | |
10833 | ||
1f6439e3 AC |
10834 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
10835 | ||
10836 | * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in | |
10837 | the JVM target. | |
10838 | * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in | |
10839 | the JVM target. | |
10840 | * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no | |
10841 | TSD support. | |
10842 | ||
10843 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
10844 | ||
10845 | * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line | |
10846 | (No_Space_Img): New function | |
10847 | (Find_Excluded_Sources): When reading from a file, record the file name | |
10848 | and the line number for each excluded source. | |
10849 | (Mark_Excluded_Sources): When reporting an error, if the excluded | |
10850 | sources were read from a file, include file name and line number in | |
10851 | the error message. | |
10852 | ||
10853 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10854 | ||
10855 | * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2). | |
10856 | ||
ab027d28 RD |
10857 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10858 | ||
10859 | * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting | |
10860 | ||
b3b28b0c JM |
10861 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
10862 | ||
10863 | * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the | |
10864 | generation of TSDs to the DOTNET compiler. | |
10865 | * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the | |
10866 | generation of TSDs to the DOTNET compiler. | |
10867 | ||
9732e886 JM |
10868 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
10869 | ||
10870 | * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data | |
10871 | record of all the tagged types declared inside library level package | |
10872 | declarations, library level package bodies or library level subprograms. | |
10873 | * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD | |
10874 | associated with a given tagged type. | |
10875 | (Build_VM_TSDs): New subprogram. | |
10876 | * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main | |
10877 | compilation units that are subprograms. | |
10878 | * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main | |
10879 | compilation units that are package bodies. | |
10880 | (Expand_N_Package_Declaration): Generate TSDs of the main compilation | |
10881 | units that are a package declaration or a package instantiation. | |
10882 | * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code | |
10883 | reorganization to improve the error generated by the frontend when the | |
10884 | function Ada.Tags.Secondary_Tag is not available. | |
10885 | * rtsfind.ads (RE_Register_TSD): New runtime entity. | |
10886 | * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup. | |
10887 | ||
e526d0c7 AC |
10888 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
10889 | ||
10890 | * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode. | |
10891 | ||
10892 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10893 | ||
10894 | * s-imenne.ads: Minor reformatting. | |
10895 | ||
10896 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10897 | ||
10898 | * a-stunau.ads: Add pragma Suppress_Initialization for Big_String | |
10899 | * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed | |
10900 | * s-stalib.ads: Add pragma Suppress_Initialization for Big_String | |
10901 | ||
10902 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10903 | ||
10904 | * einfo.ads (Materialize_Entity): Document this is only for renamings | |
10905 | * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate | |
10906 | required debug information in the case where we transform the object | |
10907 | declaration into a renaming declaration. | |
10908 | * exp_ch4.adb (Expand_Concatenate): Generate debug info for result | |
10909 | object | |
10910 | * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of | |
10911 | Materialize_Entity. | |
10912 | ||
5b1e6aca RD |
10913 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10914 | ||
10915 | * einfo.ads, einfo.adb (Suppress_Initialization): Replaces | |
10916 | Suppress_Init_Procs. | |
10917 | * exp_ch3.adb, exp_disp.adb, freeze.adb: Use | |
10918 | Suppress_Initialization/Initialization_Suppressed. | |
10919 | * gnat_rm.texi: New documentation for pragma Suppress_Initialization | |
10920 | * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function | |
10921 | * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed | |
10922 | * sem_prag.adb: New processing for pragma Suppress_Initialization. | |
10923 | ||
5ad4969d RD |
10924 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10925 | ||
10926 | * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb: | |
10927 | Minor reformatting. | |
10928 | ||
8c4ee6f5 AC |
10929 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
10930 | ||
10931 | * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can | |
10932 | only have inheritable classwide pre/postconditions. | |
10933 | ||
10934 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
10935 | ||
10936 | * a-tags.ads, a-tags.adb (Check_TSD): New subprogram. | |
10937 | * rtsfind.ads (RE_Check_TSD): New runtime entity. | |
10938 | * exp_disp.adb (Make_DT): Generate call to the new runtime routine that | |
10939 | checks if the external tag of a type is the same as the external tag | |
10940 | of some other declaration. | |
10941 | ||
0b3d16c0 AC |
10942 | 2011-08-02 Thomas Quinot <quinot@adacore.com> |
10943 | ||
10944 | * s-taskin.ads: Minor reformatting. | |
10945 | ||
10946 | 2011-08-02 Emmanuel Briot <briot@adacore.com> | |
10947 | ||
10948 | * g-comlin.adb (Display_Help): swap the order in which it prints the | |
10949 | short help and the general usage. | |
10950 | ||
10951 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10952 | ||
10953 | * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly | |
10954 | the aspect declarations and attach them to the generic copy for | |
10955 | subsequent analysis. | |
10956 | (Analyze_Subprogram_Instantiation): copy explicitly the aspect | |
10957 | declarations of the generic tree to the new subprogram declarations. | |
10958 | * sem_attr.adb (Check_Precondition_Postcondition): recognize | |
10959 | conditions that apply to a subprogram instance. | |
10960 | ||
10961 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10962 | ||
10963 | * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project]. | |
10964 | ||
10965 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10966 | ||
10967 | * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged | |
10968 | private type with a tagged full view is not derived in the immediate | |
10969 | scope of the partial view, (RM 7.3 (7)) use the scope of the base type. | |
10970 | ||
4637729f AC |
10971 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10972 | ||
10973 | * exp_ch4.adb: Minor reformatting. | |
10974 | ||
10975 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10976 | ||
10977 | * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an | |
10978 | Ada2012 iterator, the loop will be rewritten during expansion into a | |
10979 | while loop with a cursor and an element declaration. Do not analyze the | |
10980 | body in this case, because if the container is for indefinite types the | |
10981 | actual subtype of the elements will only be determined when the cursor | |
10982 | declaration is analyzed. | |
10983 | ||
10984 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
10985 | ||
10986 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore | |
10987 | size/alignment related attributes in CodePeer_Mode. | |
10988 | ||
10989 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> | |
10990 | ||
10991 | * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to | |
10992 | Prepend_Element, since this can result in the operation getting the | |
10993 | wrong slot in the full type's dispatch table if the full type has | |
10994 | inherited operations. The incomplete type's operation will get added | |
10995 | to the proper position in the full type's primitives | |
10996 | list later in Sem_Disp.Check_Operation_From_Incomplete_Type. | |
10997 | (Process_Incomplete_Dependents): Add Is_Primitive test when checking for | |
10998 | dispatching operations, since there are cases where nonprimitive | |
10999 | subprograms can get added to the list of incomplete dependents (such | |
11000 | as subprograms in nested packages). | |
11001 | * sem_ch6.adb (Process_Formals): First, remove test for being in a | |
11002 | private part when determining whether to add a primitive with a | |
11003 | parameter of a tagged incomplete type to the Private_Dependents list. | |
11004 | Such primitives can also occur in the visible part, and should not have | |
11005 | been excluded from being private dependents. | |
11006 | * sem_ch7.adb (Uninstall_Declarations): When checking the rule of | |
11007 | RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents | |
11008 | list of a Taft-amendment incomplete type is a primitive before issuing | |
11009 | an error that the full type must appear in the same unit. There are | |
11010 | cases where nonprimitives can be in the list (such as subprograms in | |
11011 | nested packages). | |
11012 | * sem_disp.adb (Derives_From): Use correct condition for checking that | |
11013 | a formal's type is derived from the type of the corresponding formal in | |
11014 | the parent subprogram (the condition was completely wrong). Add | |
11015 | checking that was missing for controlling result types being derived | |
11016 | from the result type of the parent operation. | |
11017 | ||
4c60de0c YM |
11018 | 2011-08-02 Yannick Moy <moy@adacore.com> |
11019 | ||
11020 | * errout.adb (First_Node): minor renaming | |
11021 | * restrict.adb (Check_Formal_Restriction): put restriction warning on | |
11022 | first node. | |
11023 | ||
f5afb270 AC |
11024 | 2011-08-02 Yannick Moy <moy@adacore.com> |
11025 | ||
11026 | * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator | |
11027 | before accessing operands. | |
11028 | * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to | |
11029 | decide whether an initialization expression respects SPARK rules, as | |
11030 | the plain node is the expanded one. This allows for more valid warnings | |
11031 | to be issued. | |
11032 | * gnat_rm.texi: Minor update. | |
11033 | ||
11034 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
11035 | ||
11036 | * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert | |
11037 | previous change. | |
11038 | ||
11039 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
11040 | ||
11041 | * sem_ch3.adb, sem_ch4.adb: Minor reformatting. | |
11042 | ||
11043 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
11044 | ||
11045 | * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original | |
11046 | loop statements and the element renaming declaration with a block when | |
11047 | the element type is controlled. | |
11048 | ||
11049 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
11050 | ||
11051 | * sinfo.ads: Minor formatting. | |
11052 | ||
11053 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
11054 | ||
11055 | * sem_aggr.adb (Add_Association): if the association has a box and no | |
11056 | expression, use the Sloc of the aggregate itself for the new | |
11057 | association. | |
11058 | * errout.adb (First_Node): Exclude nodes with no Sloc, and always use | |
11059 | the Original_Node. | |
11060 | ||
db72f10a AC |
11061 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> |
11062 | ||
11063 | * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring. | |
11064 | When a container is provided via a function call, generate a renaming | |
11065 | of the function result. This avoids the creation of a transient scope | |
11066 | and the premature finalization of the container. | |
11067 | * exp_ch7.adb (Is_Container_Cursor): Removed. | |
11068 | (Wrap_Transient_Declaration): Remove the supression of the finalization | |
11069 | of the list controller when the declaration denotes a container cursor, | |
11070 | it is not needed. | |
11071 | ||
11072 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
11073 | ||
11074 | * restrict.adb (Check_Formal_Restriction): only issue a warning if the | |
11075 | node is from source, instead of the original node being from source. | |
11076 | * sem_aggr.adb | |
11077 | (Resolve_Array_Aggregate): refine the check for a static expression, to | |
11078 | recognize also static ranges | |
11079 | * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration, | |
11080 | Array_Type_Declaration): postpone the test for the type being a subtype | |
11081 | mark after the type has been resolved, so that component-selection and | |
11082 | expanded-name are discriminated. | |
11083 | (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm | |
11084 | to distinguish the case of an iteration scheme, so that an error is | |
11085 | issed on a non-static range in SPARK except in an iteration scheme. | |
11086 | * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with | |
11087 | In_Iter_Schm = True. | |
11088 | * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for | |
11089 | user-defined operators so that they are allowed in renaming | |
11090 | * sem_ch8.adb | |
11091 | (Find_Selected_Component): refine the check for prefixing of operators | |
11092 | so that they are allowed in renaming. Move the checks for restrictions | |
11093 | on selector name after analysis discriminated between | |
11094 | component-selection and expanded-name. | |
11095 | * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on | |
11096 | concatenation argument of string type if it is static. | |
11097 | * sem_util.adb, sem_util.ads | |
11098 | (Check_Later_Vs_Basic_Declarations): add a new function | |
11099 | Is_Later_Declarative_Item to decice which declarations are allowed as | |
11100 | later items, in the two different modes Ada 83 and SPARK. In the SPARK | |
11101 | mode, add that renamings are considered as later items. | |
11102 | (Enclosing_Package): new function to return the enclosing package | |
11103 | (Enter_Name): correct the rule for homonyms in SPARK | |
11104 | (Is_SPARK_Initialization_Expr): default to returning True on nodes not | |
11105 | from source (result of expansion) to avoid issuing wrong warnings. | |
11106 | ||
11107 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
11108 | ||
11109 | * errout.adb: On anything but an expression First_Node returns its | |
11110 | argument. | |
11111 | ||
23685ae6 AC |
11112 | 2011-08-02 Pascal Obry <obry@adacore.com> |
11113 | ||
11114 | * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting. | |
11115 | ||
11116 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
11117 | ||
11118 | * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization. | |
11119 | Set the associated loop as the related expression of internally | |
11120 | generated cursors. | |
11121 | * exp_ch7.adb (Is_Container_Cursor): New routine. | |
11122 | (Wrap_Transient_Declaration): Supress the finalization of the list | |
11123 | controller when the declaration denotes a container cursor. | |
11124 | ||
11125 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
11126 | ||
11127 | * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through | |
11128 | command line now. | |
11129 | * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the | |
11130 | expression is a simple expression. This check cannot be performed in | |
11131 | the semantics, so just drop it. | |
11132 | (P_Index_Or_Discriminant_Constraint): move check that the index or | |
11133 | discriminant is a subtype mark to Analyze_Subtype_Declaration in the | |
11134 | semantics. Other cases were previously checked in the semantics. | |
11135 | * par-ch4.adb (P_Name): move checks that a selector name is not | |
11136 | character literal or an operator symbol to Find_Selected_Component in | |
11137 | the semantics | |
11138 | * par-ch5.adb (Parse_Decls_Begin_End): move check that basic | |
11139 | declarations are not placed after later declarations in a separate | |
11140 | procedure in Sem_Util (possibly not the best choice?), to be used both | |
11141 | during parsing, for Ada 83 mode, and during semantic analysis, for | |
11142 | SPARK mode. | |
11143 | * par-endh.adb (Check_End): move check that end label is not missing | |
11144 | to Process_End_Label in the semantics | |
11145 | * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove | |
11146 | the special case for SPARK restriction | |
11147 | * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End | |
11148 | * restrict.adb, restrict.ads (Check_Formal_Restriction): add a | |
11149 | parameter Force to issue the error message even on internal node (used | |
11150 | for generated end label). Call Check_Restriction to check when an error | |
11151 | must be issued. In SPARK mode, issue an error message even if the | |
11152 | restriction is not set. | |
11153 | (Check_Restriction): new procedure with an additional out parameter to | |
11154 | inform the caller that a message has been issued | |
11155 | * sem_aggr.adb: Minor modification of message | |
11156 | * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction | |
11157 | instead of issuing an error message directly | |
11158 | * sem_ch3.adb (Analyze_Declarations): move here the check that basic | |
11159 | declarations are not placed after later declarations, by calling | |
11160 | Check_Later_Vs_Basic_Declarations | |
11161 | (Analyze_Subtype_Declaration): move here the check that an index or | |
11162 | discriminant constraint must be a subtype mark. Change the check that | |
11163 | a subtype of String must start at one so that it works on subtype marks. | |
11164 | * sem_ch4.adb (Analyze_Call): move here the check that a named | |
11165 | association cannot follow a positional one in a call | |
11166 | * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction | |
11167 | instead of issuing an error message directly | |
11168 | * sem_ch8.adb (Find_Selected_Component): move here the check that a | |
11169 | selector name is not a character literal or an operator symbol. Move | |
11170 | here the check that the prefix of an expanded name cannot be a | |
11171 | subprogram or a loop statement. | |
11172 | * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new | |
11173 | procedure called from parsing and semantics to check that basic | |
11174 | declarations are not placed after later declarations | |
11175 | (Process_End_Label): move here the check that end label is not missing | |
11176 | ||
11177 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
11178 | ||
11179 | * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum | |
11180 | representation clause in codepeer mode, since it confuses CodePeer and | |
11181 | does not bring useful info. | |
11182 | ||
11183 | 2011-08-02 Ed Falis <falis@adacore.com> | |
11184 | ||
11185 | * init.c: initialize fp hw on MILS. | |
11186 | ||
11187 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
11188 | ||
11189 | * errout.adb (First_Node): for bodies, return the node itself (small | |
11190 | optimization). For other nodes, do not check source_unit if the node | |
11191 | comes from Standard. | |
11192 | ||
d2d9cc22 AC |
11193 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
11194 | ||
11195 | * exp_ch3.adb: Minor comment additions. | |
11196 | * sem_ch13.adb: Minor reformatting. | |
11197 | ||
11198 | 2011-08-02 Pascal Obry <obry@adacore.com> | |
11199 | ||
11200 | * make.adb, makeutl.adb: Removes some superfluous directory separator. | |
11201 | ||
a01b9df6 AC |
11202 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
11203 | ||
11204 | * sem_attr.adb: Minor reformatting. | |
11205 | ||
11206 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
11207 | ||
11208 | * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value | |
11209 | (Has_Default_Component_Value): Removed | |
11210 | * einfo.ads Comment updates | |
11211 | (Has_Default_Aspect): Replaces Has_Default_Value | |
11212 | (Has_Default_Component_Value): Removed | |
11213 | * exp_ch13.adb | |
11214 | (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects | |
11215 | * exp_ch3.adb | |
11216 | (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects | |
11217 | (Get_Simple_Init_Val): Handle Default_Value aspect | |
11218 | (Needs_Simple_Initialization): Handle Default_Value aspect | |
11219 | * exp_ch3.ads: Needs_Simple_Initialization | |
11220 | * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect | |
11221 | * par-prag.adb (Pragma_Default[_Component]Value) Removed | |
11222 | * sem_ch13.adb | |
11223 | (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects | |
11224 | * sem_prag.adb (Pragma_Default[_Component]Value) Removed | |
11225 | * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed | |
11226 | ||
11227 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
11228 | ||
11229 | * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate | |
11230 | package containing iteration primitives. | |
11231 | exp_ch5.adb (Expand_Iterator_Loop): ditto. | |
11232 | ||
75c90775 AC |
11233 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
11234 | ||
11235 | * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with | |
11236 | "of", pre-analyze expression in case it is a function call with | |
11237 | finalization actions that must be placed ahead of the loop. | |
11238 | * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present | |
11239 | on an Ada2012 iterator, insert them ahead of the rewritten loop. | |
11240 | ||
11241 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
11242 | ||
11243 | * cstand.adb (Create_Float_Types): Only consider C's long double for | |
11244 | Long_Long_Float, in addition to double. | |
11245 | ||
ded8909b AC |
11246 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
11247 | ||
11248 | * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads, | |
11249 | sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads, | |
11250 | prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb: | |
11251 | Minor reformatting. | |
11252 | ||
11253 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
11254 | ||
11255 | * sem_attr.adb: handle properly 'Result when it is a prefix of an | |
11256 | indexed component. | |
11257 | ||
11258 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
11259 | ||
11260 | * einfo.ads, einfo.adb | |
11261 | (Original_Access_Type): Move this attribute to Node26 since there was | |
11262 | an undocumented use of Node21 in E_Access_Subprogram_Type entities | |
11263 | which causes conflicts and breaks the generation of the .NET compiler. | |
11264 | (Interface_Name): Add missing documentation on JGNAT only uses of | |
11265 | this attribute. | |
11266 | ||
70c34e1c AC |
11267 | 2011-08-02 Geert Bosch <bosch@adacore.com> |
11268 | ||
11269 | * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist | |
11270 | (Find_Back_End_Float_Type): Likewise | |
11271 | (Create_Back_End_Float_Types): Likewise | |
11272 | (Create_Float_Types): Likewise | |
11273 | (Register_Float_Type): Likewise | |
11274 | * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of | |
11275 | Nlist and split out type selection in new local Find_Base_Type function. | |
11276 | * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of | |
11277 | Nlist | |
11278 | * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist | |
11279 | ||
11280 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
11281 | ||
11282 | * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in | |
11283 | alpha order). | |
11284 | * opt.ads: Minor comment change. | |
11285 | * sem_ch12.adb: Minor code reorganization. | |
11286 | ||
b715bc59 AC |
11287 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> |
11288 | ||
11289 | * sem_ch3.adb (Complete_Private_Subtype): Don't append the private | |
11290 | subtype's list of rep items to the list on the full subtype in the case | |
11291 | where the lists are the same. | |
11292 | ||
11293 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
11294 | ||
11295 | * switch-c.adb (Free): New deallocation procedure to avoid implicitly | |
11296 | using the one from System.Strings, which also deallocates all strings. | |
11297 | ||
002bdd68 AC |
11298 | 2011-08-02 Geert Bosch <bosch@adacore.com> |
11299 | ||
11300 | * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New | |
11301 | function. | |
11302 | * gcc-interface/Make-lang.in: Update dependencies. | |
11303 | ||
11304 | 2011-08-02 Olivier Hainque <hainque@adacore.com> | |
11305 | ||
11306 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function | |
11307 | end_locus. | |
11308 | ||
499769ec AC |
11309 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
11310 | ||
11311 | * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals | |
11312 | associated with anonymous access to subprograms. | |
11313 | ||
11314 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
11315 | ||
11316 | * opt.ads | |
11317 | (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions. | |
11318 | (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition. | |
11319 | * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads | |
11320 | (Add_Symbol_Definition): Move to switch-c.adb | |
11321 | (Process_Command_Line_Symbol_Definitions): Adjust references to above. | |
11322 | * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation. | |
11323 | (Add_Symbol_Definition): Move to switch-c.adb. | |
11324 | * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw. | |
11325 | * sem_warn.adb | |
11326 | (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch): | |
11327 | Move to warnsw.adb. | |
11328 | * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size, | |
11329 | Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch): | |
11330 | Move to warnsw.adb. | |
11331 | * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw. | |
11332 | (Add_Symbol_Definition): Moved from Prepcomp. | |
11333 | * switch-c.ads: Update copyright notice. Use String_List instead of | |
11334 | Argument_List, removing dependency on System.OS_Lib. | |
11335 | ||
aa1e353a AC |
11336 | 2011-08-02 Yannick Moy <moy@adacore.com> |
11337 | ||
11338 | * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal | |
11339 | mode on initialization expression which does not respect SPARK | |
11340 | restrictions. | |
11341 | * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines | |
11342 | if the tree referenced by its argument represents an initialization | |
11343 | expression in SPARK, suitable for initializing an object in an object | |
11344 | declaration. | |
11345 | ||
11346 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
11347 | ||
11348 | * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the | |
11349 | internally generated access to subprogram with its associated protected | |
11350 | subprogram type. | |
11351 | * einfo.ads, einfo.adb (Original_Access_Type): New attribute. | |
11352 | ||
15b682ca GB |
11353 | 2011-08-02 Geert Bosch <bosch@adacore.com> |
11354 | ||
11355 | * cstand.adb (Register_Float_Type): Print information about type to | |
11356 | register, if the Debug_Flag_Dot_B is set. | |
11357 | * debug.adb (Debug_Flag_Dot_B): Document d.b debug option. | |
11358 | * rtsfind.ads (RE_Max_Base_Digits): New run time entity. | |
11359 | * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations | |
11360 | with a requested precision of more than Max_Digits digits and no more | |
11361 | than Max_Base_Digits digits, if a range specification is present and the | |
11362 | Predefined_Float_Types list has a suitable type to derive from. | |
11363 | * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the | |
11364 | case of type completion with pragma Import | |
11365 | * sem_prag.adb | |
11366 | (Process_Import_Predefined_Type): Processing to complete a type | |
11367 | with pragma Import. Currently supports floating point types only. | |
11368 | (Set_Convention_From_Pragma): Do nothing without underlying type. | |
11369 | (Process_Convention): Guard against absence of underlying type, | |
11370 | which may happen when importing incomplete types. | |
11371 | (Process_Import_Or_Interface): Handle case of importing predefined | |
11372 | types. Tweak error message. | |
11373 | ||
f8726f2b AC |
11374 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> |
11375 | ||
11376 | * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined | |
11377 | functions to previous change. Reorganize code slightly. | |
11378 | ||
11379 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
11380 | ||
11381 | * back_end.ads (Register_Type_Proc): New call back procedure type for | |
11382 | allowing the back end to provide information about available types. | |
11383 | (Register_Back_End_Types): New procedure to register back end types. | |
11384 | * back_end.adb (Register_Back_End_Types): Call the back end to enumerate | |
11385 | available types. | |
11386 | * cstand.adb (Back_End_Float_Types): New list for floating point types | |
11387 | supported by the back end. | |
11388 | (Build_Float_Type): Add extra parameter for Float_Rep_Kind. | |
11389 | (Copy_Float_Type): New procedure to make new copies of predefined types. | |
11390 | (Register_Float_Type): New call back procedure to populate the BEFT list | |
11391 | (Find_Back_End_Float_Type): New procedure to find a BEFT by name | |
11392 | (Create_Back_End_Float_Types): New procedure to populate the BEFT list. | |
11393 | (Create_Float_Types): New procedure to create entities for floating | |
11394 | point types predefined in Standard, and put these and any remaining | |
11395 | BEFTs on the Predefined_Float_Types list. | |
11396 | * stand.ads (Predefined_Float_Types): New list for predefined floating | |
11397 | point types that do not have declarations in package Standard. | |
11398 | ||
feecad68 AC |
11399 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> |
11400 | ||
11401 | * inline.adb (Get_Code_Unit_Entity): New local function. Returns the | |
11402 | entity node for the unit containing the parameter. | |
11403 | (Add_Inlined_Body): Use it to find the unit containing the subprogram. | |
11404 | (Add_Inlined_Subprogram): Likewise. | |
11405 | * gcc-interface/Make-lang.in: Update dependencies. | |
11406 | ||
11407 | 2011-08-02 Thomas Quinot <quinot@adacore.com> | |
11408 | ||
11409 | * s-stusta.adb (Print): Make sure Pos is always initialized to a | |
11410 | suitable value. | |
11411 | ||
12f0c50c AC |
11412 | 2011-08-02 Geert Bosch <bosch@adacore.com> |
11413 | ||
11414 | * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image. | |
11415 | ||
11416 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
11417 | ||
11418 | * sem_type.adb (Covers): Move trivial case to the top and reuse the | |
11419 | computed value of Base_Type. | |
11420 | ||
11421 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
11422 | ||
11423 | * restrict.adb (Check_Restriction): issue an error for any use of | |
11424 | class-wide, even if the No_Dispatch restriction is not set. | |
11425 | * sem_aggr.adb: Correct typos in comments and messages in formal mode | |
11426 | * sem_ch3.adb (Process_Full_View): issue an error in formal mode is, | |
11427 | when completing a private extension, the type named in the private part | |
11428 | is not the same as that named in the visible part. | |
11429 | * sem_res.adb (Resolve_Call): issue an error in formal mode on the use | |
11430 | of an inherited primitive operations of a tagged type or type extension | |
11431 | that returns the tagged type. | |
11432 | * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new | |
11433 | function which returns True for an implicit operation inherited by the | |
11434 | derived type declaration for the argument type. | |
11435 | (Is_SPARK_Object_Reference): move to appropriate place in alphabetic | |
11436 | order. | |
11437 | ||
fb86fe11 ES |
11438 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
11439 | ||
11440 | * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from | |
11441 | Process_Bounds, to perform analysis with expansion of a range or an | |
11442 | expression that is the iteration scheme for a loop. | |
11443 | (Analyze_Iterator_Specification): If domain of iteration is given by a | |
11444 | function call with a controlled result, as is the case if call returns | |
11445 | a predefined container, ensure that finalization actions are properly | |
11446 | generated. | |
11447 | * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range. | |
11448 | ||
62be5d0a JM |
11449 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
11450 | ||
11451 | * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo. | |
11452 | * gcc-interface/Make-lang.in: Update dependencies. | |
11453 | ||
11454 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
11455 | ||
11456 | * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to | |
11457 | determine if the analysis is performed using N or Original_Node (N). | |
11458 | * exp_util.adb (Side_Effect_Free): Code cleanup since the new | |
11459 | functionality of routine Is_Variable avoids code duplication. | |
11460 | * checks.adb (Determine_Range): Handle temporaries generated by | |
11461 | Remove_Side_Effects. | |
11462 | ||
11463 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
11464 | ||
11465 | * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and | |
11466 | expansion of the condition. Required since the previous analysis was | |
11467 | done with expansion disabled (see Resolve_Quantified_Expression) and | |
11468 | hence checks were not inserted and record comparisons have not been | |
11469 | expanded. | |
11470 | ||
a20f4389 AC |
11471 | 2011-08-02 Ed Falis <falis@adacore.com> |
11472 | ||
11473 | * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads: | |
11474 | Update header. | |
11475 | ||
11476 | 2011-08-02 Bob Duff <duff@adacore.com> | |
11477 | ||
11478 | * opt.ads: Minor comment fix. | |
11479 | ||
11480 | 2011-08-02 Bob Duff <duff@adacore.com> | |
11481 | ||
11482 | * sem_ch12.adb (Analyze_Package_Instantiation, | |
11483 | Analyze_Subprogram_Instantiation): Turn off style checking while | |
11484 | analyzing an instance. Whatever style checks that apply to the generic | |
11485 | unit should apply, so it makes no sense to apply them in an instance. | |
11486 | This was causing trouble when compiling an instance of a runtime | |
11487 | unit that violates the -gnatyO switch. | |
11488 | * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from | |
11489 | one of the two case statements, causing spurious errors. | |
11490 | ||
11491 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
11492 | ||
11493 | * uname.adb: Minor reformatting. | |
11494 | * gnatcmd.adb: Minor reformatting. | |
11495 | * exp_attr.adb: Minor reformatting. | |
11496 | ||
90878b12 AC |
11497 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
11498 | ||
11499 | * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction | |
11500 | No_Dispatching_Calls, do not look for the Assign primitive, because | |
11501 | predefined primitives are not created in this case. | |
11502 | ||
11503 | 2011-08-02 Bob Duff <duff@adacore.com> | |
11504 | ||
11505 | * stylesw.ads: Minor comment fixes. | |
11506 | ||
11507 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
11508 | ||
11509 | * freeze.adb (Add_To_Result): New procedure. | |
11510 | ||
11511 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
11512 | ||
11513 | * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run | |
11514 | time, if the specific run-time routines for handling streams of strings | |
11515 | are not available, use the default mechanism. | |
11516 | ||
11517 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
11518 | ||
11519 | * s-regpat.ads: Fix typo. | |
11520 | ||
11521 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
11522 | ||
11523 | * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is | |
11524 | not null, call it to create the in memory config project file without | |
11525 | parsing an existing default config project file. | |
11526 | ||
11527 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
11528 | ||
11529 | * atree.adb (Allocate_Initialize_Node): Remove useless temporaries. | |
11530 | ||
11531 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
11532 | ||
11533 | * sem_elim.adb: an abstract subprogram does not need an eliminate | |
11534 | pragma for its descendant to be eliminable. | |
11535 | ||
11536 | 2011-08-02 Ed Falis <falis@adacore.com> | |
11537 | ||
11538 | * init.c: revert to handling before previous checkin for VxWorks | |
11539 | * s-intman-vxworks.adb: delete unnecessary declarations related to | |
11540 | using Ada interrupt facilities for handling signals. | |
11541 | Delete Initialize_Interrupts. Use __gnat_install_handler instead. | |
11542 | * s-intman-vxworks.ads: Import __gnat_install_handler as | |
11543 | Initialize_Interrupts. | |
11544 | * s-taprop-vxworks.adb: Delete Signal_Mask. | |
11545 | (Abort_Handler): change construction of mask to unblock exception | |
11546 | signals. | |
11547 | ||
273adcdf AC |
11548 | 2011-08-02 Jerome Guitton <guitton@adacore.com> |
11549 | ||
11550 | * a-except-2005.adb (Raise_From_Signal_Handler): Call | |
11551 | Debug_Raise_Exception before propagation starts. | |
11552 | ||
11553 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
11554 | ||
11555 | * exp_ch6.adb (Expand_Call): Guard restriction checks with a call | |
11556 | to Restriction_Check_Required. | |
11557 | * sem_ch3.adb (Analyze_Object_Declaration): Likewise. | |
11558 | * sem_res.adb (Resolve_Call): Likewise. | |
11559 | * sem_attr.adb (Check_Stream_Attribute): Likewise. | |
11560 | ||
11561 | 2011-08-02 Bob Duff <duff@adacore.com> | |
11562 | ||
11563 | * stylesw.ads: Update comment. | |
11564 | * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N. | |
11565 | * errout.ads: Remove obsolete comment. | |
11566 | ||
11567 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
11568 | ||
11569 | * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function. | |
11570 | (Set_Is_Safe_To_Reevaluate): new procedure. | |
11571 | * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no | |
11572 | assignment is allowed on safe-to-reevaluate variables. | |
11573 | (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the | |
11574 | temporary created to remove side effects in expressions that use | |
11575 | the secondary stack as safe-to-reevaluate. | |
11576 | * exp_util.adb (Side_Effect_Free): Add missing code to handle well | |
11577 | variables that are not true constants. | |
11578 | ||
6320f5e1 AC |
11579 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
11580 | ||
11581 | * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads, | |
11582 | sem_res.adb, sem_ch6.adb: Minor reformatting. | |
11583 | ||
11584 | 2011-08-02 Jerome Guitton <guitton@adacore.com> | |
11585 | ||
11586 | * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code. | |
11587 | ||
2fe829ae ES |
11588 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
11589 | ||
11590 | * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do | |
11591 | not set Overridden_Operation if subprogram is an initialization | |
11592 | procedure. | |
11593 | ||
e24329cd YM |
11594 | 2011-08-02 Yannick Moy <moy@adacore.com> |
11595 | ||
11596 | * par-ch6.adb: Correct obsolete name in comments | |
11597 | * restrict.adb, restrict.ads (Check_Formal_Restriction): new function | |
11598 | which takes two message arguments (existing function takes one), with | |
11599 | second message used for continuation. | |
11600 | * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject | |
11601 | block statements that originate from a source block statement, not | |
11602 | generated block statements | |
11603 | * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for | |
11604 | symmetry with procedure case | |
11605 | * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new | |
11606 | function to issue an error in formal mode if a package specification | |
11607 | contains more than one tagged type or type extension. | |
11608 | * sem_res.adb (Resolve_Actuals): in formal mode, check that actual | |
11609 | parameters matching formals of tagged types are objects (or ancestor | |
11610 | type conversions of objects), not general expressions. Issue an error | |
11611 | on view conversions that are not involving ancestor conversion of an | |
11612 | extended type. | |
11613 | (Resolve_Type_Conversion): in formal mode, issue an error on the | |
11614 | operand of an ancestor type conversion which is not an object | |
11615 | * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the | |
11616 | procedure so that it works also for actuals of function calls | |
11617 | (Is_Actual_Tagged_Parameter): new function which determines if its | |
11618 | argument is an actual parameter of a formal of tagged type in a | |
11619 | subprogram call | |
11620 | (Is_SPARK_Object_Reference): new function which determines if the tree | |
11621 | referenced by its argument represents an object in SPARK | |
11622 | ||
176dadf6 AC |
11623 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
11624 | ||
11625 | * sem_ch3.adb: Minor reformatting | |
11626 | Minor comment addition | |
11627 | Minor error msg text change | |
11628 | ||
11629 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
11630 | ||
11631 | * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New | |
11632 | function. Used to be more precise when we generate a variable plus one | |
11633 | assignment to remove side effects in the evaluation of the Bound | |
11634 | expressions. | |
11635 | (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes | |
11636 | of the bound expression to force its re-analysis and thus expand the | |
11637 | associated transient scope (if required). Code cleanup replacing the | |
11638 | previous code that declared the constant entity by an invocation to | |
11639 | routine Force_Evaluation which centralizes this work in the frontend. | |
11640 | ||
d8b962d8 AC |
11641 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
11642 | ||
11643 | * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table | |
11644 | (Base_Type): Now uses improved Is_Base_Type function | |
11645 | * einfo.ads (Base_Type): Inline this function | |
11646 | ||
11647 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
11648 | ||
11649 | * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion | |
11650 | (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas | |
11651 | ||
11652 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
11653 | ||
11654 | * gcc-interface/Make-lang.in: Update dependencies. | |
11655 | * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks | |
11656 | targets. | |
11657 | ||
11658 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
11659 | ||
11660 | * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on | |
11661 | non-simple expression used in delta constraint | |
11662 | (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on | |
11663 | index constraint which is not a subtype mark | |
11664 | * par.adb: With and use Restrict | |
11665 | * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal | |
11666 | mode on component type which is not a subtype mark and default | |
11667 | expression on component | |
11668 | (Analyze_Subtype_Declaration): issue an error in formal mode on subtype | |
11669 | of string which does not have a lower index bound equal to 1 | |
11670 | (Array_Type_Declaration): issue an error in formal mode on index or | |
11671 | component type which is not a subtype mark, and on aliased keyword on | |
11672 | component | |
11673 | (Derived_Type_Declaration): issue an error in formal mode on interface, | |
11674 | limited or abstract type | |
11675 | (Record_Type_Declaration): issue an error in formal mode on interface | |
11676 | (Record_Type_Definition): issue an error in formal mode on tagged types | |
11677 | and type extensions not declared in the specification of a library unit | |
11678 | package; on null non-tagged record; on variant part | |
11679 | ||
11680 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
11681 | ||
11682 | * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir | |
11683 | not declared for qualified library project when Library_Name is not | |
11684 | declared, but Library_Dir is. | |
11685 | ||
11686 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
11687 | ||
11688 | * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated | |
11689 | pragmas (affects aspects [Component_]Default_Value | |
11690 | (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use | |
11691 | component type for the resolution | |
11692 | ||
f96b2d85 AC |
11693 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> |
11694 | ||
11695 | * einfo.adb (Base_Type): Tune implementation for speed. | |
11696 | ||
11697 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
11698 | ||
11699 | * freeze.adb: Minor reformatting. | |
11700 | ||
8b3c6430 AC |
11701 | 2011-08-02 Thomas Quinot <quinot@adacore.com> |
11702 | ||
11703 | * scos.ads: Update comments. | |
11704 | ||
11705 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
11706 | ||
11707 | * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the | |
11708 | base type, because the parent may be a subtype of a private type whose | |
11709 | convention is established in a private part. | |
11710 | ||
11711 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
11712 | ||
11713 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return | |
11714 | statement in a block when the expansion of the return expression has | |
11715 | created a finalization chain. | |
11716 | * freeze.adb (Freeze_Expression): Alphabetize all choices associated | |
11717 | with the parent node. | |
11718 | Add N_Extended_Return_Statement to handle the case where a transient | |
11719 | object declaration appears in the Return_Object_Declarations list of | |
11720 | an extended return statement. | |
11721 | ||
11722 | 2011-08-02 Matthew Gingell <gingell@adacore.com> | |
11723 | ||
11724 | * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly | |
11725 | unused parameter 'name'. | |
11726 | ||
11727 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
11728 | ||
11729 | * sem_elim.adb (Set_Eliminated): If the overridden operation is an | |
11730 | inherited operation, check whether its alias, which is the source | |
11731 | operastion that it renames, has been marked eliminated. | |
11732 | ||
cae81f17 JM |
11733 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
11734 | ||
11735 | * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an | |
11736 | in-mode parameter whose type is an access type since it can be used to | |
11737 | modify its designated object. Enforce code that handles as safe an | |
11738 | access type that is not access-to-constant but it is the result of a | |
11739 | previous removal of side-effects. | |
11740 | (Remove_Side_Effects): Minor code reorganization of cases which require | |
11741 | no action. Done to incorporate documentation on new cases uncovered | |
11742 | working in this ticket: no action needed if this routine was invoked | |
11743 | too early and the nodes are not yet decorated. | |
11744 | * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls | |
11745 | to routine Remove_Side_Effects by calls to Force_Evaluation since they | |
11746 | were issued with actuals that are implicitly provided by | |
11747 | Force_Evaluation. | |
11748 | ||
218e6dee RD |
11749 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
11750 | ||
11751 | * sem_ch3.adb, sem_res.adb: Minor reformatting. | |
11752 | ||
7a489a2b AC |
11753 | 2011-08-02 Yannick Moy <moy@adacore.com> |
11754 | ||
11755 | * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure | |
11756 | to issue an error in formal mode on attribute not supported in this mode | |
11757 | (Analyze_Attribute): issue errors on standard attributes not supported | |
11758 | in formal mode. | |
11759 | * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of | |
11760 | comment, and issue error in formal mode on modulus which is not a power | |
11761 | of 2. | |
11762 | (Process_Range_Expr_In_Decl): issue error in formal mode on non-static | |
11763 | range. | |
11764 | * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in | |
11765 | subtype mark. | |
11766 | * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary | |
11767 | operator on modular type (except 'not'). | |
11768 | ||
11769 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
11770 | ||
11771 | * gnat_rm.texi: Minor reformatting. | |
11772 | ||
cb7fa356 AC |
11773 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> |
11774 | ||
11775 | * s-osinte-linux.ads: Minor comment update and reformatting. | |
11776 | * i-cexten.ads: Make this unit pure, as for its parent. | |
11777 | Will allow its usage in more contexts if needed. | |
11778 | ||
11779 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
11780 | ||
11781 | * s-utf_32.ads: Minor comment fix. | |
11782 | ||
11783 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
11784 | ||
11785 | * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive | |
11786 | operation of a tagged synchronized type, handle the case where the | |
11787 | controlling argument is overloaded. | |
11788 | ||
11789 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
11790 | ||
11791 | * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl: | |
11792 | Replace pragma SPARK_95 with pragma Restrictions (SPARK) | |
11793 | * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set | |
11794 | SPARK mode and formal verification mode on processing SPARK restriction | |
11795 | * s-rident.ads (Restriction_Id): add SPARK restriction in those not | |
11796 | requiring consistency checking. | |
11797 | ||
5cc9353d RD |
11798 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
11799 | ||
11800 | * sem_res.adb: Minor reformatting. | |
11801 | ||
e51537ff RD |
11802 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
11803 | ||
11804 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
11805 | a-cforse.ads: Remove unneeded with of Ada.Containers | |
11806 | Remove commented out pragma Inline's | |
11807 | Move specifications of new subprograms to the actual specs | |
11808 | ||
83fa09c5 AC |
11809 | 2011-08-02 Yannick Moy <moy@adacore.com> |
11810 | ||
11811 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
11812 | a-cforse.ads: Update comments. | |
11813 | ||
11814 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
11815 | ||
11816 | * sem_attr.adb: add attribute name when 'Result has the wrong prefix. | |
11817 | ||
d11cfaf8 RD |
11818 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
11819 | ||
11820 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
11821 | a-cforse.ads, a-cofove.ads: Minor reformatting. | |
11822 | ||
300b98bb AC |
11823 | 2011-08-02 Claire Dross <dross@adacore.com> |
11824 | ||
11825 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads, | |
11826 | a-cofove.ads: Add comments. | |
11827 | ||
11828 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
11829 | ||
11830 | * gnat_rm.texi: Document formal containers. | |
11831 | ||
11832 | 2011-08-02 Emmanuel Briot <briot@adacore.com> | |
11833 | ||
11834 | * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there | |
11835 | are empty sections. | |
11836 | ||
19fb051c AC |
11837 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
11838 | ||
11839 | * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor | |
11840 | reformatting. | |
11841 | ||
11842 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
11843 | ||
11844 | * aspects.adb: New aspects Default_Value and Default_Component_Value | |
11845 | New format of Aspect_Names table checks for omitted entries | |
11846 | * aspects.ads: Remove mention of Aspect_Cancel and add documentation on | |
11847 | handling of boolean aspects for derived types. | |
11848 | New aspects Default_Value and Default_Component_Value | |
11849 | New format of Aspect_Names table checks for omitted entries | |
11850 | * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag | |
11851 | (Has_Default_Value): New flag | |
11852 | (Has_Default_Component_Value): New flag | |
11853 | (Has_Default_Value): New flag | |
11854 | * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names | |
11855 | table. | |
11856 | * par-prag.adb: New pragmas Default_Value and Default_Component_Value | |
11857 | * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects | |
11858 | Default_Value and Default_Component_Value | |
11859 | * sem_prag.adb: New pragmas Default_Value and Default_Component_Value | |
11860 | New aspects Default_Value and Default_Component_Value | |
11861 | * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value | |
11862 | * sprint.adb: Print N_Aspect_Specification node when called from gdb | |
11863 | ||
11864 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
11865 | ||
11866 | * prj-nmsc.adb (Check_Library_Attributes): For virtual library project, | |
11867 | inherit library kind. | |
11868 | ||
11869 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
11870 | ||
11871 | * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds. | |
11872 | Minor reformatting. | |
11873 | ||
11874 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
11875 | ||
11876 | * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM | |
11877 | ||
5f7747af AC |
11878 | 2011-08-02 Yannick Moy <moy@adacore.com> |
11879 | ||
11880 | * sem_aggr.adb (Resolve_Aggregate): Fix thinko. | |
11881 | ||
11882 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
11883 | ||
11884 | * impunit.adb: Add comment. | |
11885 | ||
a5fe697b AC |
11886 | 2011-08-02 Yannick Moy <moy@adacore.com> |
11887 | ||
11888 | * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks | |
11889 | qualification of aggregates in formal mode | |
11890 | (Is_Top_Level_Aggregate): returns True for an aggregate not contained in | |
11891 | another aggregate | |
11892 | (Resolve_Aggregate): complete the test that an aggregate is adequately | |
11893 | qualified in formal mode | |
11894 | ||
11895 | 2011-08-02 Pascal Obry <obry@adacore.com> | |
11896 | ||
11897 | * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting. | |
11898 | * mlib-prj.adb: Supress warning when compiling binder generated file. | |
11899 | (Build_Library): Supress all warnings when compiling the binder | |
11900 | generated file. | |
11901 | ||
bd65a2d7 | 11902 | 2011-08-02 Yannick Moy <moy@adacore.com> |
d4487611 | 11903 | |
bd65a2d7 AC |
11904 | * errout.adb, errout.ads (Check_Formal_Restriction): move procedure |
11905 | from here... | |
11906 | * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here | |
11907 | * sem_aggr.adb, sem_ch5.adb, sem_util.adb: | |
11908 | Add with/use clauses to make Check_Formal_Restriction visible | |
11909 | ||
11910 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
11911 | ||
11912 | * sem_ch12.adb (Check_Generic_Actuals): handle properly actual | |
11913 | in-parameters when type of the generic formal is private in the generic | |
11914 | spec and non-private in the body. | |
11915 | ||
11916 | 2011-08-02 Claire Dross <dross@adacore.com> | |
11917 | ||
11918 | * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb, | |
11919 | a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads, | |
11920 | a-cofove.adb, a-cofove.ads: New files implementing formal containers. | |
11921 | * impunit.adb, Makefile.rtl: Take new files into account. | |
d4487611 AC |
11922 | |
11923 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
11924 | ||
11925 | * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb, | |
11926 | sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting. | |
11927 | ||
bd434b3f YM |
11928 | 2011-08-02 Yannick Moy <moy@adacore.com> |
11929 | ||
11930 | * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in | |
11931 | formal mode | |
11932 | * sem_util.adb (Matching_Static_Array_Bounds): proper detection of | |
11933 | matching static array bounds, taking into account the special case of | |
11934 | string literals | |
11935 | * sem_ch3.adb: Typo in comment. | |
11936 | ||
fe5d3068 YM |
11937 | 2011-08-02 Yannick Moy <moy@adacore.com> |
11938 | ||
11939 | * errout.adb, errout.ads (Check_Formal_Restriction): new procedure | |
11940 | which issues an error in formal mode if its argument node is originally | |
11941 | from source | |
11942 | * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type | |
11943 | has a discriminant specification so that it does not include the case | |
11944 | of derived types | |
11945 | (Derived_Type_Declaration): move here the test that a derived type has a | |
11946 | discriminant specification | |
11947 | * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the | |
11948 | first element of a component association before accessing its choices | |
11949 | (presence of component association is not enough) | |
11950 | * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram | |
11951 | declaration is a library item before accessing the next element in a | |
11952 | list, as library items are not member of lists | |
11953 | * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, | |
11954 | sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use | |
11955 | Check_Formal_Restriction whenever possible. | |
11956 | ||
b60a3f26 AC |
11957 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
11958 | ||
11959 | * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype | |
11960 | reference when needed. | |
11961 | ||
11962 | 2011-08-02 Bob Duff <duff@adacore.com> | |
11963 | ||
11964 | * gnat_ugn.texi: Fix typo. | |
11965 | ||
11966 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
11967 | ||
11968 | * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of | |
11969 | archive file name. Do not use the full path name of archives for Open | |
11970 | VMS. | |
11971 | ||
eaba57fb RD |
11972 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
11973 | ||
11974 | * sem_ch12.adb, sem_ch11.adb: New calling sequence for | |
11975 | Analyze_Aspect_Specifications | |
11976 | * sem_ch13.adb | |
11977 | (Analyze_Aspect_Specifications): New handling for boolean aspects | |
11978 | * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence | |
11979 | * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling | |
11980 | sequence for Analyze_Aspect_Specifications | |
11981 | * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely | |
11982 | * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used | |
11983 | ||
11984 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
11985 | ||
11986 | * freeze.adb (Freeze_Entity): Remove handling of delayed boolean | |
11987 | aspects, since these no longer exist. | |
11988 | ||
11989 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
11990 | ||
11991 | * par-ch13.adb (Aspect_Specifications_Present): Always return false on | |
11992 | semicolon, do not try to see if there are aspects following it. | |
11993 | * par-ch3.adb (P_Declarative_Items): Better message for unexpected | |
11994 | aspect spec. | |
11995 | ||
8830d1d2 AC |
11996 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
11997 | ||
11998 | * sem_ch8.adb, aspects.ads: Minor reformatting. | |
11999 | ||
12000 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
12001 | ||
12002 | * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline. | |
12003 | * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure | |
12004 | extracted from... | |
12005 | (Analyze_Aspect_Specifications): ...here. Call above procedure. | |
12006 | ||
7ff2d234 AC |
12007 | 2011-08-02 Yannick Moy <moy@adacore.com> |
12008 | ||
12009 | * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal | |
12010 | mode on subprogram declaration outside of package specification, unless | |
12011 | it is followed by a pragma Import | |
12012 | * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration, | |
12013 | Access_Type_Declaration): issue error in formal mode on access type | |
12014 | (Analyze_Incomplete_Type_Decl): issue error in formal mode on | |
12015 | incomplete type | |
12016 | (Analyze_Object_Declaration): issue error in formal mode on object | |
12017 | declaration which does not respect SPARK restrictions | |
12018 | (Analyze_Subtype_Declaration): issue error in formal mode on subtype | |
12019 | declaration which does not respect SPARK restrictions | |
12020 | (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue | |
12021 | error in formal mode on digits or delta constraint | |
12022 | (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on | |
12023 | decimal fixed point type | |
12024 | (Derived_Type_Declaration): issue error in formal mode on derived type | |
12025 | other than type extensions of tagged record types | |
12026 | * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant | |
12027 | with check on access definition | |
12028 | * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal | |
12029 | mode on protected definition. | |
12030 | (Analyze_Task_Definition): issue error in formal mode on task definition | |
12031 | ||
12032 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
12033 | ||
12034 | * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting. | |
12035 | ||
806f6d37 AC |
12036 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
12037 | ||
12038 | * sem_ch6.adb (Can_Override_Operator): New function. | |
12039 | (Verify_Overriding_Indicator): Add missing code to check overriding | |
12040 | indicator in operators. Fixes regression. | |
12041 | (Check_Overriding_Indicator): Minor reformating after replacing the | |
12042 | code that evaluates if the subprogram can override an operator by | |
12043 | invocations to the above new function. | |
12044 | * einfo.adb | |
12045 | (Write_Field26_Name): Add missing code to ensure that, following | |
12046 | the documentation in einfo.ads, this field is not shown as attribute | |
12047 | "Static_Initialization" on non-dispatching functions. | |
12048 | ||
12049 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
12050 | ||
12051 | * sem_res.adb (Resolve_Call): A call to | |
12052 | Ada.Real_Time.Timing_Events.Set_Handler violates restriction | |
12053 | No_Relative_Delay (AI-0211) only when it sets a relative timing event, | |
12054 | i.e., when the second parameter is of type Time_Span. | |
12055 | ||
12056 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
12057 | ||
12058 | * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link | |
12059 | with an archive instead of -L<library dir> -l<library name>. | |
12060 | ||
12061 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
12062 | ||
12063 | * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed, | |
12064 | mark the base types In_Use in addition to making the operations | |
12065 | use_visible. | |
12066 | ||
12067 | 2011-08-02 Ed Falis <falis@adacore.com> | |
12068 | ||
12069 | * init.c: add and setup __gnat_signal_mask for the exception signals | |
12070 | * s-inmaop-vxworks.adb: new file. | |
12071 | * s-intman-vxworks.adb: remove unnecessary initializations and | |
12072 | simplify remaining | |
12073 | * s-intman-vxworks.ads: remove unnecessary variable | |
12074 | * s-taprop-vxworks.adb: simplify signal initialization | |
12075 | ||
780d052e RD |
12076 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
12077 | ||
12078 | * sem_ch8.adb: Minor code reorganization, comment updates. | |
12079 | ||
12080 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
12081 | ||
12082 | * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util | |
12083 | * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved | |
12084 | here from Sem_Res. | |
12085 | (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression | |
12086 | (Matching_Static_Array_Bounds): Moved here from Sem_Res | |
12087 | ||
29efbb8c ES |
12088 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
12089 | ||
12090 | * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5. | |
12091 | * par_ch8.adb (P_Use_Type): initialize Used_Operations for node. | |
12092 | * sinfo.ads, sinfo.adb (Used_Operations): new attribute of | |
12093 | use_type_clauses, to handle more efficiently use_type and use_all_type | |
12094 | constructs. | |
12095 | * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the | |
12096 | Ada2012 Use_All_Type clause. | |
12097 | (Use_Class_Wide_Operations): new procedure. | |
12098 | ||
b0186f71 AC |
12099 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
12100 | ||
12101 | * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb, | |
12102 | sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized | |
12103 | expression to expression function. | |
12104 | ||
12105 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
12106 | ||
12107 | * sem_ch4.adb: transform simple Ada2012 membership into equality only | |
12108 | if types are compatible. | |
12109 | ||
12110 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
12111 | ||
12112 | * sem_res.adb (Matching_Static_Array_Bounds): new function which | |
12113 | returns True if its argument array types have same dimension and same | |
12114 | static bounds at each index. | |
12115 | (Resolve_Actuals): issue an error in formal mode on actuals passed as | |
12116 | OUT or IN OUT paramaters which are not view conversions in SPARK. | |
12117 | (Resolve_Arithmetic_Op): issue an error in formal mode on | |
12118 | multiplication or division with operands of fixed point types which are | |
12119 | not qualified or explicitly converted. | |
12120 | (Resolve_Comparison_Op): issue an error in formal mode on comparisons of | |
12121 | Boolean or array type (except String) operands. | |
12122 | (Resolve_Equality_Op): issue an error in formal mode on equality | |
12123 | operators for array types other than String with non-matching static | |
12124 | bounds. | |
12125 | (Resolve_Logical_Op): issue an error in formal mode on logical operators | |
12126 | for array types with non-matching static bounds. Factorize the code in | |
12127 | Matching_Static_Array_Bounds. | |
12128 | (Resolve_Qualified_Expression): issue an error in formal mode on | |
12129 | qualified expressions for array types with non-matching static bounds. | |
12130 | (Resolve_Type_Conversion): issue an error in formal mode on type | |
12131 | conversion for array types with non-matching static bounds | |
12132 | ||
767bb4e8 AC |
12133 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
12134 | ||
12135 | * par-ch10.adb: Minor code reorganization (use Nkind_In). | |
12136 | ||
12137 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
12138 | ||
12139 | * par-ch9.adb: save location of entry for proper error message. | |
12140 | ||
4ac2477e JM |
12141 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
12142 | ||
12143 | * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal | |
12144 | (Use_Full_View) which permits this routine to climb through the | |
12145 | ancestors using the full-view of private parents. | |
12146 | * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set | |
12147 | Use_Full_View to true in calls to Is_Ancestor. | |
12148 | * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to | |
12149 | true in call to Is_Ancestor. | |
12150 | * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set | |
12151 | Use_Full_View to true in call to Is_Ancestor. | |
12152 | * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in | |
12153 | call to Is_Ancestor. | |
12154 | * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set | |
12155 | Use_Full_View to true in calls to Is_Ancestor. | |
12156 | * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT, | |
12157 | Make_Select_Specific_Data_Table, Register_Primitive, | |
12158 | Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor. | |
12159 | * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View | |
12160 | to true in call to Is_Ancestor. | |
12161 | * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set | |
12162 | Use_Full_View to true in calls to Is_Ancestor. | |
12163 | * exp_cg.adb | |
12164 | (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor. | |
12165 | (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor. | |
12166 | ||
9f90d123 AC |
12167 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
12168 | ||
12169 | * gnat_rm.texi: Minor reformatting. | |
12170 | * sem_prag.adb: Minor reformatting. | |
12171 | ||
12172 | 2011-08-02 Tristan Gingold <gingold@adacore.com> | |
12173 | ||
12174 | * vms_data.ads: Add VMS qualifier for -gnateP. | |
12175 | ||
12176 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
12177 | ||
12178 | * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty | |
12179 | * par-ch7.adb (P_Package): Proper placement of aspects for package | |
12180 | decl/instantiation. | |
12181 | * par-endh.adb (Check_End): Ad Is_Sloc parameter | |
12182 | (End_Statements): Add Is_Sloc parameterr | |
12183 | * par.adb (P_Aspect_Specification): New meaning of Decl = Empty | |
12184 | (Check_End): Ad Is_Sloc parameter | |
12185 | (End_Statements): Add Is_Sloc parameterr | |
12186 | ||
12187 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
12188 | ||
12189 | * ug_words: Add VMS qualifier equivalent to -gnateP: | |
12190 | /SYMBOL_PREPROCESSING. | |
12191 | ||
12192 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
12193 | ||
12194 | * gnat-style.texi: For hexadecimal numeric literals the typical | |
12195 | grouping of digits is 4 to represent 2 bytes. | |
12196 | A procedure spec which is split into several lines is indented two | |
12197 | characters. | |
12198 | ||
12199 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
12200 | ||
12201 | * exp_aggr.adb (Is_Others_Aggregate): move function to other unit. | |
12202 | * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here | |
12203 | (Resolve_Aggregate): issue errors in formal modes when aggregate is not | |
12204 | properly qualified | |
12205 | (Resolve_Array_Aggregate): issue errors in formal modes on non-static | |
12206 | choice in array aggregate | |
12207 | (Resolve_Extension_Aggregate): issue errors in formal modes on subtype | |
12208 | mark as ancestor | |
12209 | (Resolve_Record_Aggregate): issue errors in formal modes on mixed | |
12210 | positional and named aggregate for record, or others in record | |
12211 | aggregate, or multiple choice in record aggregate | |
12212 | * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when | |
12213 | array operands to logical operations AND, OR and XOR do not have the | |
12214 | same static lower and higher bounds | |
12215 | * sem_ch5.adb, sinfo.ads: Correct typos in comments | |
12216 | ||
2933b16c RD |
12217 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
12218 | ||
12219 | * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement): | |
12220 | Replaces Last_Source_Node_In_Sequence. | |
12221 | * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K | |
12222 | * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores | |
12223 | parens and blank in string (this was inconsistently implemented). | |
12224 | * errout.ads | |
12225 | (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and | |
12226 | blank in string (this was inconsistently implemented). | |
12227 | * gnat1drv.adb | |
12228 | (Set_Global_Switches): Set formal mode switches appropriately | |
12229 | * opt.ads, opt.adb: Formal mode is now global switches, more consistent | |
12230 | * par-prag.adb | |
12231 | (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and | |
12232 | call Set_Error_Msg_Lang to set "spark" as language name. | |
12233 | * par.adb: Remove unnecessary call to set formal language for errout | |
12234 | * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches | |
12235 | appropriately and call Set_Error_Msg_Lang to set "spark" as language | |
12236 | name. | |
12237 | * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and | |
12238 | calls to it, moved after resolution so that types are known | |
12239 | * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if | |
12240 | result of concatenation is not of type String | |
12241 | (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of | |
12242 | concatenation is not properly restricted | |
12243 | * gnat_rm.texi: Add doc on pragma Spark_95. | |
12244 | * gcc-interface/Makefile.in: Remove obsolete target pairs for | |
12245 | Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads. | |
12246 | * gcc-interface/Make-lang.in: Update dependencies. | |
12247 | ||
05dbd302 AC |
12248 | 2011-08-01 Javier Miranda <miranda@adacore.com> |
12249 | ||
12250 | * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of | |
12251 | condition that detects if the overridden operation must replace an | |
12252 | existing entity. | |
12253 | ||
12254 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
12255 | ||
12256 | * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded | |
12257 | code declarations inserted by Insert_Actions in each alternative of the | |
12258 | N_Case_Expression node. | |
12259 | ||
12260 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
12261 | ||
12262 | * sem_ch6.adb: Minor code reorganization. | |
12263 | * sem_util.adb: Minor reformatting. | |
12264 | ||
af9e051f PO |
12265 | 2011-08-01 Pascal Obry <obry@adacore.com> |
12266 | ||
12267 | * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path. | |
12268 | * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource. | |
12269 | ||
1d801f21 AC |
12270 | 2011-08-01 Yannick Moy <moy@adacore.com> |
12271 | ||
12272 | * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character | |
12273 | literal or operator symbol which is prefixed | |
12274 | * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal | |
12275 | mode on access attributes. | |
12276 | * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check | |
12277 | that concatenation operands are properly restricted in formal mode | |
12278 | (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure | |
12279 | Analyze_Concatenation_Operand. Issue an error in formal mode if the | |
12280 | result of the concatenation has a type different from String. | |
12281 | (Analyze_Conditional_Expression, Analyze_Explicit_Dereference, | |
12282 | Analyze_Quantified_Expression, Analyze_Slice, | |
12283 | Analyze_Null): issue an error in formal mode on unsupported constructs | |
12284 | * sem_ch5.adb | |
12285 | (Analyze_Block_Statement): only issue error on source block statement | |
12286 | * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new | |
12287 | function which returns the last node in a list of nodes for which | |
12288 | Comes_From_Source returns True, if any | |
12289 | * sem_ch6.adb (Check_Missing_Return): minor refactoring to use | |
12290 | Last_Source_Node_In_Sequence | |
12291 | * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming, | |
12292 | Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal | |
12293 | mode on unsupported constructs | |
12294 | * sem_ch9.adb Do not return after issuing error in formal mode, as the | |
12295 | rest of the actions may be needed later on since the error is marked as | |
12296 | not serious. | |
12297 | * sinfo.ads: Typos in comments. | |
12298 | ||
12299 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
12300 | ||
12301 | * projects.texi: Minor editing. | |
12302 | ||
53beff22 YM |
12303 | 2011-08-01 Yannick Moy <moy@adacore.com> |
12304 | ||
12305 | * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for | |
12306 | insertion character ~~ | |
12307 | * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures | |
12308 | (Set_Error_Msg_Lang): new procedure which fixes the language for use | |
12309 | with insertion character ~~ | |
12310 | (Set_Msg_Text): treat insertion character ~~ | |
12311 | * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb, | |
12312 | sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to | |
12313 | Formal_Error_Msg_... procedures by equivalent Error_Msg_... | |
12314 | procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make | |
12315 | errors related to the formal language restriction not serious | |
12316 | (insertion character |). | |
12317 | * par.adb (Par): set formal language for error messages if needed | |
12318 | * sem_ch6.adb (Check_Missing_Return): take into account possible | |
12319 | generated statements at the end of the function | |
12320 | * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and | |
12321 | enumeration value to define a new pragma SPARK_95 | |
12322 | * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default, | |
12323 | SPARK_Version): new type and variables to store the SPARK version | |
12324 | (none by default). | |
12325 | (SPARK_Mode): return True when SPARK_Version is set | |
12326 | * par-prag.adb: Correct indentation | |
12327 | (Prag): take Pragma_SPARK_95 into account | |
12328 | * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95 | |
12329 | into account. | |
12330 | ||
8d606a78 RD |
12331 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
12332 | ||
12333 | * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb, | |
12334 | sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb, | |
12335 | sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting | |
12336 | ||
1982d5a8 PO |
12337 | 2011-08-01 Pascal Obry <obry@adacore.com> |
12338 | ||
12339 | * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass | |
12340 | Target_Name to Get_Path call. | |
12341 | (Parse_Single_Project): Likewise. | |
12342 | (Post_Parse_Context_Clause): Likewise. | |
12343 | * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter. | |
12344 | Call Initialise_Project_Path with the proper Target_Name. | |
12345 | (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat | |
12346 | search path. | |
12347 | (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path | |
12348 | with the proper Target_Name. | |
12349 | * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to | |
12350 | Part.Parse routine. | |
12351 | (Parse_Project_And_Apply_Config): Likewise. | |
12352 | * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine. | |
12353 | This is fine as this part of the code is supporting only native | |
12354 | compilation. | |
12355 | * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This | |
12356 | is fine as this part of the code is supporting only native compilation. | |
12357 | ||
0d53d36b AC |
12358 | 2011-08-01 Yannick Moy <moy@adacore.com> |
12359 | ||
12360 | * sem_util.adb (Enter_Name): issue error in formal mode on declaration | |
12361 | of homonym, unless the homonym is one of the cases allowed in SPARK | |
12362 | * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for | |
12363 | package declaration occurring after a body. | |
12364 | ||
12365 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
12366 | ||
12367 | * checks.adb, exp_ch4.adb: Minor reformatting. | |
12368 | ||
12369 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
12370 | ||
12371 | * einfo.ads (Access_Disp_Table): Fix documentation. | |
12372 | (Dispatch_Table_Wrappers): Fix documentation. | |
12373 | ||
12374 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
12375 | ||
12376 | * prj-env.adb, prj-env.ads: Minor reformatting. | |
12377 | ||
8ed68165 AC |
12378 | 2011-08-01 Yannick Moy <moy@adacore.com> |
12379 | ||
12380 | * sem_util.ads, sem_util.adb, par.adb, par_util.adb | |
12381 | (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move | |
12382 | procedures out of these packages. | |
2c7f9cc0 | 12383 | * errout.ads, errout.adb |
8ed68165 AC |
12384 | (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move |
12385 | procedures in of this package | |
12386 | (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE | |
12387 | * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode | |
12388 | on misplaced later vs initial declarations, like in Ada 83 | |
12389 | * sem_attr.adb (Processing for Analyze_Attribute): issue error in | |
12390 | formal mode on attribute of private type whose full type declaration | |
12391 | is not visible | |
12392 | * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a | |
12393 | package declaration inside a package specification | |
12394 | (Analyze_Full_Type_Declaration): issue error in formal mode on | |
12395 | controlled type or discriminant type | |
12396 | * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on | |
12397 | user-defined operator means that it should come from the source | |
12398 | (New_Overloaded_Entity): issue error in formal mode on overloaded | |
12399 | entity. | |
12400 | * sem_ch6.ads, sem_ch13.ads: typos in comments. | |
12401 | ||
12402 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
12403 | ||
12404 | * atree.adb: Minor reformatting. | |
12405 | * checks.adb: Minor reformatting. | |
12406 | ||
4230bdb7 AC |
12407 | 2011-08-01 Vincent Celier <celier@adacore.com> |
12408 | ||
12409 | * s-parame-vms-ia64.ads: Fix typo in comment | |
12410 | Minor reformatting | |
12411 | * s-parame-vms-restrict.ads: Removed, unused. | |
12412 | ||
12413 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
12414 | ||
12415 | * exp_ch3.adb | |
12416 | (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound. | |
12417 | * sem_ch3.adb | |
12418 | (Constrain_Index): Remove side effects in the evaluation of the bounds. | |
12419 | * sem_ch3.ads, sem_ch3.adb | |
12420 | (Is_Constant_Bound): New extended version of the subprogram that was | |
12421 | previously located inside function Exp_Ch3.Is_Variable_Size_Array. | |
12422 | Moved here since it is shared by routines of sem_ch3 and exp_ch3. | |
12423 | * sem_aux.ads (Constant_Value): Fix typo in comment. | |
12424 | * checks.adb (Generate_Index_Checks): New implementation which, for | |
12425 | array objects with constant bounds, generates the runtime check | |
12426 | referencing the bounds of the array type. For other cases this routine | |
12427 | provides its previous behavior obtaining such values from the array | |
12428 | object. | |
12429 | * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its | |
12430 | parent type. | |
12431 | * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since | |
12432 | we cannot have semantic interpretations of the new node. | |
12433 | ||
2010d078 AC |
12434 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
12435 | ||
12436 | * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified | |
12437 | expressions. | |
12438 | ||
12439 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
12440 | ||
12441 | * sem_ch8.adb: Minor code editing. | |
12442 | * s-vxwext.adb: Remove trailing space. | |
12443 | * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for | |
12444 | consistency with other files. | |
12445 | ||
12446 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
12447 | ||
12448 | * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting. | |
12449 | ||
12450 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
12451 | ||
12452 | * par-ch10.adb: reject parameterized expressions as compilation unit. | |
12453 | * sem_ch4.adb: handle properly conditional expression with overloaded | |
12454 | then_clause and no else_clause. | |
12455 | ||
12456 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
12457 | ||
12458 | * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address | |
12459 | like done by System.Aux_DEC. | |
12460 | * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table. | |
12461 | ||
daec8eeb YM |
12462 | 2011-08-01 Yannick Moy <moy@adacore.com> |
12463 | ||
12464 | * par-endh.adb (Check_End): issue a syntax error in SPARK mode for | |
12465 | missing label at end of declaration (subprogram or package) | |
12466 | * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing | |
12467 | of positional and named parameter association | |
12468 | * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on | |
12469 | Error_Msg_SP which adds a prefix to the error message giving the name | |
12470 | of the formal language analyzed | |
12471 | * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for | |
12472 | access result type in subprogram, unconstrained array as result type,. | |
12473 | (Analyze_Subprogram_Declaration): issue an error in formal mode for null | |
12474 | procedure | |
12475 | * sem_ch8.adb: Code clean up. | |
12476 | ||
38171f43 AC |
12477 | 2011-08-01 Javier Miranda <miranda@adacore.com> |
12478 | ||
12479 | * sem_ch7.adb (Uninstall_Declarations): Remove useless code. | |
12480 | * einfo.ads (Access_Disp_Table): Fix documentation. | |
12481 | (Dispatch_Table_Wrappers): Fix documentation. | |
12482 | * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers, | |
12483 | Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions | |
12484 | to enforce the documentation of this attribute. | |
12485 | (Set_Is_Interface): Cleanup the assertion. | |
12486 | * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate | |
12487 | the Underlying_Type entity before reading attribute Access_Disp_Table. | |
12488 | * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion): | |
12489 | Locate the Underlying_Type before reading attribute Access_Disp_Table. | |
12490 | * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate | |
12491 | the Underlying_Type entity before reading attribute Access_Disp_Table. | |
12492 | * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration): | |
12493 | Locate the Underlying_Type entity before reading attribute | |
12494 | Access_Disp_Table. | |
12495 | ||
12496 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
12497 | ||
12498 | * s-poosiz.ads: Additional overriding indicators. | |
12499 | ||
12500 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
12501 | ||
12502 | * sem_ch5.adb (Analyze_Exit_Statement): add return after error in | |
12503 | formal mode. | |
12504 | (Analyze_Iteration_Scheme): issue error in formal mode when loop | |
12505 | parameter specification does not include a subtype mark. | |
12506 | * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in | |
12507 | formal mode on abstract subprogram. | |
12508 | (Analyze_Subprogram_Specification): issue error in formal mode on | |
12509 | user-defined operator. | |
12510 | (Process_Formals): issue error in formal mode on access parameter and | |
12511 | default expression. | |
12512 | * sem_ch9.adb (Analyze_Abort_Statement, | |
12513 | Analyze_Accept_Statement, Analyze_Asynchronous_Select, | |
12514 | Analyze_Conditional_Entry_Call, Analyze_Delay_Relative, | |
12515 | Analyze_Delay_Until, Analyze_Entry_Call_Alternative, | |
12516 | Analyze_Requeue, Analyze_Selective_Accept, | |
12517 | Analyze_Timed_Entry_Call): issue error in formal mode on such constructs | |
12518 | * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error): | |
12519 | issue error in formal mode on user-defined raise statement. | |
12520 | ||
1f250383 AC |
12521 | 2011-08-01 Thomas Quinot <quinot@adacore.com> |
12522 | ||
12523 | * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a | |
12524 | declaration being hidden when overriding an implicit inherited | |
12525 | subprogram. | |
12526 | * par-ch10.adb (P_Compilation_Unit): In syntax check only mode | |
12527 | (-gnats), do not complain about a source file that contains only a | |
12528 | pragma No_Body. | |
12529 | ||
12530 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
12531 | ||
12532 | * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop | |
12533 | variable if already set. | |
12534 | ||
607d0635 AC |
12535 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> |
12536 | ||
12537 | * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads, | |
12538 | g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads, | |
12539 | s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads, | |
12540 | g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb, | |
12541 | g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads, | |
12542 | g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads, | |
12543 | g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads, | |
12544 | g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb, | |
12545 | g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb, | |
12546 | g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads, | |
12547 | g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads, | |
12548 | s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb, | |
12549 | g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads, | |
12550 | s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads, | |
12551 | g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb, | |
12552 | g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb, | |
12553 | g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb, | |
12554 | g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb, | |
12555 | g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb, | |
12556 | g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb, | |
12557 | s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads, | |
12558 | s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads, | |
12559 | a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb, | |
12560 | s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads, | |
12561 | s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb, | |
12562 | g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads, | |
12563 | g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb, | |
12564 | g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb, | |
12565 | g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads, | |
12566 | g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads, | |
12567 | g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads, | |
12568 | s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads, | |
12569 | s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb, | |
12570 | g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb, | |
12571 | g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads, | |
12572 | s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb, | |
12573 | s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads, | |
12574 | g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads, | |
12575 | g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb, | |
12576 | g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, | |
12577 | s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads, | |
12578 | g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads, | |
12579 | g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads, | |
12580 | g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb, | |
12581 | s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb, | |
12582 | g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb, | |
12583 | g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb, | |
12584 | g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb, | |
12585 | s-osinte-mingw.ads: Update to GPLv3 run-time license. | |
12586 | Use GNAT instead of GNARL. | |
12587 | ||
12588 | 2011-08-01 Bob Duff <duff@adacore.com> | |
12589 | ||
12590 | * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads, | |
12591 | a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads, | |
12592 | a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor | |
12593 | reformatting. | |
12594 | ||
12595 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
12596 | ||
12597 | * debug.adb (d.D) reverve flag for the SPARK mode | |
12598 | (d.E) reverve flag for SPARK generation mode | |
12599 | (d.F) reverve flag for Why generation mode | |
2c7f9cc0 | 12600 | * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode, |
607d0635 AC |
12601 | ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New |
12602 | functions which return True when the corresponding modes are set | |
12603 | (Formal_Language): return "spark" or "alfa" when in formal verification | |
12604 | mode. | |
12605 | * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on | |
12606 | Error_Msg to prefix the error message with a tag giving the formal | |
12607 | language | |
12608 | (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error | |
12609 | message with a tag giving the formal language | |
12610 | * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on | |
12611 | block statement | |
12612 | (Analyze_Case_Statement): issue error in formal mode on case statement | |
12613 | with a single "others" case alternative | |
12614 | (Analyze_Exit_Statement): issue errors in formal mode on exit | |
12615 | statements which do not respect SPARK restrictions | |
12616 | (Analyze_Goto_Statement): issue error in formal mode on goto statement | |
12617 | (Check_Unreachable_Code): always issue an error (not a warning) in | |
12618 | formal mode on unreachable code (concerns both code after an infinite | |
12619 | loop and after an unconditional jump, both not allowed in SPARK) | |
12620 | * sem_ch6.adb (Analyze_Return_Statement): add call to | |
12621 | Set_Return_Present for a procedure containing a return statement | |
12622 | (already done for functions in Analyze_Function_Return) | |
12623 | (Analyze_Function_Return): issue error in formal mode on extended | |
12624 | return or if return is not last statement in function | |
12625 | (Check_Missing_Return): issue error in formal mode if function does | |
12626 | not end with return or if procedure contains a return | |
12627 | * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new | |
12628 | function to detect if there is an inner scope of its parameter S which | |
12629 | is a loop. | |
12630 | ||
12631 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
12632 | ||
12633 | * sem_ch6.ads: Minor reformatting. | |
12634 | ||
d8b3ccb9 AC |
12635 | 2011-08-01 Javier Miranda <miranda@adacore.com> |
12636 | ||
12637 | * sem_util.adb (Abstract_Interface_List): Complete condition when | |
12638 | processing private type declarations to avoid reading unavailable | |
12639 | attribute. | |
12640 | (Is_Synchronized_Tagged_Type): Complete condition when processing | |
12641 | private extension declaration nodes to avoid reading unavailable | |
12642 | attribute. | |
12643 | ||
12644 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
12645 | ||
12646 | * sem_ch3.adb: Minor reformatting. | |
12647 | ||
12648 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
12649 | ||
12650 | * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads, | |
12651 | i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads, | |
12652 | s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads, | |
12653 | s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages | |
12654 | for VMS, instead parametrize the common implementation with | |
12655 | System.Parameters declarations. | |
12656 | ||
0bb9276c AC |
12657 | 2011-08-01 Eric Botcazou <ebotcazou@adacore.com> |
12658 | ||
12659 | * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing. | |
12660 | ||
12661 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
12662 | ||
12663 | * seh_init.c: Fix SEH handler installation on win64. | |
12664 | ||
12665 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
12666 | ||
12667 | * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent | |
12668 | double analysis of an anonymous access to subprogram, because it can | |
12669 | lead to improper sharing of profiles and a back-end crash. | |
12670 | ||
6a2e4f0b AC |
12671 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
12672 | ||
12673 | * make.adb, sem_ch4.adb: Minor reformatting. | |
12674 | * gcc-interface/Make-lang.in: Update dependencies. | |
12675 | * sem_util.adb, exp_ch5.adb: Minor reformatting. | |
12676 | ||
12677 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
12678 | ||
12679 | * gnat_rm.texi: Fix definition of Long_Integer. | |
12680 | ||
12681 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
12682 | ||
12683 | * exp_aggr.adb: check limit size of static aggregate unconditionally, | |
12684 | to prevent storage exhaustion. | |
12685 | * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being | |
12686 | finalized is a function body, insert the cleanup code before the final | |
12687 | return statement, to prevent spurious warnings. | |
12688 | * s-pooglo.ads: add overriding indicator. | |
12689 | ||
4561baf7 ES |
12690 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
12691 | ||
12692 | * sem_ch4.adb (Operator_Check): improve error message when both a | |
12693 | with_clause and a use_clause are needed to make operator usage legal. | |
12694 | * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to | |
12695 | determine whether a compilation unit is visible within an other, | |
12696 | either through a with_clause in the current unit, or a with_clause in | |
12697 | its library unit or one one of its parents. | |
12698 | ||
383e179e AC |
12699 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
12700 | ||
12701 | * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator | |
12702 | over an arbitrary expression of an array or container type. | |
12703 | * lib-xref.adb: clarify comment. | |
12704 | ||
12705 | 2011-08-01 Bob Duff <duff@adacore.com> | |
12706 | ||
12707 | * einfo.ads: Minor reformatting. | |
12708 | * debug.adb: Minor comment improvement. | |
12709 | ||
12710 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
12711 | ||
12712 | * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not | |
12713 | consider hidden subprograms as valid candidates. | |
12714 | ||
12715 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
12716 | ||
12717 | * make.adb (Compile): Strip -mxxx switches in CodePeer mode. | |
12718 | ||
12719 | 2011-08-01 Vasiliy Fofanov <fofanov@adacore.com> | |
12720 | ||
12721 | * gnat_ugn.texi: Fix typo. | |
12722 | ||
61c161b2 AC |
12723 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
12724 | ||
12725 | * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb, | |
12726 | lib-xref.adb: Minor reformatting | |
12727 | ||
12728 | 2011-08-01 Gary Dismukes <dismukes@adacore.com> | |
12729 | ||
12730 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of | |
12731 | when to generate a call to Move_Final_List. | |
12732 | (Has_Controlled_Parts): Remove this function. | |
12733 | ||
84df40f7 AC |
12734 | 2011-08-01 Geert Bosch <bosch@adacore.com> |
12735 | ||
12736 | * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra | |
12737 | "," in choice list. | |
12738 | ||
12739 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
12740 | ||
12741 | * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for | |
12742 | explicit raise of a predefined exception as Comes_From_Source if the | |
12743 | original N_Raise_Statement comes from source. | |
12744 | ||
12745 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
12746 | ||
12747 | * sinfo.ads: Add comment. | |
12748 | * sem_ch6.adb: Minor reformatting. | |
12749 | ||
12750 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
12751 | ||
12752 | * freeze.adb (Freeze_Entity): Refine check for bad component size | |
12753 | clause to avoid rejecting confirming clause when atomic/aliased present. | |
12754 | ||
12755 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
12756 | ||
12757 | * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to | |
12758 | better determine whether an entity reference is a write. | |
12759 | * sem_util.adb (Is_LHS): refine predicate to handle assignment to a | |
12760 | subcomponent. | |
12761 | * lib-xref.adb (Output_References): Do no suppress a read reference at | |
12762 | the same location as an immediately preceeding modify-reference, to | |
12763 | handle properly in-out actuals. | |
12764 | ||
12765 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
12766 | ||
12767 | * env.c (__gnat_setenv) [VMS]: Refine previous change. | |
12768 | ||
12769 | 2011-08-01 Quentin Ochem <ochem@adacore.com> | |
12770 | ||
12771 | * i-cstrin.adb (New_String): Changed implementation, now uses only the | |
12772 | heap to compute the result. | |
12773 | ||
c7f0d2c0 AC |
12774 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
12775 | ||
12776 | * atree.ads: Minor reformatting. | |
12777 | ||
12778 | 2011-08-01 Emmanuel Briot <briot@adacore.com> | |
12779 | ||
12780 | * g-expect.adb (Get_Command_Output): Fix memory leak. | |
12781 | ||
12782 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
12783 | ||
12784 | * cstand.adb (P_Float_Type): New procedure to print the definition of | |
12785 | predefined fpt types. | |
12786 | (P_Mixed_Name): New procedure to print a name using mixed case | |
12787 | (Print_Standard): Use P_Float_Type for printing floating point types | |
12788 | * einfo.adb (Machine_Emax_Value): Add preliminary support for quad | |
12789 | precision IEEE float. | |
12790 | ||
12791 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
12792 | ||
12793 | * sem_ch3.adb: Minor reformatting. | |
12794 | ||
12795 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
12796 | ||
12797 | * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is | |
12798 | the completion of a generic function, insert the new body rather than | |
12799 | rewriting the original. | |
12800 | ||
12801 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
12802 | ||
12803 | * sinfo.ads, errout.ads: Typos in comments. | |
12804 | ||
1c54829e AC |
12805 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
12806 | ||
12807 | * par-endh.adb: Minor reformatting. | |
12808 | ||
12809 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
12810 | ||
12811 | * aspects.ads, aspects.adb: Add aspects for library unit pragmas | |
12812 | (Pre_Post_Aspects): New subtype. | |
12813 | * par-ch12.adb (P_Generic): New syntax for aspects in packages | |
12814 | * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter | |
12815 | * par-ch7.adb (P_Package): Remove Decl parameter | |
12816 | (P_Package): Handle new syntax for aspects (before IS) | |
12817 | * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle | |
12818 | new aspect syntax | |
12819 | (P_Task_Definition): Remove Decl parameter, handle new aspect syntax | |
12820 | * par.adb (P_Aspect_Specifications): Add Semicolon parameter | |
12821 | (P_Package): Remove Decl parameter | |
12822 | * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit | |
12823 | aspects | |
12824 | * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect | |
12825 | specs | |
12826 | * sem_util.ads, sem_util.adb (Static_Boolean): New function | |
12827 | * sinfo.ads: Document new syntax for aspects in packages etc. | |
12828 | * sprint.adb: Handle new syntax of aspects before IS in package | |
12829 | ||
12830 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
12831 | ||
12832 | * atree.ads: Minor reformatting. | |
12833 | * sem_prag.adb: Minor reformatting. | |
12834 | ||
12835 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
12836 | ||
12837 | * exp_util.adb (Insert_Actions): Fix error in handling Actions for | |
12838 | case expr alternative. | |
12839 | ||
12840 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
12841 | ||
12842 | * sem_ch12.adb: Fix typo. | |
12843 | ||
9eea4346 GB |
12844 | 2011-08-01 Geert Bosch <bosch@adacore.com> |
12845 | ||
12846 | * sem_prag.adb (Check_No_Link_Name): New procedure. | |
12847 | (Process_Import_Or_Interface): Use Check_No_Link_Name. | |
12848 | * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float) | |
12849 | instead of Standard_Long_Long_Float_Size global. Preparation for | |
12850 | eventual removal of per type constants. | |
12851 | * exp_util.ads (Get_Stream_Size): New function returning the stream | |
12852 | size value of subtype E. | |
12853 | * exp_util.adb (Get_Stream_Size): Implement new function. | |
12854 | * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size | |
12855 | function. | |
12856 | * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size | |
12857 | * einfo.adb: | |
12858 | (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats | |
12859 | ||
3d6c3bd7 GB |
12860 | 2011-08-01 Geert Bosch <bosch@adacore.com> |
12861 | ||
12862 | * cstand.adb: Fix comments. | |
12863 | * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit | |
12864 | count of arguments. | |
12865 | ||
e7d897b8 AC |
12866 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
12867 | ||
12868 | * exp_ch4.adb, sem_cat.adb: Minor reformatting. | |
12869 | ||
12870 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
12871 | ||
12872 | * atree.ads: Fix comment. | |
12873 | ||
c228a069 AC |
12874 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
12875 | ||
12876 | * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec. | |
12877 | * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name. | |
12878 | * par.adb: Add with for Namet.Sp. | |
12879 | * par-tchk.adb: Minor reformatting. | |
12880 | ||
12881 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
12882 | ||
12883 | * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb | |
12884 | (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name | |
12885 | of the init procedure of a SAL. | |
12886 | * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name): | |
12887 | New procedure. | |
12888 | ||
12889 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
12890 | ||
12891 | * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor | |
12892 | reformatting. | |
12893 | ||
12894 | 2011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
12895 | ||
12896 | * adaint.c (__gnat_file_time_name_attr): Get rid of warning. | |
12897 | ||
12898 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
12899 | ||
12900 | * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function | |
12901 | conformant with its spec (return True only for types that have | |
12902 | an overriding Initialize primitive operation that prevents them from | |
12903 | having preelaborable initialization). | |
12904 | * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable | |
12905 | initialization for controlled types in Ada 2005 or later mode. | |
12906 | ||
857ade1b RD |
12907 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
12908 | ||
12909 | * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition, | |
12910 | Postcondition. | |
12911 | (Same_Aspect): New function. | |
12912 | * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect | |
12913 | Type_Invariant, Precondition, Postcondition. | |
12914 | * snames.ads-tmpl: Add Name_Type_Invariant. | |
12915 | ||
bd949ee2 RD |
12916 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
12917 | ||
12918 | * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point | |
12919 | here. | |
12920 | (Freeze_All_Ent): Fix error in handling inherited aspects. | |
12921 | * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is | |
12922 | already analyzed, but don't skip entire processing of a declaration, | |
12923 | that's wrong in some cases of declarations being rewritten. | |
12924 | (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects. | |
12925 | Don't delay for integer, string literals | |
12926 | Treat predicates in usual manner for delay, remove special case code, | |
12927 | not needed. | |
12928 | (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point | |
12929 | (Build_Predicate_Function): Update saved expression in aspect | |
12930 | (Build_Invariant_Procedure): Update saved expression in aspect | |
12931 | * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization | |
12932 | of replacement of discriminant references if the reference is simple. | |
12933 | ||
f1c952af RD |
12934 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
12935 | ||
12936 | * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate. | |
12937 | * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for | |
12938 | Static_Predicate and Dynamic_Predicate. | |
12939 | (Build_Predicate_Function): Add processing for Static_Predicate | |
12940 | and Dynamic_Predicate. | |
12941 | * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag | |
12942 | (From_Static_Predicate): New flag | |
12943 | * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate | |
12944 | ||
12945 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
12946 | ||
12947 | * usage.adb: Documentation cleanup for Ada version modes in usage. | |
12948 | * expander.adb: Minor reformatting. | |
12949 | ||
47e11d08 AC |
12950 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
12951 | ||
12952 | * atree.ads: Minor comment fix. | |
12953 | * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads, | |
12954 | a-witeio.ads, sem_prag.adb: Minor reformatting. | |
12955 | ||
12956 | 2011-08-01 Doug Rupp <rupp@adacore.com> | |
12957 | ||
12958 | * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure | |
12959 | pointers. Use descrip.h header file for convenience. Add some | |
12960 | comments. | |
12961 | ||
12962 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
12963 | ||
12964 | * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point | |
12965 | (Freeze_All): Call Check_Aspect_At_End_Of_Declarations | |
12966 | * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point): | |
12967 | New procedure. | |
12968 | (Check_Aspect_At_End_Of_Declarations): New procedure | |
12969 | (Analye_Aspect_Specification): Minor changes for above procedures | |
12970 | * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect | |
12971 | specification node as well. | |
12972 | ||
12973 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
12974 | ||
12975 | * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special | |
12976 | Windows files. Use GetFilesAttributes() in this case to check for file | |
12977 | existence instead of returning with an error code. | |
12978 | ||
a3a16b21 VC |
12979 | 2011-08-01 Vincent Celier <celier@adacore.com> |
12980 | ||
12981 | * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when | |
12982 | High is above Source length. | |
12983 | ||
ff58cc69 RD |
12984 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
12985 | ||
12986 | * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment. | |
12987 | ||
6bb88533 AC |
12988 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
12989 | ||
12990 | * aspects.ads (Boolean_Aspects): New subtype. | |
12991 | * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects | |
12992 | for derived types in cases where the parent type and derived type have | |
12993 | aspects. | |
12994 | * freeze.adb (Freeze_Entity): Fix problems in handling derived type | |
12995 | with aspects when parent type also has aspects. | |
12996 | (Freeze_Entity): Deal with delay of boolean aspects (must evaluate | |
12997 | boolean expression at this point). | |
12998 | * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in | |
12999 | accordance with final decision on the Ada 2012 feature. | |
13000 | * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag. | |
13001 | ||
13002 | 2011-08-01 Matthew Heaney <heaney@adacore.com> | |
13003 | ||
13004 | * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector. | |
13005 | ||
060a3f28 AC |
13006 | 2011-08-01 Pascal Obry <obry@adacore.com> |
13007 | ||
13008 | * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: | |
13009 | Fix Replace_Slice when High is above current string size. | |
13010 | (Replace_Slice): Fix DL computation when High is above current | |
13011 | string length. | |
13012 | ||
13013 | 2011-08-01 Gary Dismukes <dismukes@adacore.com> | |
13014 | ||
13015 | * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired. | |
13016 | ||
e7f567a3 AC |
13017 | 2011-08-01 Matthew Heaney <heaney@adacore.com> |
13018 | ||
13019 | * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child | |
13020 | of node. | |
13021 | ||
13022 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
13023 | ||
13024 | * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor | |
13025 | reformatting. | |
13026 | ||
1a265e78 AC |
13027 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
13028 | ||
13029 | * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named | |
13030 | access to protected subprograms in generic bodies. | |
13031 | * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a | |
13032 | protected type, indicate that the convention of the subprogram is | |
13033 | Convention_Protected, because it may be used in subsequent declarations | |
13034 | within the protected declaration. | |
13035 | ||
13036 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
13037 | ||
13038 | * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init" | |
13039 | and "final" procedures when the name of the library is "ada", to avoid | |
13040 | duplicate symbols "adainit" and "adafinal" in executables. | |
13041 | ||
67e28ef8 ES |
13042 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
13043 | ||
13044 | * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a | |
13045 | quantified expression that appears within a postcondition and uses the | |
13046 | Ada2012 'Result attribute. | |
13047 | ||
6da2ca7d RO |
13048 | 2011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
13049 | ||
13050 | * init.c (__gnat_error_handler): Cast reason to int. | |
13051 | (__gnat_install_handler): Explain sa_sigaction use. | |
13052 | ||
7d5997c6 EB |
13053 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> |
13054 | ||
13055 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the | |
13056 | subprogram has copy-in copy-out parameters, try to promote the mode of | |
13057 | the return type if it is passed in registers. | |
13058 | ||
4b4cfdd5 EB |
13059 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> |
13060 | ||
13061 | * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the | |
13062 | left operand as addressable. | |
13063 | ||
f3d34576 EB |
13064 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> |
13065 | ||
13066 | * gcc-interface/gigi.h (build_function_stub): Remove. | |
13067 | (build_return_expr): Likewise. | |
13068 | (convert_vms_descriptor): Declare. | |
13069 | * gcc-interface/utils.c (convert_vms_descriptor): Make global. | |
13070 | (build_function_stub): Move to... | |
13071 | * gcc-interface/utils2.c (build_return_expr): Move to... | |
13072 | * gcc-interface/trans.c (build_function_stub): ...here. | |
13073 | (build_return_expr): ...here. | |
13074 | (Subprogram_Body_to_gnu): Add local variable for language_function. | |
13075 | Disconnect the parameter attributes cache, if any, once done with it. | |
13076 | Call end_subprog_body only after setting the end_locus. | |
13077 | Build the stub associated with the function, if any, at the very end. | |
13078 | (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local | |
13079 | variables and streamline control flow. | |
13080 | ||
0a6ecc08 AC |
13081 | 2011-07-23 Arnaud Charlet <charlet@adacore.com> |
13082 | ||
13083 | PR ada/49819 | |
13084 | * gcc-interface/Makefile.in (powerpc-linux): Remove reference to | |
13085 | g-trasym-dwarf.adb. | |
13086 | ||
5b6d595b RO |
13087 | 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
13088 | ||
13089 | PR bootstrap/49794 | |
13090 | * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler): | |
13091 | Assign to act.sa_sigaction. | |
13092 | * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast | |
13093 | current->return_address to char * before arithmetic. | |
13094 | ||
94017021 RO |
13095 | 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
13096 | ||
13097 | * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation. | |
13098 | Correct argument types. | |
13099 | Extract code from reason. | |
13100 | (__gnat_install_handler): Assign to act.sa_sigaction. | |
13101 | ||
52fd02bb EB |
13102 | 2011-07-21 Eric Botcazou <ebotcazou@adacore.com> |
13103 | ||
13104 | * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to... | |
13105 | (GNAT1_OBJS): ...here. | |
13106 | ||
f39a9ca2 EB |
13107 | 2011-07-15 Eric Botcazou <ebotcazou@adacore.com> |
13108 | ||
13109 | PR ada/48711 | |
13110 | * g-socthi-mingw.adb (Fill): Fix formatting. | |
13111 | ||
9e36aa23 EB |
13112 | * gcc-interface/gigi.h: Move around comment. |
13113 | ||
e3aca522 JDA |
13114 | 2011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
13115 | ||
13116 | PR ada/46350 | |
13117 | * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast. | |
13118 | ||
696b1960 FW |
13119 | 2011-07-14 Florian Weimer <fw@deneb.enyo.de> |
13120 | ||
13121 | PR ada/48711 | |
13122 | * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL. | |
13123 | ||
f542c405 EB |
13124 | 2011-07-13 Eric Botcazou <ebotcazou@adacore.com> |
13125 | ||
13126 | * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit | |
13127 | range comparison if Pmode is SImode. | |
13128 | ||
9e9bd455 LG |
13129 | 2011-07-12 Laurent GUERBY <laurent@guerby.net> |
13130 | Eric Botcazou <ebotcazou@adacore.com> | |
13131 | ||
13132 | * adadecode.c: Wrap up in extern "C" block. | |
13133 | * adadecode.h: Likewise. | |
13134 | * adaint.c: Likewise. Remove 'const' keyword. | |
13135 | * adaint.h: Likewise. | |
13136 | * argv.c: Likewise. | |
13137 | * atree.h: Likewise. | |
13138 | * cio.c: Likewise. | |
13139 | * cstreams.c: Likewise. | |
13140 | * env.c: Likewise. | |
13141 | * exit.c: Likewise. | |
13142 | * fe.h: Likewise. | |
13143 | * final.c: Likewise. | |
13144 | * init.c: Likewise. | |
13145 | * initialize.c: Likewise. | |
13146 | * link.c: Likewise. | |
13147 | * namet.h: Likewise. | |
13148 | * nlists.h: Likewise. | |
13149 | * raise.c: Likewise. | |
13150 | * raise.h: Likewise. | |
13151 | * repinfo.h: Likewise. | |
13152 | * seh_init.c: Likewise. | |
13153 | * targext.c: Likewise. | |
13154 | * tracebak.c: Likewise. | |
13155 | * uintp.h: Likewise. | |
13156 | * urealp.h: Likewise. | |
13157 | * xeinfo.adb: Wrap up generated C code in extern "C" block. | |
13158 | * xsinfo.adb: Likewise. | |
13159 | * xsnamest.adb: Likewise. | |
13160 | * gcc-interface/gadaint.h: Wrap up in extern "C" block. | |
13161 | * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block. | |
13162 | * gcc-interface/misc.c: Likewise. | |
13163 | * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER. | |
13164 | (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and | |
13165 | ada/targext.o here... | |
13166 | (GNAT_ADA_OBJS): ...and not here. | |
13167 | (GNAT1_ADA_OBJS): Add ada/b_gnat1.o. | |
13168 | (GNATBIND_OBJS): Reorder. | |
13169 | ||
7644b3c7 RH |
13170 | 2011-07-07 Richard Henderson <rth@redhat.com> |
13171 | ||
13172 | * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call | |
13173 | dwarf2out_frame_init. | |
13174 | ||
8384ac41 EB |
13175 | 2011-07-07 Eric Botcazou <ebotcazou@adacore.com> |
13176 | ||
13177 | * gcc-interface/misc.c (gnat_init): Tweak previous change. | |
13178 | ||
fbdd5d87 RO |
13179 | 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
13180 | ||
13181 | PR target/39150 | |
13182 | * gcc-interface/Makefile.in: Handle x86_64-solaris2. | |
13183 | ||
1a072294 RG |
13184 | 2011-07-06 Richard Guenther <rguenther@suse.de> |
13185 | ||
8384ac41 EB |
13186 | * gcc-interface/misc.c (gnat_init): Merge calls to |
13187 | build_common_tree_nodes and build_common_tree_nodes_2. | |
1a072294 RG |
13188 | Re-initialize boolean_false_node. |
13189 | ||
bc712852 EB |
13190 | 2011-07-02 Eric Botcazou <ebotcazou@adacore.com> |
13191 | Olivier Hainque <hainque@adacore.com> | |
13192 | Nicolas Setton <setton@adacore.com> | |
13193 | ||
13194 | * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on | |
13195 | the type according to the ARTIFICIAL_P parameter. | |
13196 | (create_type_decl): Likewise. | |
13197 | (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1. | |
13198 | ||
2eb22389 EB |
13199 | 2011-07-01 Eric Botcazou <ebotcazou@adacore.com> |
13200 | ||
13201 | * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command. | |
13202 | (gnatbind): Likewise. | |
13203 | ||
4bdaaf2f RO |
13204 | 2011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
13205 | ||
13206 | * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL). | |
13207 | ||
c020c92b EB |
13208 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> |
13209 | ||
13210 | * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE | |
13211 | local variable throughout. Remove useless call to Base_Type. | |
13212 | (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout. | |
13213 | Take it also into account for the volatileness of the field. Set the | |
13214 | TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings. | |
13215 | ||
96769d32 EB |
13216 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> |
13217 | ||
13218 | * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP | |
13219 | on a dereference built for a by-ref object if it has an address clause. | |
13220 | ||
7e4680c1 EB |
13221 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> |
13222 | ||
13223 | * einfo.ads (Address_Taken): Document use for the second argument of | |
13224 | Asm_Input and Asm_Output attributes. | |
13225 | * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second | |
13226 | argument is an entity name, then set Address_Taken on it. | |
13227 | <Attribute_Asm_Output>: Likewise. | |
13228 | * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the | |
13229 | Attr_Asm_Input and Attr_Asm_Output attributes explicitly. | |
13230 | (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in | |
13231 | memory and is a CONST_DECL, retrieve its corresponding VAR_DECL. | |
13232 | ||
13233 | 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com> | |
d5cc9181 JR |
13234 | |
13235 | PR middle-end/46500 | |
13236 | * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args. | |
13237 | ||
677f3fa8 JM |
13238 | 2011-06-14 Joseph Myers <joseph@codesourcery.com> |
13239 | ||
13240 | * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o. | |
13241 | (ada/utils.o): Update dependencies. | |
13242 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add | |
13243 | ../../../libcpp/libcpp.a. | |
13244 | * gcc-interface/utils.c: Include common/common-target.h. | |
13245 | (process_attributes): Use targetm_common.have_named_sections. | |
13246 | ||
009db074 RG |
13247 | 2011-06-07 Richard Guenther <rguenther@suse.de> |
13248 | ||
0bad0e23 EB |
13249 | * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call |
13250 | set_sizetype. | |
009db074 | 13251 | |
3bfc61cf EB |
13252 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
13253 | ||
0bad0e23 | 13254 | * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the |
3bfc61cf EB |
13255 | TREE_THIS_NOTRAP flag. |
13256 | ||
5c4a1c7b EB |
13257 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
13258 | ||
13259 | * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>: | |
13260 | Fix thinko. | |
13261 | ||
e9f57686 EB |
13262 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
13263 | ||
13264 | * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred | |
13265 | constants whose full view has discriminants specially. | |
13266 | ||
10e4d056 EB |
13267 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
13268 | ||
13269 | * gcc-interface/utils.c: Include diagnostic.h. | |
13270 | (gnat_write_global_declarations): Output debug information for all | |
13271 | global type declarations before finalizing the compilation unit. | |
13272 | * gcc-interface/Make-lang.in (ada/utils.o): Add dependency. | |
13273 | ||
0957c029 JJ |
13274 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> |
13275 | ||
13276 | * gcc-interface/utils.c (def_fn_type): Remove extra va_end. | |
13277 | ||
52d0a7ac KT |
13278 | 2011-05-25 Kai Tietz <ktietz@redhat.com> |
13279 | ||
13280 | * adaint.c (__gnat_to_canonical_file_list_next): Use array | |
13281 | initialization instead of const/none-const pointer assignment. | |
13282 | ||
1ed1641d JM |
13283 | 2011-05-24 Joseph Myers <joseph@codesourcery.com> |
13284 | ||
13285 | * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include | |
13286 | $(EXTRA_GNAT1_OBJS). | |
13287 | (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS). | |
13288 | (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove. | |
13289 | (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a. | |
13290 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use | |
13291 | libcommon-target.a instead of prefix.o. | |
13292 | ||
9fe72ebd JM |
13293 | 2011-05-21 Joseph Myers <joseph@codesourcery.com> |
13294 | ||
13295 | PR ada/49097 | |
0bad0e23 | 13296 | * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS). |
9fe72ebd | 13297 | |
2691e6d7 JM |
13298 | 2011-05-20 Joseph Myers <joseph@codesourcery.com> |
13299 | ||
0bad0e23 EB |
13300 | * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o. |
13301 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a | |
13302 | instead of version.o. | |
2691e6d7 | 13303 | |
bf6490b5 KT |
13304 | 2011-05-18 Kai Tietz <ktietz@redhat.com> |
13305 | ||
13306 | * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use | |
13307 | boolean_false_node instead of integer_zero_node. | |
13308 | (convert_with_check): Likewise. | |
13309 | * gcc-interface/decl.c (choices_to_gnu): Likewise. | |
13310 | ||
7bf9a5ac EB |
13311 | 2011-05-12 Eric Botcazou <ebotcazou@adacore.com> |
13312 | ||
13313 | * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the | |
13314 | type of the parameter is an unconstrained array, convert the actual to | |
13315 | the type of the formal in the In Out and Out cases as well. | |
13316 | ||
e5b00edf NF |
13317 | 2011-05-11 Nathan Froyd <froydnj@codesourcery.com> |
13318 | ||
13319 | * gcc-interface/utils.c (def_fn_type): Don't call build_function_type; | |
13320 | call build_function_type_array or build_varargs_function_type_array | |
13321 | instead. | |
13322 | (create_subprog_type): Don't call build_function_type; call | |
13323 | build_function_type_vec instead. | |
13324 | ||
51545682 NF |
13325 | 2011-05-11 Nathan Froyd <froydnj@codesourcery.com> |
13326 | ||
13327 | * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL. | |
13328 | (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL. | |
13329 | (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL. | |
13330 | ||
c99c0026 EB |
13331 | 2011-05-07 Eric Botcazou <ebotcazou@adacore.com> |
13332 | ||
f620bd21 EB |
13333 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces. |
13334 | ||
c99c0026 EB |
13335 | * gcc-interface/gigi.h (global_bindings_p): Adjust prototype. |
13336 | * gcc-interface/utils.c (global_bindings_p): Return bool and simplify. | |
13337 | ||
3d528853 NF |
13338 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
13339 | ||
c99c0026 | 13340 | * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label. |
3d528853 | 13341 | |
d7d058c5 NF |
13342 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
13343 | ||
13344 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators | |
13345 | instead of accessing TYPE_ARG_TYPES directly. | |
13346 | * gcc-interface/utils.c (handle_nonnull_attribute): Likewise. | |
13347 | ||
805e60a0 EB |
13348 | 2011-05-05 Eric Botcazou <ebotcazou@adacore.com> |
13349 | ||
13350 | PR ada/48844 | |
13351 | * gcc-interface/gigi.h (get_variant_part): Declare. | |
13352 | * gcc-interface/decl.c (get_variant_part): Make global. | |
13353 | * gcc-interface/utils2.c (find_common_type): Do not return T1 if the | |
13354 | types have the same constant size, are record types and T1 has a | |
13355 | variant part while T2 doesn't. | |
13356 | ||
907a08d9 EB |
13357 | 2011-05-05 Eric Botcazou <ebotcazou@adacore.com> |
13358 | ||
13359 | * gcc-interface/utils.c (begin_subprog_body): Do not call | |
13360 | get_pending_sizes. | |
13361 | (end_subprog_body): Likewise. | |
13362 | ||
d35936ab RG |
13363 | 2011-05-04 Richard Guenther <rguenther@suse.de> |
13364 | ||
13365 | * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to | |
13366 | int_const_binop. | |
13367 | (pos_to_constructor): Likewise. | |
13368 | ||
c1fd8753 | 13369 | 2011-05-03 Nathan Froyd <froydnj@codesourcery.com> |
2c7f9cc0 | 13370 | Eric Botcazou <ebotcazou@adacore.com> |
c1fd8753 NF |
13371 | |
13372 | * gcc-interface/trans.c (gigi): Call build_function_type_list instead | |
13373 | of build_function_type. Adjust calls to... | |
13374 | (build_raise_check): ...this. Do not take a void_tree parameter. | |
13375 | Call build_function_type_list instead of build_function_type. | |
13376 | Fix head comment and swap couple of conditional blocks. | |
13377 | ||
4fb87d2b EB |
13378 | 2011-04-30 Eric Botcazou <ebotcazou@adacore.com> |
13379 | ||
13380 | * gnatvsn.ads (Library_Version): Bump to 4.7. | |
13381 | (Current_Year): Bump to 2011. | |
13382 | ||
fa5e5a76 MM |
13383 | 2011-04-29 Michael Matz <matz@suse.de> |
13384 | ||
13385 | * gcc-interface/misc.c (gnat_handle_option): Set | |
13386 | warn_maybe_uninitialized. | |
13387 | ||
8d6a2f69 GP |
13388 | 2011-04-23 Gerald Pfeifer <gerald@pfeifer.com> |
13389 | ||
13390 | * gnat_ugn.texi (Complexity Metrics Control): Update link to | |
13391 | the Watson/McCabe paper. | |
13392 | ||
770937fd JM |
13393 | 2011-04-23 Jim Meyering <meyering@redhat.com> |
13394 | ||
13395 | * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/ | |
13396 | ||
eb601ae1 EB |
13397 | 2011-04-22 Eric Botcazou <ebotcazou@adacore.com> |
13398 | ||
13399 | * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE | |
13400 | onto the new type. | |
13401 | ||
7d7fcb08 EB |
13402 | 2011-04-22 Eric Botcazou <ebotcazou@adacore.com> |
13403 | ||
13404 | * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG | |
13405 | parameter. | |
13406 | * gcc-interface/utils.c (create_subprog_decl): Likewise. Set | |
13407 | DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly. | |
13408 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add | |
13409 | ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl. | |
13410 | <all>: Do not set flags on the reused DECL node coming from an alias. | |
13411 | Set DECL_IGNORED_P on the DECL node built for subprograms if they | |
13412 | don't need debug info here... | |
13413 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here. | |
13414 | (gigi): Adjust calls to create_subprog_decl. | |
13415 | (build_raise_check): Likewise. | |
13416 | (establish_gnat_vms_condition_handler): Likewise. | |
13417 | (Compilation_Unit_to_gnu): Likewise. | |
13418 | (gnat_to_gnu): Likewise. | |
13419 | ||
e1876cac EB |
13420 | 2011-04-21 Eric Botcazou <ebotcazou@adacore.com> |
13421 | ||
13422 | * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define. | |
13423 | (NO_REORDER_ADAFLAGS): New variable. | |
13424 | (EXTRA_GNATTOOLS): Always define. | |
13425 | (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h. | |
13426 | Clean up and adjust list of files compiled with special options. | |
13427 | * gcc-interface/Make-lang.in: Likewise. | |
13428 | (ada/decl.o): Cosmetical change. | |
13429 | (ada/misc.o): Remove dependency on $(PLUGIN_H). | |
13430 | ||
04695783 JM |
13431 | 2011-04-20 Jim Meyering <meyering@redhat.com> |
13432 | ||
13433 | * initialize.c (__gnat_initialize): Remove useless if-before-free. | |
13434 | ||
23399579 EB |
13435 | 2011-04-17 Eric Botcazou <ebotcazou@adacore.com> |
13436 | ||
13437 | * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with | |
13438 | $(CFLAGS) on the link line. | |
13439 | ||
51c5169c EB |
13440 | 2011-04-17 Eric Botcazou <ebotcazou@adacore.com> |
13441 | ||
13442 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the | |
13443 | padded type built for the return type if it is unconstrained. | |
13444 | ||
61e46a7d NF |
13445 | 2011-04-14 Nathan Froyd <froydnj@codesourcery.com> |
13446 | ||
13447 | * gcc-interface/utils.c (gnat_poplevel): Use block_chainon. | |
13448 | ||
81f653d6 NF |
13449 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> |
13450 | ||
b4867846 EB |
13451 | * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON |
13452 | before calling TREE_CHAIN. | |
81f653d6 NF |
13453 | * gcc-interface/misc.c (gnat_init_ts): New function. |
13454 | (LANG_HOOKS_INIT_TS): Define. | |
13455 | ||
a358e188 MJ |
13456 | 2011-04-12 Martin Jambor <mjambor@suse.cz> |
13457 | ||
b4867846 EB |
13458 | * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node |
13459 | instead of cgraph_node. | |
a358e188 | 13460 | |
29b1c5a4 EB |
13461 | 2011-04-08 Eric Botcazou <ebotcazou@adacore.com> |
13462 | ||
13463 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum | |
13464 | alignment on fields of the RETURN type built for the Copy-In Copy-Out | |
13465 | mechanism. | |
13466 | ||
88872b00 EB |
13467 | 2011-04-08 Eric Botcazou <ebotcazou@adacore.com> |
13468 | ||
13469 | * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers | |
13470 | of aggregate types that contain a placeholder. | |
13471 | ||
dcf0c47e NF |
13472 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> |
13473 | ||
13474 | * gcc-interface/utils.c (handle_sentinel_attribute): Don't use | |
b4867846 | 13475 | TYPE_ARG_TYPES. |
dcf0c47e NF |
13476 | (handle_type_generic_attribute): Likewise. |
13477 | ||
53e3000c EB |
13478 | 2011-04-04 Eric Botcazou <ebotcazou@adacore.com> |
13479 | ||
13480 | PR ada/47163 | |
13481 | * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change. | |
13482 | ||
ab380bb4 KT |
13483 | 2011-04-04 Kai Tietz <ktietz@redhat.com> |
13484 | ||
13485 | PR ada/47163 | |
0bad0e23 EB |
13486 | * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets |
13487 | to flag value. | |
ab380bb4 | 13488 | |
8ffac116 EB |
13489 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
13490 | ||
13491 | * gcc-interface/utils2.c (build_allocator): In the unconstrained array | |
13492 | type case, do not strip a padding type around the array type. | |
13493 | ||
de9528f0 EB |
13494 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
13495 | ||
13496 | * gcc-interface/utils.c (update_pointer_to): Finalize named pointer | |
13497 | types. | |
13498 | ||
d9d7a26c EB |
13499 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
13500 | ||
13501 | * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete. | |
13502 | * gcc-interface/misc.c (gnat_handle_option): Remove special handling | |
de9528f0 | 13503 | code for -feliminate-unused-debug-types. |
d9d7a26c EB |
13504 | (gnat_post_options): Likewise. |
13505 | ||
4cb12a90 EB |
13506 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
13507 | ||
13508 | * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial | |
13509 | declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a | |
13510 | distinct copy. | |
13511 | ||
acccc61c EB |
13512 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
13513 | ||
13514 | * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the | |
13515 | DECL_ARTIFICIAL flag on enumeration types. | |
13516 | ||
583eb0c9 EB |
13517 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
13518 | ||
13519 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make | |
13520 | fat pointer types artificial unconditionally. | |
13521 | <E_Array_Subtype>: Attach the base array type as a parallel type if it | |
13522 | isn't artificial. | |
13523 | ||
e3edbd56 EB |
13524 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
13525 | ||
13526 | * gcc-interface/gigi.h (get_dummy_type): Declare. | |
13527 | (build_dummy_unc_pointer_types): Likewise. | |
13528 | (finish_fat_pointer_type): Likewise. | |
13529 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy | |
13530 | fat pointer type has been built, complete it in place. | |
13531 | <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat | |
13532 | and thin pointers. Remove useless variable. | |
13533 | (finish_fat_pointer_type): Make global and move to... | |
13534 | * gcc-interface/utils.c (finish_fat_pointer_type): ...here. | |
13535 | (get_dummy_type): New function. | |
13536 | (build_dummy_unc_pointer_types): Likewise. | |
13537 | (gnat_pushdecl): Propage the name to the anonymous variants only. | |
13538 | (update_pointer_to): Only adjust the pointer types in the unconstrained | |
13539 | array case. | |
13540 | ||
65444786 EB |
13541 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
13542 | ||
13543 | * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag. | |
13544 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it | |
13545 | if this is a Taft amendment type and the full declaration is available. | |
13546 | * gcc-interface/trans.c (process_type): Likewise. | |
13547 | If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P. | |
13548 | (process_freeze_entity): Likewise. | |
13549 | * gcc-interface/utils.c (dummy_global): New static variable. | |
13550 | (gnat_write_global_declarations): If there are types declared as used | |
13551 | at the global level, insert them in the global hash table. | |
13552 | ||
1aeb40dd EB |
13553 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
13554 | ||
13555 | * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param. | |
13556 | * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial | |
13557 | declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct | |
13558 | copy. | |
13559 | (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL | |
13560 | flag of the type accordingly. | |
13561 | * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type. | |
13562 | ||
80ec8b4c EB |
13563 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
13564 | ||
13565 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer | |
13566 | finalizing types when updating the pointers to the designated type. | |
13567 | <all>: Finalize the deferred types even if we didn't defer processing | |
13568 | of incomplete types in this invocation. | |
13569 | ||
2a9d769a | 13570 | 2011-04-01 Olivier Hainque <hainque@adacore.com> |
2c7f9cc0 AS |
13571 | Nicolas Setton <setton@adacore.com> |
13572 | Eric Botcazou <ebotcazou@adacore.com> | |
2a9d769a OH |
13573 | |
13574 | * gcc-interface/misc.c (gnat_descriptive_type): New function. | |
13575 | (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type. | |
13576 | ||
2438d7a6 KT |
13577 | 2011-03-28 Kai Tietz <ktietz@redhat.com> |
13578 | ||
333d8aff | 13579 | * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native |
80ec8b4c EB |
13580 | Windows targets. |
13581 | (EH_MECHANISM): Use GCC exception mechanism for native Windows targets. | |
13582 | * system-mingw.ads (System): Change ZCX_By_Default default to True. | |
333d8aff | 13583 | |
80ec8b4c | 13584 | * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype. |
2438d7a6 | 13585 | |
8ad150f6 TG |
13586 | 2011-03-28 Tristan Gingold <gingold@adacore.com> |
13587 | ||
13588 | PR ada/44431 | |
80ec8b4c EB |
13589 | * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c. |
13590 | Use ada output of gnatbind. | |
8ad150f6 TG |
13591 | (ada/b_gnatb.adb): Ditto. |
13592 | (ada/b_gnat1.o, ada/b_gnatb.o): New rules. | |
13593 | (ada.mostlyclean, ada.stage1) | |
13594 | (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile) | |
13595 | (ada.stagefeedback): Adjust. | |
80ec8b4c | 13596 | * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c. |
8ad150f6 TG |
13597 | Use ada output of gnatbind. |
13598 | (b_gnatm.adb): Ditto. | |
13599 | (b_gnatl.o, b_gnatm.o): New rules. | |
13600 | ||
51c7954d EB |
13601 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> |
13602 | ||
13603 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL | |
13604 | for the padded type built to support a specified size or alignment. | |
13605 | ||
6ddf9843 EB |
13606 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> |
13607 | ||
13608 | * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment. | |
13609 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer | |
13610 | unconditionally to the end of the unit when the designated type is | |
13611 | limited_with'ed. | |
13612 | <all>: Rename local variable. Attempt to un-defer types only and do it | |
13613 | for limited_with'ed types as well. | |
13614 | (finalize_from_with_types): Adjust comment. Rename variable and tidy. | |
13615 | * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT | |
13616 | consistently and remove redundant call to finalize_from_with_types. | |
13617 | ||
5daed84a EB |
13618 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> |
13619 | ||
13620 | * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to | |
13621 | subprograms without a previous spec declared in the same unit. | |
13622 | * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined | |
13623 | subprograms at the end of the unit instead of at the beginning. | |
13624 | * gcc-interface/utils.c (create_subprog_decl): Check that the entity | |
13625 | isn't public for the special handling of non-inline functions nested | |
13626 | inside inline external functions. | |
13627 | ||
0edf1bb2 JL |
13628 | 2011-03-25 Jeff Law <law@redhat.com> |
13629 | ||
5daed84a | 13630 | * gcc-interface/utils.c (def_fn_type): Add missing va_end. |
0edf1bb2 | 13631 | |
e3c4580e EB |
13632 | 2011-03-24 Eric Botcazou <ebotcazou@adacore.com> |
13633 | ||
13634 | * einfo.ads (Size_Depends_On_Discriminant): Adjust description. | |
13635 | * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure | |
13636 | to compute Set_Size_Depends_On_Discriminant. | |
13637 | (Layout_Type): Call it on array types in back-end layout mode. | |
13638 | * sem_util.adb (Requires_Transient_Scope): Return true for array | |
13639 | types only if the size depends on the value of discriminants. | |
13640 | * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS | |
13641 | type if the RHS is a call to a function that returns an unconstrained | |
13642 | type with default discriminant. | |
13643 | ||
abbc8c7b EB |
13644 | 2011-03-24 Eric Botcazou <ebotcazou@adacore.com> |
13645 | ||
13646 | * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of | |
13647 | non-conversion to the nominal result type at the end. | |
13648 | ||
ddb5a105 EB |
13649 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> |
13650 | ||
13651 | * gcc-interface/trans.c (create_temporary): New function taken from... | |
13652 | (create_init_temporary): ...here. Call it. | |
13653 | (call_to_gnu): Create the temporary for the return value early, if any. | |
13654 | Create it for a function with copy-in/copy-out parameters if there is | |
13655 | no target; in other cases of copy-in/copy-out, use another temporary. | |
13656 | Push the new binding level lazily. Add and rename local variables. | |
13657 | ||
0d853156 EB |
13658 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> |
13659 | ||
13660 | * gcc-interface/decl.c (validate_size): Improve comments and tweak | |
13661 | error message. | |
13662 | (set_rm_size): Likewise. | |
13663 | ||
4184ef1b EB |
13664 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> |
13665 | ||
13666 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL | |
13667 | for the padded type built in order to support a specified alignment. | |
13668 | Fix incorrect formatting. | |
13669 | ||
bf7eefab EB |
13670 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> |
13671 | ||
13672 | PR bootstrap/48216 | |
13673 | * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL. | |
13674 | ||
ef0feeb2 EB |
13675 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> |
13676 | ||
13677 | * gcc-interface/decl.c (components_to_record): Add REORDER parameter, | |
13678 | rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter | |
13679 | to the end of the list. Adjust recursive call. Rename local variable. | |
13680 | If REORDER is true, reorder components of the record type. | |
13681 | (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to | |
13682 | components_to_record and adjust the parameter list. | |
13683 | ||
646f9414 EB |
13684 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> |
13685 | ||
13686 | * gcc-interface/decl.c (elaborate_expression_1): When optimization is | |
13687 | disabled, use the variable for bounds of loop iteration scheme. | |
13688 | ||
62d784f7 KT |
13689 | 2011-03-21 Kai Tietz <ktietz@redhat.com> |
13690 | ||
13691 | PR target/12171 | |
0bad0e23 | 13692 | * gcc-interface/utils.c (gnat_internal_attribute_table): Add column. |
62d784f7 | 13693 | |
f230d759 EB |
13694 | 2011-03-17 Eric Botcazou <ebotcazou@adacore.com> |
13695 | ||
13696 | * gcc-interface/decl.c (elaborate_expression_1): Try harder to find | |
13697 | out whether the expression is read-only. Short-circuit placeholder | |
13698 | case and rename a couple of local variables. | |
13699 | ||
bb1f7929 EB |
13700 | 2011-03-17 Eric Botcazou <ebotcazou@adacore.com> |
13701 | ||
13702 | * gcc-interface/gigi.h (smaller_form_type_p): Declare. | |
13703 | * gcc-interface/trans.c (smaller_form_type_p): Make global and move... | |
13704 | * gcc-interface/utils.c (smaller_form_type_p): ...to here. | |
13705 | (convert): Deal with conversions from a smaller form type specially. | |
13706 | ||
400a2d24 EB |
13707 | 2011-02-14 Eric Botcazou <ebotcazou@adacore.com> |
13708 | ||
13709 | * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and | |
13710 | its argument, except for the special -I- switch. | |
13711 | ||
c26bc3ad GP |
13712 | 2011-02-12 Gerald Pfeifer <gerald@pfeifer.com> |
13713 | ||
0bad0e23 EB |
13714 | * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to |
13715 | "Ada Issues". | |
c26bc3ad | 13716 | |
07b8e910 EB |
13717 | 2011-02-08 Eric Botcazou <ebotcazou@adacore.com> |
13718 | ||
13719 | * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs. | |
13720 | ||
31a5a547 EB |
13721 | 2011-02-03 Eric Botcazou <ebotcazou@adacore.com> |
13722 | ||
13723 | * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of | |
13724 | GNAT_FORMAL. | |
13725 | * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to... | |
13726 | * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE | |
13727 | instead of GNAT_FORMAL. Protect the expression against multiple uses. | |
13728 | Do not generate the check directly, instead instantiate the template | |
13729 | check present in the descriptor. | |
13730 | (make_descriptor_field): Move around. | |
13731 | (build_vms_descriptor32): Build a template check in the POINTER field. | |
13732 | (build_vms_descriptor): Remove useless suffixes. | |
13733 | * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call. | |
13734 | ||
dcf25f59 EB |
13735 | 2011-01-26 Eric Botcazou <ebotcazou@adacore.com> |
13736 | ||
13737 | PR bootstrap/47467 | |
13738 | * targext.c: Include target files if IN_RTS is defined. | |
13739 | ||
0418e131 RG |
13740 | 2011-01-26 Richard Guenther <rguenther@suse.de> |
13741 | ||
13742 | PR bootstrap/47467 | |
13743 | * targext.c: Include config.h. | |
13744 | * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H) | |
13745 | dependency. | |
13746 | ||
c6eecbd8 | 13747 | 2011-01-04 Pascal Obry <obry@adacore.com> |
2c7f9cc0 | 13748 | Eric Botcazou <ebotcazou@adacore.com> |
c6eecbd8 PO |
13749 | |
13750 | * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit. | |
13751 | ||
2d3c7e4f EB |
13752 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> |
13753 | ||
13754 | * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the | |
13755 | end-of-case on the end label and its associated gotos, if any. | |
13756 | ||
0394741f EB |
13757 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> |
13758 | ||
13759 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the | |
13760 | expressions of the parameter cache within the statement group of | |
13761 | the CICO mechanism. | |
13762 | ||
2a02d090 | 13763 | 2011-01-04 Olivier Hainque <hainque@adacore.com> |
2c7f9cc0 | 13764 | Eric Botcazou <ebotcazou@adacore.com> |
2a02d090 OH |
13765 | |
13766 | * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default. | |
13767 | (set_end_locus_from_node): New function. | |
13768 | (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we | |
13769 | make and the function end_locus. | |
13770 | (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus | |
13771 | for the elaboration subprogram. | |
13772 | (set_gnu_expr_location_from_node) <default case>: Use it to attempt to | |
13773 | set the end_locus of the expression as well. | |
13774 | ||
89f5e978 EB |
13775 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> |
13776 | ||
13777 | PR ada/47131 | |
13778 | * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make | |
13779 | variables that are referenced in exception handlers volatile. | |
13780 | ||
13781 | ||
ad41bd84 | 13782 | \f |
797103eb | 13783 | Copyright (C) 2011 Free Software Foundation, Inc. |
ad41bd84 JM |
13784 | |
13785 | Copying and distribution of this file, with or without modification, | |
13786 | are permitted in any medium without royalty provided the copyright | |
13787 | notice and this notice are preserved. |