]>
Commit | Line | Data |
---|---|---|
ddf67a1d AC |
1 | 2011-08-29 Vincent Celier <celier@adacore.com> |
2 | ||
3 | * make.adb (Scan_Make_Arg): Take any option as is in packages Compiler, | |
4 | Binder or Linker of the main project file. | |
5 | ||
6 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
7 | ||
8 | * inline.adb (Add_Scopes_To_Clean): Exclude any entity within a generic | |
9 | unit. | |
10 | ||
11 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
12 | ||
13 | * exp_ch9.adb: Partial revert of previous change for Alfa mode | |
14 | ||
15 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
16 | ||
17 | * exp_ch11.adb: Minor expansion of comment. | |
18 | ||
19 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
20 | ||
21 | * lib-xref-alfa.adb (Add_ALFA_Scope): Treat generic entities. | |
22 | ||
23 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
24 | ||
25 | * sem_res.adb (Resolve_Arithmetic_Op): If the node has a universal | |
26 | interpretation, set the type before resolving the operands, because | |
27 | legality checks on an exponention operand need to know the type of the | |
28 | context. | |
29 | ||
30 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
31 | ||
32 | * sem_ch12.adb (Analyze_Package_Instantiation): Do not set delayed | |
33 | cleanups on a master if the instance is within a generic unit. | |
34 | Complement to the corresponding fix to inline.adb for K520-030. | |
35 | ||
36 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
37 | ||
38 | * exp_ch7.adb (Build_Raise_Statement): Raise PE instead of the current | |
39 | occurrence. | |
40 | * exp_intr.adb: Minor comment fix. | |
41 | ||
42 | 2011-08-29 Bob Duff <duff@adacore.com> | |
43 | ||
44 | * sem_ch13.adb (Analyze_Aspect_Specifications): Fix cases where | |
45 | Delay_Required was used as an uninitialized variable. | |
46 | ||
690943fc RD |
47 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
48 | ||
49 | * a-cdlili.adb, a-cdlili.ads, a-coinve.adb, a-coinve.ads, | |
50 | sem_util.adb, sem_util.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, | |
51 | a-coorse.ads, aspects.ads, sem_ch8.adb: Minor reformatting. | |
52 | ||
9f0ee988 TQ |
53 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
54 | ||
55 | * system-freebsd-x86_64.ads (Backend_Overflow_Checks): Set true True. | |
56 | Remove unused variables. | |
57 | ||
3e24afaa AC |
58 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> |
59 | ||
60 | * sem_res.adb: Remove Build_Explicit_Dereference. | |
61 | * sem_util.adb, sem_util.ads (Build_Explicit_Dereference): Moved here | |
62 | from sem_res.adb, used in analysis of additional constructs. | |
63 | (Is_Iterator, Is_Reversible_Iterator): New predicates for Ada2012 | |
64 | expansion of iterators. | |
65 | (Is_Object_Reference): Recognize variables rewritten as explicit | |
66 | dereferences in Ada2012. | |
67 | * snames.ads-tmpl: Add Has_Element, Forward_Iterator, | |
68 | Reversible_Iterator names, for expansion of Ada2012 iterators. | |
69 | * aspects.ads, aspects.adb (Find_Aspect): Utility. | |
70 | * a-cdlili.ads, a-cdlili.adb: Add new iterator machinery to doubly | |
71 | linked list container. | |
72 | * a-coinve.ads, a-coinve.adb: Ditto for indefinite vector containers. | |
73 | * a-coorse.ads, a-coorse.adb: Ditto for ordered sets. | |
74 | ||
75 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
76 | ||
77 | * a-cohama.adb, a-cohama.ads: Add iterator primitives to hashed map | |
78 | containers. | |
79 | ||
80 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
81 | ||
82 | * make.adb (Gnatmake): Get the maximum number of simultaneous | |
83 | compilation processes after the Builder switches has been scanned, as | |
84 | there may include -jnn. | |
85 | ||
86 | 2011-08-29 Matthew Heaney <heaney@adacore.com> | |
87 | ||
88 | * a-chtgbo.adb (Generic_Equal): Use correct overloading of Next. | |
89 | ||
90 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
91 | ||
92 | * gnatcmd.adb (GNATCmd): On OpenVMS, truncate the length of | |
93 | GNAT_DRIVER_COMMAND_LINE to 255. | |
94 | ||
95 | 2011-08-29 Pascal Obry <obry@adacore.com> | |
96 | ||
97 | * freeze.adb, sem_ch8.adb, a-convec.adb, a-convec.ads: Minor | |
98 | reformatting and style fix (class attribute casing). | |
99 | ||
100 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
101 | ||
102 | * exp_ch11.adb: Yet another case where expansion should be common | |
103 | between CodePeer and Alfa. | |
104 | ||
105 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
106 | ||
107 | * exp_ch9.adb: Partial revert of previous change for Alfa mode. | |
108 | ||
109 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
110 | ||
111 | * sem_ch6.adb (Matches_Limited_With_View): The limited views of an | |
112 | incomplete type and its completion match. | |
113 | ||
3ddd922e AC |
114 | 2011-08-29 Yannick Moy <moy@adacore.com> |
115 | ||
116 | * exp_ch13.adb: Adjust previous change. | |
117 | ||
118 | 2011-08-29 Robert Dewar <dewar@adacore.com> | |
119 | ||
120 | * sem_prag.adb, prj.adb, sem_util.adb, sem_res.adb, gnat1drv.adb, | |
121 | exp_ch4.adb, sem_ch8.adb: Minor code reorganization | |
122 | Minor reformatting. | |
123 | ||
444acbdd AC |
124 | 2011-08-29 Emmanuel Briot <briot@adacore.com> |
125 | ||
126 | * make.adb, prj.adb, prj.ads (Compute_All_Imported_Projects): Also | |
127 | initialize aggregated projects. | |
128 | ||
129 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
130 | ||
131 | * sem_ch8.adb (Find_Renamed_Entity): Within an instance, use scope | |
132 | depth of candidates to resolve a potentially spurious ambiguity between | |
133 | two visible subprograms. | |
134 | ||
e0296583 AC |
135 | 2011-08-29 Yannick Moy <moy@adacore.com> |
136 | ||
137 | * sem_prag.adb (Analyze_Pragma): Allow Test_Case pragma without | |
138 | Requires/Ensures. | |
139 | * sem_util.adb (Get_Ensures_From_Test_Case_Pragma, | |
140 | Get_Requires_From_Test_Case_Pragma): Allow Test_Case pragma without | |
141 | Requires/Ensures. | |
142 | ||
143 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> | |
144 | ||
145 | * gnat1drv.adb (Adjust_Global_Switches): Improve previous change. | |
146 | Add comment. | |
147 | ||
148 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
149 | ||
150 | * sem_res.adb: Minor reformatting. | |
151 | ||
69794413 JK |
152 | 2011-08-29 Johannes Kanig <kanig@adacore.com> |
153 | ||
154 | * exp_ch4.adb (Expand_Quantified_Expression): Do not expand in ALFA | |
155 | mode. | |
156 | * gnat1drv.adb (Adjust_Global_Switches): Set | |
157 | Use_Expressions_With_Actions to False in ALFA mode. | |
158 | * sem_res.adb (Resolve_Quantified_Expression): Simpler treatment in | |
159 | ALFA mode. | |
160 | ||
59e6b23c AC |
161 | 2011-08-29 Yannick Moy <moy@adacore.com> |
162 | ||
163 | * exp_ch13.adb (Expand_N_Freeze_Entity): Do nothing in Alfa mode. | |
164 | * exp_ch9.adb: Do not expand tasking constructs in Alfa mode. | |
165 | * gnat1drv.adb (Adjust_Global_Switches): Suppress the expansion of | |
166 | tagged types and dispatching calls in Alfa mode. | |
167 | ||
168 | 2011-08-29 Javier Miranda <miranda@adacore.com> | |
169 | ||
170 | * sem_ch3.adb (Process_Discriminants): Add missing check to ensure that | |
171 | we do not report an error on an Empty node. | |
172 | ||
173 | 2011-08-29 Geert Bosch <bosch@adacore.com> | |
174 | ||
175 | * Makefile.rtl (GNATRTL_NONTASKING_OBJECTS): Add a-nllrar.o, | |
176 | a-nlrear.o and a-nurear.o. | |
177 | ||
178 | 2011-08-29 Robert Dewar <dewar@adacore.com> | |
179 | ||
180 | * freeze.adb: Minor code reorganization. | |
181 | Minor reformatting. | |
182 | * sem_util.adb, errout.adb, exp_ch11.adb, a-ngrear.adb, s-gearop.adb, | |
183 | sem_ch6.adb: Minor reformatting | |
184 | ||
185 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
186 | ||
187 | * s-except.ads, s-except.adb: Provide dummy body. | |
188 | ||
189 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
190 | ||
191 | * sem_warn.adb (Within_Postcondition): Take into account the case of | |
192 | an Ensures component in a Test_Case. | |
193 | ||
4d792549 AC |
194 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
195 | ||
196 | * s-excdeb.ads, s-excdeb.adb: New files, created from s-except. | |
197 | * rtsfind.ads (RTU_Id): Replaces System_Exceptions by | |
198 | System_Exceptions_Debug | |
199 | (RE_Unit_Table): Search RE_Local_Raise in System_Exceptions_Debug | |
200 | * a-except.adb: With and use System.Exceptions_Debug instead of | |
201 | System.Exceptions. | |
202 | * a-except-2005.adb: Likewise. | |
203 | * s-assert.adb: Likewise. | |
204 | * s-except.adb, s-except.ads: Move debugging hooks to s-excdeb. | |
205 | * Makefile.rtl: Add s-excdeb. Adjust compilation rule. | |
206 | * gcc-interfaces/Makefile.in, gcc-interface/Make-lang.in: Add | |
207 | s-excdeb. Update dependencies. | |
208 | (GNATRTL_LINEARALGEBRA_OBJS): Remove a-nlrear.o a-nurear.o a-nllrar.o | |
209 | as these no longer need external libraries. | |
210 | ||
211 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
212 | ||
213 | * sem_res.adb (Resolve_Op_Expon): Additional check to reject an | |
214 | exponentiation operator on universal values in a context that requires | |
215 | a fixed-point type. | |
216 | ||
217 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
218 | ||
219 | * raise-gcc.c (personnality_routine): Fix thinko. Set Ada occurrence | |
220 | before calling notify_handled_exception. | |
221 | * a-exextr.adb: Fix comment. | |
222 | ||
b254da66 AC |
223 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
224 | ||
225 | * exp_ch4.adb (Expand_Allocator_Expression): Add code to set attribute | |
226 | Finalize_Address of the access type's finalization master. | |
227 | (Expand_N_Allocator): Add code to set attribute Finalize_Address of the | |
228 | access type's finalization master. Add a guard to prevent | |
229 | Associated_Storage_Pool from being set on .NET/JVM. | |
230 | * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Add code to set | |
231 | attribute Finalize_Address of the access type's finalization master. | |
232 | * exp_ch7.adb (Make_Finalize_Address_Call): New routine. | |
233 | * exp_ch7.ads (Make_Finalize_Address_Call): New routine. | |
234 | * rtsfind.ads: Add RE_Set_Finalize_Address to tables RE_Id and | |
235 | RE_Unit_Table. | |
236 | * s-finmas.adb: Add with clause for System.Address_Image. Add with and | |
237 | use clause for System.IO | |
238 | (Detach): Relax the assertion, to be reinstated later. | |
239 | (Finalize): Rewrite the iteration loop to avoid pointer comparison. | |
240 | Relax the assertion on Finalize_Address, to be reinstated later. | |
241 | (Is_Empty_List): New routine. | |
242 | (pm): New debug routine. | |
243 | (Set_Finalize_Address): New routine. | |
244 | * s-finmas.ads (pm): New debug routine. | |
245 | (Set_Finalize_Address): New routine. | |
246 | * s-stposu.adb (Allocate_Any_Controlled): Code reformatting. | |
247 | ||
248 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
249 | ||
250 | * a-exexpr-gcc.adb (GCC_Exception_Access, GNAT_GCC_Exception_Access): | |
251 | Remove convention C. | |
252 | ||
253 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
254 | ||
255 | * s-taprop-vms.adb (Get_Exc_Stack_Addr): Remove. | |
256 | (Initialize_TCB): Remove Exc_Stack_Ptr initialization. | |
257 | (Finalize_TCB): Remove its finalization. | |
258 | (Initialize): Remove assignment of GET_Exc_Stack_Addr | |
259 | * s-soflin.adb (NT_Exc_Stack): Remove | |
260 | (Get_Exc_Stack_Addr_NT): Likewise. | |
261 | (Get_Exc_Stack_Addr_Soft): Likewise. | |
262 | * s-soflin.ads (Get_Exc_Stack_Addr_NT): Remove. | |
263 | (Get_Exc_Stack_Addr): Likewise. | |
264 | (Get_Exc_Stack_Addr_Soft): Likewise | |
265 | * s-taspri-vms.ads (Exc_Stack_T): Remove. | |
266 | (Exc_Stack_Ptr_T): Likewise. | |
267 | (Private_Data): Remove Exc_Stack_Ptr component. | |
268 | ||
269 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
270 | ||
271 | * raise-gcc.c (get_ip_from_context): New function. Factorize code. | |
272 | ||
273 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
274 | ||
275 | * gnat_ugn.texi: Fix aix and x86-solaris info for run-time. | |
276 | ||
277 | 2011-08-29 Geert Bosch <bosch@adacore.com> | |
278 | ||
279 | * s-gearop.ads (Back_Substitute, Diagonal, Forward_Eliminate, | |
280 | L2_Norm, Swap_Column): New generic subprograms | |
281 | * s-gearop.adb (Back_Substitute, Diagonal, Forward_Eliminate, | |
282 | L2_Norm, Swap_Column): Implement new subprograms in order to | |
283 | eliminate dependency on BLAS and LAPACK libraries in | |
284 | Ada.Numerics.Generic_Real_Arrays and eventually also the complex | |
285 | version. Forward_Eliminate/Back_Substitute can be used to put a | |
286 | matrix in row echelon or reduced row echelon form using partial | |
287 | pivoting. | |
288 | * a-ngrear.adb: (Back_Substitute, Diagonal, Forward_Eleminate, | |
289 | Swap_Column): Instantiate from System.Generic_Array_Operations. | |
290 | ("*", "abs"): Implement by instantiation from Generic_Array_Operations. | |
291 | (Sqrt): Local function for simple computation of square root without | |
292 | adding dependencies on Generic_Elementary_Functions. | |
293 | (Swap): New subprogram to exchange floating point numbers. | |
294 | (Inverse): Reimplement using Jordan-Gauss elimination. | |
295 | (Jacobi): New procedure implementing Jacobi's method for computation | |
296 | of eigensystems, based on Rutishauser's implementation. | |
297 | (L2_Norm): Implement directly using the inner product. | |
298 | (Sort_Eigensystem): Sort eigenvalue/eigenvector pairs in order of | |
299 | decreasing eigenvalue as required by the Ada RM. | |
300 | (Swap_Column): New helper procedure for Sort_Eigensystem. | |
301 | Remove with of System.Generic_Real_BLAS and System.Generic_Real_LAPACK. | |
302 | Add with of Ada.Containers.Generic_Anonymous_Array_Sort, for | |
303 | Sort_Eigensystems. | |
304 | ||
305 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
306 | ||
307 | * put_scos.adb (Put_SCOs): Do not emit a newline for an empty | |
308 | statements line. | |
309 | ||
60370fb1 AC |
310 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
311 | ||
312 | * s-finmas.adb (Finalize): Check Finalize_Address of the master rather | |
313 | than the current node. | |
314 | * s-finmas.ads: Move field Finalize_Address from type FM_Node to | |
315 | Finalization_Master. The list headers have two fields instead of three. | |
316 | This should fix alignment issue but subpool allocations are now | |
317 | unusable. Alphabetize subprograms. | |
318 | * s-stposu.adb (Allocate_Any_Controlled): Use the offset rather than | |
319 | the size of the header when converting the beginning of the object to | |
320 | a FM_Node. Set the master's Finalize_Address attribute if not already | |
321 | set. | |
322 | (Deallocate_Any_Controlled): Use the offset rather than the size of the | |
323 | header when converting the beginning of the object to a FM_Node. | |
324 | ||
325 | 2011-08-29 Gary Dismukes <dismukes@adacore.com> | |
326 | ||
327 | * exp_ch11.adb (Expand_N_Raise_Statement): Don't suppress expansion of | |
328 | reraise when compiling for CodePeer. | |
329 | ||
330 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> | |
331 | ||
332 | * a-iteint.ads, Makefile.rtl: Add missing compilation of a-iteint.ads, | |
333 | now needed by a-convec.adb. Fix warning. | |
334 | ||
335 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> | |
336 | ||
337 | * exp_util.adb (Build_Allocate_Deallocate_Proc): Add a guard for the | |
338 | processing of TSS routine Finalize_Address when compiling in | |
339 | CodePeer_Mode. | |
340 | ||
341 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
342 | ||
343 | * a-strunb.ads, einfo.ads, g-comlin.ads, sem_ch6.adb, | |
344 | sem_warn.adb: Minor reformatting. | |
345 | ||
346 | 2011-08-29 Emmanuel Briot <briot@adacore.com> | |
347 | ||
348 | * prj-conf.adb (Get_Config_Switches): Also collect the list of | |
349 | languages from aggregated projects. | |
350 | ||
351 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
352 | ||
353 | * lib-xref-alfa.adb, lib-xref.ads (Traverse_Declarations_Or_Statements, | |
354 | Traverse_Handled_Statement_Sequence, Traverse_Package_Body, | |
355 | Traverse_Package_Declaration, Traverse_Subprogram_Body, | |
356 | Traverse_Compilation_Unit): Add a parameter Inside_Stubs so that bodies | |
357 | for stubs are traversed too when parameter is set | |
358 | (Traverse_All_Compilation_Units): Traverse without going inside stubs | |
359 | (Traverse_Declarations_Or_Statements): Do the special traversing for | |
360 | stubs when required. | |
361 | * sem_util.adb, sem_util.ads (Get_Body_From_Stub): New function to | |
362 | return subprogram or package body from stub. | |
363 | (Is_Subprogram_Stub_Without_Prior_Declaration): New function to detect | |
364 | stubs without prior subprogram decl. | |
365 | ||
366 | 2011-08-29 Vasiliy Fofanov <fofanov@adacore.com> | |
367 | ||
368 | * gnat_ugn.texi: Fix typo. | |
369 | ||
e9c9d122 HK |
370 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
371 | ||
372 | * s-stposu.adb (Allocate_Any_Controlled): Reimplement the mechanism | |
373 | which accounts for size vs alignment issues and calculates the size of | |
374 | the list header. | |
375 | (Deallocate_Any_Controlled): Ditto. | |
376 | (Nearest_Multiple_Rounded_Up): New routine. | |
377 | ||
25ebc085 AC |
378 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
379 | ||
380 | * a-exstat.adb (String_To_EO): Do no set Cleanup_Flag. | |
381 | * a-exexda.adb (Set_Exception_C_Msg): Ditto. | |
382 | (Set_Exception_Msg): Ditto. | |
383 | * a-exexpr-gcc.adb (Setup_Current_Excep): Ditto. Do not set | |
384 | Private_Data. | |
385 | * a-except.adb, a-except-2005.adb (Save_Occurrence_No_Private): Remove. | |
386 | Use Save_Occurrence instead of Save_Occurrence_No_Private. | |
387 | (Raise_With_Msg): Remove Cleanup_Flag. | |
388 | * a-except.ads, a-except-2005.ads (Exception_Occurrence): Remove | |
389 | Clean_Flag and Private_Data components. | |
390 | ||
391 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
392 | ||
393 | * freeze.adb (Freeze_Record_Type): Ignore packing in Alfa mode, like | |
394 | in CodePeer mode. | |
395 | * sem_ch3.adb (Signed_Integer_Type_Declaration): Correct the generation | |
396 | of an explicitly declared type, so that the base types of the original | |
397 | type and this generated type are the same, and a "type" (not a subtype | |
398 | like previously). | |
399 | * errout.adb (Special_Msg_Delete): Do not issue messages "Size too | |
400 | small" in Alfa mode, like in CodePeer mode. | |
401 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore rep | |
402 | clauses in Alfa mode. | |
403 | ||
404 | 2011-08-29 Javier Miranda <miranda@adacore.com> | |
405 | ||
406 | * exp_ch6.ads, exp_ch6.adb (Is_Null_Procedure): Move the spec of this | |
407 | function to the package spec. | |
408 | * sem_ch6.adb (Find_Corresponding_Spec, New_Overloaded_Entity): For | |
409 | internally generated bodies of null procedures locate the internally | |
410 | generated spec enforcing mode conformance. | |
411 | (Is_Interface_Conformant): Ensure that the controlling formal of the | |
412 | primitives match. | |
413 | ||
414 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
415 | ||
416 | * sem_prag.adb (Analyze_Pragma, case Inline): In an instance, do not | |
417 | reject the pragma if it appears to apply to a formal subprogram. | |
418 | ||
419 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
420 | ||
421 | * exp_ch4.adb (Expand_Allocator_Expression): Use consistent name for | |
422 | inner expression, to prevent double evaluation. | |
423 | ||
590549fb AC |
424 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
425 | ||
426 | * a-exexpr.adb (Propagate_Exception): Remove all the parameters as | |
427 | they were unused. | |
428 | * a-exexpr-gcc.adb (Propagate_Exception): Ditto. | |
429 | * a-except-2005.adb (Propagate_Exception): Adjust spec. | |
430 | (Raise_Current_Excep): Adjust call. | |
431 | (Raise_From_Signal_Handler): Call now simply call Raise_Current_Excep. | |
432 | ||
433 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
434 | ||
435 | * exp_disp.adb: Minor reformatting. | |
436 | ||
62380e66 TG |
437 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
438 | ||
439 | * a-exexpr.adb (Setup_Exception): Removed. | |
440 | * a-exexpr-gcc.adb (Setup_Exception): Removed. | |
441 | * a-except.adb (Exception_Propagation): Removed. | |
442 | * a-except-2005.adb (Setup_Exception): Removed. | |
443 | (Reraise): Remove call to Setup_Exception. | |
444 | (Reraise_Occurrence): Ditto. | |
445 | (Reraise_Occurrence_Always): Ditto. | |
446 | (Reraise_Occurrence_No_Defer): Ditto. | |
447 | (Transfer_Occurrence): Ditto. | |
448 | * a-exexda.adb (Set_Exception_C_Msg): Remove call to Setup_Exception. | |
449 | (Set_Exception_Msg): Ditto. | |
450 | ||
c95aa61c AC |
451 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
452 | ||
453 | * a-convec.adb, exp_disp.adb: Minor reformatting. | |
454 | ||
455 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
456 | ||
457 | * a-exexpr-gcc.adb (GNAT_GCC_Exception_Access): Set to convention C. | |
458 | ||
624e1688 AC |
459 | 2011-08-29 Gary Dismukes <dismukes@adacore.com> |
460 | ||
461 | * exp_ch3.adb (Build_Record_Init_Proc.Build_Init_Procedure): Set | |
462 | Exception_Handlers to No_List instead of Empty_List in the case where | |
463 | there are no handlers. | |
464 | ||
465 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
466 | ||
467 | * gcc-interface/gigi.h (enum standard_datatypes): Add | |
468 | ADT_reraise_zcx_decl | |
469 | (reraise_zcx_decl): New macro. | |
470 | * gcc-interface/trans.c (gnu_incoming_exc_ptr): New variable. | |
471 | (gigi): Set reraise_zcx_decl. | |
472 | (Exception_Handler_to_gnu_zcx): Save and restore gnu_incoming_exc_ptr. | |
473 | (gnat_to_gnu): Handle N_Raise_Statement. | |
474 | ||
7134062a AC |
475 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
476 | ||
477 | * sem_ch6.adb, exp_ch3.adb, s-stposu.adb, a-undesu.ads, | |
478 | a-undesu.adb: Minor reformatting. | |
479 | ||
480 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
481 | ||
482 | * exp_disp.adb (Check_Premature_Freezing): When building a dispatch | |
483 | table, accept an unfrozen untagged component if it is an actual for a | |
484 | formal incomplete type. | |
485 | * a-convec.ads, a-convec.adb: Instantiate Ada.Iterator_Interfaces to | |
486 | provide new iterator forms over vectors. | |
487 | Introduce type Iterator in package body to implement operations of | |
488 | Reversible_Iterator interface. | |
489 | * a-iteint.ads: Make package pure so it is usable with new container | |
490 | packages, that are categorized Remote_Types. | |
491 | ||
ca5af305 AC |
492 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
493 | ||
494 | * a-exexpr-gcc.adb, a-synbar.adb, sem_ch13.adb: Minor reformatting. | |
495 | ||
496 | 2011-08-29 Bob Duff <duff@adacore.com> | |
497 | ||
498 | * sem_aggr.adb (Resolve_Aggr_Expr): Call this routine even in the case | |
499 | of <>, because this is the routine that checks for dimensionality | |
500 | errors (for example, for a two-dimensional array, (others => <>) should | |
501 | be (others => (others => <>)). | |
502 | ||
503 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> | |
504 | ||
505 | * impunit.adb: Add new run-time units. | |
506 | * freeze.adb, exp_ch7.ads, exp_ch7.adb, exp_util.ads, exp_util.adb, | |
507 | s-stposu.ads, s-stposu.adb: Code clean up. | |
508 | Handle protected class-wide or task class-wide types | |
509 | Handle C/C++/CIL/Java types. | |
510 | * s-spsufi.adb, s-spsufi.ads: New files. | |
511 | ||
5accd7b6 AC |
512 | 2011-08-29 Yannick Moy <moy@adacore.com> |
513 | ||
514 | * sem_ch13.adb (Analyze_Aspect_Specifications): Reject test-case on | |
515 | library-level subprogram. | |
516 | * sem_prag.adb (Check_Test_Case): Stricter rules for test-case | |
517 | placement. | |
518 | (Analyze_Pragma): Change name "Normal" for "Nominal" in test-case | |
519 | component. | |
520 | * snames.ads-tmpl: Change name "Normal" for "Nominal" in test-case | |
521 | component. | |
522 | * gnat_rm.texi: Update doc for Test_Case pragma. | |
523 | ||
524 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
525 | ||
526 | * a-exexpr-gcc.adb (Unwind_Exception): Remove default value, made it | |
527 | convention C. | |
528 | (GCC_Exception_Access): New type. | |
529 | (Unwind_DeleteException): New imported procedure | |
530 | (Foreign_Exception): Import it. | |
531 | (GNAT_GCC_Exception): Simply have the occurrence inside. | |
532 | (To_GCC_Exception): New function. | |
533 | (To_GNAT_GCC_Exception): New function. | |
534 | (GNAT_GCC_Exception_Cleanup): New procedure.. | |
535 | (Propagate_GCC_Exception): New procedure. | |
536 | (Reraise_GCC_Exception): New procedure. | |
537 | (Setup_Current_Excep): New procedure. | |
538 | (CleanupUnwind_Handler): Change type of UW_Exception parameter. | |
539 | (Unwind_RaiseException): Ditto. | |
540 | (Unwind_ForcedUnwind): Ditto. | |
541 | (Remove): Removed. | |
542 | (Begin_Handler): Change type of parameter. | |
543 | (End_Handler): Ditto. Now delete the exception if still present. | |
544 | (Setup_Key): Removed. | |
545 | (Is_Setup_And_Not_Propagated): Removed. | |
546 | (Set_Setup_And_Not_Propagated): Ditto. | |
547 | (Clear_Setup_And_Not_Propagated): Ditto. | |
548 | (Save_Occurrence_And_Private): Ditto. | |
549 | (EID_For): Add 'not null' constraint on parameter. | |
550 | (Setup_Exception): Does nothing. | |
551 | (Propagate_Exception): Simplified. | |
552 | * exp_ch11.adb (Expand_N_Raise_Statement): In back-end exception model, | |
553 | re-raise is not expanded anymore. | |
554 | * s-except.ads (Foreign_Exception): New exception - placeholder for | |
555 | non Ada exceptions. | |
556 | * raise-gcc.c (__gnat_setup_current_excep): Declare | |
557 | (CXX_EXCEPTION_CLASS): Define (not yet used) | |
558 | (GNAT_EXCEPTION_CLASS): Define. | |
559 | (is_handled_by): Handle foreign exceptions. | |
560 | (PERSONALITY_FUNCTION): Call __gnat_setup_current_excep. | |
561 | ||
562 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
563 | ||
564 | * a-synbar.adb (Synchronous_Barrier): Some additional clarification. | |
565 | ||
2ef48385 AC |
566 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
567 | ||
568 | * a-synbar-posix.adb: Minor reformatting. | |
569 | ||
570 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
571 | ||
572 | * a-exetim-posix.adb, a-exetim-mingw.adb, a-exetim-mingw.ads, | |
573 | a-exetim-default.ads (Interrupt_Clocks_Supported, | |
574 | Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these | |
575 | definitions to be compliant with AI-0171. The target systems do not | |
576 | support separate account for the execution time of interrupt handlers. | |
577 | ||
578 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
579 | ||
580 | * a-synbar.adb (Wait): Change the order of evaluation of the conditions | |
581 | in the barrier to put first the easiest to evaluate (and the one which | |
582 | will be True more often). More efficient. | |
583 | ||
584 | 2011-08-29 Eric Botcazou <ebotcazou@adacore.com> | |
585 | ||
586 | * s-atocou-x86.adb: Fix constraint in machine code insertion. | |
587 | ||
588 | 2011-08-29 Bob Duff <duff@adacore.com> | |
589 | ||
590 | * aspects.ads, aspects.adb: Add new aspects for various pragmas and | |
591 | attributes that are now aspects, as specified by AI05-0229-1. | |
592 | * sem_ch13.adb (Analyze_Aspect_Specifications, | |
593 | Check_Aspect_At_Freeze_Point): Analyze the new aspects. Turn them into | |
594 | pragmas or attribute references, as appropriate. | |
595 | ||
0db16b1e AC |
596 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
597 | ||
598 | * a-synbar.ads, a-synbar.adb, a-synbar-posix.adb, | |
599 | a-synbar-posix.ads: Minor reformatting. | |
600 | ||
601 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
602 | ||
603 | * snames.ads-tmpl: Add name Force. | |
604 | ||
978ffe02 AC |
605 | 2011-08-29 Pascal Obry <obry@adacore.com> |
606 | ||
607 | * prj-nmsc.adb: Minor reformatting. | |
608 | ||
609 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
610 | ||
611 | * a-exetim.ads (Interrupt_Clocks_Supported, | |
612 | Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these | |
613 | definitions to be compliant with AI-0171. | |
614 | ||
615 | 2011-08-29 Robert Dewar <dewar@adacore.com> | |
616 | ||
617 | * a-ngelfu.adb: Add comments. | |
618 | ||
718f39dc AC |
619 | 2011-08-29 Geert Bosch <bosch@adacore.com> |
620 | ||
621 | * a-ngelfu.adb (Tan): Do not raise Constraint_Error if the argument is | |
622 | the closest machine number to Pi / 2.0. | |
623 | ||
624 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
625 | ||
626 | * impunit.adb (Non_Imp_File_Names_12): Add a-synbar for new Ada 2012 | |
627 | package Ada.Synchronous_Barriers. | |
628 | * a-synbar.ads, a-synbar.adb, a-synbar-posix.ads, a-synbar-posix.adb: | |
629 | Add new specs and bodies for Ada.Synchronous_Barriers. There is a | |
630 | default implementation using protected objects and another one | |
631 | a-synbar-posix using POSIX barriers as the underlying support. | |
632 | * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for Linux (x86, | |
633 | x86_64, ia64) and MIPS IRIX): Use the a-synbar-posix implementation of | |
634 | Ada.Synchronous_Barriers which uses POSIX barriers (more efficient). | |
635 | Clean up dependencies. | |
636 | * Makefile.rtl (GNATRTL_TASKING_OBJS): Add a-synbar.o | |
637 | ||
ee2e3f6b AC |
638 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
639 | ||
640 | * sem_ch7.adb, make.adb, sem_res.adb, exp_intr.adb, | |
641 | exp_dist.adb: Minor code reorganization. | |
642 | Minor reformatting. | |
643 | ||
644 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
645 | ||
646 | * sem_cat.adb (Validate_RACW_Primitive): The return type of an RACW | |
647 | primitive operation must support external streaming if it is not a | |
648 | controlling access result. | |
649 | ||
646e2823 AC |
650 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
651 | ||
652 | * sinfo.ads, sem_ch7.adb: Minor reformatting. | |
653 | ||
654 | 2011-08-29 Bob Duff <duff@adacore.com> | |
655 | ||
656 | * sem_ch4.adb (Analyze_Allocator): Check No_Nested_Finalization | |
657 | restriction on allocators, as required by AI05-0013-1. | |
658 | * restrict.ads: Minor comment fix. | |
659 | ||
5d59eef2 AC |
660 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
661 | ||
662 | * a-exexpr.adb, a-except-2005.ads (Jmpbuf_Address): Move to a-exexpr.adb | |
663 | (To_Jmpbuf_Address): Ditto | |
664 | (builtin_longjmp): Ditto | |
665 | ||
666 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
667 | ||
668 | * sem_res.adb: Minor reformatting. | |
669 | ||
670 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
671 | ||
672 | * make.adb (Gnatmake): Move special processing for VM targets after the | |
673 | call to Get_Target_Parameters. | |
674 | ||
675 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
676 | ||
677 | * sem_ch12.adb, par-ch12.adb: Minor reformatting. | |
678 | ||
949a18cc AC |
679 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
680 | ||
681 | * sem_res.adb (Resolve_Allocator): Implement Ada2012-B052. Detect cases | |
682 | where an anonymous access discriminant of a limited designated type | |
683 | appears in a non-immutably limited discriminated type and issue an | |
684 | error message. Add local variable Desig_T and replace all occurrences | |
685 | of Designated_Type. | |
686 | ||
687 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
688 | ||
689 | * a-rttiev.adb (Set_Handler): Update comment to indicate that our | |
690 | implementation is compliant to RM D.15(15/2) after the modification | |
691 | imposed by AI05-0094-1 (binding interpretation). | |
692 | ||
cb25faf8 AC |
693 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
694 | ||
695 | * exp_ch9.adb, s-tasren.adb, exp_sel.adb, exp_sel.ads, exp_ch11.adb, | |
696 | s-interr-hwint.adb, s-tpobop.adb, sem_ch13.adb: Minor reformatting. | |
697 | ||
698 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
699 | ||
700 | * par-endh.adb (Check_End): For an END where it is mandatory to repeat | |
701 | the scope name, do not report a missing label as a style violation (it | |
702 | will be diagnosed as an illegality). | |
703 | * exp_dist.adb (Add_Params_For_Variant_Components): Fix handling of | |
704 | variant records: Get_Enum_Lit_From_Pos already returns a usage | |
705 | occurrence of the literal, no need to use New_Occurrence_Of. Set Etype | |
706 | on Expr in Integer_Literal case so that it can be used by | |
707 | Build_To_Any_Call. | |
708 | ||
1d10f669 AC |
709 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
710 | ||
711 | * exp_sel.ads (Build_Abort_BLock_Handler): New function spec. | |
712 | Adjust comment. | |
713 | * exp_sel.adb (Build_Abort_Block): Use Build_Abort_Block_Handler. | |
714 | (Build_Abort_Block_Handler): New function to build an Abort_Signal | |
715 | exception handler. | |
716 | * exp_ch9.adb (Expand_N_Asynchronous_Select): Call | |
717 | Build_Abort_Block_Handler to build the exception handler. Do not | |
718 | undefer aborts for the Abort_Signal exception handler if back-end | |
719 | exception mechanism. | |
720 | * exp_ch11.adb (Expand_Exception_Handlers): Do not undefer aborts if | |
721 | back_end exceptions for all others and abort_signal. | |
722 | * s-except.ads (ZCX_By_Default): New constant. | |
723 | * a-except-2005.adb (Raise_Exception): Do not defer abort if ZCX. | |
724 | (Raise_Exception_Always): Ditto. | |
725 | (Raise_From_Signal_Handler): Ditto. | |
726 | (Raise_With_Location_And_Msg): Ditto. | |
727 | (Raise_With_Msg): Ditto. | |
728 | (Reraise): Ditto. | |
729 | (Reraise_Occurence): Ditto. | |
730 | (Reraise_Occurrence_Always): Ditto. | |
731 | * s-tasren.adb (Exceptional_Complete_Rendezvous): Defer aborts if ZCX. | |
732 | * s-tpobop.adb: (Exceptional_Complete_Body): Undefer abort if ZCX. | |
1d10f669 AC |
733 | |
734 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
735 | ||
736 | * sem_util.ads (Get_Enum_Lit_From_Pos): Clarify documentation. | |
737 | ||
d986066d AC |
738 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
739 | ||
740 | * snames.adb-tmpl, sem_ch13.adb: Minor reformatting | |
741 | Minor code reorganization. | |
742 | ||
743 | 2011-08-29 Bob Duff <duff@adacore.com> | |
744 | ||
745 | * usage.adb (-gnatwy): Fix documentation: this switch applies to Ada | |
746 | 2012, not just Ada 2005. | |
747 | ||
748 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
749 | ||
750 | * gnat_ugn.texi: Indicate that when the compiler is called by gnatmake | |
751 | with a project file or with gprbuid, if -gnatep= is specified, the | |
752 | builder may need to be invoked with -x. | |
753 | ||
754 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
755 | ||
756 | * a-exexpr-gcc.adb: Minor comment fix. | |
757 | ||
ff4f0ed0 AC |
758 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
759 | ||
760 | * sem_ch8.adb: Minor reformatting. | |
761 | ||
762 | 2011-08-29 Bob Duff <duff@adacore.com> | |
763 | ||
764 | * par-ch2.adb (P_Identifier): Warn that "some" is reserved in Ada 2012. | |
765 | * par-ch4.adb (P_Quantified_Expression): Remove unnecessary code for | |
766 | treating "some" as unreserved in earlier Ada versions. This is now | |
767 | handled in Snames.Is_Keyword_Name. Parse "for some" using Tok_Some, | |
768 | rather than Name_Some, since Tok_Some is now recognized as reserved. | |
769 | * scans.adb (Initialize_Ada_Keywords): Handle Tok_Some like any other | |
770 | reserved word. | |
771 | * scans.ads: Minor comment fixes. | |
772 | * snames.adb-tmpl (Is_Keyword_Name): Handle Ada 2012 reserved words as | |
773 | for other language versions. | |
774 | * scn.adb (Scan_Reserved_Identifier): Remove unnecessary code for | |
775 | treating "some" as unreserved in earlier Ada versions. This is now | |
776 | handled in Snames.Is_Keyword_Name. | |
777 | * par-ch3.adb (P_Defining_Identifier): Warn that "some" is reserved in | |
778 | Ada 2012. | |
779 | (P_Subtype_Mark_Resync): Remove unnecessary code for treating "some" as | |
780 | unreserved in earlier Ada versions. This is now handled in | |
781 | Snames.Is_Keyword_Name. | |
782 | * snames.ads-tmpl (Ada_2012_Reserved_Words): Handle Ada 2012 reserved | |
783 | words as for other language versions. | |
784 | * gnat_ugn.texi (-gnatwy): Fix documentation: this switch applies to | |
785 | Ada 2012, not just Ada 2005. | |
786 | ||
d941cee6 AC |
787 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> |
788 | ||
789 | * sem_ch13.adb: Additional semantic checks for aspects involved in | |
790 | iterators. | |
791 | ||
792 | 2011-08-29 Matthew Heaney <heaney@adacore.com> | |
793 | ||
794 | * a-comutr.ads, a-comutr.adb, a-cimutr.ads, a-cimutr.adb, | |
795 | a-cbmutr.ads, a-cbmutr.adb (Find_In_Subtree): Remove superfluous | |
796 | Container parameter. | |
797 | (Ancestor_Find): ditto. | |
798 | ||
b970af39 TQ |
799 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
800 | ||
801 | * par-endh.adb: Minor reformatting. | |
d941cee6 | 802 | |
92db5dee AC |
803 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
804 | ||
805 | * a-exexpr-gcc.adb (Unwind_Action) Rewrite as an integer with constants. | |
806 | (GNAT_GCC_Exception): Remove N_Cleanups_To_Trigger component. | |
807 | (Adjust_N_CLeanups_For): Remove. | |
808 | (CleanupUnwind_Handler): Call Unhandled_Exception_Terminate when end of | |
809 | stack is reached. | |
810 | (Propgate_Exception): Adjust. | |
811 | * raise-gcc.c: Add a few static/const. | |
812 | (Adjust_N_Cleanups_For): Remove declaration. | |
813 | (PERSONALITY_FUNCTION): Remove code dealing with N_Cleanups_To_Trigger. | |
814 | ||
815 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
816 | ||
817 | * sem_ch8.adb: Use type of function return when rewriting as object | |
818 | declaration. | |
819 | ||
1378bf10 AC |
820 | 2011-08-29 Gary Dismukes <dismukes@adacore.com> |
821 | ||
822 | * sem_type.adb: Minor reformatting. | |
823 | ||
824 | 2011-08-29 Robert Dewar <dewar@adacore.com> | |
825 | ||
826 | * makeutl.adb: Minor reformatting. | |
827 | ||
828 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
829 | ||
830 | * sem_ch8.adb (Analyze_Object_Renaming): If the renamed object is a | |
831 | function call of a limited type, the expansion of the renaming is | |
832 | complicated by the presence of various temporaries and subtypes that | |
833 | capture constraints of the renamed object. | |
834 | Rewrite node as an object declaration, whose expansion is simpler. | |
835 | Given that the object is limited there is no copy involved and no | |
836 | performance hit. | |
837 | ||
164e06c6 AC |
838 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
839 | ||
840 | * exp_ch5.adb, sinfo.ads, make.adb, s-pooglo.adb, sem_ch12.adb, | |
841 | freeze.adb, sem_ch6.adb, par-ch12.adb: Minor reformatting. | |
842 | ||
843 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
844 | ||
845 | * system-darwin-x86.ads, system-linux-s390x.ads, system-linux-alpha.ads, | |
846 | system-tru64.ads, system-irix-n32.ads, system-vxworks-arm.ads, | |
847 | system-linux-hppa.ads, system-linux-s390.ads, | |
848 | system-solaris-sparcv9.ads, system-mingw.ads, system-linux-ia64.ads, | |
849 | system-vms_64.ads, system-vxworks-sparcv9.ads, system-linux-ppc.ads, | |
850 | system-aix64.ads, system-lynxos-ppc.ads, system-linux-sh4.ads, | |
851 | system-solaris-x86.ads, system-linux-x86_64.ads, system-linux-x86.ads, | |
852 | system-vxworks-ppc.ads, system-hpux.ads, system-darwin-ppc.ads, | |
853 | system-solaris-sparc.ads, system-lynxos-x86.ads, | |
854 | system-vxworks-m68k.ads, system-hpux-ia64.ads, system-irix-o32.ads, | |
855 | system-solaris-x86_64.ads, system-mingw-x86_64.ads, | |
856 | system-vxworks-mips.ads, system-linux-sparc.ads, system-vms-ia64.ads, | |
857 | system-freebsd-x86.ads, system-aix.ads, system-darwin-x86_64.ads, | |
858 | system-vxworks-x86.ads: Remove GCC_ZCX_Support | |
859 | * s-taprop-posix.adb, s-taprop-irix.adb, s-taprop-vxworks.adb, | |
860 | s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb: Ditto. | |
861 | * opt.ads: Adjust comment. | |
862 | * targparm.ads, targparm.adb: Remove GCC_ZCX_Support_On_Target. | |
863 | * gnat1drv.adb: Do not check for GCC_ZCX_Support_On_Target. | |
864 | * system.ads: Move GCC_ZCX_Support to obsolete entries. | |
865 | ||
866 | 2011-08-29 Emmanuel Briot <briot@adacore.com> | |
867 | ||
868 | * makeutl.adb (Do_Complete): Resolve symbolic links when a relative | |
869 | file name is specified on the gnatmake or gprbuild command line, and | |
870 | before we search for that file in the project. | |
871 | ||
872 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
873 | ||
874 | * sem_type.adb (Within_Instance): New predicate in Collect_Interps, | |
875 | used to determine whether a possible interpretation for an overloadable | |
876 | entity is declared within the current instantiation and should be | |
877 | included in the candidate set. | |
878 | ||
879 | 2011-08-29 Vasiliy Fofanov <fofanov@adacore.com> | |
880 | ||
881 | * gnat_rm.texi, gnat_ugn.texi: Clean ups. | |
882 | ||
97216ca8 ES |
883 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> |
884 | ||
885 | * sem_res.adb (Resolve_Actuals): Use base type to determine whether an | |
886 | access subtype is access_to_subprogram, when applying checks for | |
887 | RM 3.10.2 (27). | |
888 | ||
d3cb4cc0 AC |
889 | 2011-08-29 Matthew Heaney <heaney@adacore.com> |
890 | ||
891 | * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Splice_Subtree): Only check | |
892 | for sibling when common parent. | |
893 | ||
894 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
895 | ||
896 | * get_scos.adb: Literals of Pragma_Id are pragma names prefixed with | |
897 | "pragma_". | |
898 | ||
899 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
900 | ||
901 | * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Enable freeze actions | |
902 | for the return type when in ASIS mode. | |
903 | ||
904 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
905 | ||
906 | * make.adb (Gnatmake): Get the default search dirs, then the target | |
907 | parameters after getting the Builder switches, as the Builder switches | |
908 | may include --RTS= and that could change the default search dirs. | |
909 | ||
910 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> | |
911 | ||
912 | * exp_ch7.adb (Make_Adjust_Call): Rewrite to mimic the structure of | |
913 | Make_Final_Call. Move the processing for class-wide types before the | |
914 | processing for derivations from [Limited_]Controlled. | |
915 | (Make_Final_Call): Move the processing for class-wide types before the | |
916 | processing for derivations from [Limited_]Controlled. | |
917 | * s-stposu.adb (Allocate_Any_Controlled): Correct the membership check. | |
918 | Add code to account for alignments larger than the list header. Add a | |
919 | comment illustrating the structure of the allocated object + padding + | |
920 | header. | |
921 | (Deallocate_Any_Controlled): Add code to account for alignments larger | |
922 | than the list header. | |
923 | ||
924 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
925 | ||
926 | * sinfo.ads, sinfo.adb: New node kind | |
927 | N_Formal_Incomplete_Type_Definition, related flags. | |
928 | par-ch12.adb (P_Formal_Type_Declaration, G_Formal_Type_Definition): | |
929 | Parse formal incomplete types. | |
930 | * sem.adb (Analyze): Formal_Incomplete_Type_Definitions are handled in | |
931 | sem_ch12. | |
932 | * sem_ch7.adb (Analyze_Package_Specification, Unit_Requires_Body): | |
933 | Formal incomplete types do not need completion. | |
934 | * sem_ch12.adb (Analyze_Formal_Incomplete_Type, | |
935 | Validate_Incomplete_Type_Instance): New procedures to handle formal | |
936 | incomplete types. | |
937 | * freeze.adb (Freeze_Entity): Do not freeze the subtype of an actual | |
938 | that corresponds to a formal incomplete type. | |
939 | * sprint.adb: Handle formal incomplete type declarations. | |
940 | * exp_util.adb (Insert_Actions): An incomplete_type_definition is not | |
941 | an insertion point. | |
942 | ||
d3f70b35 AC |
943 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
944 | ||
945 | * a-fihema.ads, a-fihema.adb: Unit removed. | |
946 | * a-undesu.ads, a-undesu.adb: New unit implementing | |
947 | Ada.Unchecked_Deallocate_Subpool. | |
948 | * einfo.adb: Remove Associated_Collection from the node usage. | |
949 | Add Finalization_Master to the node usage. | |
950 | (Associated_Collection): Removed. | |
951 | (Finalization_Master): New routine. | |
952 | (Set_Associated_Collection): Removed. | |
953 | (Set_Finalization_Master): New routine. | |
954 | (Write_Field23_Name): Remove Associated_Collection from the output. Add | |
955 | Finalization_Master to the output. | |
956 | * einfo.ads: Remove attribute Associated_Collection and its uses in | |
957 | entities. | |
958 | Add new attribute Finalization_Master along with its uses in entitites. | |
959 | (Associated_Collection): Removed along with its pragma import. | |
960 | (Finalization_Master): New routine along with a pragma import. | |
961 | (Set_Associated_Collection): Removed along with its pragma import. | |
962 | (Set_Finalization_Master): New routine along with a pragma import. | |
963 | * exp_ch3.adb (Expand_Freeze_Array_Type): Replace call to | |
964 | Build_Finalization_Collection with Build_Finalization_Master. | |
965 | (Expand_Freeze_Record_Type): Move the generation of Finalize_Address | |
966 | before the bodies of the predefined routines. Add comment explaining | |
967 | this. Replace call to Build_Finalization_Collection with | |
968 | Build_Finalization_Master. | |
969 | (Freeze_Type): Replace call to Build_Finalization_Collection with | |
970 | Build_Finalization_Master. | |
971 | (Make_Finalize_Address_Body): Comment reformatting. | |
972 | (Make_Predefined_Primitive_Specs): Code reformatting. | |
973 | (Stream_Operation_OK): Update comment mentioning finalization | |
974 | collections. Replace RE_Finalization_Collection with | |
975 | RE_Finalization_Master. | |
976 | * exp_ch4.adb (Complete_Controlled_Allocation): Replace call to | |
977 | Associated_Collection with Finalization_Master. Replace call to | |
978 | Build_Finalization_Collection with Build_Finalization_Master. | |
979 | (Expand_Allocator_Expression): Replace call to Associated_Collection | |
980 | with Finalization_Master. Replace call to Set_Associated_Collection with | |
981 | Set_Finalization_Master. Remove the generation of | |
982 | Set_Finalize_Address_Ptr. | |
983 | (Expand_N_Allocator): Replace call to Associated_Collection with | |
984 | Finalization_Master. Remove the generation of Set_Finalize_Address_Ptr. | |
985 | * exp_ch6.adb (Add_Collection_Actual_To_Build_In_Place_Call): Renamed to | |
986 | Add_Finalization_Master_Actual_To_Build_In_Place_Call. Update the | |
987 | comment on usage. Replace call to Needs_BIP_Collection with | |
988 | Needs_BIP_Finalization_Master Remplace BIP_Collection with | |
989 | BIP_Finalization_Master. Update all comments which mention finalization | |
990 | collections. Replace Associated_Collection with | |
991 | Finalization_Master. Replace Build_Finalization_Collection with | |
992 | Build_Finalization_Master. | |
993 | (BIP_Formal_Suffix): Update BIP_Collection's case. | |
994 | (Build_Heap_Allocator): Update the related comment. Rename local | |
995 | variable Collect to Fin_Mas_Id and update its occurrences. Update | |
996 | comments which mention finalization collections. Replace | |
997 | Set_Associated_Collection with Set_Finalization_Master. | |
998 | (Expand_Call): Update the code which detects a special piece of library | |
999 | code for .NET/JVM. | |
1000 | (Make_Build_In_Place_Call_In_Allocator): Replace the call to | |
1001 | Add_Collection_Actual_To_Build_In_Place_Call with | |
1002 | Add_Finalization_Master_Actual_To_Build_In_Place_Call. Remove the code | |
1003 | which generates a call to Make_Set_Finalize_Address_Ptr_Call. | |
1004 | (Make_Build_In_Place_Call_In_Anonymous_Context): Replace call to | |
1005 | Add_Collection_Actual_To_Build_In_Place_Call with | |
1006 | Add_Finalization_Master_Actual_To_Build_In_Place_Call. | |
1007 | (Make_Build_In_Place_Call_In_Assignment): Replace call to | |
1008 | Add_Collection_Actual_To_Build_In_Place_Call with | |
1009 | Add_Finalization_Master_Actual_To_Build_In_Place_Call. | |
1010 | (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master. | |
1011 | * exp_ch6.ads: Rename BIP_Collection to BIP_Finalization_Master. | |
1012 | (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master. | |
1013 | * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Update comment on usage. | |
1014 | Rename local variable Collect to Fin_Mas_Id and update its occurrences. | |
1015 | Replace call to Set_Associated_Collection with Set_Finalization_Master. | |
1016 | (Build_Finalization_Collection): Renamed to Build_Finalization_Master. | |
1017 | Replace the call to Associated_Collection with Finalization_Master. | |
1018 | Rename local variable Coll_Id to Fin_Mas_Id and update its occurrences. | |
1019 | Update the way finalization master names are generated. Update the | |
1020 | retrieval of the correct access type which will carry the pool and | |
1021 | master attributes. | |
1022 | (Make_Final_Call): Reimplement the way [Deep_]Finalize is retrieved. | |
1023 | (Make_Finalize_Address_Body): Abstract types do not need | |
1024 | Finalize_Address. Code reformatting. | |
1025 | (Make_Finalize_Address_Stmts): Update comment on usage. | |
1026 | (Make_Set_Finalize_Address_Ptr_Call): Removed. | |
1027 | (Process_Declarations): Update comments. | |
1028 | * exp_ch7.ads (Build_Finalization_Collection): Renamed to | |
1029 | Build_Finalization_Master. Update associated comment. | |
1030 | (Make_Set_Finalize_Address_Ptr_Call): Removed. | |
1031 | * exp_ch13.adb: Update comments which mention finalization collections. | |
1032 | (Expand_N_Free_Statement): Replace the call to Associated_Collection | |
1033 | with Finalization_Master. | |
1034 | * exp_util.adb (Build_Allocate_Deallocate_Proc): Reimplemented to | |
1035 | create calls to routines Allocate_Any_Controlled and | |
1036 | Deallocate_Any_Controlled. | |
1037 | (Find_Finalize_Address): New routine. | |
1038 | (Is_Allocate_Deallocate_Proc): Update the RTE entities used in the | |
1039 | comparison. | |
1040 | (Requires_Cleanup_Actions): Update the comment on freeze node | |
1041 | inspection. | |
1042 | * exp_util.ads: Remove comment on generated code for | |
1043 | Build_Allocate_Deallocate_Proc. The code is now quite complex and it | |
1044 | is better to simply look in the body. | |
1045 | * freeze.adb (Freeze_All): Update the comment of finalization | |
1046 | collections. Replace the call to Associated_Collection with | |
1047 | Finalization_Master. Replace the call to Build_Finalization_Collection | |
1048 | with Build_Finalization_Master. | |
1049 | * impunit.adb: Add a-undesu and s-stposu to the list of units. | |
1050 | * Makefile.rtl: Add files a-undesu, s-finmas and s-stposu. Remove file | |
1051 | a-fihema. | |
1052 | * rtsfind.adb (Get_Unit_Name): Remove the processing for children of | |
1053 | Ada.Finalization. Add processing for children of System.Storage_Pools. | |
1054 | * rtsfind.ads: Remove the naming of second level children of | |
1055 | Ada.Finalization. | |
1056 | Remove Ada_Finalization_Heap_Management from the list of units. | |
1057 | Remove subtype Ada_Finalization_Child. | |
1058 | Remove the following subprogram entities: | |
1059 | ||
1060 | RE_Allocate | |
1061 | RE_Deallocate | |
1062 | RE_Finalization_Collection | |
1063 | RE_Finalization_Collection_Ptr | |
1064 | RE_Set_Finalize_Address_Ptr | |
1065 | ||
1066 | Add the naming of second level children of System.Storage_Pools. | |
1067 | Add System_Finalization_Masters and System_Storage_Pools_Subpools to | |
1068 | the list of units. | |
1069 | Add subtype System_Storage_Pools_Child. | |
1070 | Add the following subprogram entities to System.Finalization_Masters: | |
1071 | ||
1072 | RE_Finalization_Master | |
1073 | RE_Finalization_Master_Ptr | |
1074 | ||
1075 | Add the following subprogram entities to System.Storage_Pools.Subpools: | |
1076 | ||
1077 | RE_Allocate_Any_Controlled | |
1078 | RE_Deallocate_Any_Controlled | |
1079 | RE_Root_Storage_Pool_With_Subpools | |
1080 | RE_Root_Subpool | |
1081 | RE_Subpool_Handle | |
1082 | ||
1083 | Move the following subprogram entities from | |
1084 | Ada.Finalization.Heap_Management to System.Finalization_Masters: | |
1085 | ||
1086 | RE_Add_Offset_To_Address | |
1087 | RE_Attach | |
1088 | RE_Base_Pool | |
1089 | RE_Detach | |
1090 | ||
1091 | * sem_ch3.adb (Access_Type_Declaration): Replace the call to | |
1092 | Set_Associated_Collection with Set_Finalization_Master. | |
1093 | * sem_ch6.adb (Create_Extra_Formals): Update the way extra formal | |
1094 | BIP_Finalization_Master is created. | |
1095 | * s-finmas.adb: New unit System.Finalization_Masters. | |
1096 | * s-finmas.ads: New unit System.Finalization_Masters. | |
1097 | * s-stopoo.ads, s-stopoo.adb: Minor code reformatting. | |
1098 | * s-stposu.ads, s-stposu.adb: New unit implementing | |
1099 | System.Storage_Pools.Subpools. | |
1100 | ||
1101 | 2011-08-29 Bob Duff <duff@adacore.com> | |
1102 | ||
1103 | * tbuild.adb: Add assertion. | |
1104 | ||
8c889ae4 AC |
1105 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
1106 | ||
1107 | * s-pooglo.adb: Minor reformatting. | |
1108 | ||
1109 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1110 | ||
1111 | * exp_ch5.adb (Expand_N_Assignment_Statement): if the left-hand side is | |
1112 | an indexed component of a packed array whose element type is a record | |
1113 | with a representation clause different from that of the right-hand | |
1114 | side, generate a temporary to minimuze the number of bit-field | |
1115 | operations generated. | |
1116 | ||
1117 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1118 | ||
1119 | * exp_util.adb (Insert_Actions): Use clauses can be part of lists of | |
1120 | declarations, and thus are likely insertion points for actions. | |
1121 | ||
1122 | 2011-08-29 Bob Duff <duff@adacore.com> | |
1123 | ||
1124 | * einfo.ads: Minor comment fix. | |
1125 | ||
1a07a71a AC |
1126 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1127 | ||
1128 | * frontend.adb, gnat1drv.adb: Minor reformatting. | |
1129 | ||
1130 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
1131 | ||
1132 | * s-pooglo.adb (Allocate, Deallocate): Take into account the alignment. | |
1133 | * a-fihema.adb (Allocate, Deallocate): Ditto. Possibly add padding | |
1134 | space in front of the header. | |
1135 | ||
4bcd6411 JK |
1136 | 2011-08-29 Johannes Kanig <kanig@adacore.com> |
1137 | ||
1138 | * frontend.adb (Frontend): Exit after creating Standard package when | |
1139 | -gnatd.H is present. | |
1140 | * gnat1drv.adb (Gnat1drv): Call Backend right away when -gnatd.H is | |
1141 | present. | |
1142 | ||
f0f88eb6 RD |
1143 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1144 | ||
1145 | * exp_ch9.adb, mlib-prj.adb, prj.adb, prj.ads, ttypes.ads, sem_ch4.adb, | |
1146 | makeutl.adb, makeutl.ads, atree.ads, snames.adb-tmpl, | |
1147 | snames.ads-tmpl: Minor reformatting. | |
1148 | ||
3e37be71 PG |
1149 | 2011-08-29 Philippe Gil <gil@adacore.com> |
1150 | ||
1151 | * prj.adb (Reset_Units_In_Table): New procedure. | |
1152 | Reset units to avoid access to freed memory. | |
1153 | ||
94fb7608 AC |
1154 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
1155 | ||
1156 | * get_scos.adb: When reading a P statement SCO without a pragma name | |
1157 | (from an older ALI file), ensure that the Pragma_Name component is set | |
1158 | to Unknown_Pragma (not left uninitialized). | |
1159 | ||
1160 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
1161 | ||
1162 | * makeutl.adb (Get_Directories): New procedure moved from Buildgpr and | |
1163 | modified to compute correctly the object path of a SAL project that is | |
1164 | extending another library project. | |
1165 | (Write_Path_File): New procedure. | |
1166 | * makeutl.ads (Directories): New table moved from Buildgpr | |
1167 | (Get_Directories): New procedure moved from Buildgpr | |
1168 | (Write_Path_File): New procedure | |
1169 | * mlib-prj.adb (Build_Library): Use Makeutl.Get_Directories to set the | |
1170 | paths before binding SALs, instead of Set_Ada_Paths. | |
1171 | * prj-env.adb (Set_Path_File_Var): Procedure has been moved to package | |
1172 | Prj. | |
1173 | * prj.adb (Set_Path_File_Var): New procedure moved from Prj.Env | |
1174 | (Current_Source_Path_File_Of): New function | |
1175 | (Set_Current_Object_Path_File_Of): New procedure | |
1176 | (Current_Source_Object_File_Of): New function | |
1177 | (Set_Current_Object_Path_File_Of): New procedure | |
1178 | * prj.ads (Set_Path_File_Var): New procedure moved from Prj.Env | |
1179 | (Current_Source_Path_File_Of): New function | |
1180 | (Set_Current_Object_Path_File_Of): New procedure | |
1181 | (Current_Source_Object_File_Of): New function | |
1182 | (Set_Current_Object_Path_File_Of): New procedure | |
1183 | ||
1184 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1185 | ||
1186 | * exp_ch5.adb (Expand_N_Assignment_Statement): For an assignment to a | |
1187 | packed entity, use a bit-field assignment only if there is no change of | |
1188 | representation. | |
1189 | ||
c5ecd6b7 AC |
1190 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
1191 | ||
1192 | * rtsfind.ads, exp_ch3.adb (In_Runtime): Minor code improvement, use | |
1193 | Is_RTU instead of using Chars comparisons. | |
1194 | ||
1195 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1196 | ||
1197 | * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do not create a | |
1198 | temporary object if the actual is constrained, and the discriminants | |
1199 | read from the stream don't match. | |
1200 | ||
1201 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
1202 | ||
1203 | * sem_attr.adb, exp_attr.adb: Add handling of | |
1204 | Attribute_System_Allocator_Alignment | |
1205 | * snames.ads-tmpl: Add Name_System_Allocator_Alignment and | |
1206 | Attribute_System_Allocator_Alignment. | |
1207 | * ttypes.ads, get_targ.ads: Add Get_System_Allocator_Alignment. | |
1208 | * gcc-interface/targtyps.c, gcc-interface/utils2.c, | |
1209 | gcc-interface/gigi.h: Renames get_target_default_allocator_alignment to | |
1210 | get_target_system_allocator_alignment. | |
1211 | ||
1212 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> | |
1213 | ||
1214 | * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update | |
1215 | dependencies. | |
1216 | ||
8abdac29 AC |
1217 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> |
1218 | ||
1219 | * exp_ch3.adb (In_Runtime): Fix typo. | |
1220 | ||
df170605 AC |
1221 | 2011-08-29 Bob Duff <duff@adacore.com> |
1222 | ||
1223 | * sem_ch4.adb (Analyze_Allocator): Analyze the subpool specification. | |
1224 | ||
1225 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1226 | ||
1227 | * exp_ch3.adb (Expand_N_Object_Declaration): If the entity is tagged | |
1228 | and a separate tag assignment is generated, ensure that the tag | |
1229 | assignment is analyzed. | |
1230 | ||
864a4236 ES |
1231 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> |
1232 | ||
1233 | * atree.ads, atree.adb (Copy_Separate_List): New function that applies | |
1234 | Copy_Separate_Tree to a list of nodes. Used to create disjoint copies | |
1235 | of statement lists that may contain local declarations. | |
df170605 AC |
1236 | * exp_ch9.adb (Expand_N_Timed_Entry_Call): Use Copy_Separate_List to |
1237 | duplicate the triggering statements needed for the expansion of this | |
1238 | construct, when the trigger is a dispatching call to a synchronized | |
1239 | primitive. | |
864a4236 | 1240 | |
7f394c1d AC |
1241 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> |
1242 | ||
1243 | * gnat_rm.texi: Add doc for 'Elab_Subp_Body. | |
1244 | * bindgen.adb: Add comments. | |
1245 | * snames.adb-tmpl (Is_Attribute_Name): Only recognize 'Elab_Subp_Body | |
1246 | in CodePeer mode. | |
1247 | ||
2c1a2cf3 RD |
1248 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1249 | ||
1250 | * exp_attr.adb: Minor reformatting. | |
1251 | Minor code reorganization and commenting. | |
1252 | * par_sco.adb, checks.adb, sem_attr.adb, get_scos.adb: Minor | |
1253 | reformatting. | |
1254 | ||
0bfc9a64 AC |
1255 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
1256 | ||
1257 | * get_scos.adb: Ignore chaining indicators not currently supported | |
1258 | by Ada. | |
1259 | ||
1260 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> | |
1261 | ||
1262 | * system.ads: Minor editing. | |
1263 | ||
1264 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> | |
1265 | ||
1266 | * bindgen.adb (Gen_Elab_Calls): Generate calls to subp'Elab_Subp_Body in | |
1267 | CodePeer mode. | |
1268 | * sem_attr.ads, sem_attr.adb, exp_Attr.adb, sem_ch6.adb: Add handling of | |
1269 | Attribute_Elab_Subp_Body. | |
1270 | * snames.ads-tmpl (Attribute_Elab_Subp_Body, Name_Elab_Subp_Body): New. | |
1271 | * sem_util.adb: Update comments. | |
1272 | ||
828d4cf0 TQ |
1273 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
1274 | ||
1275 | * par_sco.adb, scos.adb, scos.ads, put_scos.adb, get_scos.adb: Record | |
1276 | pragma name for each SCO statement corresponding to a pragma. | |
1277 | ||
5cd7bb15 AC |
1278 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> |
1279 | ||
1280 | * opt.ads: Minor editing. | |
1281 | ||
1282 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
1283 | ||
1284 | * gnat1drv.adb (Adjust_Global_Switches): Remove options for ALFA mode | |
1285 | that only made sense for CodePeer mode. | |
1286 | ||
1287 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
1288 | ||
1289 | * targparm.ads (Support_64_Bit_Divides_On_Target): Remove this flag | |
1290 | which is no longer used. | |
1291 | * targparm.adb (S64, S64_Str, Get_Target_Parameters): Remove the | |
1292 | handling of the 64-bit division check. | |
1293 | * exp_ch4.adb (Expand_N_Op_Divide): Remove the check for 64-bit | |
1294 | division available. | |
1295 | * system*.ads (Support_64_Bit_Divides): Remove this flag which is no | |
1296 | longer used. | |
1297 | ||
1298 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1299 | ||
1300 | * get_scos.adb: Minor reformatting. | |
1301 | ||
25b589cb AC |
1302 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
1303 | ||
1304 | * exp_util.adb (Process_Statements_For_Controlled_Objects): Whenever a | |
1305 | statement list is wrapped in a block, the block is explicitly analyzed | |
1306 | in order to properly redecorate the entities and create a servicing | |
1307 | finalizer. | |
1308 | ||
1309 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
1310 | ||
1311 | * sinfo.ads, sinfo.adb (Zero_Cost_Handling): Remove. | |
1312 | (Set_Zero_Cost_Handling): Remove. | |
1313 | ||
1314 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1315 | ||
1316 | * par_sco.adb, scos.ads, put_scos.adb, get_scos.adb: Minor reformatting | |
1317 | ||
1197ddb1 AC |
1318 | 2011-08-29 Geert Bosch <bosch@adacore.com> |
1319 | ||
1320 | * s-vaflop-vms-alpha.adb (Neg_F): Use subtraction instead of negation | |
1321 | instruction, as the latter may produce -0.0, which is not a valid VAX | |
1322 | F float number. | |
1323 | (Neg_G): Likewise for VAX F float. | |
1324 | ||
1325 | 2011-08-29 Robert Dewar <dewar@adacore.com> | |
1326 | ||
1327 | * exp_util.adb: Minor reformatting. | |
1328 | ||
1329 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
1330 | ||
1331 | * sem_ch3.adb: Minor comment update. | |
1332 | ||
1333 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1334 | ||
1335 | * checks.adb (Apply_Type_Conversion_Checks): Use the Underlying_Type of | |
1336 | the operand type. | |
1337 | ||
1338 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1339 | ||
1340 | * par_sco.adb (Traverse_Declarations_Or_Statements): Do not flush | |
1341 | current statement sequence on a generic instantiation or a subprogram | |
1342 | declaration. | |
1343 | ||
8f66cda7 AC |
1344 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1345 | ||
1346 | * sem_type.adb, einfo.ads, freeze.adb, exp_ch4.adb, sem_ch13.adb: | |
1347 | Minor reformatting. | |
1348 | ||
1349 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> | |
1350 | ||
1351 | * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)): | |
1352 | Correct the check which involves the freeze node of a controlled or | |
1353 | access-to-controlled type. | |
1354 | ||
1355 | 2011-08-29 Geert Bosch <bosch@adacore.com> | |
1356 | ||
1357 | * sem_warn.adb (Check_Code_Statement): Remove check for consecutive Asm | |
1358 | statements. | |
1359 | * s-vaflop-vms-alpha.adb: Remove bogus Volatile => True arguments from | |
1360 | Asm statements. | |
1361 | ||
cf161d66 AC |
1362 | 2011-08-29 Yannick Moy <moy@adacore.com> |
1363 | ||
1364 | * sem_ch3.adb (Array_Type_Declaration): Insert a subtype declaration | |
1365 | for every index type and component type that is not a subtype_mark. | |
1366 | (Process_Subtype): Set Etype of subtype. | |
1367 | ||
1368 | 2011-08-29 Robert Dewar <dewar@adacore.com> | |
1369 | ||
1370 | * a-cbmutr.adb, a-cimutr.adb, a-comutr.adb, prj-nmsc.adb: Minor code | |
1371 | reorganization. Minor reformatting. | |
1372 | ||
7cc83cd8 AC |
1373 | 2011-08-29 Steve Baird <baird@adacore.com> |
1374 | ||
1375 | * exp_ch4.adb (Expand_N_Op_Expon): Suppress N_Op_Expon node expansion | |
1376 | for CodePeer and ALFA modes. | |
1377 | ||
1378 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1379 | ||
1380 | * sem_type.adb (Collect_Interps): Within an instance, collect a homonym | |
1381 | that comes from an enclosing scope if it is not the renaming of an | |
1382 | actual, to handle properly a spurious ambiguity in an instance. | |
1383 | ||
76af4137 AC |
1384 | 2011-08-29 Eric Botcazou <ebotcazou@adacore.com> |
1385 | ||
1386 | * sem_ch13.adb (Alignment_Check_For_Esize_Change): Rename to... | |
1387 | (Alignment_Check_For_Size_Change): ...this. Add SIZE parameter and | |
1388 | use it instead of the Esize of the first parameter. | |
1389 | (Analyze_Attribute_Definition_Clause) <Object_Size>: Adjust call to | |
1390 | above change. | |
1391 | <Size>: Likewise. Call it for composite types on the RM size. | |
1392 | ||
1393 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
1394 | ||
1395 | * exp_ch4.adb (Expand_N_Op_Not): Do not expand not on array. | |
1396 | * sem_util.adb (Unique_Name): Correct behaviour for names of | |
1397 | compilation units. | |
1398 | ||
9b20e59b AC |
1399 | 2011-08-29 Yannick Moy <moy@adacore.com> |
1400 | ||
1401 | * sem_prag.adb (Check_Precondition_Postcondition): In formal | |
1402 | verification mode, analyze pragma expression for correctness, for | |
1403 | pre/post on library-level subprogram, as it is not expanded later. | |
1404 | ||
1405 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
1406 | ||
1407 | * exp_aggr.adb (Expand_Array_Aggregate): Do not expand array aggregates | |
1408 | in formal verification. | |
1409 | ||
1410 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1411 | ||
1412 | * sem_util.adb: Minor reformatting. | |
1413 | * freeze.adb, sem_ch13.adb: Fix comment: Bit_Order is an attribute, | |
1414 | there's no pragma. | |
1415 | * par_sco.ads, par_sco.adb: Update comments. | |
1416 | ||
1417 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
1418 | ||
1419 | * einfo.adb, einfo.ads: Remove flag Is_Postcondition_Proc and | |
1420 | associated getter/setter. | |
1421 | * sem_ch6.adb: Remove reference to Is_Postcondition_Proc. | |
1422 | ||
1423 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
1424 | ||
1425 | * prj-attr.adb: New Compiler attribute Dependency_Kind and Language_Kind | |
1426 | * prj-conf.adb: Add_Default_GNAT_Naming_Scheme: Add a package Compiler | |
1427 | with declarations for Language_Kind and Dependency_Kind for Ada. | |
1428 | * prj-nmsc.adb (Check_Unit_Name): New name of procedure Check_Ada_Name | |
1429 | (Process_Compiler): Take into account the new attributes Dependency_Kind | |
1430 | and Language_Kind. | |
1431 | (Check_Configuration): Check if language kind is unit based, not if the | |
1432 | language name is Ada. | |
1433 | (Process_Exceptions_Unit_Based): Ditto | |
1434 | (Add_Language): Remove default additions of language and dependency kind | |
1435 | * prj.ads: Minor comment change | |
1436 | * snames.ads-tmpl: New standard names Dependency_Kind and Language_Kind | |
1437 | ||
1438 | 2011-08-29 Johannes Kanig <kanig@adacore.com> | |
1439 | ||
1440 | * debug.adb: Update comments. | |
1441 | ||
c5bc3df6 JM |
1442 | 2011-08-24 Joseph Myers <joseph@codesourcery.com> |
1443 | ||
1444 | * gcc-interface/Make-lang.in (CFLAGS-ada/tracebak.o) | |
1445 | (CFLAGS-ada/targext.o, CFLAGS-ada/cio.o, CFLAGS-ada/init.o) | |
1446 | (CFLAGS-ada/initialize.o, CFLAGS-ada/raise.o): New. | |
1447 | (ada/tracebak.o, ada/targext.o, ada/cio.o, ada/init.o) | |
1448 | (ada/initialize.o, ada/raise.o): Remove explicit compilation rules. | |
1449 | ||
e3aa9eba RO |
1450 | 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1451 | ||
1452 | * gcc-interface/Makefile.in (PICFLAG_FOR_TARGET): New. | |
1453 | (GNATLIBCFLAGS_FOR_C): Replace | |
1454 | TARGET_LIBGCC2_CFLAGS by PICFLAG_FOR_TARGET. | |
1455 | (gnatlib-shared-default, gnatlib-shared-dual-win32) | |
1456 | (gnatlib-shared-win32, gnatlib-shared-darwin, gnatlib-shared) | |
1457 | (gnatlib-sjlj, gnatlib-zcx): Likewise. | |
1458 | ||
f446d60e EB |
1459 | 2011-08-07 Eric Botcazou <ebotcazou@adacore.com> |
1460 | ||
1461 | * gcc-interface/Makefile.in (raise-gcc.o): Fix previous change. | |
1462 | ||
588c8f48 EB |
1463 | * gcc-interface/gigi.h (enumerate_modes): Fix formatting. |
1464 | ||
1465 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Revert latest change. | |
1466 | ||
28d711bf NR |
1467 | 2011-08-05 Nicolas Roche <roche@adacore.com> |
1468 | ||
1469 | * gcc-interface/Makefile.in: Don't use directly ../xgcc to build shared | |
1470 | libgnat. Use rather the value of GCC_FOR_TARGET. Fix issue with | |
1471 | canadian cross. | |
1472 | * gcc-interface/Make-lang.in: Add support for canadian cross setting. | |
1473 | ||
993f8920 AC |
1474 | 2011-08-05 Matthew Heaney <heaney@adacore.com> |
1475 | ||
1476 | * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Child_Count, Child_Depth): | |
1477 | subprogram bodies declared out-of-order. | |
1478 | ||
1479 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
1480 | ||
1481 | * sem_util.adb (Unique_Name): only prefix with "standard" the names of | |
1482 | entities directly in package Standard, otherwise skip the standard | |
1483 | prefix. | |
1484 | ||
9b3956dd RD |
1485 | 2011-08-05 Robert Dewar <dewar@adacore.com> |
1486 | ||
1487 | * a-cbmutr.adb: Minor reformatting | |
1488 | (Allocate_Node): refactor node allocation algorithm | |
1489 | ||
1490 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
1491 | ||
1492 | * opt.ads, opt.adb (Debug_Pragmas_Disabled): New switch. | |
1493 | * sem_prag.adb (Analyze_Pragma, case Debug_Policy): Implement Disable | |
1494 | mode. | |
1495 | (Analyze_Pragma, case Check_Policy): Ditto. | |
1496 | * sem_prag.ads (Check_Disabled): New function | |
1497 | * snames.ads-tmpl: Add Name_Disable. | |
1498 | ||
1499 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
1500 | ||
1501 | * gnat_rm.texi: Document implementation-defined policy DISABLE for | |
1502 | pragmas Assertion_Policy, Check_Policy, Debug_Policy. | |
1503 | ||
79e705d6 AC |
1504 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> |
1505 | ||
1506 | * sem_prag.adb (Analyze_Pragma, case Inline): reject an Inline pragma | |
1507 | that appears in a generic formal part and applies to a formal | |
1508 | subprogram. | |
1509 | ||
1510 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
1511 | ||
1512 | * a-cbmutr.ads: Minor reformatting. | |
1513 | ||
23b6deca AC |
1514 | 2011-08-05 Matthew Heaney <heaney@adacore.com> |
1515 | ||
1516 | * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Read): do not use T'Valid | |
1517 | to check count, check sign of value instead. | |
1518 | * a-comutr.adb, a-cimutr.adb (Write): return immediately if tree empty | |
1519 | (Copy_Subtree): allocate copy of source element | |
1520 | (Equal_Subtree): compare elements, not access objects | |
1521 | ||
1522 | 2011-08-05 Vincent Celier <celier@adacore.com> | |
1523 | ||
1524 | * gnat_ugn.texi: Fix VMS alternative. | |
1525 | ||
a2773bd3 AC |
1526 | 2011-08-05 Thomas Quinot <quinot@adacore.com> |
1527 | ||
1528 | * sem_ch11.adb: Add comment. | |
1529 | ||
1530 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
1531 | ||
1532 | * exp_util.adb: Minor comment fix. | |
1533 | ||
1534 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
1535 | ||
1536 | * scng.adb (Error_Unterminated_String): Improve flag position when | |
1537 | comma present. | |
1538 | ||
1539 | 2011-08-05 Matthew Heaney <heaney@adacore.com> | |
1540 | ||
1541 | * Makefile.rtl, impunit.adb: Added a-cbmutr.ad[sb] (bounded multiway | |
1542 | tree containers). | |
1543 | * a-cbmutr.ads, a-cbmutr.adb: This is the new Ada 2012 unit for bounded | |
1544 | multiway tree containers. | |
1545 | ||
1546 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
1547 | ||
1548 | * styleg.adb (Check_Comment): Implement comment spacing of 1 or 2 | |
1549 | * stylesw.adb: Implement -gnatyC to control comment spacing | |
1550 | * stylesw.ads (Style_Check_Comments_Spacing): New switch (set by | |
1551 | -gnatyc/C). | |
1552 | * usage.adb: Add line for -gnatyC. | |
1553 | ||
1554 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
1555 | ||
f446d60e | 1556 | * gnat_ugn.texi: Document -gnatyC. |
a2773bd3 AC |
1557 | * vms_data.ads: Implement COMMENTS1/COMMENTS2 (retaining COMMENTS as a |
1558 | synonym for COMMENTS2). | |
1559 | ||
dedac3eb RD |
1560 | 2011-08-05 Robert Dewar <dewar@adacore.com> |
1561 | ||
1562 | * par_sco.adb, sem_ch3.adb, scos.ads, a-iteint.ads, sem_ch12.adb, | |
1563 | a-cimutr.adb, a-cimutr.ads, sem_util.ads, sem_res.adb, a-fihema.adb, | |
1564 | sem_ch4.adb, lib-xref-alfa.adb, exp_disp.adb, a-comutr.adb, | |
1565 | a-comutr.ads, lib-xref.adb: Minor reformatting. | |
1566 | ||
1567 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
1568 | ||
1569 | * sem_ch11.adb (Analyze_Raise_Statement): Kill assignment to formal | |
1570 | warning if there is an exception handler present. | |
1571 | ||
7c62a85a AC |
1572 | 2011-08-05 Pascal Obry <obry@adacore.com> |
1573 | ||
1574 | * a-iteint.ads: Fix copyright year. | |
1575 | ||
1576 | 2011-08-05 Thomas Quinot <quinot@adacore.com> | |
1577 | ||
1578 | * par_sco.adb (Traverse_Declarations_Or_Statements): Do not generate a | |
1579 | statement SCO for a USE clause or a representation clause. | |
1580 | ||
1581 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
1582 | ||
1583 | * lib-xref-alfa.adb (Collect_ALFA): generate the proper relation | |
1584 | between body and spec for stub. | |
1585 | (Detect_And_Add_ALFA_Scope): take into account subprogram stub | |
1586 | * lib-xref.adb (Enclosing_Subprogram_Or_Package): in the case of a | |
1587 | pragma precondition or postcondition, for which the enclosing | |
1588 | subprogram or package in the AST is not the desired one, return empty. | |
1589 | ||
e49208a9 AC |
1590 | 2011-08-05 Thomas Quinot <quinot@adacore.com> |
1591 | ||
1592 | * g-expect.adb: Minor reformatting. | |
1593 | ||
1594 | 2011-08-05 Bob Duff <duff@adacore.com> | |
1595 | ||
1596 | * a-fihema.adb: Comment out OS_Lib. | |
1597 | ||
1598 | 2011-08-05 Matthew Heaney <heaney@adacore.com> | |
1599 | ||
1600 | * Makefile.rtl, impunit.adb: Added a-c[oi]mutr.ad[sb] | |
1601 | (unbounded multiway tree containers) and a-iteint.ads. | |
1602 | * a-comutr.ads, a-comutr.adb: | |
1603 | This is the new Ada 2012 unit for unbounded multiway tree containers | |
1604 | * a-cimutr.ads, a-cimutr.adb | |
1605 | This is the new Ada 2012 unit for indefinite multiway tree containers | |
1606 | * a-iteint.ads: New file. | |
1607 | ||
201cdb74 RO |
1608 | 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1609 | ||
f446d60e | 1610 | * gcc-interface/Makefile.in (raise-gcc.o): Search $(srcdir)/../libgcc. |
201cdb74 | 1611 | |
d50f4827 AC |
1612 | 2011-08-05 Bob Duff <duff@adacore.com> |
1613 | ||
1614 | * sinfo.ads, sinfo.adb (Subpool_Handle_Name): New attribute for | |
1615 | subpools. | |
1616 | * par-ch4.adb (P_Allocator): Parse new subpool specification syntax. | |
1617 | ||
1618 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
1619 | ||
1620 | * sem_ch4.adb (Try_Container_Indexing): New procedure to implement the | |
1621 | general indexing aspects of Ada2012. Called when analyzing indexed | |
1622 | components when other interpretations fail. | |
1623 | * sem_ch8.adb (Find_Direct_Name): check for implicit dereference only | |
1624 | in an expression context where overloading is meaningful. This excludes | |
1625 | the occurrence in an aspect specification (efficiency only). | |
1626 | * sem_attr.adb (Analyze_Attribute): indicate that the attributes | |
1627 | related to iterators can be set by an attribute specification, but | |
1628 | cannot be queried. | |
1629 | * sem_ch13.adb (Analyze_Aspect_Specifications): handle | |
1630 | Constant_Indexing and Variable_Indexing. | |
1631 | (Check_Indexing_Functions): New procedure to perform legality checks. | |
1632 | Additional semantic checks at end of declarations. | |
1633 | ||
efe05dfc AC |
1634 | 2011-08-05 Sergey Rybin <rybin@adacore.com> |
1635 | ||
1636 | * tree_io.ads: Update ASIS_Version_Number because of the change of the | |
1637 | order of calling Tree_Write/Tree_Read routines made for aspects. | |
1638 | ||
1639 | 2011-08-05 Bob Duff <duff@adacore.com> | |
1640 | ||
1641 | * a-fihema.adb (Finalize): Fix race condition. | |
1642 | ||
5f9cdefe AC |
1643 | 2011-08-05 Yannick Moy <moy@adacore.com> |
1644 | ||
1645 | * sem_ch12.adb (Analyze_Package_Instantiation, | |
1646 | Need_Subprogram_Instance_Body): do not generate instance bodies in ALFA | |
1647 | mode. | |
1648 | ||
1649 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
1650 | ||
1651 | * sem_type.adb (Specific_Type): in an instance, the type-specific | |
1652 | operand of an equality check that involves null may have a private | |
1653 | type. Use full view to determine legality of construct. | |
1654 | ||
822868aa AC |
1655 | 2011-08-05 Vincent Celier <celier@adacore.com> |
1656 | ||
1657 | * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to | |
1658 | delete or close the file when the call to gnatmake was successful. | |
1659 | ||
1660 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
1661 | ||
1662 | * gnat1drv.adb (Adjust_Global_Switches): in ALFA mode, set | |
1663 | Global_Discard_Names. | |
1664 | ||
1665 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
1666 | ||
1667 | * sinfo.ads: comments on use of entity field for aspect specifications. | |
1668 | ||
1669 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
1670 | ||
1671 | * sem_ch12.adb (Reset_Entity): If the entity field of the associated | |
1672 | node is not itself an entity but a selected component, it is a | |
1673 | rewritten parameterless call to an en enclosing synchronized operation, | |
1674 | and this expansion will be performed again in the instance, so there is | |
1675 | no global information to preserve. | |
1676 | ||
44a10091 AC |
1677 | 2011-08-05 Javier Miranda <miranda@adacore.com> |
1678 | ||
1679 | * exp_disp.adb (Set_All_DT_Position): Cleanup code and improve support | |
1680 | for renamings of predefined primitives. | |
1681 | (In_Predef_Prims_DT): New subprogram. | |
1682 | ||
1683 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
1684 | ||
1685 | * sem_util.adb, sem_util.ads (Check_Implicit_Dereference): If a | |
1686 | possible interpretation of name is a reference type, add an | |
1687 | interpretation that is the designated type of the reference | |
1688 | discriminant of that type. | |
1689 | * sem_res.adb (resolve): If the interpretation imposed by context is an | |
1690 | implicit dereference, rewrite the node as the deference of the | |
1691 | reference discriminant. | |
1692 | * sem_ch3.adb (Analyze_Subtype_Declaration, Build_Derived_Record_Type, | |
1693 | Build_Discriminated_Subtype): Inherit Has_Implicit_Dereference from | |
1694 | parent type or base type. | |
1695 | * sem_ch4.adb (Process_Indexed_Component, | |
1696 | Process_Overloaded_Indexed_Component, Indicate_Name_And_Type, | |
1697 | Analyze_Overloaded_Selected_Component, Analyze_Selected_Component): | |
1698 | Check for implicit dereference. | |
1699 | (List_Operand_Interps): Indicate when an implicit dereference is | |
1700 | ambiguous. | |
1701 | * sem_ch8.adb (Find_Direct_Name): Check for implicit dereference. | |
1702 | ||
1703 | 2011-08-05 Thomas Quinot <quinot@adacore.com> | |
1704 | ||
1705 | * scos.ads: Update documentation of SCO table. Pragma statements can now | |
1706 | be marked as disabled (using 'p' instead of 'P' as the statement kind). | |
1707 | * par_sco.ads, par_sco.adb: Implement the above change. | |
1708 | (Process_Decisions_Defer): Generate a P decision for the first parameter | |
1709 | of a dyadic pragma Debug. | |
1710 | * sem_prag.adb (Analyze_Pragma, case Debug): Mark pragma as enabled if | |
1711 | necessary. | |
1712 | * put_scos.adb: Code simplification based on above change. | |
1713 | ||
bb3c784c AC |
1714 | 2011-08-05 Robert Dewar <dewar@adacore.com> |
1715 | ||
1716 | * sem_ch3.adb, gnatcmd.adb, switch-c.adb, exp_attr.adb, make.adb, | |
1717 | bindgen.adb, einfo.adb, sem_ch12.adb, sem_attr.adb, a-fihema.adb, | |
1718 | a-fihema.ads, sem_elab.adb, sem_elab.ads, aspects.adb, opt.ads, | |
1719 | prj-conf.adb, sem_ch13.adb, s-ficobl.ads: Minor reformatting | |
1720 | ||
1721 | 2011-08-05 Bob Duff <duff@adacore.com> | |
1722 | ||
1723 | * a-stunau.ads, g-spipat.adb: Update comments. | |
1724 | ||
36f686f9 BD |
1725 | 2011-08-05 Bob Duff <duff@adacore.com> |
1726 | ||
1727 | * a-fihema.ads: Minor comment fix. | |
1728 | * a-fihema.adb (Allocate, Deallocate): Assert that the alignment is | |
1729 | correct. | |
1730 | (Attach, Detach): Remove some unnecessary code. | |
1731 | (Finalize): Remove Node_Ptr_To_Address, replace with a constant. | |
1732 | ||
7882673f BD |
1733 | 2011-08-05 Bob Duff <duff@adacore.com> |
1734 | ||
1735 | * a-fihema.ads, a-fihema.adb (Finalization_Collection): Avoid heap | |
1736 | allocation for Objects component. This simplifies the code somewhat. It | |
1737 | is also a little more efficient in the not-so-unusual case where there | |
1738 | are no controlled objects allocated. | |
1739 | Make Finalization_Started flag atomic. | |
1740 | (Finalize): Avoid unnecessary detachment of items from the list. | |
1741 | (pcol): Minor cleanup. | |
1742 | ||
d34cd274 AC |
1743 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> |
1744 | ||
1745 | * sem_ch12.adb (Analyze_Formal_Package_Declaration): reject a formal | |
1746 | package whose name is the same as that of the generic unit, or its | |
1747 | ultimate prefix. | |
1748 | ||
1749 | 2011-08-05 Bob Duff <duff@adacore.com> | |
1750 | ||
1751 | * a-fihema.adb, a-fihema.ads: Minor comment improvements. | |
1752 | * sem_ch3.adb, exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb: | |
1753 | Minor comment fixes. | |
1754 | ||
00332244 AC |
1755 | 2011-08-05 Arnaud Charlet <charlet@adacore.com> |
1756 | ||
1757 | * make.adb (Linking_Phase): No longer need to set source search path | |
1758 | before calling gnatlink in CodePeer mode. | |
1759 | * gnatlink.adb (Gnatlink): No longer pass -gnat83/95/05/12 switch to | |
1760 | gcc in CodePeer mode, since the binder generated file no longer has a | |
1761 | 'with Main'. | |
1762 | * switch.ads, switch.adb (Is_Language_Switch): Removed. | |
1763 | * switch-c.adb: Update comment. | |
1764 | ||
1765 | 2011-08-05 Thomas Quinot <quinot@adacore.com> | |
1766 | ||
1767 | * exp_strm.adb, bindgen.adb, s-ficobl.ads: Minor reformatting. | |
1768 | ||
1769 | 2011-08-05 Nicolas Roche <roche@adacore.com> | |
1770 | ||
1771 | * gnat_ugn.texi: Fix minor syntax error issue. | |
1772 | ||
1773 | 2011-08-05 Vincent Celier <celier@adacore.com> | |
1774 | ||
1775 | * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to | |
1776 | delete or close the file when the call to gnatmake returns a non | |
1777 | successful return code. | |
1778 | ||
1779 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
1780 | ||
1781 | * exp_ch4.adb (Expand_N_Type_Conversion): When expanding a predicate | |
1782 | check, indicate that the copy of the original node does not come from | |
1783 | source, to prevent an infinite recursion of the expansion. | |
1784 | ||
1785 | 2011-08-05 Johannes Kanig <kanig@adacore.com> | |
1786 | ||
1787 | * debug.adb: document switch -gnatd.G for gnat2why, which deactivates | |
1788 | VC generation for subprogram bodies. | |
1789 | ||
1790 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
1791 | ||
1792 | * einfo.ads: Typo. | |
1793 | * sem_ch3.adb (Signed_Integer_Type_Declaration): in ALFA mode, define | |
1794 | the base type with the smallest allowed base type. | |
1795 | ||
1796 | 2011-08-05 Sergey Rybin <rybin@adacore.com> | |
1797 | ||
1798 | * tree_gen.adb, tree_in.adb, aspects.adb: Fix tree read-write for | |
1799 | aspects. | |
1800 | ||
1801 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
1802 | ||
1803 | * sem_ch12.ads: minor comment updates. | |
1804 | ||
1805 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
1806 | ||
1807 | * sem_ch12.adb (Analyze_Formal_Package_Declaration): in an | |
1808 | instantiation and a formal package the compiler generates a package | |
1809 | renaming declaration so that the generic name within the declaration | |
1810 | is interpreted as a renaming of the instance. At the end of a formal | |
1811 | package declaration, this renaming must become invisible. | |
1812 | ||
0da80d7d AC |
1813 | 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com> |
1814 | ||
1815 | * exp_ch7.adb (Is_Init_Call): Reimplemented to avoid character | |
1816 | comparison and rely on concrete entities instead. | |
1817 | ||
1818 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
1819 | ||
1820 | * einfo.ads, einfo.adb (Has_Implicit_Dereference): new flag on types | |
1821 | and discriminants, to indicate that the type has an access discriminant | |
1822 | that supports implicit dereference. | |
1823 | * snames.ads-tmpl: Add names of aspects and attributes related to | |
1824 | Ada2012 iterators: constant_indexing, default_iterator, | |
1825 | iterator_element, implicit_dereference, variable_indexing. | |
1826 | * aspects.ads, aspects.adb: entries for iterator-related aspects. | |
1827 | * sem_ch13.adb (Analyze_aspect_specifications): dummy entries for | |
1828 | iterator-related aspects. | |
1829 | * sem_attr.adb, exp_attr.adb Dummy entries for iterator-related aspects. | |
1830 | ||
1831 | 2011-08-05 Sergey Rybin <rybin@adacore.com> | |
1832 | ||
1833 | * gnat_ugn.texi, vms_data.ads: Extend the subsection about coupling | |
1834 | metrics in gnatmetric to cover new kinds of coupling mentrics. | |
1835 | ||
1836 | 2011-08-05 Steve Baird <baird@adacore.com> | |
1837 | ||
1838 | * bindgen.adb (Gen_CodePeer_Wrapper): Call Ada_Main_Program instead | |
2c7f9cc0 | 1839 | of calling the user-defined main subprogram. |
0da80d7d AC |
1840 | (Gen_Main): Declare Ada_Main_Program and (if CodePeer_Mode |
1841 | is set) Call_Main_Subprogram ahead of, as opposed to | |
1842 | inside of, Main. | |
1843 | (Gen_Output_File_Ada): Remove CodePeer_Mode-conditional | |
1844 | generation of a "with" of the user-defined main subprogram. | |
1845 | Remove CodePeer_Mode-conditional call to Gen_CodePeer_Wrapper | |
1846 | (which is now called from Gen_Main instead). | |
1847 | ||
73242473 AC |
1848 | 2011-08-05 Emmanuel Briot <briot@adacore.com> |
1849 | ||
1850 | * projects.texi: Added reference to the Makefile package. | |
1851 | ||
1852 | 2011-08-05 Thomas Quinot <quinot@adacore.com> | |
1853 | ||
1854 | * exp_ch7.adb: Minor comment rewording. | |
1855 | ||
1856 | 2011-08-05 Ed Falis <falis@adacore.com> | |
1857 | ||
1858 | * env.c: Fix comment. | |
1859 | ||
1860 | 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com> | |
1861 | ||
1862 | * sem_elab.adb (Is_Finalization_Procedure): Reimplemented to avoid | |
1863 | character comparison and rely on concrete entities instead. | |
1864 | ||
97ed5872 AC |
1865 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> |
1866 | ||
1867 | * sem_ch3.adb: (Check_Private_Overriding): better error message, | |
1868 | suggested by AI95-0068. | |
1869 | ||
1870 | 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com> | |
1871 | ||
1872 | * exp_ch7.adb (Find_Last_Init): Use Next_Suitable_Statement to retrieve | |
1873 | the two potential initialization calls. This accounts for any | |
1874 | access-before-elaboration checks which may precede the initialization | |
1875 | calls. | |
1876 | (Next_Suitable_Statement): New routine. Returns the next real statement | |
1877 | after the input node while skipping generated checks. | |
1878 | * sem_elab.adb (Check_A_Call): New formal parameter In_Init_Proc along | |
1879 | with comment on usage. | |
1880 | Do not generate Elaborate_All when the trigger is a finalization call | |
1881 | coming from a type init proc. | |
1882 | (Check_Elab_Call): Propagate the initialization procedure context to | |
1883 | subsequent calls to Check_A_Call. | |
1884 | (Check_Internal_Call_Continue): Propagate the initialization procedure | |
1885 | context to subsequent calls to Check_Elab_Call. | |
1886 | (Is_Finalization_Procedure): New routine. Returns True if the input | |
1887 | entity denotes a [Deep_]Finalize routine. | |
1888 | * sem_elab.ads (Check_Elab_Call): New formal parameter In_Init_Proc | |
1889 | along with comment on usage. | |
1890 | ||
1891 | 2011-08-05 Vadim Godunko <godunko@adacore.com> | |
1892 | ||
1893 | * s-atocou.ads: Add list of supported platforms. | |
1894 | ||
1895 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
1896 | ||
1897 | * sem_prag.adb, restrict.adb: Correct style for or'ing Boolean variables | |
1898 | ||
1899 | * opt.ads (Disable_ALI_File): new Boolean flag | |
1900 | * lib-writ.adb (Write_ALI): when Disable_ALI_File is set, do nothing | |
1901 | ||
1902 | 2011-08-05 Ed Falis <falis@adacore.com> | |
1903 | ||
1904 | * env.c (__gnat_environ): Fix includes for RTPs and VTHREADS so that | |
1905 | environ is properly defined. | |
1906 | ||
1907 | 2011-08-05 Vincent Celier <celier@adacore.com> | |
1908 | ||
1909 | * make.adb (Compilation_Phase): Exit immediately when all objects have | |
1910 | been found up to date, to avoid multiple exit messages. | |
1911 | * prj-nmsc.adb (Add_Source): Allow duplicate source file names in the | |
1912 | same project for languages with no compiler. | |
1913 | * gnat_ugn.texi: Document compiler switch -gnateI and gnatmake switch | |
1914 | -eI. | |
9aff36e9 RD |
1915 | 2011-08-05 Robert Dewar <dewar@adacore.com> |
1916 | ||
1917 | * exp_ch7.ads, sem_type.adb, make.adb, sem_prag.adb, sem_util.adb, | |
1918 | sem_util.ads, sem_attr.adb, restrict.ads, sem_ch6.adb, prj-conf.adb, | |
1919 | prj-conf.ads, s-atocou.ads, s-atocou.adb, s-atocou-x86.adb, | |
1920 | s-atocou-builtin.adb: Minor reformatting. | |
1921 | ||
406935b6 AC |
1922 | 2011-08-05 Yannick Moy <moy@adacore.com> |
1923 | ||
1924 | * exp_ch7.adb (Establish_Transient_Scope): in formal verification mode, | |
1925 | if the node to wrap is a pragma check, this node and enclosed | |
1926 | expression are not expanded, so do not apply any transformations here. | |
1927 | * exp_prag.adb (Expand_Pragma_Check): document the need to avoid | |
1928 | introducing transient scopes. | |
1929 | ||
1930 | 2011-08-05 Jose Ruiz <ruiz@adacore.com> | |
1931 | ||
1932 | * adaint.c (__gnat_set_writable, __gnat_set_readable, | |
1933 | __gnat_set_executable, __gnat_set_non_writable, __gnat_set_non_readable, | |
1934 | __gnat_copy_attribs): On VxWorks 6.x and later, the required chmod | |
1935 | routine is available, so we use the default implementation of these | |
1936 | functions. | |
1937 | * s-os_lib.ads (Copy_File, Copy_Time_Stamps): Document that there is | |
1938 | support for copying attributes on VxWorks 6. | |
1939 | ||
1940 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
1941 | ||
1942 | * debug.adb: Remove use of -gnatd.D. | |
1943 | * gnat1drv.adb (Adjust_Global_Switches): adjust switches for ALFA mode | |
1944 | * opt.ads: Simplify variables for ALFA mode, to keep one only | |
1945 | * restrict.adb, sem_prag.adb: Adapt treatment done for CodePeer mode | |
1946 | to ALFA mode. | |
1947 | ||
1948 | 2011-08-05 Vincent Celier <celier@adacore.com> | |
1949 | ||
1950 | * prj-conf.adb (Do_Autoconf): Look also for --RTS in | |
1951 | Builder'Default_Switches. | |
1952 | ||
1953 | 2011-08-05 Vincent Celier <celier@adacore.com> | |
1954 | ||
1955 | * makeusg.adb: Add lines for --create-map-file switches. | |
1956 | ||
1957 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
1958 | ||
1959 | * freeze.adb (Freeze_Entity): For a subprogram, if a type in the | |
1960 | profile is incomplete and the full view is available, replace it with | |
1961 | the full view. | |
1962 | * sem_ch6.adb (Possible_Freeze): if a type in the profile is | |
1963 | incomplete, freezing the subprogram is delayed until the full view is | |
1964 | frozen. | |
1965 | * sem_type.adb (Disambiguate): an ambiguity between a user-defined | |
1966 | fixed-point multiplication operator and the predefined operator is | |
1967 | resolved in favor of the user-defined one. | |
1968 | ||
96c891b3 RO |
1969 | 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1970 | ||
1971 | * init.c [__alpha__ && __osf__] (__gnat_error_handler): Use | |
1972 | CONST_CAST. | |
1973 | ||
276e7ed0 AC |
1974 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> |
1975 | ||
1976 | * sem_util.ads, sem_unit.adb (Type_Without_Stream_Operation): determine | |
1977 | whether a type lacks user-defined Read or Write operations, or has a | |
1978 | component that lacks them. | |
1979 | * sem_attr.adb (Check_Stream_Attribute): if restriction | |
1980 | No_Default_Stream_Attributes is active, verify that all subcomponent | |
1981 | types of the target have user-defined stream operations, and report | |
1982 | error otherwise. | |
1983 | * exp_ch3.adb (Stream_Operqtion_OK): use Type_Without_Stream_Operation. | |
1984 | * exp_strm.adb: Build_Elementary_Input_Call, | |
1985 | Build_Elementary_Write_Call): remove checks for restriction | |
1986 | No_Default_Stream_Attributes, now checked in semantics. | |
1987 | ||
1988 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
1989 | ||
1990 | * prj-conf.ads, prj-conf.adb (Do_Autoconf): If there is no --RTS | |
1991 | switches on the command line, look for all valid --RTS switches in the | |
1992 | Builder switches and for each language use the first runtime name found | |
1993 | to invoke gprconfig. | |
1994 | (Get_Or_Create_Configuration_File): Warn if --RTS is specified on the | |
1995 | command line and there is no auto-configuration. | |
1996 | (Runtime_Name_Set_For): New function. | |
1997 | ||
1998 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
1999 | ||
2000 | * exp_ch7.adb (Build_Object_Declarations): Do not generate the | |
2001 | elaborate initialization expression for variable Abort when processing | |
2002 | a package body or a declaration. | |
2003 | (Create_Finalizer): Propagate the package context when creating the | |
2004 | exception-related variables. | |
2005 | * exp_ch7.ads (Build_Object_Declarations): New formal parameter | |
2006 | For_Package along with usage comment. | |
2007 | ||
19172ae9 AC |
2008 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
2009 | ||
2010 | * gcc-interface/Makefile.in: Clean up targets. | |
2011 | Enable new package for atomic counters and copy-on-write implementation | |
2012 | of unbounded strings on x86 platforms. | |
2013 | * gcc-interface/Make-lang.in: Update dependencies. | |
2014 | ||
0319cacc AC |
2015 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
2016 | ||
2017 | * exp_ch7.adb: Minor reformatting. | |
2018 | ||
2019 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
2020 | ||
2021 | * exp_strm.adb: Minor reformatting. | |
2022 | ||
2023 | 2011-08-04 Vadim Godunko <godunko@adacore.com> | |
2024 | ||
2025 | * s-atocou.adb: Replace by dummy version and use on targets where atomic | |
2026 | operations are not supported. | |
2027 | * s-atocou-builtin.adb: Renamed from s-atocou.adb. | |
2028 | * s-atocou-x86.adb: New file. | |
2029 | * Makefile.rtl: Add s-atocou.o file | |
2030 | ||
2031 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
2032 | ||
2033 | * make.adb (Compile): Move setting of CodePeer_Mode to ... | |
2034 | (Compilation_Phase): ... here. | |
2035 | (Scan_Make_Arg): Now bind and link by default in CodePeer mode. | |
2036 | ||
2037 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
2038 | ||
2039 | * Make-generated.in: Fix minor typo in comment. | |
2040 | ||
26e7e1a0 AC |
2041 | 2011-08-04 Thomas Quinot <quinot@adacore.com> |
2042 | ||
2043 | * gnatls.adb: Use Prj.Env.Initialize_Default_Project_Path to retrieve | |
2044 | the project path. | |
2045 | ||
2046 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
2047 | ||
2048 | * a-coinho.adb: Minor reformatting. | |
2049 | ||
2050 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
2051 | ||
2052 | * a-coinho.ads: Minor reformatting. | |
2053 | ||
2054 | 2011-08-04 Vadim Godunko <godunko@adacore.com> | |
2055 | ||
2056 | * s-atocou.ads, s-atocou.adb: New files. | |
2057 | * a-strunb-shared.ads, a-strunb-shared.adb, a-stwiun-shared.ads, | |
2058 | a-stwiun-shared.adb, a-stzunb-shared.ads, a-stzunb-shared.adb: Remove | |
2059 | direct use of GCC's atomic builtins and replace them by use of new | |
2060 | atomic counter package. | |
2061 | ||
2062 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
2063 | ||
2064 | * exp_strm.adb: better error message for No_Default_Stream_Attributes. | |
2065 | ||
2066 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
2067 | ||
2068 | * a-tags.adb (Unregister_Tag): Replace the complex address arithmetic | |
2069 | with a call to Get_External_Tag. | |
2070 | * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on | |
2071 | subprogram usage. Remove the guard against package declarations and | |
2072 | bodies since Build_Cleanup_Statements is no longer invoked in that | |
2073 | context. | |
2074 | (Build_Components): Initialize Tagged_Type_Stmts when the context | |
2075 | contains at least one library-level tagged type. | |
2076 | (Build_Finalizer): New local variables Has_Tagged_Types and | |
2077 | Tagged_Type_Stmts along with associated comments on usage. Update the | |
2078 | logic to include tagged type processing. | |
2079 | (Create_Finalizer): Insert all library-level tagged type unregistration | |
2080 | code before the jump block circuitry. | |
2081 | (Expand_N_Package_Body): Remove the call to Build_Cleanup_Statements. | |
2082 | (Expand_N_Package_Declaration): Remove the call to | |
2083 | Build_Cleanup_Statements. | |
2084 | (Process_Tagged_Type_Declaration): New routine. Generate a call to | |
2085 | unregister the external tag of a tagged type. | |
2086 | (Processing_Actions): Reimplemented to handle tagged types. | |
2087 | (Process_Declarations): Detect the declaration of a library-level | |
2088 | tagged type and carry out the appropriate actions. | |
2089 | (Unregister_Tagged_Types): Removed. The machinery has been directly | |
2090 | merged with Build_Finalizer. | |
2091 | ||
7483c888 AC |
2092 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
2093 | ||
2094 | * bindgen.ads, gnatlink.adb, sem_ch4.adb, gnatbind.adb, put_alfa.adb, | |
2095 | gnatls.adb, exp_ch3.adb: Minor reformatting. | |
2096 | ||
2097 | 2011-08-04 Marc Sango <sango@adacore.com> | |
2098 | ||
2099 | * sem_attr.adb (Analyze_Attribute): Replace the message | |
2100 | "invisible attribute of}" of the spark restriction violation in | |
2101 | attribute reference by the simple message "invisible attribute of type". | |
2102 | Indeed, the node value Error_Msg_Node_1 used is in conflit with the | |
2103 | two insertion characters: '&' and '}'. | |
2104 | ||
2105 | 2011-08-04 Vadim Godunko <godunko@adacore.com> | |
2106 | ||
2107 | * impunit.adb (Non_Imp_File_Names_12): Add "a-coinho". | |
2108 | * a-coinho.ads, a-coinho.adb: New file. | |
2109 | * Makefile.rtl: Add Ada.Containers.Indefinite_Holders. | |
2110 | ||
5207696c AC |
2111 | 2011-08-04 Nicolas Roche <roche@adacore.com> |
2112 | ||
2113 | * alfa_test.adb: Not all ali files are containing alfa information even | |
2114 | if compiled with -gnatd.F. So suppress warning about missing ALFA | |
2115 | information. | |
2116 | ||
2117 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
2118 | ||
2119 | * lib-xref-alfa.adb (Add_ALFA_Scope): use non-empty unique name for | |
2120 | scope. | |
2121 | * put_alfa.adb: Check that scope name is not empty. | |
2122 | ||
2123 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
2124 | ||
2125 | * exp_ch3.adb (Stream_Operation_Ok): new predicate | |
2126 | Needs_Elementary_Stream_Operation, to determine whether user-defined | |
2127 | Read and Write attributes are available for the elementary components | |
2128 | of the given type. If only the predefined attributes are available, | |
2129 | then when restriction No_Default_Stream_Attributes is active the | |
2130 | predefined stream attributes for the composite type cannot be created. | |
2131 | ||
2132 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
2133 | ||
2134 | * bindgen.adb: Fix obsolete comments and names from Ada/C days. | |
2135 | Put routines in alpha order | |
2136 | ||
2bd2d858 JR |
2137 | 2011-08-04 Jose Ruiz <ruiz@adacore.com> |
2138 | ||
2139 | * gcc-interface/Makefile.in: Remove xenomai specific versions of system. | |
2140 | * gcc-interface/Make-lang.in: Update dependencies. | |
2141 | ||
8fae6016 AC |
2142 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
2143 | ||
2144 | * gcc-interface/lang.opt: Add AdaWhy language, simimlar to Ada. | |
2145 | * gcc-interface/lang-specs.h: Add handling of AdaWhy specs (calls | |
2146 | gnat1why). | |
2147 | ||
a54d0eb4 AC |
2148 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
2149 | ||
2150 | * sem_ch3.adb, make.adb, a-cohata.ads, sem_prag.adb, makeutl.adb, | |
2151 | lib-xref-alfa.adb: Minor reformatting. | |
2152 | ||
2153 | 2011-08-04 Marc Sango <sango@adacore.com> | |
2154 | ||
2155 | * sem_ch12.adb (Analyze_Generic_Package_Declaration, | |
2156 | Analyze_Generic_Subprogram_Declaration, Analyze_Package_Instantiation, | |
2157 | Analyze_Subprogram_Instantiation): Check absence of generic in SPARK | |
2158 | mode. | |
2159 | ||
2160 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
2161 | ||
2162 | * bindgen.adb (Gen_Adainit_C): Remove. | |
2163 | (Gen_Adafinal_C): Ditto. | |
2164 | (Gen_Elab_Externals_C): Ditto. | |
2165 | (Gen_Elab_Calls_C): Ditto. | |
2166 | (Gen_Elab_Order_C): Ditto. | |
2167 | (Gen_Elab_Defs_C): Ditto. | |
2168 | (Gen_Finalize_Library_C): Ditto. | |
2169 | (Gen_Finalize_Library_Defs_C): Ditto. | |
2170 | (Gen_Main_C): Ditto. | |
2171 | (Gen_Output_File_C): Ditto. | |
2172 | (Gen_Restrictions_C): Ditto. | |
2173 | (Gen_Versions_C): Ditto. | |
2174 | (Write_Info_Ada_C): Ditto. | |
2175 | (Gen_Object_Files_Options): Call WBI instead of Write_Info_Ada_C | |
2176 | (Gen_Output_File): Do not force Ada_Bind_File anymore. | |
2177 | Always call Gen_Output_File_Ada. | |
2178 | * gnatlink.adb (Begin_Info): Now a constant. | |
2179 | (End_Info): Ditto. | |
2180 | (Ada_Bind_File): Remove | |
2181 | (Process_Args): Do not handle -A/-C. Remove not Ada_Bind_File cases. | |
2182 | * switch-b.adb (Scan_Binder_Switches): Do not handle -C. | |
2183 | * gnatbind.adb (Gnatbind): Remove not Ada_Bind_File cases. | |
2184 | * opt.ads (Ada_Bind_File): Remove. | |
2185 | ||
2186 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
2187 | ||
2188 | * projects.texi: Document target-specific directory in default project | |
2189 | path for gnatmake. | |
2190 | ||
2191 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
2192 | ||
2193 | * gnatls.adb, prj-env.adb: Add $prefix/share/gpr to default project | |
2194 | path in all cases . | |
2195 | ||
24558db8 AC |
2196 | 2011-08-04 Yannick Moy <moy@adacore.com> |
2197 | ||
2198 | * sem_ch3.adb, sem_ch5.adb, sem_util.adb, sem_ch4.adb, sem_ch8.adb, | |
2199 | opt.ads, lib-xref.ads: Code clean up. | |
2200 | ||
2201 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
2202 | ||
2203 | * gnat_rm.texi: Update description of Test_Case | |
2204 | * gnat_ugn.texi: Typo. | |
2205 | ||
2206 | 2011-08-04 Ed Falis <falis@adacore.com> | |
2207 | ||
2208 | * adaint.c (__gnat_get_number_of_cpus): fix typo in last checkin. | |
2209 | ||
2210 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
2211 | ||
2212 | * exp_ch4.adb (Suitable_Element): Skip field _parent on .NET/JVM when | |
2213 | it is of type Root_Controlled. This action eliminates fields Prev and | |
2214 | Next from type equality. | |
2215 | ||
2216 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
2217 | ||
2218 | * lib-xref-alfa.adb: Correct typo. | |
2219 | ||
2220 | 2011-08-04 Matthew Heaney <heaney@adacore.com> | |
2221 | ||
2222 | * a-cohata.ads (Hash_Table_Type): default-initialize the Nodes | |
2223 | component. | |
2224 | ||
1f9939b5 AC |
2225 | 2011-08-04 Yannick Moy <moy@adacore.com> |
2226 | ||
2227 | * sem_prag.adb (Check_Arg_Is_String_Literal): remove useless procedure | |
2228 | (Analyze_Pragma): allow static string expression for name of Test_Case, | |
2229 | instead of simply string literals. | |
2230 | * sem_util.adb (Get_Name_From_Test_Case_Pragma): adapt to static string | |
2231 | expressions. | |
2232 | ||
2233 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
2234 | ||
2235 | * makeutl.adb (Complete_Mains.Find_File_Add_Extension): Use canonical | |
2236 | case suffixes to find truncated main sources. | |
2237 | ||
2238 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
2239 | ||
2240 | * impunit.adb (Non_Imp_File_Names_95): Add g-tastus. | |
2241 | s-stusta.adb (Compute_All_Task): Use Put_Line instead of Put. | |
2242 | (Compute_Current_Task): Ditto. | |
2243 | ||
2244 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
2245 | ||
2246 | * gnat_ugn.texi: Mention GNAT.Task_Stack_Usage. | |
2247 | ||
2248 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
2249 | ||
2250 | * lib-xref-alfa.adb (Is_Global_Constant): new function that detects | |
2251 | library-level constant. | |
2252 | (Add_ALFA_Xrefs): ignore global constants in ALFA xref. | |
2253 | * sem_res.adb (Resolve_Actuals): do not add cross-reference to Formal | |
2254 | used as selector of parameter association, in ALFA mode. | |
2255 | ||
15d8a51d AC |
2256 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
2257 | ||
2258 | * exp_ch5.adb, exp_ch7.adb, exp_util.adb, bindgen.adb, sem_prag.adb, | |
2259 | s-tassta.adb, exp_ch4.adb, exp_disp.adb, s-stausa.adb: Minor | |
2260 | reformatting. | |
2261 | ||
2262 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
2263 | ||
2264 | * make.adb (Linking_Phase): Set source search path before calling | |
2265 | gnatlink in CodePeer mode. | |
2266 | ||
f46faa08 AC |
2267 | 2011-08-04 Javier Miranda <miranda@adacore.com> |
2268 | ||
2269 | * exp_ch7.adb (Expand_N_Package_Body, Expand_N_Package_Declaration): | |
2270 | Remove code which takes care of building TSDs. | |
2271 | * rtsfind.ads (RE_Check_Interface_Conversion): New entity. | |
2272 | * exp_ch4.adb (Apply_Accessibility_Check): Add support for generating | |
2273 | the accessibility check in VM targets. | |
2274 | * exp_disp.adb (Make_VM_TSD): Spec moved to exp_disp.ads | |
2275 | (Building_Static_DT): Now returns false for VM targets. | |
2276 | (Build_VM_TSDs): Removed. | |
2277 | (Expand_Interface_Conversion): Generate missing runtime check for | |
2278 | conversions to interface types whose target type is unknown at compile | |
2279 | time. | |
2280 | (Make_VM_TSD): Add missing code to disable the generation of calls to | |
2281 | Check_TSD if the tagged type is not defined at library level, or not | |
2282 | has a representation clause specifying its external tag, or -gnatdQ is | |
2283 | active. | |
2284 | * exp_disp.ads (Build_VM_TSDs): Removed. | |
2285 | (Make_VM_TSDs): Spec relocated from exp_disp.adb | |
2286 | * sem_disp.adb (Check_Dispatching_Operation): No code required to | |
2287 | register primitives in the dispatch tables in VM targets. | |
2288 | * exp_ch3.adb (Expand_N_Object_Declaration): Remove wrong expansion of | |
2289 | initialization of class-wide interface objects in VM targets. | |
2290 | (Expand_Freeze_Record_Type): For VM targets call Make_VM_TSD (instead | |
2291 | of Make_DT). | |
2292 | ||
2293 | 2011-08-04 Jerome Lambourg <lambourg@adacore.com> | |
2294 | ||
2295 | * gnatlink.adb (Gnatlink): Correct missleading error message displayed | |
2296 | when dotnet-ld cannot be found. | |
2297 | ||
2298 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
2299 | ||
2300 | * bindgen.adb: Simplify significantly generation of binder body file in | |
2301 | CodePeer mode. | |
2302 | * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Prevent assert failure | |
2303 | when compiling binder generated file in CodePeer mode (xxx'Elab_Spec | |
2304 | not expanded). | |
2305 | ||
2ba7e31e AC |
2306 | 2011-08-04 Yannick Moy <moy@adacore.com> |
2307 | ||
2308 | * sem_prag.adb, sem.ads: Code cleanup. | |
2309 | ||
2310 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
2311 | ||
2312 | * s-tassta.adb (Task_Wrapper): Rewrite the dynamic stack usage part. | |
2313 | * s-stausa.adb, s-stausa.ads: Major rewrite. Now provides accurate | |
2314 | results if possible. | |
2315 | * s-stusta.adb (Print): Adjust after changes in s-stausa. | |
2316 | * gnat_ugn.texi: Update dynamic stack usage section. | |
2317 | ||
2318 | 2011-08-04 Steve Baird <baird@adacore.com> | |
2319 | ||
2320 | * bindgen.adb (Gen_CodePeer_Wrapper): new procedure. | |
2321 | Generate (if CodePeer_Mode is set) a "wrapper" subprogram which | |
2322 | contains only a call to the user-defined main subprogram. | |
2323 | (Gen_Main_Ada) - If CodePeer_Mode is set, then | |
2324 | call the "wrapper" subprogram instead of directly | |
2325 | calling the user-defined main subprogram. | |
2326 | ||
2327 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
2328 | ||
2329 | * exp_ch5.adb (Expand_N_Case_Statement): Check the statements of all | |
2330 | alternatives of a case statement for controlled objects. Rename local | |
2331 | variable A to Dead_Alt. | |
2332 | (Expand_N_If_Statement): Check the then and else statements of an if | |
2333 | statement for controlled objects. Check the then statements of all | |
2334 | elsif parts of an if statement for controlled objects. | |
2335 | (Expand_N_Loop_Statement): Check the statements of a loop for controlled | |
2336 | objects. | |
2337 | * exp_ch7.adb (Process_Transient_Objects): Rewrite the condition which | |
2338 | detects a loop associated with the expansion of an array object. | |
2339 | Augment the processing of the loop statements to account for a possible | |
2340 | wrap done by Process_Statements_For_Controlled_Objects. | |
2341 | * exp_ch9.adb (Expand_N_Asynchronous_Select): Check the triggering | |
2342 | statements and abortable part of an asynchronous select for controlled | |
2343 | objects. | |
2344 | (Expand_N_Conditional_Entry_Call): Check the else statements of a | |
2345 | conditional entry call for controlled objects. | |
2346 | (Expand_N_Selective_Accept): Check the alternatives of a selective | |
2347 | accept for controlled objects. | |
2348 | (Expand_N_Timed_Entry_Call): Check the entry call and delay | |
2349 | alternatives of a timed entry call for controlled objects. | |
2350 | * exp_ch11.adb (Expand_Exception_Handlers): Check the statements of an | |
2351 | exception handler for controlled objects. | |
2352 | * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)): | |
2353 | Add formal parameter Nested_Constructs along with its associated | |
2354 | comment. | |
2355 | (Requires_Cleanup_Actions (Node_Id)): Update all calls to | |
2356 | Requires_Cleanup_Actions. | |
2357 | (Process_Statements_For_Controlled_Objects): New routine. | |
2358 | * exp_util.ads (Process_Statements_For_Controlled_Objects): New | |
2359 | routine. Inspect a node which contains a non-handled sequence of | |
2360 | statements for controlled objects. If such an object is found, the | |
2361 | statements are wrapped in a block. | |
2362 | ||
1bf773bb AC |
2363 | 2011-08-04 Bob Duff <duff@adacore.com> |
2364 | ||
2365 | * sem_type.adb (Covers): If T2 is a subtype of a class-wide type, we | |
2366 | need to compare with Class_Wide_Type (T2), in order to get at the | |
2367 | original class-wide type node. | |
2368 | * sem_type.ads (Covers): Improve the comment. | |
2369 | * einfo.ads (Class_Wide_Type): Improve the comment. | |
2370 | * exp_intr.adb (Expand_Unc_Deallocation): Remove unnecessary setting of | |
2371 | the type of the Deref. | |
2372 | ||
2373 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
2374 | ||
2375 | * gnat_rm.texi: Document that Test_Case pragma can only appear on | |
2376 | separate declarations. | |
2377 | * sem_prag.adb (procedure Check_Identifier_Is_One_Of): new procedure to | |
2378 | check identifier of pragma argument. | |
2379 | (Chain_TC): check that no other test case associated to the same entity | |
2380 | share the same name. | |
2381 | (Check_Test_Case): disallow test case inside subprogram body | |
2382 | (Analyze_Pragma): correct call to check identifier and not argument | |
2383 | * sem_util.adb, sem_util.ads (Get_Name_From_Test_Case_Pragma): new | |
2384 | function gets name from test case pragma. | |
2385 | ||
dac3bede YM |
2386 | 2011-08-04 Yannick Moy <moy@adacore.com> |
2387 | ||
2388 | * gnat_rm.texi: Document new pragma and aspect. | |
2389 | * aspects.adb, aspects.ads (Aspect_Id): new value Aspect_Test_Case | |
2390 | (No_Duplicates_Allowed): new constant array defining whether duplicates | |
2391 | aspects of each kind can appear on the same declaration. | |
2392 | * einfo.adb, einfo.ads (Spec_PPC_List): replace field with Contract | |
2393 | field, which points to a node holding the previous Spec_PPC_List. | |
2394 | * exp_ch9.adb, sem_ch6.adb, sem_prag.adb: Reach to Spec_PPC_List | |
2395 | through the indirection with Contract. | |
2396 | * exp_util.adb (Insert_Actions): raise Program_Error on N_Contract node | |
2397 | * par-prag.adb (Prag): do nothing on Test_Case pragma | |
2398 | * sem.adb (Analyze): abort on N_Contract, on which Analyze should not | |
2399 | be called directly. | |
2400 | * sem_attr.adb (Analyze_Attribute): allow attribute 'Result in | |
2401 | component Ensures of Test_Case. | |
2402 | * sem_ch12.adb, sem_ch6.adb, sem_ch9.adb | |
2403 | (Analyze_Generic_Subprogram_Declaration, | |
2404 | Analyze_Subprogram_Instantiation, | |
2405 | Analyze_Abstract_Subprogram_Declaration, | |
2406 | Analyze_Subprogram_Body_Helper, | |
2407 | Analyze_Subprogram_Specification, Analyze_Entry_Declaration): | |
2408 | insert contract in subprogram node at point of definition | |
2409 | * sem_ch13.adb | |
2410 | (Aspect_Loop): do not raise error on duplicate Test_Case aspect | |
2411 | (Analyze_Aspect_Specifications): analyze Test_Case aspect and create | |
2412 | corresponding pragma | |
2413 | (Check_Aspect_At_Freeze_Point): raise Program_Error on Test_Case aspect | |
2414 | * sem_ch3.adb (Analyze_Declarations): insert analysis of test-cases, | |
2415 | similar to the analysis of pre/post | |
2416 | (Derive_Subprogram): insert contract in subprogram node at point of | |
2417 | derivation. | |
2418 | * sem_prag.adb, sem_prag.ads | |
2419 | (Check_Arg_Is_String_Literal, Check_Identifier): | |
2420 | new checking procedures to be called in treatment of pragmas | |
2421 | (Check_Test_Case): new procedure to check that a Test_Case aspect or | |
2422 | pragma is well-formed. This does not check currently that 'Result is | |
2423 | used only in the Ensures component of a Test_Case. | |
2424 | (Analyze_Pragma): add case for Test_Case | |
2425 | (Analyze_TC_In_Decl_Part): pre-analyze the Requires and Ensures | |
2426 | components of a Test_Case. | |
2427 | (Preanalyze_TC_Args): new procedure to preanalyze the boolean | |
2428 | expressions in the 3rd (and 4th if present) arguments of a Test_Case | |
2429 | pragma, treated as spec expressions. | |
2430 | (Sig_Flags): add value -1 for Test_Case. | |
2431 | * sem_util.adb, sem_util.ads (Get_Ensures_From_Test_Case_Pragma, | |
2432 | Get_Requires_From_Test_Case_Pragma): getters for both expression | |
2433 | components of a Test_Case. | |
2434 | * sinfo.adb, sinfo.ads (N_Contract): new kind of node used as | |
2435 | indirection between an entry or [generic] subprogram entity and its | |
2436 | pre/post + test-cases. | |
2437 | (Spec_PPC_List, Spec_TC_List, Set_Spec_PPC_List, Set_Spec_TC_List): | |
2438 | get/set for fields of an N_Contract node. | |
2439 | * snames.ads-tmpl (Name_Test_Case, Name_Ensures, Name_Mode, | |
2440 | Name_Normal, Name_Requires, Name_Robustness, Pragma_Test_Case): new | |
2441 | names and pragma for Test_Case. | |
2442 | * sprint.adb (Sprint_Node): raise Program_Error on N_Contract node | |
2443 | ||
6a2e5d0f AC |
2444 | 2011-08-04 Vincent Celier <celier@adacore.com> |
2445 | ||
2446 | * gnat_ugn.texi: Improve documentation of gnatmake switch | |
2447 | --source-info-file=. | |
2448 | ||
2449 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
2450 | ||
2451 | * exp_ch7.adb (Make_Final_Call): Add local variable Atyp (assertion | |
2452 | type). Initialize Atyp to the appropriate type which is later checked | |
2453 | for completion. Rewrite the assertion associated with private type | |
2454 | completion. | |
2455 | ||
2456 | 2011-08-04 Ed Falis <falis@adacore.com> | |
2457 | ||
2458 | * adaint.c: Add call to vxCpuConfiguredGet for VxWorks SMP to | |
2459 | initialize the number of CPUs. | |
2460 | ||
2461 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
2462 | ||
2463 | * sem_type.adb (Disambiguate): New subsidiary routine | |
2464 | In_Same_Declaration_List, to implement AI05-0020: a user-defined | |
2465 | equality on an anonymous access type whose designated type is private | |
2466 | does not lead to an ambiguity with the universal access equality | |
2467 | operator in the body or child units of the defining package. The same | |
2468 | is true for a multiplication operator on a private type completed with | |
2469 | a fixed-point-type. | |
2470 | ||
2471 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
2472 | ||
2473 | * opt.ads (Init_Or_Norm_Scalars_Config): Removed. | |
2474 | (Normalize_Scalars_Config): Removed. | |
2475 | * opt.adb | |
2476 | (Register_Opt_Config_Switches): Remove registering config values of | |
2477 | Init_Or_Norm_Scalars_Config and Normalize_Scalars_Config. | |
2478 | (Restore_Opt_Config_Switches): Remove code which restores the values of | |
2479 | Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of | |
2480 | Init_Or_Norm_Scalars. | |
2481 | (Save_Opt_Config_Switches): Remove code which saves values of | |
2482 | Init_Or_Norm_Scalars and Normalize_Scalars. | |
2483 | (Set_Opt_Config_Switches): Remove code which restores config values of | |
2484 | Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of | |
2485 | Init_Or_Norm_Scalars. | |
2486 | ||
2487 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
2488 | ||
2489 | * frontend.adb (Frontend): remove previous patch to avoid full | |
2490 | qualification in ALFA mode. | |
2491 | * lib-xref-alfa.adb (Add_ALFA_Xrefs): use unique name for variables. | |
2492 | * sem_util.adb, sem_util.ads (Unique_Name): new function to define a | |
2493 | unique name for an entity, which could be used to identify the entity | |
2494 | across compilation units. | |
2495 | ||
2496 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
2497 | ||
2498 | * prj-env.adb | |
2499 | (Initialize_Default_Project_Path): Add target specific directory | |
2500 | ($prefix/$target/lib/gnat) in front of project path in all cases | |
2501 | (making gnatmake's behaviour consistent with gprbuild). | |
2502 | * gnatcmd.adb, make.adb, prj-makr.adb, clean.adb: | |
2503 | Pass target name from Sdefault to project subsystem. | |
2504 | * gnatls.adb: Show new target specific default project directory. | |
2505 | ||
2506 | 2011-08-04 Johannes Kanig <kanig@adacore.com> | |
2507 | ||
2508 | * cstand.adb: Add Information to Identifier in Standard | |
2509 | (Identifer_For): Set Entity to the corresponding entity | |
2510 | ||
483361a6 AC |
2511 | 2011-08-04 Sergey Rybin <rybin@adacore.com> |
2512 | ||
2513 | * gnat_ugn.texi: Update doc on gnatcheck. | |
2514 | ||
2515 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
2516 | ||
2517 | * lib-xref-alfa.adb (Add_ALFA_Xrefs): correct definition of ranges of | |
2518 | xrefs in a scope. | |
2519 | ||
2520 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
2521 | ||
2522 | * exp_prag.adb (Expand_Pragma_Check): in ALFA mode, return without | |
2523 | performing expansion. | |
2524 | * sem_ch6.adb (Analyze_Subprogram_Body_Helper, | |
2525 | Analyze_Generic_Subprogram_Body): protect call to Process_PCCs so that | |
2526 | it is not called in ALFA mode. | |
2527 | ||
ef5569c6 AC |
2528 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
2529 | ||
2530 | * make.adb, osint.adb, osint.ads (Reset_Command_Line_Files): not used | |
2531 | after all, so removed. | |
2532 | ||
2533 | 2011-08-04 Sergey Rybin <rybin@adacore.com> | |
2534 | ||
2535 | * vms_data.ads: Add missing VMS qualifiers. | |
2536 | ||
1ab4a286 EB |
2537 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
2538 | ||
2539 | * make.adb, makeutl.adb, osint.adb, osint.ads (Check_Mains): rebuild | |
2540 | the list of files on the command line after processing it through | |
2541 | Complete_Mains. | |
2542 | ||
7ae0d98c AC |
2543 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> |
2544 | ||
2545 | * exp_ch7.adb (Build_Raise_Statement): Remove the specialized | |
2546 | processing for .NET/JVM. These targets can now benefit from | |
2547 | Raise_From_Controlled_Operation and they share the same processing with | |
2548 | standard targets. | |
2549 | (Establish_Transient_Scope): Remove the restriction for .NET/JVM. | |
2550 | These targets need transient scopes in order to properly finalize short | |
2551 | lived controlled objects. | |
2552 | (Make_Handler_For_Ctrl_Operation): Remove the specialized processing for | |
2553 | NET/JVM. These targets can now benefit from | |
2554 | Raise_From_Controlled_Operation and they share the same processing with | |
2555 | standard targets. | |
2556 | ||
2557 | 2011-08-04 Geert Bosch <bosch@adacore.com> | |
2558 | ||
2559 | * tracebak.c (STOP_FRAME): Stop at any next pointer outside the stack | |
2560 | ||
2561 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
2562 | ||
2563 | * exp_aggr.adb (Has_Visible_Private_Ancestor): subsidiary routine to | |
2564 | Expand_Record_Aggregate, to determine whether aggregate must be | |
2565 | expanded into assignments. This is the case if the ancestor part is | |
2566 | private, regarless of the setting of the flag Has_Private_Ancestor. | |
2567 | ||
2568 | 2011-08-04 Ed Falis <falis@adacore.com> | |
2569 | ||
2570 | * vxaddr2line.adb: Add support for e500v2 and for Linux hosts | |
2571 | ||
2572 | 2011-08-04 Bob Duff <duff@adacore.com> | |
2573 | ||
2574 | * sinfo.ads: Fix comment. | |
2575 | ||
2576 | 2011-08-04 Steve Baird <baird@adacore.com> | |
2577 | ||
2578 | * bindgen.adb (Get_Ada_Main_Name): If CodePeer_Mode is set, then | |
2579 | choose a package name in much the same way as is | |
2580 | done for JGNAT when VM_Target /= No_VM, except that | |
2581 | a slightly more distinctive prefix string is used. | |
2582 | ||
2583 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
2584 | ||
2585 | * makeutl.adb (Complete_Mains): no longer accept unit names on the | |
2586 | gnatmake command line. | |
2587 | This behavior was never documented (and was supported only because of | |
2588 | an early bug in the code). This case might lead to ambiguous cases | |
2589 | (between unit names and truncated base names without suffixes). | |
2590 | ||
87729e5a AC |
2591 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> |
2592 | ||
2593 | * a-tags.ads, a-tags.adb (Unregister_Tag): New routine. | |
2594 | Remove the external tag of a tagged type from the internal hash table. | |
2595 | * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on the | |
2596 | expanded usage of the routine. Strenghten the check for Is_Master. Add | |
2597 | processing for tagged types. | |
2598 | (Build_Finalizer): Create all the necessary lists used in finalizer | |
2599 | creation when the processed context is a package that may contain | |
2600 | tagged types. | |
2601 | (Expand_Cleanup_Actions): Rename the call to Has_Controlled_Objects to | |
2602 | Requires_Cleanup_Actions. | |
2603 | (Expand_N_Package_Body): Package bodies may need clean up code | |
2604 | depending on whether they contain tagged types. | |
2605 | (Expand_N_Package_Declaration): Package declarations may need clean up | |
2606 | code depending on whether they contain tagged types. | |
2607 | (Unregister_Tagged_Types): New routine. Search through a list of | |
2608 | declarations or statements, looking for non-abstract Ada tagged types. | |
2609 | For each such type, generate code to unregister the external tag. | |
2610 | * exp_util.adb (Has_Controlled_Objects (Node_Id)): Renamed to | |
2611 | Requires_Cleanup_Actions. | |
2612 | (Requires_Cleanup_Actions (List_Id, Boolean)): New routine. Search | |
2613 | through a list of declarations or statements looking for non-abstract | |
2614 | Ada tagged types or controlled objects. | |
2615 | * exp_util.ads (Has_Controlled_Objects (Node_Id)): Renamed to | |
2616 | Requires_Cleanup_Actions. | |
2617 | (Has_Controlled_Objects (List_Id, Boolean)): Removed. | |
2618 | * rtsfind.ads: Add entry RE_Unregister_Tag to tables RE_Id and | |
2619 | RE_Unit_Table. | |
2620 | ||
2621 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
2622 | ||
2623 | * prj-env.adb (For_All_Source_Dirs.For_Project): Check if project Prj | |
2624 | has Ada sources, not project Project, because if the root project | |
2625 | Project has no sources of its own, all projects will be deemed without | |
2626 | sources. | |
2627 | ||
2628 | 2011-08-04 Gary Dismukes <dismukes@adacore.com> | |
2629 | ||
2630 | * bindgen.adb (Gen_Adainit_Ada): Move the generation of the declaration | |
2631 | of the No_Param_Proc acc-to-subp type used for initialization of | |
2632 | __gnat_finalize_library_objects so that it's declared at library level | |
2633 | rather than nested inside of the adainit routine. | |
2634 | ||
2635 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
2636 | ||
2637 | * exp_disp.adb (Make_DT): Generate code to check the external tag ONLY | |
2638 | if the tagged type has a representation clause which specifies its | |
2639 | external tag. | |
2640 | ||
2641 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
2642 | ||
2643 | * einfo.ads, einfo.adb (Has_Private_Ancestor): now a flag on types. | |
2644 | Remove previous procedure with that name. | |
2645 | * sem_ch3.adb (Build_Derived_Record_Type): set Has_Private_Ancestor | |
2646 | when appropriate. | |
2647 | * sem_aggr.adb (Resolve_Extension_Aggregate): if the ancestor part is a | |
2648 | subtype mark, the ancestor cannot have unknown discriminants. | |
2649 | (Resolve_Record_Aggregate): if the type has invisible components | |
2650 | because of a private ancestor, the aggregate is illegal. | |
2651 | ||
2652 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
2653 | ||
2654 | * switch-m.adb (Normalize_Compiler_Switches): Recognize and take into | |
2655 | account switches -gnat2005, -gnat12 and -gnat2012. | |
2656 | ||
2657 | 2011-08-04 Bob Duff <duff@adacore.com> | |
2658 | ||
2659 | * s-tasdeb.ads: Minor comment fix. | |
2660 | ||
2661 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
2662 | ||
2663 | * gnatlink.adb (Gnatlink): Pass -gnat83/95/05/12 switch to gcc in | |
2664 | CodePeer mode. | |
2665 | * switch.ads, switch.adb (Is_Language_Switch): New function. | |
2666 | ||
2667 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
2668 | ||
2669 | * switch-c.adb: Minor comment addition. | |
2670 | ||
2671 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
2672 | ||
2673 | * vms_conv.adb (Process_Argument): Fail graciously when qualifier | |
2674 | ending with '=' is followed by a space (missing file name). | |
2675 | ||
2676 | 2011-08-04 Pascal Obry <obry@adacore.com> | |
2677 | ||
2678 | * g-regist.ads: Fix size of HKEY on x86_64-windows. | |
2679 | ||
2680 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
2681 | ||
2682 | * sem_ch12.adb (Analyze_Associations): New routine | |
2683 | Check_Overloaded_Formal_Subprogram to reject a formal package when | |
2684 | there is a named association or a box initialisation for an overloaded | |
2685 | formal subprogram of the corresponding generic. | |
2686 | ||
2687 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
2688 | ||
2689 | * alfa.ads (ALFA_Xref_Record): add component for type of entity | |
2690 | * get_alfa.adb, put_alfa.adb: Read and write new component of | |
2691 | cross-reference. | |
2692 | * lib-xref-alfa.adb (Collect_ALFA): generate new component. | |
2693 | ||
88f47280 AC |
2694 | 2011-08-04 Pascal Obry <obry@adacore.com> |
2695 | ||
2696 | * urealp.adb: Minor reformatting. | |
2697 | ||
2698 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
2699 | ||
2700 | * exp_ch7.adb (build_finalizer.process_declarations.processing_actions): | |
2701 | Handle the case when Cleanup_Protected_Object returns Empty. | |
2702 | ||
2703 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
2704 | ||
2705 | * frontend.adb (Frontend): only qualify names in non-ALFA mode | |
2706 | ||
2707 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
2708 | ||
2709 | * sem_ch4.adb (Try_Class_Wide_Operation): if the context is a procedure | |
2710 | call, ignore functions. | |
2711 | ||
05c53a69 GB |
2712 | 2011-08-04 Geert Bosch <bosch@adacore.com> |
2713 | ||
2714 | * urealp.adb (Equivalent_Decimal_Exponent): Avoid the use of floating | |
2715 | point. | |
2716 | ||
23cc1ace EB |
2717 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
2718 | ||
2719 | * makeutl.adb (Compute_Builder_Switches): no longer accept a unit name | |
2720 | as an index for Builder'Switches. This conforms to the documentation. | |
2721 | * make.adb (Insert_Project_Sources): avoid duplicate code | |
2722 | ||
cef14201 AC |
2723 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
2724 | ||
2725 | * makeutl.adb (Complete_Mains): if the user has passed a relative file | |
2726 | name on the command line (for instance "../dummy"), never assume it can | |
2727 | be a unit name. | |
2728 | ||
2729 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
2730 | ||
2731 | * bindgen.adb: Remove code the reference or create the | |
2732 | Break_Start/__gnat_break_start procedure. | |
2733 | * s-stalib.adb (Break_Start): Removed. | |
2734 | ||
e2fee30d EB |
2735 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
2736 | ||
2737 | * make.adb, makeutl.adb, makeutl.ads (Compute_Builder_Switches): now | |
2738 | shared with gprbuild. | |
2739 | ||
2d395256 AC |
2740 | 2011-08-04 Yannick Moy <moy@adacore.com> |
2741 | ||
2742 | * par-ch4.adb (P_Primary): preferentially issue an error message about | |
2743 | a missing parenthesis arount a conditional or case expression in Ada | |
2744 | 2012 mode, if we detect that the alignment is not correct for a | |
2745 | statement. | |
2746 | ||
2747 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
2748 | ||
2749 | * exp_ch7.adb (Process_Declarations): Do not consider the result of a | |
2750 | tag-to-class-wide conversion as needing finalization actions. | |
2751 | * exp_util.adb (Has_Controlled_Objects): Do not consider the result of | |
2752 | a tag-to-class-wide conversion as needing finalization actions. | |
2753 | (Is_Finalizable_Transient): The result of a tag-to-class-wide | |
2754 | conversion does not need finalization actions. | |
2755 | (Is_Tag_To_CW_Conversion): New routine. | |
2756 | * exp_util.ads (Is_Tag_To_CW_Conversion): New routine. Determines | |
2757 | whether an object is the result of a tag-to-class-wide conversion. | |
2758 | ||
2759 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
2760 | ||
2761 | * sem_ch13.adb (Analyze_Aspect_Specifications): correct order in which | |
2762 | the left-hand-side and right-hand-side of a conjunct are inserted when | |
2763 | translating a pre- or postcondition | |
2764 | * sem_ch6.adb: Correct typo in comment | |
2765 | ||
2766 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
2767 | ||
2768 | * gnat_rm.texi: Ravenscar does not prohibit dependence on | |
2769 | Unchecked_Conversion and Unchecked_Deallocation. | |
2770 | ||
2771 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
2772 | ||
2773 | * make.adb: Minor reformatting. | |
2774 | ||
767ab2fd EB |
2775 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
2776 | ||
2777 | * prj.adb, prj.ads, makeutl.adb (Complete_Mains): search for the | |
2778 | sources in the project and its imported projects, but not in the whole | |
2779 | tree. | |
2780 | ||
8fb3f5df AC |
2781 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
2782 | ||
2783 | * make.adb: Remove debug trace. | |
2784 | ||
2785 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
2786 | ||
2787 | * makeutl.adb (Do_Complete): Get the absolute path name of a relative | |
2788 | path in canonical form, to be able to compare path names on platforms | |
2789 | such as Windows or Darwin. | |
2790 | ||
2791 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
2792 | ||
2793 | * par_sco.adb (Traverse_Declarations_Or_Statements.Set_Statement_Entry): | |
2794 | For a pragma (statement with C1 = 'P'), record the sloc of the pragma. | |
2795 | * scos.ads: Update documentation accordingly. | |
2796 | * put_scos.adb (Output_SCO_Line): Omit statement SCOs for disabled | |
2797 | pragmas. | |
2798 | ||
9515740f AC |
2799 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> |
2800 | ||
2801 | * sem_attr.adb (Bad_Attribute_For_Predicate): flag illegal use of | |
2802 | attribute only if prefix type is scalar. | |
2803 | ||
2804 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
2805 | ||
2806 | * make.adb, makeutl.adb, prj-env.adb (Check_Mains): put back support | |
2807 | in gnatmake for specifying mains on the command line that do not belong | |
2808 | to the main project. These mains must currently all belong to the same | |
2809 | project, though. | |
2810 | (Ultimate_Extension_Of): removed, since duplicated | |
2811 | Ultimate_Extending_Project. | |
2812 | ||
92966893 AC |
2813 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
2814 | ||
2815 | * make.adb (Do_Codepeer_Globalize_Step): Removed. Use CodePeer_Mode | |
2816 | instead. | |
2817 | (CodePeer_Mode_String): New. | |
2818 | (Linking_Phase, Binding_Phase): Call gnatlink with -P switch in | |
2819 | CodePeer mode. | |
2820 | (Scan_Make_Arg): Do not disable binding/linking phase in CodePeer mode. | |
2821 | * bindgen.adb (Gen_Elab_Calls_Ada): Ignore subprograms in CodePeer | |
2822 | mode, since no useful elaboration subprogram is needed by CodePeer. | |
2823 | * gnatlink.adb (Gnatlink): Add support for -P switch (CodePeer mode). | |
2824 | In this mode, compile binder file with -gnatC and do stop after this | |
2825 | step. | |
2826 | ||
2827 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
2828 | ||
2829 | * exp_ch7.adb: Minor comment fix. | |
2830 | ||
5969611f RD |
2831 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
2832 | ||
2833 | * exp_ch7.adb, make.adb, sem_ch10.adb, bindgen.adb, sem_res.adb, | |
2834 | exp_ch4.adb, makeutl.adb: Minor reformatting. | |
2835 | ||
6367dd30 AC |
2836 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
2837 | ||
2838 | * make.adb, makeutl.adb, makeutl.ads (Make): major refactoring. | |
2839 | Create several new subprograms to move code out of Make. This makes the | |
2840 | code more readable, removes code duplication, and is a preparation work | |
2841 | for adding support for aggregate projects. | |
2842 | ||
2843 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
2844 | ||
2845 | * s-po32gl.ads, s-po32gl.adb: New files. | |
2846 | * exp_ch7.ads (Get_Global_Pool_For_Access_Type): New function. | |
2847 | * exp_ch7.adb (Get_Global_Pool_For_Access_Type): New function. | |
2848 | (Build_Finalization_Collection): Use it. | |
2849 | * exp_ch4.adb (Complete_Controlled_Allocation): Ditto. | |
2850 | * rtsfind.ads: System_Pool_32_Global, Re_Global_Pool_32_Object: New | |
2851 | literals. | |
2852 | * gcc-interface/Makefile.in: Use s-po32gl.o on VMS. | |
2853 | * gcc-interface/Make-lang.in: Update dependencies. | |
2854 | ||
cd8bfe35 EB |
2855 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
2856 | ||
2857 | * makeutl.adb (Complete_Mains): add support for specs with no suffix on | |
2858 | the command line. | |
2859 | ||
7db29ea7 EB |
2860 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
2861 | ||
2862 | * make.adb, makeutl.adb (Complete_Mains): if a main specified on the | |
2863 | command line is not a file name, also check whether it could be a unit | |
2864 | name. | |
2865 | ||
d9b056ea AC |
2866 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> |
2867 | ||
2868 | * bindgen.adb (Gen_Finalize_Library_Ada): Factor out code to generate | |
2869 | the header of the finalization routine. | |
2870 | If the unit has no finalizer but is a body whose spec has one, then | |
2871 | generate the decrement of the elaboration entity only. | |
2872 | If the unit has a finalizer and is a spec, then do not generate the | |
2873 | decrement of the elaboration entity. | |
2874 | (Gen_Finalize_Library_C): Likewise. | |
2875 | ||
2876 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
2877 | ||
2878 | * exp_ch7.adb (Alignment_Of): New subsidiary routine. | |
2879 | (Bounds_Size_Expression): Removed. | |
2880 | (Double_Alignment_Of): New subsidiary routine. | |
2881 | (Make_Finalize_Address_Stmts): New local variable Index_Typ. Account | |
2882 | for a hole in the dope vector of unconstrained arrays due to different | |
2883 | index and element alignments. | |
2884 | ||
2885 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
2886 | ||
2887 | * sem_res.adb (Resolve_Allocator): diagnose task allocator that will | |
2888 | raise program_error because body has not been seen yet. | |
2889 | ||
2890 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
2891 | ||
2892 | * sem_ch10.adb (Analyze_With_Clause): Protect against child unit with | |
2893 | an unresolved name. | |
2894 | ||
2895 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
2896 | ||
2897 | * makeutl.adb (Do_Complete): Check absolute paths in canonical forms | |
2898 | ||
2899 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
2900 | ||
2901 | * alfa.adb, alfa.ads (Unique_Defining_Entity): move function from here | |
2902 | * sem_util.adb, sem_util.ads (Unique_Defining_Entity): ...to here | |
2903 | ||
2904 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
2905 | ||
2906 | * sem_ch12.adb (Analyze_Package_Instantiation): Do not omit body for | |
2907 | instantiation in RCI. | |
2908 | ||
2909 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
2910 | ||
2911 | * make.adb: Share more code with gprbuild | |
2912 | ||
f5fc5b9d AC |
2913 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
2914 | ||
2915 | * projects.texi: Added documentation for the IDE'Gnat project file | |
2916 | attribute. | |
2917 | ||
2918 | 2011-08-04 Nicolas Roche <roche@adacore.com> | |
2919 | ||
2920 | * gnat_rm.texi: Minor editing. | |
2921 | ||
2922 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
2923 | ||
2924 | * bindgen.adb (Gen_Adafinal_Ada): Do not differentiate the main case | |
2925 | and the library case for VM targets. | |
2926 | (Gen_Adainit_Ada): Likewise. | |
2927 | ||
2928 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
2929 | ||
2930 | * g-altive.ads: Minor comment updates. | |
2931 | * prj-nmsc.adb: Minor reformatting. | |
2932 | ||
2933 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
2934 | ||
2935 | * opt.ads | |
2936 | (Normalize_Scalars_Config): Value of the configuration switch set by | |
2937 | pragma Normalize_Scalars when it appears in the gnat.adc file. | |
2938 | (Normalize_Scalars): New field for record Config_Switches_Type. Used | |
2939 | to save and restore settings of this pragma. | |
2940 | * opt.adb | |
2941 | (Register_Opt_Config_Switches, Save_Opt_Config_Switches, | |
2942 | Restore_Opt_Config_Switches): Add missing support for Normalize_Scalars. | |
2943 | ||
2944 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
2945 | ||
2946 | * gnat_ugn.texi: Document gnatlink options -M and -M=mapfile | |
2947 | ||
0c4683cf AC |
2948 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
2949 | ||
2950 | * makeutl.adb: Minor reformatting. | |
2951 | ||
2952 | 2011-08-04 Olivier Hainque <hainque@adacore.com> | |
2953 | ||
2954 | * g-altive.ads: Update comments to reflect that only the soft | |
2955 | binding is available today. | |
2956 | ||
2598ee6d RD |
2957 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
2958 | ||
2959 | * bindgen.adb, einfo.adb, sem_ch12.adb, s-tasren.adb, sem_res.adb, | |
2960 | makeutl.adb, prj-nmsc.adb, opt.ads, prj-env.adb: Minor reformatting | |
2961 | * gcc-interface/Make-lang.in: Update dependencies. | |
2962 | ||
c2db4b32 AC |
2963 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
2964 | ||
2965 | * prj-env.adb: Remove local debug traces. | |
2966 | ||
2967 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
2968 | ||
2969 | * checks.adb (Apply_Float_Conversion_Check): correct a typo where Lo_OK | |
2970 | was used instead of Hi_OK, which could cause a read of an uninitialized | |
2971 | value later on. Detected while working on the new warning. | |
2972 | * exp_ch9.adb (Expand_N_Entry_Declaration): remove useless assignment | |
2973 | to local variable. | |
2974 | * sem_ch5.adb (Analyze_Assignment): set the last assignment component | |
2975 | in more cases, in order to detect more unreferenced values. | |
2976 | * sem_util.adb, sem_util.ads (Get_Enclosing_Object): return enclosing | |
2977 | object for expression, if any. | |
2978 | ||
2979 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> | |
2980 | ||
2981 | * exp_intr.adb (Expand_Binary_Operator_Call): Look at the RM size of | |
2982 | the operand types instead of the Esize. | |
2983 | ||
2984 | 2011-08-04 Steve Baird <baird@adacore.com> | |
2985 | ||
2986 | * switch-b.adb (Scan_Binder_Switches): Add -P binder switch, used to | |
2987 | enable CodePeer_Mode. | |
2988 | * bindusg.adb (Display): Add help message describing -P binder switch. | |
2989 | * gnat_ugn.texi: Document -P binder switch. | |
2990 | * bindgen.adb (Gen_Main_Ada): If CodePeer_Mode is set, then call the | |
2991 | user-defined main program directly. | |
2992 | (Gen_Output_File_Ada): If CodePeer_Mode is set, generate a with of the | |
2993 | user-defined main program in the context clause of the package body. | |
2994 | ||
ad05f2e9 AC |
2995 | 2011-08-04 Yannick Moy <moy@adacore.com> |
2996 | ||
2997 | * alfa.adb, alfa.ads (Get_Entity_For_Decl): remove function, partial | |
2998 | duplicate of Defining_Entity | |
2999 | (Get_Unique_Entity_For_Decl): rename function into | |
3000 | Unique_Defining_Entity | |
3001 | * einfo.adb, einfo.ads (Is_In_ALFA, Body_Is_In_ALFA): remove flags | |
3002 | (Formal_Proof_On): remove synthesized flag | |
3003 | * cstand.adb, sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, | |
3004 | sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_res.adb, sem_util.adb, | |
3005 | sem_util.ads, stand.ads: Remove treatment associated to entities in ALFA | |
3006 | * sem_prag.adb (Analyze_Pragma): remove special treatment for pragma | |
3007 | Annotate (Formal_Proof) | |
3008 | ||
3009 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
3010 | ||
3011 | * prj-env.adb (Create_Config_Pragmas_File): fix handling of multi-unit | |
3012 | source files with non-standard naming schemes, in imported projects | |
3013 | ||
756ef2a0 AC |
3014 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3015 | ||
3016 | * makeutl.adb (Complete_Mains): when a multi-unit source file is | |
3017 | specified on the gprbuild command line, we need to compile all units | |
3018 | within that file, not just the first one we find | |
3019 | Fix error message for mains that are not found. | |
3020 | ||
3021 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3022 | ||
3023 | * sem_ch6.adb: Update comment. | |
3024 | * sem_ch12.adb: Minor reformatting. | |
3025 | ||
3026 | 2011-08-04 Bob Duff <duff@adacore.com> | |
3027 | ||
3028 | * s-tasren.adb (Task_Do_Or_Queue): Previous code was reading | |
3029 | Acceptor.Terminate_Alternative without locking Acceptor, which causes a | |
3030 | race condition whose symptom is to fail to lock Parent. That, in turn, | |
3031 | causes Parent.Awake_Count to be accessed without locking Parent, which | |
3032 | causes another race condition whose symptom is that Parent.Awake_Count | |
3033 | can be off by 1 (either too high or too low). The solution is to lock | |
3034 | Parent unconditionally, and then lock Acceptor, before reading | |
3035 | Acceptor.Terminate_Alternative. | |
3036 | ||
4fdebd93 AC |
3037 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
3038 | ||
3039 | * debug.adb: Update comment. | |
3040 | ||
3041 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
3042 | ||
3043 | * par_sco.adb, exp_util.adb, make.adb, a-tags.adb, sem_prag.adb, | |
3044 | sem_util.adb, sem_attr.adb, exp_ch4.adb, g-comlin.adb, g-comlin.ads, | |
3045 | exp_ch6.adb: Minor reformatting. | |
3046 | ||
3047 | 2011-08-04 Gary Dismukes <dismukes@adacore.com> | |
3048 | ||
3049 | * gnat_ugn.texi: Add sentence about the case of compile-time-detected | |
3050 | checks for -gnateE. | |
3051 | ||
3052 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3053 | ||
3054 | * gnat_rm.texi: update Ravenscar desription to reflect Ada2012 RM. | |
3055 | ||
3056 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3057 | ||
3058 | * sinfo.ads: Minor reformatting. | |
3059 | ||
3060 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
3061 | ||
3062 | * makeutl.adb, makeutl.ads, prj-nmsc.adb (Complete_Mains): report error | |
3063 | even if there is no location. | |
3064 | ||
6aaa0587 ES |
3065 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> |
3066 | ||
3067 | * sem_res.adb, sem_ch4.adb: move check for restriction | |
3068 | No_Task_Hierarchy to resolve_allocator. | |
3069 | ||
35a1c212 AC |
3070 | 2011-08-04 Thomas Quinot <quinot@adacore.com> |
3071 | ||
3072 | * sinfo.adb, sinfo.ads, sem_prag.adb, sem_ch12.adb (Pragma_Enabled): | |
3073 | This flag of N_Pragma nodes is not used, remove it as well as all of | |
3074 | the associated circuitry. | |
3075 | ||
3076 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
3077 | ||
3078 | * exp_disp.adb (Make_DT): Switch -gnatdQ disables the generation of the | |
3079 | runtime check on duplicated externa tags | |
3080 | * debug.adb Document switch -gnatdQ. | |
3081 | ||
3082 | 2011-08-04 Gary Dismukes <dismukes@adacore.com> | |
3083 | ||
3084 | * a-fihema.ads: Minor typo fix. | |
3085 | ||
3086 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3087 | ||
3088 | * sem_ch10.adb: Minor comment update. | |
3089 | ||
3090 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
3091 | ||
3092 | * einfo.adb: Update the node field usage to reflect the renaming of | |
3093 | Return_Flag to Return_ Flag_Or_Transient_Decl. | |
3094 | (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl. | |
3095 | (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl. | |
3096 | (Write_Field15_Name): Change Return_Flag to | |
3097 | Return_Flag_Or_Transient_Decl. | |
3098 | * einfo.ads: Rename node field Return_Flag to | |
3099 | Return_Flag_Or_Transient_Decl. Update the associated comment and all | |
3100 | occurrences in entities. | |
3101 | (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl. Update | |
3102 | associated Inline pragma. | |
3103 | (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl. Update | |
3104 | associated Inline pragma. | |
3105 | * exp_ch4.ads, exp_ch4.adb (Expand_N_Expression_With_Actions): New | |
3106 | routine. | |
3107 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Update the calls to | |
3108 | Return_Flag and Set_Return_Flag. | |
3109 | * exp_ch7.adb (Process_Declarations): Add code to recognize hook | |
3110 | objects generated for controlled transients declared inside an | |
3111 | Exception_With_Actions. Update the calls to Return_Flag. | |
3112 | (Process_Object_Declaration): Add code to add a null guard for hook | |
3113 | objects generated for controlled transients declared inside an | |
3114 | Exception_With_Actions. Update related comment. | |
3115 | * exp_util.adb (Has_Controlled_Objects): Add code to recognize hook | |
3116 | objects generated for controlled transients declared inside an | |
3117 | Exception_With_Actions. Update the calls to Return_Flag. | |
3118 | * expander.adb (Expand): Add new case for N_Expression_With_Actions. | |
3119 | ||
3120 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3121 | ||
3122 | * sem_util.adb:(Wrong_Type): Improve error message on a one-element | |
3123 | positional aggregate. | |
3124 | ||
3125 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
3126 | ||
3127 | * par_sco.adb (Process_Decisions.Output_Header): Check and record pragma | |
3128 | SLOC only for pragmas. | |
3129 | ||
3130 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
3131 | ||
3132 | * projects.texi: Minor typo fix. | |
3133 | ||
3134 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
3135 | ||
3136 | * prj-nmsc.adb (Check_File): Minor change to traces, to help debugging | |
3137 | on case-sensitive file systems. | |
3138 | ||
c2873f74 TQ |
3139 | 2011-08-04 Thomas Quinot <quinot@adacore.com> |
3140 | ||
3141 | * put_scos.adb (Put_SCOs): Do not emit decision SCO for an X decision | |
3142 | nested in a disabled pragma. | |
3143 | * scos.ads, scos.adb, par_sco.ads, par_sco.adb: Record sloc of | |
3144 | enclosing pragma, if any, for X decisions. | |
3145 | ||
3146 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3147 | ||
3148 | * sem_prag.adb: Minor reformatting. | |
3149 | ||
46414266 VC |
3150 | 2011-08-04 Vincent Celier <celier@adacore.com> |
3151 | ||
3152 | * a-tags.adb (Check_TSD): Avoid concatenation of strings, as it is not | |
3153 | allowed in no run time mode. | |
3154 | ||
3155 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
3156 | ||
3157 | * make.adb (Check): When -gnatc is used, check for the source file | |
3158 | inside the ALI file with a canonical case file name. | |
3159 | ||
afab164f EB |
3160 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3161 | ||
3162 | * g-comlin.adb, g-comlin.ads (Add_Switch): Put back support for | |
3163 | overriding the separator. | |
3164 | ||
fe0ec02f AC |
3165 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
3166 | ||
3167 | * sem_aggr.adb, par_sco.adb, sem_type.adb, exp_util.adb, exp_ch9.adb, | |
3168 | prj-nmsc.adb, sem_ch13.adb, exp_strm.adb: Minor reformatting. | |
3169 | ||
3170 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
3171 | ||
3172 | * gnat_rm.texi: Minor documentation fix for pragma Annotate. | |
3173 | ||
3174 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3175 | ||
3176 | * sem_attr.adb (Analyze_Attribute): add check during pre-analysis that | |
3177 | 'Result only appears in postcondition of function. | |
3178 | ||
3179 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3180 | ||
3181 | * a-tags.adb (Check_TSD): When raising PROGRAM_ERROR for a duplicated | |
3182 | external tag, include the value of the external tag in the exception | |
3183 | message. | |
3184 | ||
0180fd26 AC |
3185 | 2011-08-04 Yannick Moy <moy@adacore.com> |
3186 | ||
3187 | * sem_attr.adb (Result): modify error message for misplaced 'Result | |
3188 | ||
3189 | 2011-08-04 Sergey Rybin <rybin@adacore.com> | |
3190 | ||
3191 | * gnat_rm.texi (pragma Annotate): Fix syntax description to make it | |
3192 | clear that the second argument must be an identifier. | |
3193 | ||
3194 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3195 | ||
3196 | * exp_ch9.adb (Build_Barrier_Function): When compiling with | |
3197 | -fpreserve-control-flow, insert an IF statement on the barrier | |
3198 | condition to ensure that a conditional branch instruction is generated. | |
3199 | ||
3200 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
3201 | ||
3202 | * prj-part.adb, prj.adb, prj.ads, prj-tree.ads | |
3203 | (Processing_Flags.Ignore_Missing_With): new flag. | |
3204 | ||
3205 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
3206 | ||
3207 | * prj-nmsc.adb (Find_Sources, Path_Name_Of): Fix handling of | |
3208 | Source_List_File on case-insensitive systems where the file is actually | |
3209 | on a case-sensitive file system (NFS,...). | |
3210 | ||
3211 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
3212 | ||
3213 | * sem_ch6.adb (Analyze_Function_Return): In a rare case where a | |
3214 | function return contains a controlled [extension] aggregate and the | |
3215 | return statement is not part of a handled sequence of statements, wrap | |
3216 | the return in a block. This ensures that all controlled temporaries | |
3217 | generated during aggregate resolution will be picked up by the | |
3218 | finalization machinery. | |
3219 | ||
3220 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3221 | ||
3222 | * sem_aggr.adb (Resolve_Aggregate): If aggregate has box-initialized | |
3223 | components, freeze type before resolution, to ensure that default | |
3224 | initializations are present for all components. | |
3225 | * sem_res.adb (Resolve_Actuals): the designated object of an | |
3226 | accces-to-constant type is a legal actual in a call to an | |
3227 | initialization procedure. | |
3228 | ||
3229 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
3230 | ||
3231 | * exp_util.adb (Extract_Renamed_Object): Add N_Type_Conversion and | |
3232 | N_Unchecked_Type_Conversion to the possible containers of a renamed | |
3233 | transient variable. | |
3234 | ||
78efd712 AC |
3235 | 2011-08-04 Yannick Moy <moy@adacore.com> |
3236 | ||
3237 | * par-ch13.adb (Aspect_Specifications_Present): recognize | |
3238 | "with Identifier'Class =>" as an aspect, so that a meaningful warning | |
3239 | is issued in Strict mode. | |
3240 | * par.adb: Fix typos in comments. | |
3241 | ||
3242 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3243 | ||
3244 | * sem_attr.adb (Result): modify error message to take into account Post | |
3245 | aspect when compiling Ada 2012 (or newer) code. | |
3246 | ||
3247 | 2011-08-04 Nicolas Roche <roche@adacore.com> | |
3248 | ||
3249 | * env.c (__gnat_clearenv): Avoid use of dynamic size array in order to | |
2c7f9cc0 | 3250 | remove need for GCC exceptions. |
78efd712 AC |
3251 | |
3252 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
3253 | ||
3254 | * makeutl.adb (Do_Complete): Call Debug_Output with the name of the | |
3255 | project, not the source file name. | |
3256 | * prj.adb (Find_Sources.Look_For_Sources): If the source has been | |
3257 | excluded, continue looking. This excluded source will only be returned | |
3258 | if there is no other source with the same base name that is not locally | |
3259 | removed. | |
3260 | ||
3261 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3262 | ||
3263 | * sem_res.adb (Resolve_Intrinsic_Operator): if the result type is | |
3264 | private and one of the operands is a real literal, use a qualified | |
3265 | expression rather than a conversion which is not meaningful to the | |
3266 | back-end. | |
3267 | ||
0170a691 AC |
3268 | 2011-08-04 Yannick Moy <moy@adacore.com> |
3269 | ||
3270 | * sem_ch13.adb (Aspect_Loop): when an aspect X and its classwise | |
3271 | corresponding aspect X'Class are allowed, proceed with analysis of the | |
3272 | aspect instead of skipping it. | |
3273 | ||
3274 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
3275 | ||
3276 | * s-flocon.adb, s-flocon.ads: Add a body for s-flocon.ads | |
3277 | This will allow to have an Ada implementation for the subprogram. | |
3278 | ||
deb4f5ba ES |
3279 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> |
3280 | ||
3281 | * sem_ch3.adb (Analyze_Full_Type_Declaration): If the declaration is a | |
3282 | completion and aspects are present, apply them to the entity for the | |
3283 | type which is currently the partial view, but which is the one that | |
3284 | will be frozen. | |
3285 | * sem_ch13.adb (Analyze_Aspect_Specifications): if the predicate | |
3286 | applies to a partial view, indicate that the full view has predicates | |
3287 | and delayed aspects. | |
3288 | (Replace_Type_Reference): Handle properly predicates that apply to the | |
3289 | full view of a private completion. | |
3290 | ||
fc893455 AC |
3291 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> |
3292 | ||
3293 | * layout.adb (Layout_Type): For composite types, do not set Esize. | |
3294 | * freeze.adb (Set_Small_Size): Remove test on alignment and do not | |
3295 | set Esize. | |
3296 | (Size_Known): Look at the RM size of components instead of the Esize. | |
3297 | (Freeze_Record_Type): Look at the RM size instead of the Esize to | |
3298 | issue warning and activate Implicit_Packing. | |
3299 | (Freeze_Entity): Likewise. Do not issue a warning for alias/atomic | |
3300 | if the Esize is not known. | |
3301 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause) <Size>: Set Esize | |
3302 | for elementary types only. | |
3303 | (Analyze_Record_Representation_Clause): Look at the RM size instead | |
3304 | of the Esize to issue errors. | |
3305 | * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set Esize if it | |
3306 | is not known. | |
3307 | <E_Record_Type>: Look at the RM size instead of the Esize. Remove | |
2c7f9cc0 | 3308 | obsolete block. |
fc893455 AC |
3309 | Look at the RM size instead of the Esize for types if the latter is |
3310 | not known. | |
3311 | (gnat_to_gnu_field): Use Known_Esize instead of Known_Static_Esize. | |
3312 | ||
3313 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3314 | ||
3315 | * sem_type.adb: proper handling of equality not involving anonymous | |
3316 | access types. | |
3317 | ||
b37d5bc6 AC |
3318 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> |
3319 | ||
3320 | * exp_ch7.adb (Create_Finalizer): Remove local variables Spec_Nod and | |
3321 | Vis_Decls. When creating a library-level finalizer for a package spec, | |
3322 | both the declaration and body of the finalizer are inserted either in | |
3323 | the visible or private declarations of the package spec. | |
3324 | ||
3325 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
3326 | ||
3327 | * sem_ch3.adb (Derive_Subprograms): Complete assertion to request the | |
3328 | use of the full-view of a type when invoking Is_Ancestor. | |
3329 | * sem_type.adb (Is_Ancestor): For consistency, when the traversal of | |
3330 | the full-view of private parents is requested, then use also the | |
3331 | full-view of the parent of the first derivation. | |
3332 | ||
7ab4d95a AC |
3333 | 2011-08-04 Tristan Gingold <gingold@adacore.com> |
3334 | ||
3335 | * s-taprop-vxworks.adb (Enter_Task): Use System.Float_Control.Reset | |
3336 | instead of the locally imported procedure. | |
3337 | * s-taprop-mingw.adb (Enter_Task): Ditto. | |
3338 | * s-valrea.adb (Scan_Real): Ditto. | |
3339 | * s-imgrea.adb (Set_Image_Real): Ditto. | |
3340 | * s-flocon.ads: Make the package pure. | |
3341 | ||
3342 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3343 | ||
3344 | * sinfo.ads, sinfo.adb (Debug_Statement, Set_Debug_Statement): Remove. | |
3345 | * tbuild.ads, tbuild.adb (Make_Pragma): Adjust accordingly. | |
3346 | * sinfo-cn.ads, sinfo-cn.adb (Change_Name_To_Procedure_Call_Statement): | |
3347 | New subprogram, moved here from... | |
3348 | * par.adb, par-ch5.adb (P_Statement_Name): ... here. | |
3349 | * par-prag.adb (Par.Prag, case Pragma_Debug): Do not perform any | |
3350 | rewriting of the last argument into a procedure call statement here... | |
3351 | * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): ...do it there | |
3352 | instead. | |
3353 | ||
3354 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3355 | ||
3356 | * par_sco.adb: Minor reformatting. | |
3357 | ||
51c400f5 AC |
3358 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
3359 | ||
3360 | * erroutc.adb: Minor reformatting. | |
3361 | ||
3362 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3363 | ||
3364 | * par_sco.adb: Comment update. | |
3365 | ||
3366 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
3367 | ||
3368 | * s-flocon.ads: New file. | |
3369 | * g-flocon.ads: Now a renaming of s-flocon. | |
3370 | * Makefile.rtl: Add s-flocon.o | |
3371 | ||
6a49f110 AC |
3372 | 2011-08-04 Javier Miranda <miranda@adacore.com> |
3373 | ||
3374 | * exp_strm.adb (Build_Array_Input_Function): if the array type is | |
3375 | constrained, do not attempt to build a subtype of it. | |
3376 | ||
3377 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3378 | ||
3379 | * errout.ads Change comments: remove 'R'M as an example where quotes | |
3380 | are needed; add ALFA as another case where quotes are not needed | |
3381 | * erroutc.adb (Set_Msg_Insertion_Reserved_Word): add ALFA as another | |
3382 | case where quotes are not needed. | |
3383 | * sem_ch11.adb, sem_ch13.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, | |
3384 | sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_prag.adb, sem_res.adb: | |
3385 | Remove all occurrences of 'A'L'F'A | |
3386 | ||
3387 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3388 | ||
3389 | * sem_ch13.adb: check legality of invariant pragma. | |
3390 | ||
a4640a39 AC |
3391 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> |
3392 | ||
3393 | * bindgen.adb: Add comments. | |
3394 | ||
3395 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3396 | ||
3397 | * einfo.adb, einfo.ads: Free Flag254 and make Formal_Proof_On a | |
3398 | synthesized flag. | |
3399 | * sem_prag.adb (Analyze_Pragma): record the pragma Annotate | |
3400 | (Formal_Proof, On/Off) in the Rep_Item list of the current subprogram. | |
3401 | ||
3402 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
3403 | ||
3404 | * exp_ch7.adb, exp_ch6.adb, sem_ch3.adb, layout.adb, sem_ch5.adb, | |
3405 | osint-c.ads, sem_util.ads, gnat1drv.adb, targparm.ads, sem_ch6.adb, | |
3406 | sem_ch13.adb, s-pooloc.adb: Minor reformatting. | |
3407 | ||
39ade2f9 AC |
3408 | 2011-08-04 Thomas Quinot <quinot@adacore.com> |
3409 | ||
3410 | * s-pooloc.ads, s-pooglo.ads: Minor reformatting | |
3411 | ||
3412 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3413 | ||
3414 | PR ada/47880 | |
3415 | * s-pooloc.adb (Deallocate): Fix the case of deallocating the only | |
3416 | allocated object. | |
3417 | ||
3418 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
3419 | ||
3420 | * einfo.ads, exp_ch4.adb: Minor reformatting. | |
3421 | ||
3422 | 2011-08-04 Jerome Lambourg <lambourg@adacore.com> | |
3423 | ||
3424 | * back_end.ads (Gen_Or_Update_Object_File): Add more comments. | |
3425 | ||
7efc3f2d AC |
3426 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> |
3427 | ||
3428 | * exp_ch4.adb (Expand_Composite_Equality): code cleanup: use component | |
3429 | type in all cases to compute list of primitive operations, because full | |
3430 | view may be an itype that is not attached to the list of declarations. | |
3431 | ||
3432 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> | |
3433 | ||
3434 | * bindgen.adb (Gen_Adafinal_Ada): Generate an early return if the | |
3435 | library has already been finalized. | |
3436 | (Gen_Adafinal_C): Likewise. | |
3437 | (Gen_Adainit_Ada): Generate an early return if the library has | |
3438 | already been elaborated. | |
3439 | (Gen_Adainit_C): Likewise. | |
3440 | (Gen_Output_File_Ada): Generate an elaboration flag. | |
3441 | (Gen_Output_File_C): Likewise. | |
3442 | ||
f65df609 HK |
3443 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> |
3444 | ||
3445 | * exp_ch4.adb (Expand_Allocator_Expression): Disable the generation of | |
3446 | Set_Finalize_Address_Ptr for CodePeer because Finalize_Address was not | |
3447 | built in the first place. | |
3448 | (Expand_N_Allocator): Disable the generation of Set_Finalize_Address_Ptr | |
3449 | for CodePeer because Finalize_Address was not built to begin with. | |
3450 | * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Ditto. | |
3451 | ||
a0fb8fe8 AC |
3452 | 2011-08-04 Pascal Obry <obry@adacore.com> |
3453 | ||
3454 | * adaint.c (__gnat_tmp_name): Use current process id to create temp | |
3455 | filenames, this ensures unicity of filenames across processes. | |
3456 | ||
3457 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
3458 | ||
3459 | * bindgen.adb (Gen_Finalize_Library_Ada): Rename generated routine | |
3460 | Raise_Controlled to Raise_From_Controlled_Operation. Update the | |
3461 | signature of Raise_From_Controlled_Operation by adding flag From_Abort. | |
3462 | Add False as the actual to From_Abort in the generated call to | |
3463 | Raise_From_Controlled_Operation. | |
3464 | ||
3465 | 2011-08-04 Jerome Lambourg <lambourg@adacore.com> | |
3466 | ||
3467 | * osint-c.ads, osint-c.adb (Set_Library_Info_Name): Move to declaration | |
3468 | so that the ali file name can be retrieved from outside of this package. | |
3469 | * back_end.ads, back_end.adb (Gen_Or_Update_Object_File): New method | |
3470 | doing nothing in the general case, but used to update the object file | |
3471 | timestamp if directly generated by the backend. | |
3472 | * gnat1drv.adb (Gnat1drv): Make sure the object file's timestamp is set | |
3473 | to a later time than the ali file one. | |
3474 | ||
9534ab17 AC |
3475 | 2011-08-04 Yannick Moy <moy@adacore.com> |
3476 | ||
3477 | * einfo.adb, einfo.ads (Formal_Proof_On): new flag set on subprogram | |
3478 | entities whose body contains an Annotate pragma which forces formal | |
3479 | proof on this body. | |
3480 | * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, | |
3481 | sem_ch6.adb, sem_ch9.adb, sem_res.adb: Adapt call to | |
3482 | Mark_Non_ALFA_Subprogram to pass in a message and node. | |
3483 | * sem_prag.adb (Analyze_Pragma): add treatment of pragma Annotate | |
3484 | (Forma_Proof, On) which sets the flag Formal_Proof_On in the | |
3485 | surrounding subprogram. | |
3486 | * sem_util.adb, sem_util.ads (Mark_Non_ALFA_Subprogram, | |
3487 | Mark_Non_ALFA_Subprogram_Unconditional): if the subprogram being marked | |
3488 | as not in ALFA is annotated with Formal_Proof being On, then an error | |
3489 | is issued based on the additional parameters for message and node. | |
3490 | * snames.ads-tmpl (Name_Formal_Proof): new name for annotation. | |
3491 | * gcc-interface/Make-lang.in: Update dependencies. | |
3492 | ||
3493 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
3494 | ||
3495 | * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Do not generate | |
3496 | Finalize_Address when CodePeer is enabled. | |
3497 | ||
3498 | 2011-08-04 Pascal Obry <obry@adacore.com> | |
3499 | ||
3500 | * adaint.c (__gnat_tmp_name): Use _tempnam() instead of tempnam() as | |
3501 | the latter returns a pointer to a static buffer which is deallocated | |
3502 | at the end of the routine. | |
3503 | ||
5c0e97dd AC |
3504 | 2011-08-04 Yannick Moy <moy@adacore.com> |
3505 | ||
3506 | * sem_ch3.adb (Array_Type_Declaration): move test for type in ALFA | |
3507 | after index creation; mark unconstrained base array type generated as | |
3508 | being in/not in ALFA as well | |
3509 | (Make_Index): mark subtype created as in/not in ALFA | |
3510 | * sem_ch5.adb (Analyze_Iteration_Scheme): mark entity for iterating | |
3511 | over a loop as in/not in ALFA, depending on its type and form of loop | |
3512 | iteration. | |
3513 | ||
3514 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
3515 | ||
3516 | * exp_ch7.adb (Build_Object_Declarations): Initialize flag Abort | |
3517 | directly to False on .NET and JVM. | |
3518 | ||
7a93c64b YM |
3519 | 2011-08-04 Yannick Moy <moy@adacore.com> |
3520 | ||
3521 | * sem_ch3.adb (Constrain_Enumeration, Constrain_Integer): remove | |
3522 | constraint that subtype must come from source code to be in ALFA, so | |
3523 | that anonymous subtypes can be in ALFA too. | |
3524 | ||
e9a1ed9b YM |
3525 | 2011-08-04 Yannick Moy <moy@adacore.com> |
3526 | ||
3527 | * sem_ch3.adb (Analyze_Object_Declaration): remove obsolete addition of | |
3528 | reference for ALFA mode. | |
3529 | * lib-xref-alfa.adb, lib-xref.ads (Traverse_Compilation_Unit): make | |
3530 | procedure public so as to use it from formal verification back-end. | |
3531 | ||
8e293fbd AC |
3532 | 2011-08-04 Jerome Lambourg <lambourg@adacore.com> |
3533 | ||
3534 | * g-comlin.adb (For_Each_Simple_Switch.Is_In_Config): Remove the | |
3535 | invalid checks of the Parameter, making Remove_Switch not working | |
3536 | correctly. | |
3537 | ||
3538 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
3539 | ||
3540 | * targparm.ads: Update header: no run-time exception is needed on this | |
3541 | file. | |
3542 | ||
3543 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
3544 | ||
3545 | * a-fihema.adb: Use System.IO instead of GNAT.IO | |
3546 | ||
3547 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3548 | ||
3549 | * sem_ch3.adb (Access_Definition): Anonymous access to subprogram types | |
3550 | are forbidden in Compiler_Unit mode. | |
3551 | ||
cfae2bed AC |
3552 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
3553 | ||
3554 | * sem_util.adb: Minor reformatting. | |
3555 | ||
3556 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
3557 | ||
3558 | * bindgen.adb (Gen_Finalize_Library_Ada): Update the import string for | |
3559 | library-level finalizers. | |
3560 | (Gen_Finalize_Library_C): Update the import string for library-level | |
3561 | finalizers. | |
3562 | (Gen_Finalize_Library_Defs_C): Update the definition name of a | |
3563 | library-level finalizer. | |
3564 | * exp_ch7.adb: Remove with and use clauses for Stringt. | |
3565 | (Create_Finalizer): Remove local variables Conv_Name, Prag_Decl, | |
3566 | Spec_Decl. Add local variable Body_Id. The names of library-level | |
3567 | finalizers are now manually fully qualified and are no longer external. | |
3568 | A single name is now capable of servicing .NET, JVM and non-VM targets. | |
3569 | Pragma Export is no longer required to provide visibility for the name. | |
3570 | (Create_Finalizer_String): Removed. | |
3571 | (New_Finalizer_Name): New routine which mimics New_..._Name. | |
3572 | ||
01f0729a AC |
3573 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> |
3574 | ||
3575 | * sem_elab.adb (Check_Internal_Call_Continue): Change the type of the | |
3576 | elaboration counter to Standard_Short_Integer. | |
3577 | * sem_util.adb (Build_Elaboration_Entity): Likewise. | |
3578 | * bindgen.adb (Gen_Elab_Externals_Ada): Adjust to above change. | |
3579 | (Gen_Elab_Externals_C): Likewise. | |
3580 | ||
3581 | 2011-08-04 Ed Falis <falis@adacore.com> | |
3582 | ||
3583 | * system-vxworks-arm.ads, system-vxworks-sparcv9.ads, | |
3584 | system-vxworks-ppc.ads, system-vxworks-m68k.ads, | |
3585 | system-vxworks-mips.ads, system-vxworks-x86.ads | |
3586 | (Always_Compatible_Rep): set to False for all VxWorks targets. | |
3587 | ||
2c1b72d7 AC |
3588 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
3589 | ||
3590 | * par_sco.adb, prj-proc.adb, make.adb, bindgen.adb, prj.adb, prj.ads, | |
3591 | makeutl.adb, makeutl.ads, prj-nmsc.adb, exp_ch5.adb, exp_ch12.adb, | |
3592 | exp_ch7.ads, exp_util.ads, sem_util.ads, g-comlin.ads, exp_ch6.adb, | |
3593 | exp_ch6.ads, lib-xref.ads, exp_ch7.adb, exp_util.adb, exp_dist.adb, | |
3594 | exp_strm.adb, gnatcmd.adb, freeze.adb, g-comlin.adb, lib-xref-alfa.adb, | |
3595 | sem_attr.adb, sem_prag.adb, sem_util.adb, sem_elab.adb, sem_ch8.adb, | |
3596 | sem_ch11.adb, sem_eval.adb, sem_ch13.adb, sem_disp.adb, a-fihema.adb: | |
3597 | Minor reformatting and code reorganization. | |
3598 | ||
3599 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
3600 | ||
3601 | * projects.texi: Added doc for aggregate projects. | |
3602 | ||
824e9320 AC |
3603 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3604 | ||
3605 | * prj-proc.adb, prj-nmsc.adb, prj-env.adb (Process_Declarative_Items): | |
3606 | Add support for overriding the Project_Path in aggregate projects. | |
3607 | ||
3608 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
3609 | ||
3610 | * a-cofove.ads: Minor reformatting. | |
3611 | ||
3612 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
3613 | ||
3614 | * exp_ch7.adb (Build_Adjust_Or_Finalize_Statements): Update the comment | |
3615 | on the generated code. | |
3616 | (Build_Finalize_Statements): Update the comment on the generated code. | |
3617 | (Build_Initialize_Statements): Update the comment on the generated code. | |
3618 | (Build_Object_Declarations): Add local variable Result. The object | |
3619 | declarations are now built in sequence. | |
3620 | * rtsfind.ads: Add RE_Exception_Occurrence_Access to tables RE_Id and | |
3621 | RE_Unit_Table. | |
3622 | ||
3623 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
3624 | ||
3625 | * checks.adb, alfa.adb, alfa.ads: Minor reformatting. | |
3626 | ||
3627 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> | |
3628 | ||
3629 | * einfo.ads (Elaboration_Entity): Document new definition and use. | |
3630 | (Elaboration_Entity_Required): Adjust to above change. | |
3631 | * exp_attr.adb (Expand_N_Attribute_Reference): Likewise. | |
3632 | * exp_ch12.adb: And with and use for Snames. | |
3633 | (Expand_N_Generic_Instantiation): Test 'Elaborated attribute. | |
3634 | * exp_util.adb (Set_Elaboration_Flag): Likewise. | |
3635 | * sem_attr.adb (Analyze_Attribute) <Check_Library_Unit>: Delete. | |
3636 | <Check_Unit_Name>: Deal with N_Expanded_Name. | |
3637 | <Attribute_Elaborated>: Extend to all unit names. | |
3638 | * sem_elab.adb: And with and use for Uintp. | |
3639 | (Check_Internal_Call_Continue): Adjust to Elaboration_Entity change. | |
3640 | * sem_util.ads (Build_Elaboration_Entity): Adjust comment. | |
3641 | * sem_util.adb (Build_Elaboration_Entity): Change type to Integer. | |
3642 | * bindgen.adb (Gen_Elab_Externals_Ada): New local subprogram taken | |
3643 | from Gen_Adainit_Ada. | |
3644 | (Gen_Elab_Externals_C): Likewise, but taken from Gen_Adainit_C. | |
3645 | (Gen_Adafinal_Ada): Remove redundant test. In the non-main program | |
3646 | case, do not call System.Standard_Library.Adafinal; instead call | |
3647 | finalize_library if needed. | |
3648 | (Gen_Adafinal_C): Likewise. | |
3649 | (Gen_Adainit_Ada): Do not set SSL.Finalize_Library_Objects in the | |
3650 | non-main program case. | |
3651 | (Gen_Adainit_C): Generate a couple of external declarations here. | |
3652 | In the main program case, set SSL.Finalize_Library_Objects. | |
3653 | (Gen_Elab_Calls_Ada): Adjust to Elaboration_Entity change. | |
3654 | (Gen_Elab_Calls_C): Likewise. | |
3655 | (Gen_Finalize_Library_Ada): Likewise. Skip SAL interface units. | |
3656 | (Gen_Finalize_Library_C): Likewise. Generate a full function. | |
3657 | (Gen_Main_C): Put back call to Ada_Final and don't finalize library | |
3658 | objects here. | |
3659 | (Gen_Output_File_Ada): Generate pragma Linker_Destructor for Ada_Final | |
3660 | if -a is specified. Call Gen_Elab_Externals_Ada. Move around call to | |
3661 | Gen_Adafinal_Ada. | |
3662 | (Gen_Output_File_C): Generate __attribute__((destructor)) for Ada_Final | |
3663 | if -a is specified. Call Gen_Elab_Externals_C. Remove useless couple | |
2c7f9cc0 | 3664 | of external declarations. Call Gen_Finalize_Library_C. |
824e9320 | 3665 | |
316d9d4f EB |
3666 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3667 | ||
3668 | * prj.adb, prj.ads, makeutl.adb, makeutl.ads (Complete_Mains, | |
3669 | Compute_Compilation_Phases): new subprogram. | |
3670 | (Builder_Data, Builder_Project_Tree_Data): new subprogram and type | |
3671 | The number of mains as well as the various compilation phases that | |
3672 | need to be run are now project tree specific, since various | |
3673 | aggregated trees might have different requirements. In particular, | |
3674 | they do not all require bind or link phases. | |
3675 | ||
9434c32e EB |
3676 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3677 | ||
3678 | * prj.adb, prj.ads, makeutl.adb, makeutl.ads, prj-env.adb | |
3679 | (Project_Tree_Appdata): New type. | |
3680 | It is now possible to associate application-specific data to a project | |
3681 | tree. In particular, this is used in the gprbuild builder to avoid a | |
3682 | number of global tables and htables, especially now that there can be | |
3683 | several project trees loaded at once because of aggregate projects. | |
3684 | (Debug_Name): new procedure. | |
3685 | * projects.texi: Clarify syntax of "**" for Source_Dirs | |
3686 | ||
41ba34db EB |
3687 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
3688 | ||
3689 | * prj.ads, makeutl.adb, makeutl.ads (Queue.Insert): now also inserts | |
3690 | the "roots" for a main. | |
3691 | (Fill_From_Project): add support for aggregate projects. Main units | |
3692 | in aggregated projects are now automatically added in the list of | |
3693 | files to build (although this fails later on in gprbuild, because | |
3694 | these files are not using the root proejct tree, so this needs | |
3695 | further cleanup) | |
3696 | * gcc-interface/Make-lang.in: Update dependencies. | |
3697 | ||
fccd42a9 AC |
3698 | 2011-08-03 Yannick Moy <moy@adacore.com> |
3699 | ||
3700 | * sem_ch4.adb (Analyze_Conditional_Expression): only allow boolean | |
3701 | conditional expression in ALFA. | |
3702 | * sem_res.adb (Resolve_Conditional_Expression): mark non-boolean | |
3703 | expressions as not in ALFA. | |
3704 | ||
3705 | 2011-08-03 Robert Dewar <dewar@adacore.com> | |
3706 | ||
3707 | * a-cofove.adb: Minor reformatting. | |
3708 | ||
3709 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
3710 | ||
3711 | * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads | |
3712 | (Insert_Project_Sources, Insert_withed_Sources_For): moved from the | |
3713 | gprbuild sources. | |
3714 | These packages are more logically placed in the Queue package, since | |
3715 | they manipulate the queue. It is also likely that they can be adapted | |
3716 | for gnatmake, thus sharing more code. | |
3717 | (Finish_Program, Fail_Program): moved from the gprbuild sources, so | |
3718 | that we could move the above. | |
3719 | ||
3720 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
3721 | ||
3722 | * errutil.adb (Finalize): clean up the list of error messages on exit. | |
3723 | Calling this subprogram multiple times will no longer show duplicate | |
3724 | error messages on stderr. | |
3725 | ||
3726 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
3727 | ||
3728 | * g-comlin.adb, g-comlin.ads (Set_Command_Line): ignore the parameter | |
3729 | Getopt_Switches when we have already define a command line | |
3730 | configuration. | |
3731 | ||
5e8c8e44 YM |
3732 | 2011-08-03 Yannick Moy <moy@adacore.com> |
3733 | ||
3734 | * sem_ch11.adb (Analyze_Raise_xxx_Error): do not mark such nodes as not | |
3735 | in ALFA. Instead, they are considered as assertions to prove. | |
3736 | * sem_ch4.adb (Analyze_Conditional_Expression): do not always mark such | |
3737 | nodes as not in ALFA. Instead, include conditional expressions in ALFA | |
3738 | if they have no ELSE part, or if they occur in pre- and postconditions, | |
3739 | where the Condition cannot have side-effects in ALFA | |
3740 | (Analyze_Membership_Op): do not mark such nodes as not in ALFA | |
3741 | (Analyze_Type_Conversion): do not always mark such nodes as not in ALFA. | |
3742 | Instead, include type conversion between scalar types in ALFA. | |
3743 | * sem_ch6.adb (Process_Formals): correctly mark a parameter in ALFA | |
3744 | if-and-only-if its type is in ALFA. | |
3745 | ||
5ffe0bab AC |
3746 | 2011-08-03 Thomas Quinot <quinot@adacore.com> |
3747 | ||
3748 | * scos.adb, get_scos.adb, put_scos.adb | |
3749 | New code letter for decisions: G (entry guard) | |
3750 | * par_sco.adb | |
3751 | (Traverse_Subprogram_Body): Rename to... | |
3752 | (Traverse_Subprogram_Or_Task_Body): New subrpogram. | |
3753 | (Traverse_Protected_Body): New subprogram | |
3754 | (Traverse_Declarations_Or_Statements): Add traversal of task bodies, | |
3755 | protected bodies and entry bodies. | |
3756 | ||
3757 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
3758 | ||
3759 | * einfo.adb, einfo.ads (Is_Postcondition_Proc): new flag for procedure | |
3760 | entities with get/set subprograms, which is set on procedure entities | |
3761 | generated by the compiler for a postcondition. | |
3762 | * sem_ch6.adb (Process_PPCs): set new flag on postcondition procedures | |
3763 | * alfa.adb, alfa.ads (Get_Entity_For_Decl): new function returning the | |
3764 | entity for a declaration | |
3765 | (Get_Unique_Entity_For_Decl): new function returning an entity which | |
3766 | represents a declaration, so that matching spec and body have the same | |
3767 | entity. | |
3768 | ||
3769 | 2011-08-03 Robert Dewar <dewar@adacore.com> | |
3770 | ||
3771 | * a-except-2005.adb, a-cfhama.adb, a-cfhase.adb, a-cfhase.ads, | |
3772 | a-cforma.adb, a-cforse.ads, a-cforse.adb: Minor reformatting | |
3773 | ||
3774 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
3775 | ||
3776 | * lib-xref-alfa.adb (Detect_And_Add_ALFA_Scope): make the subprogram | |
3777 | library-level because retriction No_Implicit_Dynamic_Code in the | |
3778 | front-end prevents its definition as a local subprogram | |
3779 | (Traverse_Compilation_Unit): extract new procedure from Add_ALFA_File, | |
3780 | for reuse in other contexts | |
3781 | (Traverse_Declarations_Or_Statements, | |
3782 | Traverse_Handled_Statement_Sequence, Traverse_Package_Body, | |
3783 | Traverse_Package_Declaration, Traverse_Subprogram_Body): make all these | |
3784 | procedures take a callback parameter to be called on all declarations | |
3785 | * lib-xref.ads | |
3786 | (Traverse_All_Compilation_Units): new generic function to traverse a | |
3787 | compilation unit and call a callback parameter on all declarations | |
3788 | ||
f9ad6b62 AC |
3789 | 2011-08-03 Javier Miranda <miranda@adacore.com> |
3790 | ||
3791 | * sem_prag.adb (Process_Interface_Name): Allow duplicated export names | |
3792 | in Java since they are always enclosed in a namespace that | |
3793 | differentiates them, and overloaded entities are supported by the VM. | |
3794 | ||
3795 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
3796 | ||
3797 | * checks.adb (Determine_Range): If a computed bound of an operation is | |
3798 | outside the range of the base type of the expression, and overflow | |
3799 | checks are enabled, the result is unknown and cannot be used for any | |
3800 | subsequent constant folding. | |
3801 | * sem_eval.adb (Compile_Time_Compare): if the bounds of one operand are | |
3802 | unknown, so is the result of the comparison. | |
3803 | ||
3804 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> | |
3805 | ||
3806 | * a-except-2005.adb (Raise_From_Controlled_Operation): Add new formal | |
3807 | From_Abort. When finalization was triggered by an abort, propagate | |
3808 | Standard'Abort_Signal rather than Program_Error. | |
3809 | * a-except-2005.ads (Raise_From_Controlled_Operation): Add new formal | |
3810 | From_Abort. | |
3811 | * a-except.adb (Raise_From_Controlled_Operation): Add new formal | |
3812 | From_Abort. When finalization was triggered by an abort, propagate | |
3813 | Standard'Abort_Signal rather than Program_Error. | |
3814 | * a-except.ads:(Raise_From_Controlled_Operation): Add new formal | |
3815 | From_Abort. | |
3816 | * exp_ch7.adb:(Build_Adjust_Or_Finalize_Statements): New local variable | |
3817 | Abort_Id. Update the calls to Build_Object_Declarations and | |
3818 | Build_Raise_Statement to include Abort_Id. | |
3819 | (Build_Adjust_Statements): New local variable Abort_Id. Update the | |
3820 | calls to Build_Object_Declarations and Build_Raise_Statement to include | |
3821 | Abort_Id. | |
3822 | (Build_Finalize_Statements): New local variable Abort_Id. Update the | |
3823 | calls to Build_Object_Declarations and Build_Raise_Statement to include | |
3824 | Abort_Id. | |
3825 | (Build_Components): Create an entity for Abort_Id when exceptions are | |
3826 | allowed on the target. | |
3827 | (Build_Finalizer): New local variable Abort_Id. | |
3828 | (Build_Initialize_Statements): New local variable Abort_Id. Update the | |
3829 | calls to Build_Object_Declarations and Build_Raise_Statement to include | |
3830 | Abort_Id. | |
3831 | (Build_Object_Declarations): Add new formal Abort_Id. Create the | |
3832 | declaration of flag Abort_Id to preserve the original abort status | |
3833 | before finalization code is executed. | |
3834 | (Build_Raise_Statement): Add new formal Abort_Id. Pass Abort_Id to | |
3835 | runtime routine Raise_From_Controlled_Operation. | |
3836 | (Create_Finalizer): Update the call to Build_Raise_Statement to include | |
3837 | Abort_Id. Update the call to Build_Object_Declarations to include | |
3838 | Abort_Id. Update the layout of the finalizer body. | |
3839 | (Make_Handler_For_Ctrl_Operation): Add an actual for From_Abort. | |
3840 | (Process_Transient_Objects): New local variable Abort_Id. Remove the | |
3841 | clunky code to create all flags and objects related to | |
3842 | exception propagation and replace it with a call to | |
3843 | Build_Object_Declarations. Update the call to Build_Raise_Statement to | |
3844 | include Abort_Id. | |
3845 | * exp_ch7.ads (Build_Object_Declarations): Moved from body to spec. | |
3846 | Add new formal Abort_Id and associated comment on its use. | |
3847 | (Build_Raise_Statement): Add new formal Abort_Id and associated comment | |
3848 | on its use. | |
3849 | * exp_intr.adb (Expand_Unc_Deallocation): New local variable Abort_Id. | |
3850 | Remove the clunky code to create all flags and objects related to | |
3851 | exception propagation and replace it with a call to | |
3852 | Build_Object_Declarations. Update the call to Build_Raise_Statement. | |
3853 | ||
3854 | 2011-08-03 Eric Botcazou <ebotcazou@adacore.com> | |
3855 | ||
3856 | * s-tassta.adb: Fix minor typos. | |
3857 | ||
3858 | 2011-08-03 Robert Dewar <dewar@adacore.com> | |
3859 | ||
3860 | * rtsfind.ads, makeutl.ads, prj.ads, prj.adb, make.adb, | |
3861 | lib-writ.adb, makeutl.adb, s-soflin.ads, clean.adb: Minor reformatting. | |
3862 | ||
1cdfa9be AC |
3863 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> |
3864 | ||
3865 | * exp_ch7.adb (Create_Finalizer): Treat freeze nodes in similar fashion | |
3866 | to packages. This ensures that the finalizer body will not end up | |
3867 | inside the freeze node. | |
3868 | (Process_Declarations): Add code to detect whether a freeze node has a | |
3869 | nested finalization collection. | |
3870 | ||
3871 | 2011-08-03 Pascal Obry <obry@adacore.com> | |
3872 | ||
3873 | * g-awk.adb, g-awk.ads: Make GNAT.AWK API compatible with Ada 2005. | |
3874 | (Current_Session): Return a not null access to Session_Type. | |
3875 | (Default_Session): Likewise. | |
3876 | ||
243cae0a AC |
3877 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
3878 | ||
3879 | * a-cfdlli.adb, bindgen.adb, exp_ch4.adb, exp_ch13.adb, sem_warn.adb, | |
3880 | exp_ch3.adb, exp_ch3.ads: Minor reformatting. | |
3881 | ||
3882 | 2011-08-03 Pascal Obry <obry@adacore.com> | |
3883 | ||
3884 | * g-awk.ads: Minor comment fix. | |
3885 | ||
3886 | 2011-08-03 Sergey Rybin <rybin@adacore.com> | |
3887 | ||
3888 | * tree_io.ads (ASIS_Version_Number): Update because of the changes in | |
3889 | the tree structure related to discriminant constraints. | |
3890 | Original_Discriminant cannot be used any more for computing the | |
3891 | defining name for the reference to a discriminant. | |
3892 | ||
3893 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
3894 | ||
3895 | * sem_disp.adb (Is_Tag_Indeterminate): If the return type of the | |
3896 | function is not visibly tagged, this is not a dispatching call and | |
3897 | therfore is not Tag_Indeterminate, even if the function is marked as | |
3898 | dispatching on result. | |
3899 | ||
f553e7bc AC |
3900 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> |
3901 | ||
3902 | * exp_ch13.adb: Add with and use clauses for Restrict and Rident. | |
3903 | (Expand_N_Free_Statement): Add a guard to protect against run-times | |
3904 | which do not support controlled types. | |
3905 | * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Add a guard to protect | |
3906 | against run-times which do not support controlled types. | |
3907 | * exp_ch4.adb (Complete_Controlled_Allocation): Add a guard to protect | |
3908 | against run-times which do not support controlled types. | |
3909 | * exp_ch7.adb (Build_Finalization_Collection): Add a guard to protect | |
3910 | against run-times which do not support controlled types. | |
3911 | * exp_util.adb (Needs_Finalization): Code reformatting. Add a guard to | |
3912 | protect against run-times which do not support controlled types. | |
3913 | ||
3914 | 2011-08-03 Eric Botcazou <ebotcazou@adacore.com> | |
3915 | ||
3916 | * exp_intr.adb: Put back with and use clauses for Exp_Ch11. | |
3917 | (Expand_Unc_Deallocation): Expand the AT_END handler at the very end. | |
3918 | ||
e4982b64 AC |
3919 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> |
3920 | ||
3921 | * exp_ch5.adb (Expand_Iterator_Loop): indicate that the cursor is | |
3922 | modified in the source, to prevent spurious warnings when compiling | |
3923 | with -gnatg. | |
3924 | ||
3925 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
3926 | ||
3927 | * a-except-2005.adb: Minor reformatting. | |
3928 | ||
3929 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
3930 | ||
3931 | * sem_warn.adb (Check_One_Unit): if the only mention of a withed unit | |
3932 | is a renaming declaration in the private part of a package, do not emit | |
3933 | a warning that the with_clause could be moved because the renaming may | |
3934 | be used in the body or in a child unit. | |
3935 | ||
3936 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> | |
3937 | ||
3938 | * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): | |
3939 | Propagate the Comes_From_Source attribute from the original return | |
3940 | object to the renaming. | |
3941 | ||
3942 | 2011-08-03 Jose Ruiz <ruiz@adacore.com> | |
3943 | ||
3944 | * exp_ch7.adb (Build_Raise_Statement): Do not call | |
3945 | Raise_From_Controlled_Operation when this routine is not present in | |
3946 | the run-time library. | |
3947 | (Cleanup_Protected_Object, Cleanup_Task): For restricted run-time | |
3948 | libraries (Ravenscar), tasks are non-terminating, and protected objects | |
3949 | and tasks can only appear at library level, so we do not want | |
3950 | finalization of protected objects nor tasks. | |
3951 | * exp_intr.adb: Minor clarification in comment. | |
3952 | bindgen.adb (Gen_Adainit_Ada, Gen_Main_C, Gen_Output_File_Ada, | |
3953 | Gen_Output_File_C): Remove references to finalization of library-level | |
3954 | objects when using restricted run-time libraries. | |
3955 | ||
3956 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
3957 | ||
3958 | * sem_ch3.adb (Build_Discriminant_Constraints): Set | |
3959 | Original_Discriminant only if the parent type is a generic formal. | |
3960 | ||
deb8dacc HK |
3961 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> |
3962 | ||
3963 | * exp_ch13.adb: Add with and use clause for Targparm; | |
3964 | (Expand_N_Free_Statement): Prevent the generation of a custom | |
3965 | Deallocate on .NET/JVM targets since this requires pools and address | |
3966 | arithmetic. | |
3967 | * exp_ch4.adb (Expand_Allocator_Expression): When compiling for | |
3968 | .NET/JVM targets, attach the newly allocated object to the access | |
3969 | type's finalization collection. Do not generate a call to | |
3970 | Set_Finalize_Address_Ptr on .NET/JVM because this routine does not | |
3971 | exist in the runtime. | |
3972 | (Expand_N_Allocator): When compiling for .NET/JVM targets, do not | |
3973 | create a custom Allocate for object that do not require initialization. | |
3974 | Attach a newly allocated object to the access type's finalization | |
3975 | collection on .NET/JVM. | |
3976 | * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add special processing for | |
3977 | assignment of controlled types on .NET/JVM. The two hidden pointers | |
3978 | Prev and Next and stored and later restored after the assignment takes | |
3979 | place. | |
3980 | * exp_ch6.adb (Expand_Call): Add local constant Curr_S. Add specialized | |
3981 | kludge for .NET/JVM to recognize a particular piece of code coming from | |
3982 | Heap_Management and change the call to Finalize into Deep_Finalize. | |
3983 | * exp_ch7.adb (Build_Finalization_Collection): Allow the creation of | |
3984 | finalization collections on .NET/JVM only for types derived from | |
3985 | Controlled. Separate the association of storage pools with a collection | |
3986 | and only allow it on non-.NET/JVM targets. | |
3987 | (Make_Attach_Call): New routine. | |
3988 | (Make_Detach_Call): New routine. | |
3989 | (Process_Object_Declarations): Suppress the generation of | |
3990 | build-in-place return object clean up code on .NET/JVM since it uses | |
3991 | pools. | |
3992 | * exp_ch7.ads (Make_Attach_Call): New routine. | |
3993 | (Make_Detach_Call): New routine. | |
3994 | * exp_intr.adb Add with and use clause for Targparm. | |
3995 | (Expand_Unc_Deallocation): Detach a controlled object from a collection | |
3996 | on .NET/JVM targets. | |
3997 | * rtsfind.ads: Add entries RE_Attach, RE_Detach and | |
3998 | RE_Root_Controlled_Ptr to tables RE_Id and RE_Unit_Table. | |
3999 | * snames.ads-tmpl: Add name Name_Prev. Move Name_Prev to the special | |
4000 | names used in finalization. | |
4001 | ||
4002 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> | |
4003 | ||
4004 | * a-fihema.adb: Add with and use clauses for System.Soft_Links. | |
4005 | (Attach, Detach): Lock the current task when chaining an object onto a | |
4006 | collection. | |
4007 | ||
df3e68b1 HK |
4008 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> |
4009 | ||
4010 | * a-except.adb, a-except-2005.adb (Raise_From_Controlled_Operation): | |
4011 | Rewritten to create the message strings when the exception is not | |
4012 | raised by an abort during finalization. | |
4013 | * a-except.ads, a-except-2005.ads: Add pragma Export for procedure | |
4014 | Raise_From_Controlled_Operation and update its associated comment. | |
4015 | * a-fihema.ads, a-fihema.adb: New GNAT unit. | |
4016 | Ada.Finalization.Heap_Management provides key functionality | |
4017 | associated with controlled objects on the heap, their creation, | |
4018 | finalization and reclamation. Type Finalization_Collection is | |
4019 | effectively a wrapper which sits ontop of a storage pool and performs | |
4020 | all necessary bookkeeping for all the objects it contains. Each | |
4021 | access-to-controlled or access-to-class-wide type receives a collection | |
4022 | as part of its expansion. The compiler generates buffer code and | |
4023 | invokes Allocate / Deallocate to create and destroy allocated | |
4024 | controlled objects. | |
4025 | * a-finali.adb ("="): Removed. | |
4026 | * a-finali.ads ("="): Removed. Controlled types no longer carry hidden | |
4027 | fields Prev and Next. | |
4028 | * ali.adb (Scan_ALI): Add parsing code to process PF / Has_Finalizer. | |
4029 | A library unit with at least one controlled object on the library level | |
4030 | has a special finalizer which is invoked by the binder. To signal this, | |
4031 | ali files carry field PF. | |
4032 | * ali.ads: New field in type Unit_Record called Has_Finalizer. Add | |
4033 | associated comment on field usage. | |
4034 | * a-tags.adb (Get_RC_Offset): Removed. | |
4035 | (Needs_Finalization): New routine. | |
4036 | * a-tags.ads: Update the structure of the GNAT dispatch tables. | |
4037 | Dispatch tables now carry field Needs_Finalization which provides | |
4038 | runtime indication whether a type is controlled or has controlled | |
4039 | components or both. Remove field RC_Offset. | |
4040 | (Get_RC_Offset): Removed along with its associated pragma Export. | |
4041 | Since tagged types with controlled components no longer carry hidden | |
4042 | field _controller, the special mechanism to retrieve its location is no | |
4043 | longer needed. | |
4044 | (Needs_Finalization): New routine. | |
4045 | * atree.ads, atree.adb (Elist24): New routine. | |
4046 | (Set_Elist24): New routine. | |
4047 | * atree.h: Add a define clause for Elist24. | |
4048 | * bindgen.adb New library-level variable Lib_Final_Built. | |
4049 | (Gen_Adafinal_Ada): Reimplemented. Depending on the restrictions or the | |
4050 | presence of a VM target, the routine generates calls to the proper | |
4051 | library finalization routine. | |
4052 | (Gen_Adainit_Ada): Import Finalize_Library_Objects only on non-VM | |
4053 | targets. Set the correct library finalization routine depending on | |
4054 | whether the library has controlled objects or this is a VM compilation. | |
4055 | (Gen_Finalize_Library_Ada): New routine. This procedure generates calls | |
4056 | to library-level finalizers of compiled units in reverse order of | |
4057 | elaboration. It also produces exception management code and reraises a | |
4058 | potential exception after all units have been finalized. | |
4059 | (Gen_Finalize_Library_C): New routine. This procedure generates calls to | |
4060 | library-level finalizers of compiled units in reverse order of | |
4061 | elaboration. | |
4062 | (Gen_Finalize_Library_Defs_C): New routine. This procedure generates the | |
4063 | definitions of all library-level finalizers available to the compilation | |
4064 | (Gen_Main_Ada): Directly call Adafinal which now contails all target | |
4065 | dependent code. | |
4066 | (Gen_Main_C): Add new local constant Needs_Library_Finalization. Call | |
4067 | System.Standard_Library.Adafinal directly. If the library needs | |
4068 | finalization actions, create the sequence of finalization calls. | |
4069 | (Gen_Output_File_Ada): Alphabetize local variables and constants. | |
4070 | Generate a with clause for System.Soft_Links when compiling for a VM. | |
4071 | Remove the code which imports System.Standard_Library.Adafinal as | |
4072 | Do_Finalize. Generate the library finalization routine. | |
4073 | (Gen_Output_File_C): Add new local constant Needs_Library_Finalization. | |
4074 | If the library needs finalization actions, create all the definitions | |
4075 | of library- level finalizers. | |
4076 | (Has_Finalizer): New routine. Determines whether at least one compiled | |
4077 | unit has a library-level finalizer. | |
4078 | Add type Qualification_Mode. | |
4079 | (Set_Unit_Name): Add a formal which controls the replacement of a dot. | |
4080 | * einfo.adb: New usage of field 15 as Return_Flag. | |
4081 | Remove Finalization_Chain_Entity from the usages of field 19. | |
4082 | Remove Associated_Final_Chain from the usages of field 23. | |
4083 | New usage of field 23 as Associated_Collection. | |
4084 | New usage of field 24 as Finalizer. | |
4085 | New usage of flag 252 as Is_Processed_Transient. | |
4086 | (Associated_Final_Chain): Removed. | |
4087 | (Associated_Collection): New routine. | |
4088 | (Finalization_Chain_Entity): Removed. | |
4089 | (Finalizer): New routine. | |
4090 | (Is_Finalizer): New routine. | |
4091 | (Is_Processed_Transient): New routine. | |
4092 | (Return_Flag): New routine. | |
4093 | (Set_Associated_Final_Chain): Removed. | |
4094 | (Set_Associated_Collection): New routine. | |
4095 | (Set_Finalization_Chain_Entity): Removed. | |
4096 | (Set_Finalizer): New routine. | |
4097 | (Set_Is_Processed_Transient): New routine. | |
4098 | (Set_Return_Flag): New routine. | |
4099 | (Write_Entity_Flags): Include Is_Processed_Transient to the list of | |
4100 | displayed flags. | |
4101 | (Write_Field8_Name): Alphabetize the output. | |
4102 | (Write_Field11_Name): Alphabetize the output. | |
4103 | (Write_Field12_Name): Alphabetize the output. | |
4104 | (Write_Field13_Name): Alphabetize the output. | |
4105 | (Write_Field14_Name): Alphabetize the output. | |
4106 | (Write_Field15_Name): Alphabetize the output. | |
4107 | (Write_Field16_Name): Alphabetize the output. | |
4108 | (Write_Field17_Name): Alphabetize the output. | |
4109 | (Write_Field18_Name): Alphabetize the output. | |
4110 | (Write_Field19_Name): Alphabetize the output. Remove the output of | |
4111 | Finalization_Chain_Entity. | |
4112 | (Write_Field20_Name): Alphabetize the output. | |
4113 | (Write_Field21_Name): Alphabetize the output. | |
4114 | (Write_Field22_Name): Alphabetize the output. | |
4115 | (Write_Field23_Name): Alphabetize the output. Remove the output of | |
4116 | Associated_Final_Chain. Add output for Associated_Collection. | |
4117 | (Write_Field24_Name): Alphabetize the output. | |
4118 | (Write_Field25_Name): Add output for Finalizer. | |
4119 | (Write_Field26_Name): Alphabetize the output. | |
4120 | (Write_Field27_Name): Alphabetize the output. | |
4121 | (Write_Field28_Name): Alphabetize the output. | |
4122 | * einfo.ads: Add new field description for Associated_Collection and | |
4123 | its uses in nodes. | |
4124 | Remove Associated_Final_Chain and its uses in nodes. | |
4125 | Remove Finalization_Chain_Entity and its uses in nodes. | |
4126 | Add new field description for Finalizer and its uses in nodes. | |
4127 | Add new synthesized attribute Is_Finalizer. | |
4128 | Add new flag description for Is_Processed_Transient and its uses in | |
4129 | nodes. | |
4130 | Add new field description for Return_Flag and its uses in nodes. | |
4131 | (Associated_Final_Chain): Removed along with its pragma Inline. | |
4132 | (Associated_Collection): New routine and pragma Inline. | |
4133 | (Finalization_Chain_Entity): Removed along with its pragma Inline. | |
4134 | (Finalizer): New routine and pragma Inline. | |
4135 | (Is_Finalizer): New routine and pragma Inline. | |
4136 | (Is_Processed_Transient): New routine and pragma Inline. | |
4137 | (Return_Flag): New routine and pragma Inline. | |
4138 | (Set_Associated_Final_Chain): Removed along with its pragma Inline. | |
4139 | (Set_Associated_Collection): New routine and pragma Inline. | |
4140 | (Set_Finalization_Chain_Entity): Removed along with its pragma Inline. | |
4141 | (Set_Finalizer): New routine and pragma Inline. | |
4142 | (Set_Is_Processed_Transient): New routine and pragma Inline. | |
4143 | (Set_Return_Flag): New routine and pragma Inline. | |
4144 | * exp_aggr.adb: Alphabetize subprograms. | |
4145 | (Build_Array_Aggr_Code): Remove formal Flist and its associated comment. | |
4146 | (Build_Record_Aggr_Code): Remove formals Flist and Obj along with their | |
4147 | associated comments. Remove local variables External_Final_List and | |
4148 | Attach. | |
4149 | Rename Ctrl_Stuff_Done to Finalization_Done. Rename local variable A to | |
4150 | Ancestor. Remove the retrieval of finalization lists. Update the call to | |
4151 | Make_Adjust_Call. | |
4152 | (Convert_Aggr_In_Allocator): Remove the retrieval of finalization | |
4153 | lists. Update the call to Late_Expansion. | |
4154 | (Convert_Aggr_In_Assignment): Update the call to Late_Expansion. | |
4155 | (Convert_Aggr_In_Object_Decl): Update the call to Late_Expansion. | |
4156 | (Gen_Assign): Remove the retrieval of the finalization list used to | |
4157 | build the assignment. Update the calls to Make_Init_Call and | |
4158 | Make_Adjust_Call. | |
4159 | (Gen_Ctrl_Actions_For_Aggr): Renamed to Generate_Finalization_Actions. | |
4160 | Remove the mechanism to determine attachment levels and finalization | |
4161 | list retrieval. Remove the processing for coextensions. | |
4162 | (Init_Controller): Removed. Controllers no longer exist. | |
4163 | (Late_Expansion): Remove formals Flist and Obj along with their | |
4164 | associated comments. Update the calls to Build_Record_Aggr_Code and | |
4165 | Build_Array_Aggr_Code. | |
4166 | * exp_ch13.adb (Expand_N_Free_Statement): New routine. | |
4167 | (Expand_N_Freeze_Entity): Add special processing for finalizers which | |
4168 | appear in entry bodies, protected subprograms and task bodies. | |
4169 | * exp_ch13.ads (Expand_N_Free_Statement): New routine. | |
4170 | * exp_ch3.adb (Add_Final_Chain): Removed. | |
4171 | (Build_Array_Init_Proc): Alphabetize local variables. | |
4172 | (Build_Assignment): Alphabetize local variables. Update the call to | |
4173 | Maked_Adjust_Call. | |
4174 | (Build_Class_Wide_Master): Rename local variables to better reflect | |
4175 | their role. | |
4176 | (Build_Discriminant_Assignments): Code reformatting. | |
4177 | (Build_Init_Call_Thru): Code reformatting. | |
4178 | (Build_Init_Procedure): Code reformatting. Generate a special version | |
4179 | of Deep_Finalize which is capable of finalizing all initialized | |
4180 | components and ignore the rest. | |
4181 | (Build_Init_Statements): Rename local variables to better reflect their | |
4182 | role. | |
4183 | Reimplement the mechanism to include the creation and update of an index | |
4184 | variable called a "counter". It is used as a bookmark for tracing | |
4185 | initialized and non-initialized components. | |
4186 | (Build_Initialization_Call): Remove local variable Controller_Typ. | |
4187 | Alphabetize all local variables. Remove the initialization of the | |
4188 | record controller and update the call to Make_Init_Call. | |
4189 | (Build_Record_Init_Proc): Rename formal Pe to Rec_Ent. | |
4190 | New local variable Counter. | |
4191 | (Constrain_Array): Alphabetize. | |
4192 | (Expand_Freeze_Array_Type): Create a collection instead of a | |
4193 | finalization list. | |
4194 | (Expand_Freeze_Class_Wide_Type): New routine. Creates TSS primitive | |
4195 | Finalize_Address which is used in conjunction with allocated controlled | |
4196 | objects. | |
4197 | (Expand_N_Object_Declaration): Remove the creation of a finalization | |
4198 | list for anonymous access types. Update the calls to Make_Init_Call and | |
4199 | Make_Adjust_Call. | |
4200 | (Expand_Freeze_Record_Type): Remove local variable Flist. Remove the | |
4201 | retrieval of finalization lists. Remove the expansion of the record | |
4202 | controller. Create TSS primitive Finalize_Address used in conjunction | |
4203 | with controlled objects on the heap. Create finalization collections | |
4204 | for access-to-controlled record components. | |
4205 | (Expand_Record_Controller): Removed. | |
4206 | (Freeze_Type): Remove the freezing of record controllers. Freezing of | |
4207 | class-wide types now requires additional processing. Create | |
4208 | finalization collections for access-to-controlled types. | |
4209 | (Increment_Counter): New routine. | |
4210 | (Make_Counter): New routine. | |
4211 | (Make_Eq_If): Remove the mention of Name_uController. | |
4212 | (Make_Predefined_Primitive_Specs): There is no longer need to skip | |
4213 | types coming from System.Finalization_Root. | |
4214 | (Predef_Deep_Spec): Reimplemented to reflect the new parameter profiles. | |
4215 | (Predefined_Primitive_Bodies): There is no longer need to skip types | |
4216 | coming from System.Finalization_Root. | |
4217 | (Stream_Operation_OK): Do not generate stream routines for | |
4218 | type Ada.Finalization.Heap_Management.Finalization_Collection. | |
4219 | * exp_ch3.ads: Alphabetize subprograms. | |
4220 | * exp_ch4.adb: Remove with and use clause for Sem_Ch8. | |
4221 | Add with and use clause for Lib. | |
4222 | (Complete_Coextension_Finalization): Removed. | |
4223 | (Complete_Controlled_Allocation): New routine. Create a finalization | |
4224 | collection for anonymous access-to-controlled types. Create a custom | |
4225 | Allocate which interfaces with the back end and the machinery in | |
4226 | Heap_Management. | |
4227 | (Expand_Allocator_Expression): Add necessary calls to | |
4228 | Complete_Controlled_Allocation. Remove the retrieval of finalization | |
4229 | lists. Update the calls to Make_Adjust_Call. Generate a call to | |
4230 | Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate | |
4231 | the associated collection. | |
4232 | (Expand_N_Allocator): Remove the processing for dynamic coextensions. | |
4233 | Code clean up. Remove the retrieval of finalization lists and | |
4234 | attachment levels. | |
4235 | Update the call to Make_Init_Call. Generate a call to | |
4236 | Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate | |
4237 | the associated collection. | |
4238 | (Get_Allocator_Final_List): Removed. Finalization lists are not | |
4239 | available. | |
4240 | (Suitable_Element): Remove the mention of Name_uController. | |
4241 | * exp_ch5.adb: Remove with and use clauses for Ttypes and Uintp. | |
4242 | (Make_Tag_Ctrl_Assignment): Rewritten to simply do a finalization of | |
4243 | the left hand side, carry out the assignment and adjust the left hand | |
4244 | side. | |
4245 | * exp_ch6.adb (Add_Final_List_Actual_To_Build_In_Place_Call): Removed. | |
4246 | (Add_Collection_Actual_To_Build_In_Place_Call): New routine. | |
4247 | (BIP_Formal_Suffix): Rename BIP_Final_List and BIPfinallist to | |
4248 | BIP_Collection and BIPcollection. | |
4249 | (Build_Heap_Allocator): New routine used to allocate the return object | |
4250 | of a build-in-place function onto a collection. | |
4251 | (Expand_Ctrl_Function_Call): Moved from Exp_Ch7. | |
4252 | (Expand_Call): Do not replace direct calls to Deep routines with their | |
4253 | aliases. | |
4254 | (Expand_N_Extended_Return_Statement): Give all variables shorter names | |
4255 | and update their occurrences. Add a special return flag to monitor the | |
4256 | [ab]normal execution of the function. The flag is set right before the | |
4257 | return statement. | |
4258 | Rewrite the mechanism used to allocate a build-in-place return object | |
4259 | on the heap or on a storage pool. | |
4260 | (Is_Direct_Deep_Call): New routine. | |
4261 | (Make_Build_In_Place_Call_In_Allocator): Add a collection to a | |
4262 | build-in-place function call instead of a final list. Build a call to | |
4263 | Set_Finalize_Address_Ptr to decorate the associated collection. | |
4264 | (Make_Build_In_Place_Call_In_Anonymous_Context): Create a temporary in | |
4265 | order to name the build-in-place function call's result for later | |
4266 | finalization. Add a collection to a build-in-place function call | |
4267 | instead of a final list. | |
4268 | (Make_Build_In_Place_Call_In_Assignment): Add a collection to a | |
4269 | build-in-place function call instead of a final list. Remove the code | |
4270 | which moves one final list and transforms it into the actual in a | |
4271 | nested build-in-place call. | |
4272 | (Make_Build_In_Place_Call_In_Object_Declaration): Add a collection to a | |
4273 | build-in-place function call instead of a final list. | |
4274 | (Move_Final_List): Removed. | |
4275 | (Needs_BIP_Collection): New routine. | |
4276 | (Needs_BIP_Final_List): Removed. | |
4277 | * exp_ch6.ads: Replace BIP_Final_List with BIP_Collection in | |
4278 | enumeration type BIP_Formal_Kind. | |
4279 | Update the related comment. | |
4280 | (Needs_BIP_Collection): New routine. | |
4281 | (Needs_BIP_Final_List): Removed. | |
4282 | * exp_ch7.adb: Add with and use clauses for Elists, Exp_Ch6, Stringt | |
4283 | and Ttypes. Remove with and use clauses for Sem_Type. Alphabetize the | |
4284 | majority of subprograms in this unit. Add Name_Finalize_Address to | |
4285 | array Name_Of and TSS_Finalize_Address to array Deep_Name_Of. | |
4286 | (Build_Adjust_Or_Finalize_Statements): Create the adjust or finalization | |
4287 | statements for an array type. | |
4288 | (Build_Adjust_Statements): Create the adjust statements for a record | |
4289 | type. | |
4290 | (Build_Cleanup_Statements): New routine. A procedure which given any | |
4291 | construct containing asynchronous calls, references to _master, or is a | |
4292 | task body, a task allocation or a protected body produces the necessary | |
4293 | runtime calls to clean up these constructs. | |
4294 | (Build_Exception_Handler): New routine. | |
4295 | (Build_Final_List): Removed. | |
4296 | (Build_Finalization_Collection): New routine. A core procedure which | |
4297 | creates a collection to service heap allocated controlled objects | |
4298 | associated with an access-to-controlled type. | |
4299 | (Build_Finalize_Statements): Create the finalization statements for a | |
4300 | record types. | |
4301 | (Build_Finalizer): New routine. A core procedure which given any | |
4302 | construct with declarations and/or statements detects all objects which | |
4303 | need any type of clean up (controlled objects, protected objects) and | |
4304 | generates all necessary code to clean up the said objects in the proper | |
4305 | order. | |
4306 | (Build_Finalizer_Call): New routine. | |
4307 | (Build_Initialize_Statements): Create the initialization statements for | |
4308 | an array type. The generated routine contains code to finalize partially | |
4309 | initialized arrays. | |
4310 | (Build_Object_Declarations): New routine. | |
4311 | (Build_Raise_Statement): New routine. | |
4312 | (Clean_Simple_Protected_Objects): Removed. | |
4313 | (Controller_Component): Removed. | |
4314 | (Enclosing_Function): New routine. | |
4315 | (Expand_Cleanup_Actions): Create a finalizer for a construct which has | |
4316 | either declarations or statements or both. | |
4317 | (Expand_N_Package_Body): Create a finalizer for a non-generic package. | |
4318 | (Expand_N_Package_Declaration): Create a finalizer for a non-generic | |
4319 | package. | |
4320 | (Find_Final_List): Removed. | |
4321 | (Global_Flist_Ref): Removed. | |
4322 | (In_Finalization_Root): Removed. | |
4323 | (Insert_Actions_In_Scope_Around): Determine the range of the transient | |
4324 | scope in terms of tree nodes. Process all transient variables within | |
4325 | that range. | |
4326 | (Make_Adjust_Call): Rewritten. There is no longer an attach call | |
4327 | generated after the adjust. | |
4328 | (Make_Attach_Call): Removed. | |
4329 | (Make_Call): New routine. | |
4330 | (Make_Clean): Removed. | |
4331 | (Make_Deep_Array_Body): Rewritten to simply invoke the appropriate | |
4332 | build routines. | |
4333 | (Make_Deep_Proc): Rewritten to generate the new profile signature used | |
4334 | in Deep routines. | |
4335 | (Make_Deep_Record_Body): Rewritten to simply invoke the appropriate | |
4336 | build routines. | |
4337 | (Make_Final_Call): Modified to simply create a call to either | |
4338 | Deep_Finalize or Finalize. | |
4339 | (Make_Finalize_Address_Body): New routine. | |
4340 | (Make_Finalize_Address_Stmts): New routine. A function which produces | |
4341 | TSS primitive Finalize_Address used in conjunction with heap allocated | |
4342 | controlled objects. | |
4343 | (Make_Handler_For_Ctrl_Operation): Add specialized code for .NET/JVM. | |
4344 | (Make_Init_Call): Rewritten. There is no longer an attach call | |
4345 | generated after initialization. | |
4346 | (Make_Local_Deep_Finalize): New routine. | |
4347 | (Make_Set_Finalize_Address_Ptr_Call): New routine. | |
4348 | (Make_Transient_Block): Remove the finalization list retrieval and | |
4349 | manipulation. | |
4350 | (Needs_Finalization): Moved to Exp_Util. | |
4351 | (Parent_Field_Type): New routine. | |
4352 | (Preprocess_Components): New routine. | |
4353 | (Process_Transient_Objects): New routine. | |
4354 | (Wrap_HSS_In_Block): New routine. | |
4355 | (Wrap_Transient_Declaration): Remove finalization list management and | |
4356 | controller insertion. | |
4357 | (Wrap_Transient_Expression): Code reformatting. | |
4358 | (Wrap_Transient_Statement): Code reformatting. | |
4359 | * exp_ch7.ads (Build_Final_List): Removed. | |
4360 | (Build_Finalization_Collection): New routine. | |
4361 | (Build_Raise_Statement): New routine. | |
4362 | (Controller_Component): Removed. | |
4363 | (Expand_Ctrl_Function_Call): Moved to Exp_Ch6. | |
4364 | (Find_Final_List): Removed. | |
4365 | (In_Finalization_Root): Removed. | |
4366 | (Is_Simple_Protected_Type): Update related comment. | |
4367 | (Make_Adjust_Call): New parameter profile and associated comments. | |
4368 | (Make_Attach_Call): Removed. | |
4369 | (Make_Final_Call): New parameter profile and associated comments. | |
4370 | (Make_Finalize_Address_Body): New routine. | |
4371 | (Make_Init_Call): New parameter profile and associated comments. | |
4372 | (Make_Local_Deep_Finalize): New routine. | |
4373 | (Make_Set_Finalize_Address_Ptr_Call): New routine. | |
4374 | (Needs_Finalization): Moved to Exp_Util. | |
4375 | * exp_ch9.adb (Add_Object_Pointer): Code reformatting. | |
4376 | (Expand_N_Protected_Body): Remove the handling of finalization lists. | |
4377 | (Find_Protection_Type): Moved to Exp_Util. | |
4378 | * exp_disp.adb: Remove with and use clauses for Exp_Ch7. | |
4379 | (Make_DT): Update sequence of dispatch table initialization. Remove the | |
4380 | initialization of field RC_Offset. Add initialization of field Needs_ | |
4381 | Finalization. | |
4382 | * exp_intr.adb (Expand_Unc_Deallocation): Code reformatting. | |
4383 | Reimplement how an object is first finalized, then deallocated. | |
4384 | * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): | |
4385 | Code reformatting. | |
4386 | * exp_tss.ads: Add special suffix for TSS primitive Finalize_Address. | |
4387 | Register TSS_Finalize_Address with type TSS_Names. | |
4388 | * exp_util.adb (Build_Allocate_Deallocate_Proc): New routine. This core | |
4389 | procedure provides the interface between an allocation / deallocation | |
4390 | and the support machinery in Ada.Finalization.Heap_Management. | |
4391 | (Find_Init_Call): Code reformatting. | |
4392 | (Find_Init_Call_In_List): Code reformatting. | |
4393 | (Find_Protection_Type): Moved from Exp_Ch9. | |
4394 | (Find_Prim_Op): Reimplement to add preference of recovered primitive. | |
4395 | (Has_Controlled_Coextensions): Removed. | |
4396 | (Has_Controlled_Objects): New routine. | |
4397 | (In_Library_Level_Package_Body): New routine. | |
4398 | (Insert_Action_After): New routine. | |
4399 | (Is_Finalizable_Transient): New routine. This predicate determines | |
4400 | whether an object declaration is one of the many variants of controlled | |
4401 | transients. | |
4402 | (Is_Null_Access_BIP_Func_Call): New routine. | |
4403 | (Is_Non_BIP_Func_Call): New routine. | |
4404 | (Is_Related_To_Func_Return): New routine. | |
4405 | (Needs_Finalization): Moved from Exp_Ch7. | |
4406 | * exp_util.ads (Build_Allocate_Deallocate_Proc): New routine. | |
4407 | (Find_Protection_Type): Moved from Exp_Ch9. | |
4408 | (Has_Controlled_Coextensions): Removed. | |
4409 | (Has_Controlled_Objects): New routine. | |
4410 | (In_Library_Level_Package_Body): New routine. | |
4411 | (Insert_Action_After): New routine. | |
4412 | (Is_Finalizable_Transient): New routine. | |
4413 | (Is_Null_Access_BIP_Func_Call): New routine. | |
4414 | (Is_Non_BIP_Func_Call): New routine. | |
4415 | (Is_Related_To_Func_Return): New routine. | |
4416 | (Needs_Finalization): Moved from Exp_ch7. | |
4417 | * expander.adb (Expand): Add a case for N_Free_Statement. | |
4418 | * freeze.adb (Freeze_All): Replace the generation of a finalization | |
4419 | list with a collection for access-to-controlled types. | |
4420 | (Freeze_Entity): Code reformatting. | |
4421 | (Freeze_Record_Type): Remove the freezing of a record controller | |
4422 | component. | |
4423 | (Freeze_Subprogram): Code reformatting. | |
4424 | * inline.adb (Cleanup_Scopes): Remove the reset of the scope | |
4425 | finalization list. | |
4426 | * lib-writ.adb (Write_Unit_Information): Output "PF" when a package | |
4427 | has a library-level finalizer. | |
4428 | * lib-writ.ads: Add "PF" to the sequence of unit attributes. | |
4429 | * a-filico.ads, a-filico.adb, s-finimp.ads, s-finimp.adb: Removed. | |
4430 | * Makefile.rtl: Remove a-filico and s-finimp from the list of object | |
4431 | files. Add a-fihema to the list of object files. | |
4432 | * par-ch4.adb: | |
4433 | Alphabetize the associations in type Is_Parameterless_Attribute. | |
4434 | * rtsfind.ads: Ada.Finalization_List.Controller and | |
4435 | System.Finalization_Implementation are no longer a GNAT unit. | |
4436 | Update the range of type Ada_Finalization_Child. Remove the following | |
4437 | recoverable entities: | |
2c7f9cc0 | 4438 | |
df3e68b1 HK |
4439 | RE_Attach_To_Final_List |
4440 | RE_Deep_Tag_Attach | |
4441 | RE_Finalize_List | |
4442 | RE_Finalize_One | |
4443 | RE_Finalizable_Ptr_Ptr | |
4444 | RE_Global_Final_List | |
4445 | RE_Limited_Record_Controller | |
4446 | RE_List_Controller | |
4447 | RE_Move_Final_List | |
4448 | RE_Record_Controller | |
4449 | RE_Simple_List_Controller | |
2c7f9cc0 | 4450 | |
df3e68b1 | 4451 | Add the following recoverable entities: |
2c7f9cc0 | 4452 | |
df3e68b1 HK |
4453 | RE_Add_Offset_To_Address |
4454 | RE_Allocate | |
4455 | RE_Base_Pool | |
4456 | RE_Deallocate | |
4457 | RE_Exception_Identity | |
4458 | RE_Finalization_Collection | |
4459 | RE_Finalization_Collection_Ptr | |
4460 | RE_Needs_Finalization | |
4461 | RE_Save_Library_Occurrence | |
4462 | RE_Set_Finalize_Address_Ptr | |
4463 | RE_Set_Storage_Pool_Ptr | |
4464 | RE_Storage_Count | |
4465 | * sem_aggr.adb (Resolve_Record_Aggregate): Remove mention of | |
4466 | Name_uController. | |
4467 | * sem_aux.adb (First_Discriminant): Remove mention of Name_uController. | |
4468 | (First_Stored_Discriminant): Remove the mention of Name_uController. | |
4469 | * sem_aux.ads: Comment reformatting. | |
4470 | * sem_ch10.adb (Build_Chain): Signal the class-wide creation machinery | |
4471 | to redecorate an already existing class-wide type. | |
4472 | (Decorate_Tagged_Type): New parameter profile and associated comment. | |
4473 | Create a "shadow class-wide type" for a shadow entity. | |
4474 | * sem_ch11.adb (Analyze_Exception_Handlers): Remove the dubious setting | |
4475 | of the final chain along with the associated comment. | |
4476 | * sem_ch3.adb (Access_Type_Declaration): Add new local variable | |
4477 | Full_Desig and set it to the full view of the designated type. | |
4478 | Initialize the finalization collection to empty. | |
4479 | (Build_Derived_Record_Type): Alphabetize local variables. Code | |
4480 | reformatting. | |
4481 | (Collect_Fixed_Components): Remove the mention of Name_uController. | |
4482 | (Create_Constrained_Components): Remove the mention of Name_uController. | |
4483 | (Make_Class_Wide_Type): Add specialized code to redecorate an existing | |
4484 | class-wide type of a shadow entity. | |
4485 | (Process_Full_View): Update the machinery which marks type | |
4486 | Limited_Controlled's entity as limited. | |
4487 | * sem_ch4.adb (Analyze_One_Call): Code reformatting. | |
4488 | * sem_ch6.adb (Create_Extra_Formals): Do not generate a finalization | |
4489 | list, instead make a collection build-in-place formal. | |
4490 | * sem_ch8.adb (Analyze_Object_Renaming): Look at the available view of | |
4491 | a designated type in order to establish a match between the renaming | |
4492 | and the renamed entity. | |
4493 | (Find_Selected_Component): Add guard to prevent spurious exceptions | |
4494 | from being raised on .NET/JVM. | |
4495 | * sem_disp.adb (Check_Dispatching_Operation): Include Finalize_Address | |
4496 | to the list of primitive that need special processing. Update arrays | |
4497 | C_Names and D_Names. | |
4498 | (Replace_Types): Handle class-wide types. | |
4499 | * sem_elab.adb (Check_A_Call): Since Deep_Initialize now has a | |
4500 | different parameter profile, look at the first formal. | |
4501 | * sem_prag.adb: Remove with and use clauses for Exp_Ch7. Add with and | |
4502 | use clauses for Exp_Util. | |
4503 | * sem_res.adb: Remove with and use clauses for Elists. | |
4504 | (Propagate_Coextensions): Removed. | |
4505 | (Resolve_Allocator): Do not propagate the list of coextensions from one | |
4506 | allocator to another. | |
4507 | * sem_util.adb (Build_Actual_Subtype_Of_Component): Rename variable | |
4508 | Deaccessed_T to Desig_Typ. | |
4509 | (Enter_Name): Remove the mention of Name_uController. | |
4510 | (Gather_Components): Remove the mention of Name_uController. | |
4511 | (Incomplete_Or_Private_View): New routine. | |
4512 | (Is_Coextension_Root): Removed. | |
4513 | (Is_Fully_Initialized_Type): Remove the mention of Name_uController. | |
4514 | * sem_util.ads (Incomplete_Or_Private_View): New routine. | |
4515 | (Is_Coextension_Root): Removed. | |
4516 | * s-finroo.ads: Remove with clause for Ada.Unchecked_Conversion. | |
4517 | Controlled types are now derived from a null tagged record. Remove | |
4518 | types Finalizable_Ptr, Finalizable and Empty_Root_Controlled. | |
4519 | * sinfo.adb (Coextensions): Removed. | |
4520 | (Set_Coextensions): Removed. | |
4521 | * sinfo.ads: Remove Coextensions from the explanation of node fields | |
4522 | and its uses in nodes. | |
4523 | Update the field usage of N_Allocator. | |
4524 | (Coextensions): Removed along with its pragma Inline. | |
4525 | (Set_Coextensions): Removed along with its pragma Inline. | |
4526 | * snames.ads-tmpl: Remove names | |
2c7f9cc0 | 4527 | |
df3e68b1 HK |
4528 | Name_uClean |
4529 | Name_uController | |
4530 | Name_uFinal_List | |
4531 | Name_uLocal_Final_List | |
4532 | Name_Finalization_Root | |
4533 | Name_Next | |
4534 | Name_Prev | |
2c7f9cc0 | 4535 | |
df3e68b1 | 4536 | Add names |
2c7f9cc0 | 4537 | |
df3e68b1 HK |
4538 | Name_uFinalizer |
4539 | Name_Finalize_Address | |
4540 | * s-pooglo.adb (Allocate): Add overriding indicator. | |
4541 | (Deallocate): Add overriding indicator. | |
4542 | (Storage_Size): Add overriding indicator. | |
4543 | * s-soflin.adb (Adafinal_NT): Invoke Finalize_Library_Objects rather | |
4544 | than Finalize_Global_List. | |
4545 | (Null_Finalize_Global_List): Removed. | |
4546 | (Save_Library_Occurrence): New routine. | |
4547 | * s-soflin.ads: Remove variable Finalize_Global_List along with its | |
4548 | initialization. Add variable Finalize_Library_Objects along with its | |
4549 | pragma Export. Add variables Library_Exception and | |
4550 | Library_Exception_Set along with their pragma Export. | |
4551 | (Null_Finalize_Global_List): Removed. | |
4552 | (Save_Library_Occurrence): New routine. | |
4553 | * s-tassta.adb (Finalize_Global_Tasks): Call Finalize_Library_Objects | |
4554 | rather than Finalize_Global_List. | |
4555 | * tbuild.adb (Unchecked_Convert_To): Capture and set the parent field | |
4556 | of the constructed node. | |
4557 | ||
2ee06322 RO |
4558 | 2011-08-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
4559 | ||
4560 | * link.c: Include "auto-host.h" before system headers. | |
4561 | ||
f77b022b VC |
4562 | 2011-08-03 Vincent Celier <celier@adacore.com> |
4563 | ||
4564 | * make.adb (Gnatmake): Add to table Library_Projs only library projects | |
4565 | that are not extended. Do not check if a library project that is | |
4566 | extended should be regenerated. Do not add to table Library_Paths the | |
4567 | libraries that are in extended projects. Link only with libraries that | |
4568 | are in libray projects that are not extended. | |
4569 | * prj-nmsc.adb (Check_Library_Attributes): Do not reset flag Library | |
4570 | for a library project that is extended. | |
4571 | ||
0187b60e AC |
4572 | 2011-08-03 Gary Dismukes <dismukes@adacore.com> |
4573 | ||
4574 | * sem_ch6.adb (Find_Corresponding_Spec): When in an instance, skip | |
4575 | conforming subprogram renamings that appear to be completions if they | |
4576 | are not fully conformant. | |
4577 | Such renamings are homographs but not completions. | |
4578 | * sem_type.adb (Disambiguate): Handle disambiguation of overloaded | |
4579 | names in a subprogram renaming that appears in an instance. | |
4580 | ||
4581 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
4582 | ||
4583 | * exp_util.adb (Expand_Subtype_From_Expr): if the type is limited but | |
4584 | not immutably limited, build actual subtype from expression to provide | |
4585 | proper bounds to caller. | |
4586 | ||
4587 | 2011-08-03 Gary Dismukes <dismukes@adacore.com> | |
4588 | ||
4589 | * sem_ch8.adb: Minor comment correction. | |
4590 | ||
4591 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
4592 | ||
4593 | * exp_strm.adb (Build_Array_Input_Function): In Ada 2005 mode, when | |
4594 | returning a limited array, use an extended return statement. | |
4595 | ||
4596 | 2011-08-03 Vincent Celier <celier@adacore.com> | |
4597 | ||
4598 | * make.adb (Initialize): If --subdirs= is used, but no project file is | |
4599 | specified, attempt to create the specify subdir if it does not already | |
4600 | exist and use it as the object directory as if -D had been specified. | |
4601 | ||
4602 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
4603 | ||
4604 | * s-tpopsp-vms.adb: New file. | |
4605 | * s-taprop-vms.adb: Put back ATCB_Key, since needed by this file on VMS. | |
4606 | * gcc-interfaces/Makefile.in: Use s-taprop-vms.adb on VMS. | |
4607 | ||
e280f981 AC |
4608 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
4609 | ||
4610 | * make.adb, makeutl.adb, makeutl.ads, clean.adb (Makeutl.Queue): new | |
4611 | package. | |
4612 | ||
4613 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
4614 | ||
4615 | * cstand.adb (Create_Standard): select Universal_Integer as an ALFA type | |
4616 | * sem_ch3.adb (Array_Type_Declaration): detect array types in ALFA | |
4617 | * sem_util.adb, sem_util.ads (Has_Static_Array_Bounds): new function to | |
4618 | detect that an array has static bounds. | |
4619 | ||
98c99a5a AC |
4620 | 2011-08-03 Thomas Quinot <quinot@adacore.com> |
4621 | ||
4622 | * exp_dist.adb: Minor reformatting. | |
4623 | ||
4624 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
4625 | ||
4626 | * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-vms.adb | |
4627 | (ATCB_Key): Removed, not always used. | |
4628 | ||
4629 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
4630 | ||
4631 | * gnatcmd.adb, make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads, | |
4632 | clean.adb, prj-conf.adb, prj-env.adb, prj-env.ads (Makeutl): remove | |
4633 | most remaining global variables. | |
4634 | ||
686d0984 AC |
4635 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
4636 | ||
4637 | * gnatcmd.adb, prj-proc.adb, mlib-prj.adb, prj.adb, makeutl.ads, | |
4638 | prj-util.adb, prj-util.ads, prj-conf.adb, prj-env.adb: Minor | |
4639 | reformatting. | |
4640 | ||
4641 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
4642 | ||
4643 | * exp_util.adb (Is_VM_By_Copy_Actual): Include N_Slide nodes as actuals | |
4644 | that must be passed by copy in VM targets. | |
4645 | ||
4646 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
4647 | ||
4648 | * prj.ads, prj-nmsc.adb (Files_Htable): removed this htable, which | |
4649 | duplicates a similar htable now in the project tree. | |
4650 | ||
4651 | 2011-08-03 Claire Dross <dross@adacore.com> | |
4652 | ||
4653 | * a-cfdlli.adb, a-cfhama.adb, a-cfhase.adb, a-cforma.adb, a-cforse.adb, | |
4654 | a-cofove.adb ("=", Length, Is_Empty, Clear, Assign, Copy, Element, | |
4655 | Replace_Element, Query_Element, Update_Element, Move, Insert, Prepend, | |
4656 | Append, Delete, Delete_First, Delete_Last, Reverse_Element, Swap, | |
4657 | Splice, First, First_Element, Last, Last_Element, Next, Previous, Find, | |
4658 | Reverse_Find, Contains, Has_Element, Iterate, Reverse_Iterate, Capacity, | |
4659 | Reserve_Length, Length, Strict_Equal, Left, Right): Data-structure | |
4660 | update. | |
4661 | ||
4662 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
4663 | ||
4664 | * s-taprop-posix.adb, s-taprop-linux.adb, s-taprop-tru64.adb | |
4665 | (ATCB_Key): Removed, not always used. | |
4666 | * s-tpopsp-posix.adb, s-tpopsp-posix-foreign.adb (ATCB_Key): Moved from | |
4667 | s-taprop-posix.adb. | |
4668 | * s-tpopsp-tls.adb: New file. | |
4669 | * gcc-interface/Makefile.in: Use TLS implementation of s-tpopsp.adb on | |
4670 | x86/x64/ia64/powerpc/sparc Linux. | |
4671 | ||
4672 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
4673 | ||
4674 | * system-aix.ads, system-aix64.ads: Set ZCX_By_Default to True. | |
4675 | * gcc-interface/Makefile.in: Switch to ZCX by default on AIX ports. | |
4676 | ||
4677 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
4678 | ||
4679 | * rtsfind.ads, exp_dist.adb, exp_dist.ads | |
4680 | (Build_From_Any_Call, Build_To_Any_Call, Build_TypeCode_Call): | |
4681 | Fix type selection for mapping integer types to PolyORB types. | |
4682 | ||
4683 | 2011-08-03 Bob Duff <duff@adacore.com> | |
4684 | ||
4685 | * sem_ch7.adb: Minor comment clarification. | |
4686 | ||
4687 | 2011-08-03 Bob Duff <duff@adacore.com> | |
4688 | ||
4689 | * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): If we get | |
4690 | an error analyzing a choice, skip further processing. Further | |
4691 | processing could cause a crash or cascade errors. | |
4692 | ||
40ecf2f5 EB |
4693 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
4694 | ||
4695 | * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, mlib-prj.adb, | |
4696 | prj.adb, prj.ads, makeutl.adb, makeutl.ads, clean.adb, prj-nmsc.adb, | |
4697 | prj-util.adb, prj-util.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, | |
4698 | prj-env.ads (Shared_Project_Tree_Data): new type | |
4699 | An aggregate project and its aggregated trees need to share the common | |
4700 | data structures used for lists of strings, packages,... This makes the | |
4701 | code simpler since otherwise we have to pass the root tree (also used | |
4702 | for the configuration file data) in addition to the current project | |
4703 | tree. This also avoids ambiguities as to which tree should be used. | |
4704 | And finally this saves a bit of memory. | |
4705 | (For_Every_Project_Imported): new parameter Tree. | |
4706 | Since aggregated projects are using a different tree, we need to let | |
4707 | the caller know which tree to use to manipulate the returned project. | |
4708 | ||
9fde638d RD |
4709 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
4710 | ||
4711 | * prj-proc.adb, exp_util.ads, exp_ch9.adb, make.adb, prj-ext.adb, | |
4712 | prj-ext.ads, alfa.ads, sem_ch4.adb, makeutl.adb, makeutl.ads, | |
4713 | lib-xref-alfa.adb, sem_cat.adb, exp_dist.adb, get_alfa.adb, | |
4714 | prj-env.adb, prj-env.ads, prj-tree.adb, alfa.ads: Minor reformatting. | |
4715 | ||
95eb8b69 AC |
4716 | 2011-08-03 Javier Miranda <miranda@adacore.com> |
4717 | ||
4718 | * exp_util.adb, sem_aux.adb, exp_util.ads, sem_aux.ads: | |
4719 | Move routine Is_VM_By_Copy_Actual from sem_aux to exp_util. | |
4720 | ||
4721 | 2011-08-03 Bob Duff <duff@adacore.com> | |
4722 | ||
4723 | * sem_ch8.adb (Is_Primitive_Operator_In_Use): Always check In_Use on | |
4724 | the Base_Type. | |
4725 | ||
4726 | 2011-08-03 Joel Brobecker <brobecker@adacore.com brobecker> | |
4727 | ||
4728 | * g-sha256.ads, g-sha512.ads, g-sha1.ads, g-sha224.ads, g-sha384.ads, | |
4729 | g-sehash.ads: Fix typo. Update header. | |
4730 | ||
4731 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
4732 | ||
4733 | * exp_ch6.adb (Expand_Actuals): Remove Ada_2005 guard on build-in-place | |
4734 | expansion. | |
4735 | ||
4736 | 2011-08-03 Gary Dismukes <dismukes@adacore.com> | |
4737 | ||
4738 | * sem_ch4.adb (Analyze_Overloaded_Selected_Component): Consider | |
4739 | prefixes of private types along with records, since the selector may be | |
4740 | a discriminant. | |
4741 | * sem_res.adb (Resolve_Selected_Component): Consider prefixes of | |
4742 | private types along with records, since the selector may be a | |
4743 | discriminant. | |
4744 | ||
92e77027 AC |
4745 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
4746 | ||
b2f7ebc1 | 4747 | * prj-pp.adb (Pretty_Print): Remove trailing blank line. |
92e77027 AC |
4748 | |
4749 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
4750 | ||
4751 | * sem_aux.adb (Is_VM_By_Copy_Actual): Fix wrong use of | |
4752 | Tagged_Type_Expansion. | |
4753 | ||
4754 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
4755 | ||
b2f7ebc1 GP |
4756 | * sem_res.adb (Resolve_Op_Concat_Arg): Do not issue a SPARK |
4757 | violation when the argument of concatenation is the name of a | |
4758 | constant. | |
92e77027 | 4759 | |
ab29a348 EB |
4760 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
4761 | ||
4762 | * prj-proc.adb, prj-ext.adb, prj-ext.ads, prj-env.adb, prj-env.ads, | |
4763 | prj-tree.adb, prj-tree.ads (Initialize_And_Copy, Copy): new subprograms | |
4764 | (Process_Declarative_Items): new parameter Child_Env. | |
4765 | ||
9466892f AC |
4766 | 2011-08-03 Yannick Moy <moy@adacore.com> |
4767 | ||
589ef536 GP |
4768 | * alfa.ads: Update format of ALFA section in ALI file in order to |
4769 | add a mapping from bodies to specs when both are present. | |
4770 | (ALFA_Scope_Record): Add components for spec file/scope. | |
4771 | * get_alfa.adb (Get_ALFA): Read the new file/scope for spec when | |
4772 | present. | |
4773 | * lib-xref-alfa.adb (Collect_ALFA): After all scopes have been | |
4774 | collected, fill in the spec information when relevant. | |
4775 | * put_alfa.adb (Put_ALFA): Write the new file/scope for spec when | |
9466892f AC |
4776 | present. |
4777 | ||
4778 | 2011-08-03 Eric Botcazou <ebotcazou@adacore.com> | |
4779 | ||
4780 | * inline.adb (Add_Inlined_Subprogram): Do not consider the enclosing | |
4781 | code unit to decide whether to add internally generated subprograms. | |
2c7f9cc0 | 4782 | |
9466892f AC |
4783 | 2011-08-03 Javier Miranda <miranda@adacore.com> |
4784 | ||
4785 | * sem_aux.ads, sem_aux.adb (Is_VM_By_Copy_Actual): New subprogram. | |
589ef536 GP |
4786 | * exp_ch9.adb (Build_Simple_Entry_Call): Handle actuals that must |
4787 | be handled by copy in VM targets. | |
9466892f AC |
4788 | |
4789 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
4790 | ||
589ef536 | 4791 | * make.adb, makeutl.adb, makeutl.ads (Make.Switches_Of): Share |
9466892f AC |
4792 | code with Makeutl.Get_Switches. |
4793 | * prj-tree.adb: Update comment. | |
4794 | ||
b5ea9143 AC |
4795 | 2011-08-03 Thomas Quinot <quinot@adacore.com> |
4796 | ||
4797 | * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Reject a remote | |
4798 | subprogram with a limited formal that does not support external | |
4799 | streaming. | |
4800 | ||
4801 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
4802 | ||
4803 | * get_alfa.adb (Get_ALFA): add missing Skip_Spaces at start of | |
4804 | continuation line | |
4805 | * lib-xref-alfa.adb (Add_ALFA_File): split removal of scopes that are | |
4806 | not from current unit in two phases, because it is not possible to | |
4807 | change the table while iterating over its content. | |
4808 | * put_alfa.adb (Put_ALFA): reset current file/scope at each new entity | |
4809 | ||
4810 | 2011-08-03 Sergey Rybin <rybin@adacore.com> | |
4811 | ||
4812 | * vms_data.ads: Add qualifier for gnatmetric --no-static-loop option | |
4813 | * gnat_ugn.texi: Update description of complexity metrics (gnatmetric) | |
4814 | ||
668a19bc ES |
4815 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> |
4816 | ||
4817 | * sem_res.adb (Resolve_Op_Concat_Arg): if the argument is an aggregate | |
4818 | and the component type is composite, this is ambiguous for predefined | |
4819 | concatenation, but if the node is not overloaded and the entity is a use | |
4820 | -defined function its profile can be used to resolve that aggregate. | |
4821 | ||
170b2989 AC |
4822 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
4823 | ||
4824 | * exp_ch4.adb: Minor code cleanup. | |
4825 | ||
4826 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
4827 | ||
4828 | * exp_dist.adb: Do not generate distribution stubs if serious errors | |
4829 | have been diagnosed. | |
4830 | ||
4831 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
4832 | ||
4833 | * sem_ch4.adb (Try_Primitive_Operation): when checking the validity of | |
4834 | the first formal of a primitive operation, go to the base type to | |
4835 | handle properly an access to a derived type with constrained | |
4836 | discriminants. | |
4837 | * sem_type.adb (Disambiguate): an immediately visible operator hides a | |
4838 | user-defined function that is only use-visible. | |
170b2989 | 4839 | |
e917aec2 RD |
4840 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
4841 | ||
4842 | * sem_aggr.adb, sem_ch3.adb, lib.ads, gnatcmd.adb, prj-proc.adb, | |
4843 | make.adb, lib-writ.adb, prj-part.adb, prj-part.ads, prj-ext.adb, | |
4844 | fname-uf.adb, prj-ext.ads, prj.adb, prj.ads, sem_attr.adb, alfa.adb, | |
4845 | prj-makr.adb, errout.adb, makeutl.adb, makeutl.ads, restrict.ads, | |
4846 | sem_ch6.adb, g-pehage.adb, clean.adb, put_alfa.adb, lib-xref-alfa.adb, | |
4847 | prj-nmsc.adb, prj-nmsc.ads, sem_ch8.adb, prj-pars.ads, exp_aggr.adb, | |
4848 | prj-attr.ads, sem_ch13.adb, get_alfa.adb, prj-env.adb, prj-env.ads, | |
4849 | alfa_test.adb, prj-tree.adb, prj-tree.ads, einfo.ads: Minor reformatting | |
4850 | ||
4851 | 2011-08-03 Robert Dewar <dewar@adacore.com> | |
4852 | ||
4853 | * repinfo.adb (List_Mechanism): Add handling of | |
4854 | Convention_Ada_Pass_By_XXX. | |
4855 | * sem_mech.adb (Set_Mechanism): Ditto. | |
4856 | * sem_prag.adb (Process_Convention): Add entries for | |
4857 | Convention_Ada_Pass_By_XXX. | |
4858 | * snames.adb-tmpl, snames.ads-tmpl: Ditto. | |
4859 | ||
49bfcf43 AC |
4860 | 2011-08-03 Pascal Obry <obry@adacore.com> |
4861 | ||
4862 | * makeutl.adb: Minor reformatting. | |
4863 | ||
4864 | 2011-08-03 Vincent Celier <celier@adacore.com> | |
4865 | ||
4866 | * fname-uf.adb | |
4867 | (Get_File_Name) If the file cannot be found when there are no config | |
4868 | pragmas file and May_Fail is True, return No_File instead of the file | |
4869 | name, to be consistent. | |
4870 | ||
4871 | 2011-08-03 Pascal Obry <obry@adacore.com> | |
4872 | ||
4873 | * adaint.c (__gnat_is_executable_file_attr): Avoid access | |
4874 | to null pointer. | |
4875 | ||
4876 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
4877 | ||
4878 | * sem_ch13.adb | |
4879 | (Same_Representation): In VM targets the representation of arrays with | |
4880 | aliased components differs from arrays with non-aliased components. | |
4881 | ||
34798441 EB |
4882 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
4883 | ||
4884 | * prj-proc.adb, prj-attr.adb, prj-attr.ads (Get_Attribute_Index): do | |
4885 | not systematically lower case attribute indexes that contain no "." | |
4886 | Fix definition of several Naming attributes, which take | |
4887 | a unit name as index and therefore should be case insensitive. | |
4888 | Minor refactoring (reduce length of variable names). | |
4889 | ||
4890 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
4891 | ||
4892 | * makeutl.adb, makeutl.ads (Get_Switches): new subprogram. | |
4893 | ||
4437a530 EB |
4894 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
4895 | ||
4896 | * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb, | |
4897 | prj-part.ads, switch-m.adb, switch-m.ads, prj-makr.adb, clean.adb, | |
4898 | prj-pars.adb, prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb, | |
4899 | prj-tree.ads (Prj.Tree.Environment): new type. | |
4900 | ||
804fe3c4 EB |
4901 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
4902 | ||
4903 | * prj-proc.adb, prj.ads, makeutl.adb, makeutl.ads, prj-conf.adb, | |
4904 | prj-tree.adb, prj-tree.ads (Environment): new type. | |
4905 | ||
c565bc66 AC |
4906 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
4907 | ||
4908 | * prj-tree.ads: Remove unused variable. | |
4909 | ||
4910 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
4911 | ||
4912 | * restrict.adb (Restriction_Msg): set "SPARK" all in upper case for | |
4913 | issuing messages related to SPARK restriction violation. | |
4914 | ||
4ee646da AC |
4915 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> |
4916 | ||
4917 | * sem_ch6.adb: guard against error nodes in return statements. | |
4918 | ||
4919 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
4920 | ||
4921 | * errout.adb (Error_Msg_Internal): the main unit has not been read yet, | |
4922 | a warning can only appear on a configuration file, so emit warning | |
4923 | without further checks. | |
4924 | ||
4925 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
4926 | ||
4927 | * s-interr.ads: add overriding keyword. | |
4928 | ||
4929 | 2011-08-03 Geert Bosch <bosch@adacore.com> | |
4930 | ||
4931 | * exp_attr.adb: Fix minor typo. | |
4932 | ||
4933 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
4934 | ||
4935 | * par-ch4.adb: improve error recovery. | |
4936 | ||
c0e538ad AC |
4937 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
4938 | ||
4939 | * prj-part.adb, prj-part.ads, prj-makr.adb, prj-pars.adb, prj-conf.adb, | |
4940 | prj-env.adb (Prj.Part.Parse): change parameter Always_Errout_Finalize | |
4941 | to Errout_Handling. | |
4942 | ||
4943 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
4944 | ||
4945 | * prj-dect.adb (Parse_Attribute_Declaration): make sure we can use | |
4946 | "external" as an attribute name in aggregate projects. | |
4947 | ||
4948 | 2011-08-03 Jose Ruiz <ruiz@adacore.com> | |
4949 | ||
4950 | * s-taprop-vxworks.adb: (Create_Task, Initialize): Ada 2012 pragma CPU | |
4951 | uses CPU numbers starting 1, while VxWorks uses CPU numbers starting | |
4952 | from 0, so we need to adjust. | |
4953 | ||
4954 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
4955 | ||
4956 | * prj-proc.adb, prj-ext.adb, prj-ext.ads, makeutl.adb, prj-tree.adb, | |
4957 | prj-tree.ads, gnatcmd.adb, clean.adb (External_References): new type. | |
4958 | ||
c4d67e2d AC |
4959 | 2011-08-03 Yannick Moy <moy@adacore.com> |
4960 | ||
4961 | * sem_ch6.adb (New_Overloaded_Entity): only issue error for SPARK | |
4962 | restriction on overloaded entity if the entity is not an operator. | |
4963 | ||
4964 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
4965 | ||
4966 | * sem_ch7.adb, sem_res.adb, sem_attr.adb, restrict.adb, | |
4967 | restrict.ads: Rename remaining Check_Formal_Restriction* into | |
4968 | Check_SPARK_Restriction*. | |
4969 | ||
4970 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
4971 | ||
4972 | * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, | |
4973 | prj-nmsc.ads, prj-err.adb (Project_Data): now discriminated on its | |
4974 | qualifier. | |
4975 | (Project_Empty): removed | |
4976 | (Empty_Project): new parameter Qualifier | |
4977 | This is used to have fields specific to aggregate projects, cleaner | |
4978 | New field to store the list of aggregated projects. | |
4979 | (Check_Aggregate_Project): removed | |
4980 | (Process_Aggregated_Projects, Free): new subprograms. | |
4981 | ||
3f5a8fee AC |
4982 | 2011-08-03 Olivier Hainque <hainque@adacore.com> |
4983 | ||
4984 | * tracebak.c (STOP_FRAME ppc AIX): Stop at null return address as well. | |
4985 | ||
4986 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
4987 | ||
4988 | * sem_ch8.adb (Analyze_Object_Renaming): if the renamed object is an | |
4989 | explicit dereference of an unconstrained type, create a constrained | |
4990 | subtype for it, as is done for function calls that return an | |
4991 | unconstrained type. | |
4992 | ||
4993 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
4994 | ||
4995 | * g-pehage.adb (Finalize): Avoid possible double-free. | |
4996 | ||
4997 | 2011-08-03 Steve Baird <baird@adacore.com> | |
4998 | ||
4999 | * exp_attr.adb (Expand_N_Attribute_Reference): Don't expand | |
5000 | Elab_Spec/Body attrs in CodePeer_Mode. | |
5001 | ||
5002 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
5003 | ||
5004 | * exp_aggr.adb (Flatten): Convert to positional form aggregates whose | |
5005 | low bound is not known at compile time but they have no others choice. | |
5006 | Done because in this case the bounds can be obtained directly from the | |
5007 | aggregate. | |
5008 | ||
5009 | 2011-08-03 Ed Falis <falis@adacore.com> | |
5010 | ||
5011 | * s-tasinf-vxworks.ads: Update comment to reflect 0 indexing of CPUs | |
5012 | on VxWorks SMP. Remove unusable constant ANY_CPU. | |
5013 | ||
a96ca600 EB |
5014 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
5015 | ||
5016 | * gnatcmd.adb, make.adb, prj-part.adb, prj-part.ads, prj-makr.adb, | |
5017 | clean.adb, prj-nmsc.adb, prj-pars.adb, prj-conf.adb, prj-env.adb, | |
5018 | prj-env.ads (Prj.Env.Initialize_Default_Project_Path, | |
5019 | Prj.Env.Initialize_Empty): new subprograms | |
5020 | (Get_Env, Find_Project): remove parameter Target_Name. | |
5021 | ||
3e582869 AC |
5022 | 2011-08-03 Gary Dismukes <dismukes@adacore.com> |
5023 | ||
5024 | * sem_ch3.adb (Build_Derived_Record_Type): Test the Derive_Subps formal | |
5025 | as a condition for the delayed call to Derived_Subprograms done for the | |
5026 | case of the rewriting of a derived type that constrains the | |
5027 | discriminants of its parent type. | |
5028 | Avoids redundant subprogram derivations for private subtype derivations. | |
5029 | ||
5030 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
5031 | ||
5032 | * exp_aggr.adb (Init_Hidden_Discriminants): New subprogram of | |
5033 | Build_Record_Aggr_Code. | |
5034 | (Build_Record_Aggr_Code): Add missing support to initialize hidden | |
5035 | discriminants in extension aggregates. | |
5036 | ||
5037 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
5038 | ||
5039 | * prj-pp.adb (Print): also output project qualifiers, since in | |
5040 | particular "aggregate" is mandatory in an aggregate project. | |
5041 | ||
5042 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
5043 | ||
5044 | * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb: | |
5045 | (Debug_Output): new function. | |
5046 | ||
56e94186 AC |
5047 | 2011-08-03 Eric Botcazou <ebotcazou@adacore.com> |
5048 | ||
5049 | * gnat_ugn.texi: Document -Wstack-usage. | |
5050 | * gcc-interface/misc.c (enumerate_modes): Add guard for ghost FP modes. | |
5051 | ||
5052 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
5053 | ||
5054 | * sem_prag.adb Issue an error (not a warning) when a C++ type does not | |
5055 | have keyword LIMITED. | |
5056 | ||
5057 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
5058 | ||
5059 | * alfa.adb, alfa.ads, alfa_test.adb: New files. | |
5060 | * ali.adb (Known_ALI_Lines): add 'C' lines (SCO) and 'F' lines (ALFA) | |
5061 | (Scan_ALI): do not issue a fatal error if parsing known lines after Xref | |
5062 | section (does not happen in compiler, only if code directly calls | |
5063 | Scan_ALI). | |
5064 | * get_alfa.adb, get_alfa.ads: New files. | |
5065 | * lib-writ.adb, lib-writ.ads (Write_ALI): output ALFA information if | |
5066 | needed. | |
5067 | * lib-xref-alfa.adb: New file. | |
5068 | * lib-xref.adb, lib-xref.ads | |
5069 | (Xref_Entry): redefine information needed in cross-references for ALFA. | |
5070 | Push ALFA treatments in separated local package. | |
5071 | (Enclosing_Subpragram_Or_Package): treat specially subprogram | |
5072 | identifiers. Return entity of package body instead of spec. Return | |
5073 | Empty for a scope with no location. | |
5074 | (Generate_Reference): adapt to new components for ALFA information. | |
5075 | Remove the need for D references on definitions. | |
5076 | (Is_Local_Reference): moved to ALFA local package | |
5077 | (Output_References): extract subfunction as Extract_Source_Name | |
5078 | (Output_Local_References): remove procedure, replaced by filtering of | |
5079 | cross-references in package ALFA and printing in Put_ALFA. | |
5080 | (Write_Entity_Name): remove procedure | |
5081 | * lib.adb, lib.ads (Extract_Source_Name): extract here function to | |
5082 | print exact name of entity as it appears in source file | |
5083 | (Unit_Ref_Table): make type public for use in Lib.Xref.ALFA | |
5084 | * put_alfa.adb, put_alfa.ads: New files. | |
5085 | * xref_lib.adb (Search_Xref): protect read of cross-references against | |
5086 | reading other sections of the ALI file, in gnatxref | |
5087 | (Search): protect read of cross-references against reading other | |
5088 | sections of the ALI file, in gnatfind. | |
5089 | * gcc-interface/Make-lang.in: Update dependencies. | |
5090 | ||
5091 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
5092 | ||
5093 | * sem_ch3.adb: Minor reformatting. | |
5094 | ||
5095 | 2011-08-03 Jose Ruiz <ruiz@adacore.com> | |
5096 | ||
5097 | * s-inmaop-vxworks.adb (Setup_Interrupt_Mask): Do nothing instead of | |
5098 | raising an exception. | |
5099 | ||
5100 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5101 | ||
5102 | * sem_res.adb (Set_String_Literal_Subtype): if index type is an integer | |
5103 | type, always use 1 as the lower bound or string, even if lower bound of | |
5104 | context is not static, to handle properly null strings in a non-static | |
5105 | context. | |
5106 | ||
5107 | 2011-08-03 Bob Duff <duff@adacore.com> | |
5108 | ||
5109 | * sem_prag.adb (Resolve_Aggregate): An array aggregate with 'others' is | |
5110 | always legal on the right-hand side of an assignment statement; there | |
5111 | is always an applicable index constraint in this case. Therefore, the | |
5112 | check for Pkind = N_Assignment_Statement is now unconditional -- it | |
5113 | doesn't depend on whether Is_Constrained (Typ). | |
5114 | ||
4317e442 AC |
5115 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
5116 | ||
5117 | * exp_ch5.adb, sem_prag.adb, exp_ch4.adb: Minor reformatting. | |
5118 | ||
5119 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5120 | ||
5121 | * sem_ch3.adb (Build_Itype_Reference): do not create an itype reference | |
5122 | for an itype created within a generic unit. | |
5123 | ||
5124 | 2011-08-03 Eric Botcazou <ebotcazou@adacore.com> | |
5125 | ||
5126 | * gnat_ugn.texi (Switches for gcc): Make it clearer that -fno-inline | |
5127 | suppresses all inlining. | |
5128 | ||
53f29d4f AC |
5129 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
5130 | ||
5131 | * sem_ch3.adb, sem_res.adb, exp_ch13.adb, exp_disp.adb, | |
5132 | exp_aggr.adb: Minor reformatting. | |
5133 | ||
5134 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
5135 | ||
5136 | * exp_ch5.adb (Expand_N_Assignment_Statement): Do not force inlining of | |
5137 | tagged assignment when discriminant checks are suppressed. This is | |
5138 | useless and extremely costly in terms of static stack usage. | |
5139 | ||
5140 | 2011-08-03 Bob Duff <duff@adacore.com> | |
5141 | ||
5142 | * sem_prag.adb (Get_Base_Subprogram): Do not follow Alias for instances | |
5143 | of generics, because this leads to the wrong entity in the wrong scope, | |
5144 | causing (e.g.) pragma Export_Procedure to get an error if the entity is | |
5145 | an instance. | |
5146 | (Process_Interface_Name): Follow Alias for instances of generics, to | |
5147 | correct for the above change. | |
5148 | ||
5149 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5150 | ||
5151 | * exp_ch4.adb (Expand_N_Selected_Component): If the discriminant value | |
5152 | is an integer literal it is always safe to replace the reference. In | |
5153 | addition, if the reference appears in the generated code for an object | |
5154 | declaration it is necessary to copy because otherwise the reference | |
5155 | might be to the uninitilized value of the discriminant of the object | |
5156 | itself. | |
5157 | ||
5158 | 2011-08-03 Pascal Obry <obry@adacore.com> | |
5159 | ||
5160 | * adaint.c (__gnat_is_executable_file_attr): Fix Win32 circuitry when no | |
5161 | ACL used, in this case we want to check for ending .exe, not .exe | |
5162 | anywhere in the path. | |
5163 | ||
5164 | 2011-08-03 Sergey Rybin <rybin@adacore.com> | |
5165 | ||
5166 | * tree_io.ads (ASIS_Version_Number): Update because of the changes in | |
5167 | the tree structure (semantic decoration of references to record | |
5168 | discriminants). | |
5169 | ||
c0b11850 AC |
5170 | 2011-08-03 Gary Dismukes <dismukes@adacore.com> |
5171 | ||
5172 | * sem_aggr.adb (Analyze_Array_Aggregate): When checking the discrete | |
5173 | choices of a named array aggregate, bail out when any choices are | |
5174 | marked as Errors_Posted. | |
5175 | ||
5176 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5177 | ||
5178 | * exp_ch13.adb (Expand_N_Freeze_Entity): cleanup determination of scope | |
5179 | in which entity is frozen, to handle properly loop variables in | |
5180 | iterators. | |
5181 | ||
5182 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5183 | ||
5184 | * sem_res.adb (Set_String_Literal_Subtype): if the lower bound of the | |
5185 | subtype is not static, compute the upper bound using attributes, to | |
5186 | handle properly index types that are not integer types. | |
5187 | ||
5188 | 2011-08-03 Bob Duff <duff@adacore.com> | |
5189 | ||
5190 | * gnat_rm.texi, gnat_ugn.texi: Fix some dangling URLs. | |
5191 | Update copyright notice. | |
5192 | ||
5193 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5194 | ||
5195 | * sem_ch3.adb (Build_Discriminant_Constraints): Only use | |
5196 | Original_Discriminant if within an instance. | |
5197 | * sem_ch4.adb (Analyze_Selected_Component): Ditto. | |
5198 | ||
5199 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
5200 | ||
5201 | * einfo.ads: Minor reformatting. | |
5202 | ||
5203 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5204 | ||
5205 | * exp_disp.adb (Check_Premature_Freezing): diagnose the presence of a | |
5206 | composite type with an unfrozen subcomponent, in the profile of a | |
5207 | primitive operation. | |
5208 | ||
5c34e9cd AC |
5209 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
5210 | ||
5211 | * sem_util.ads, exp_aggr.adb, exp_ch3.adb: Minor reformatting. | |
5212 | ||
5213 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5214 | ||
5215 | * sem_ch3.adb (Analyze_Object_Declaration): if a constant object of an | |
5216 | unconstrained type with discriminants is initialized with an aggregate, | |
5217 | use the constrained subtype of the aggregate as the type of the object, | |
5218 | because it is immutable, and this allows the back-end to generate no | |
5219 | code for the object declaration. | |
5220 | ||
abcd9db2 AC |
5221 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
5222 | ||
5223 | * exp_ch4.adb (Optimize_Length_Check): Fix bad handling of case where | |
5224 | comparison operand is variable, and turns out to be zero or negative. | |
5225 | ||
5226 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
5227 | ||
5228 | * exp_intr.adb | |
5229 | (Expand_Dispatching_Constructor_Call): Disable expansion of | |
5230 | code required for native targets. Done to avoid generating | |
5231 | references to unavailable runtime entities in VM targets. | |
5232 | * exp_ch3.adb | |
5233 | (Expand_N_Object_Declaration): Add missing support to handle | |
5234 | the explicit initialization of class-wide interface objects. | |
5235 | Fix documentation. | |
5236 | ||
5237 | 2011-08-03 Matthew Heaney <heaney@adacore.com> | |
5238 | ||
5239 | * a-cobove.adb (Merge): Move source onto target, instead of using Assign | |
5240 | ||
5241 | 2011-08-03 Matthew Heaney <heaney@adacore.com> | |
5242 | ||
5243 | * a-cbdlli.adb (Splice): move source items from first to last | |
5244 | ||
5245 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
5246 | ||
5247 | * sem_util.ads: comment added. | |
5248 | ||
5249 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
5250 | ||
5251 | * exp_aggr.adb | |
5252 | (Expand_Record_Aggregate): In VM targets disable the expansion into | |
5253 | assignments of aggregates whose type is not known at compile time. | |
5254 | ||
b474d6c3 ES |
5255 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> |
5256 | ||
5257 | * exp_ch9.adb (Build_Renamed_Formal_Declaration): common procedure for | |
5258 | protected entries and task entries, to build the proper renaming | |
5259 | declaration for entry formals, used in debugging. | |
5260 | * exp_ch2.adb (Expand_Entry_Parameter): handle task and entry | |
5261 | parameters in the same way. | |
5262 | ||
0580d807 AC |
5263 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
5264 | ||
5265 | * a-direct.adb, sinfo.ads, exp_ch9.adb, scng.adb, sem_util.adb, | |
5266 | sem_util.ads, restrict.ads, par-prag.adb: Minor reformatting and/or | |
5267 | code reorganization. | |
5268 | ||
5269 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5270 | ||
5271 | * debug.adb: Debug flag d.P to suppress length comparison optimization | |
5272 | * exp_ch4.adb (Optimize_Length_Comparison): New routine to optimize | |
5273 | comparison of Length by comparing First/Last instead. | |
5274 | ||
5275 | 2011-08-02 Matthew Heaney <heaney@adacore.com> | |
5276 | ||
5277 | * a-cobove.ads: Code clean up. | |
5278 | ||
b191a125 AC |
5279 | 2011-08-02 Vincent Celier <celier@adacore.com> |
5280 | ||
5281 | * adaint.c (file_names_case_sensitive_cache): New static int. | |
5282 | (__gnat_get_file_names_case_sensitive): Cache the return value in | |
5283 | file_names_case_sensitive_cache at the first invocation, to avoid | |
5284 | multiple calls to getenv. | |
5285 | ||
5286 | 2011-08-02 Bob Duff <duff@adacore.com> | |
5287 | ||
5288 | * sem_ch12.adb (Validate_Derived_Type_Instance): Implement AI05-0218-1. | |
5289 | ||
316a0661 AC |
5290 | 2011-08-02 Yannick Moy <moy@adacore.com> |
5291 | ||
5292 | * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_prag.adb, sem.ads, | |
5293 | sem_util.adb, sem_util.ads, sem_res.adb, sem_ch2.adb, sem_ch4.adb, | |
5294 | sem_ch6.adb, sem_ch11.adb: Add semantic flag In_Pre_Post_Expression to | |
5295 | indicate that we are in a precondition or postcondition. This is used in | |
5296 | Mark_Non_ALFA_Subprogram (renaming of Mark_Non_ALFA_Subprogram_Body) to | |
5297 | decide whether to flag the spec or body of the current subprogram as | |
5298 | not in ALFA. | |
5299 | ||
5300 | 2011-08-02 Fabien Chouteau <chouteau@adacore.com> | |
5301 | ||
5302 | * impunit.adb: Add Ada.Execution_Time.Interrupts in the Ada2012 package | |
5303 | list. | |
5304 | * a-extiin.ads: New file. | |
5305 | ||
5306 | 2011-08-02 Bob Duff <duff@adacore.com> | |
5307 | ||
5308 | * a-direct.adb (Rename): Implement AI05-0231-1. In particular, Rename | |
5309 | now raises Name_Error instead of Use_Error in certain cases. The other | |
5310 | parts of this AI were already implemented properly. | |
5311 | ||
f9adb9d4 AC |
5312 | 2011-08-02 Vincent Celier <celier@adacore.com> |
5313 | ||
5314 | * link.c: Only import "auto-host.h" when building the gnattools. | |
5315 | ||
5316 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5317 | ||
5318 | * sem_util.adb: Inter-unit inlining does not work for a subprogram | |
5319 | which calls a local subprogram, so extract subprogram | |
5320 | from Mark_Non_ALFA_Subprogram_Body. | |
5321 | ||
5322 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
5323 | ||
5324 | * exp_ch9.adb | |
5325 | (Extract_Dispatching_Call): If the type of the dispatching object is an | |
5326 | access type then return an explicit dereference in the Object out-mode | |
5327 | parameter. | |
5328 | ||
5329 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> | |
5330 | ||
5331 | * sem_ch3.adb (Analyze_Subtype_Declaration): Generate range | |
5332 | compatibility checks for all indexes of an array subtype, not just the | |
5333 | first. Reset Has_Dynamic_Range_Check on the subtype before each | |
5334 | potential check to ensure that Insert_Range_Checks will not elide any | |
5335 | of the dynamic checks. | |
5336 | ||
5337 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5338 | ||
5339 | * par-prag.ad (Process_Restrictions_Or_Restriction_Warnings): recognize | |
5340 | SPARK restriction at parsing time. | |
5341 | * scng.adb (Scan): Generate a token Tok_SPARK_Hide for a SPARK HIDE | |
5342 | directive only if the SPARK restriction is set for this unit. | |
5343 | ||
83f33150 YM |
5344 | 2011-08-02 Yannick Moy <moy@adacore.com> |
5345 | ||
5346 | * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb, sem_util.ads, | |
5347 | sem_res.adb, sem_ch2.adb, sem_ch4.adb, sem_ch6.adb, | |
5348 | sem_ch11.adb: Protect call to Current_Subprogram which might be costly | |
5349 | when repeated. Rename Current_Subprogram_Is_Not_In_ALFA into | |
5350 | Mark_Non_ALFA_Subprogram_Body. | |
5351 | Split body of Mark_Non_ALFA_Subprogram_Body to get body small and | |
5352 | inlined. | |
5353 | ||
7b98672f YM |
5354 | 2011-08-02 Yannick Moy <moy@adacore.com> |
5355 | ||
5356 | * sem_res.adb: Protect calls to Matching_Static_Array_Bounds which | |
5357 | might be costly. | |
5358 | ||
052e0603 AC |
5359 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
5360 | ||
5361 | * exp_ch9.adb, exp_sel.adb, restrict.ads, exp_disp.adb, erroutc.ads, | |
5362 | exp_ch3.adb: Minor reformatting. | |
5363 | ||
5364 | 2011-08-02 Emmanuel Briot <briot@adacore.com> | |
5365 | ||
5366 | * adaint.c (__gnat_locate_exec_on_path): only returns executable | |
5367 | files, not any regular file. | |
5368 | (__gnat_locate_file_with_predicate): new subprogram. | |
5369 | ||
5370 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5371 | ||
5372 | * sinfo.adb, sinfo.ads: Restrict the use of flags | |
5373 | Has_Dynamic_Length_Check and Has_Dynamic_Range_Check to expression | |
5374 | nodes, plus N_Subtype_Declaration for the 2nd one. | |
5375 | ||
4fbad0ba AC |
5376 | 2011-08-02 Sergey Rybin <rybin@adacore.com> |
5377 | ||
5378 | * gnat_rm.texi: Ramification of pragma Eliminate documentation | |
5379 | - fix bugs in the description of Source_Trace; | |
5380 | - get rid of UNIT_NAME; | |
5381 | ||
052e0603 AC |
5382 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
5383 | ||
5384 | * exp_ch9.adb | |
5385 | (Build_Dispatching_Requeue): Adding support for VM targets | |
5386 | since we cannot directly reference the Tag entity. | |
5387 | * exp_sel.adb (Build_K): Adding support for VM targets. | |
5388 | (Build_S_Assignment): Adding support for VM targets. | |
5389 | * exp_disp.adb | |
5390 | (Default_Prim_Op_Position): In VM targets do not restrict availability | |
5391 | of predefined interface primitives to compiling in Ada 2005 mode. | |
5392 | (Is_Predefined_Interface_Primitive): In VM targets this service is not | |
5393 | restricted to compiling in Ada 2005 mode. | |
5394 | (Make_VM_TSD): Generate code that declares and initializes the OSD | |
5395 | record. Needed to support dispatching calls through synchronized | |
5396 | interfaces. | |
5397 | * exp_ch3.adb | |
5398 | (Make_Predefined_Primitive_Specs): Enable generation of predefined | |
5399 | primitives associated with synchronized interfaces. | |
5400 | (Make_Predefined_Primitive_Bodies): Enable generation of predefined | |
5401 | primitives associated with synchronized interfaces. | |
5402 | ||
5403 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5404 | ||
5405 | * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of | |
5406 | statements hidden in SPARK if preceded by the HIDE directive | |
5407 | (Parse_Exception_Handlers): mark each exception handler in a sequence of | |
5408 | exception handlers as hidden in SPARK if preceded by the HIDE directive | |
5409 | * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK | |
5410 | if starting with the HIDE directive | |
5411 | * par-ch7.adb (P_Package): mark a package body hidden in SPARK if | |
5412 | starting with the HIDE directive; mark the declarations in a private | |
5413 | part as hidden in SPARK if the private part starts with the HIDE | |
5414 | directive | |
5415 | * restrict.adb, restrict.ads | |
5416 | (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK | |
5417 | (Is_In_Hidden_Part_In_SPARK): new function which returns whether its | |
5418 | argument node belongs to a part which is hidden in SPARK | |
5419 | (Check_SPARK_Restriction): do not issue violations on nodes in hidden | |
5420 | parts in SPARK; protect the possibly costly call to | |
5421 | Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on | |
5422 | * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration | |
5423 | * scng.adb (Accumulate_Token_Checksum_GNAT_6_3, | |
5424 | Accumulate_Token_Checksum_GNAT_5_03): add case for new token | |
5425 | Tok_SPARK_Hide. | |
5426 | (Scan): recognize special comment starting with '#' and followed by | |
5427 | SPARK keyword "hide" as a HIDE directive. | |
5428 | ||
5429 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5430 | ||
5431 | * types.ads, erroutc.ads: Minor reformatting. | |
5432 | ||
5433 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
5434 | ||
5435 | * link.c: Add response file support for cross platforms. | |
5436 | ||
5437 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
5438 | ||
5439 | * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression | |
5440 | in an association, set parent field of copy before partial analysis. | |
5441 | * sem_res.adb (Resolve_Slice): create reference to itype only when | |
5442 | expansion is enabled. | |
5443 | ||
5444 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5445 | ||
5446 | * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set | |
5447 | for new flag denoting which subprogram bodies are in ALFA | |
5448 | * restrict.adb, sem_ch7.adb: Update comment | |
5449 | * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, | |
5450 | sem_ch9.adb, sem_res.adb: Add calls to | |
5451 | Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs. | |
5452 | * sem_ch6.adb (Analyze_Function_Return): add calls to | |
5453 | Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the | |
5454 | middle of the body, and extended return. | |
5455 | (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument | |
5456 | False when missing return. | |
5457 | (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA | |
5458 | to True for subprograms whose spec is in ALFA. Remove later on the flag | |
5459 | on the entity used for a subprogram body when there exists a separate | |
5460 | declaration. | |
5461 | * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA): | |
5462 | if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to | |
5463 | False, otherwise do nothing. | |
5464 | ||
5465 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5466 | ||
5467 | * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting. | |
5468 | ||
5469 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5470 | ||
5471 | * sem_ch4.ads: minor formatting. | |
5472 | ||
5473 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5474 | ||
5475 | * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, | |
5476 | debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb, | |
5477 | errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb, | |
5478 | restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb, | |
5479 | opt.ads: cleanup of SPARK mode | |
5480 | ||
5481 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5482 | ||
5483 | * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard | |
5484 | types. | |
5485 | * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities | |
5486 | (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA | |
5487 | * sem_ch3.adb | |
5488 | (Analyze_Object_Declaration): set Is_In_ALFA flag for objects | |
5489 | (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes | |
5490 | (Constrain_Integer): set Is_In_ALFA flag for integer subtypes | |
5491 | (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration | |
5492 | types. | |
5493 | (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with | |
5494 | non-static range. | |
5495 | * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for | |
5496 | functions whose return type is not in ALFA. | |
5497 | (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram | |
5498 | specifications. | |
5499 | (Process_Formals): unset Is_In_ALFA flag for subprograms if a | |
5500 | parameter's type is not in ALFA. | |
5501 | * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard | |
5502 | types are in ALFA. | |
5503 | ||
5504 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
5505 | ||
5506 | * sem_ch6 (Analyze_Expression_Function): treat the function as | |
5507 | Inline_Always, and introduce a subprogram declaration for it when it is | |
5508 | not a completion. | |
5509 | * inline.adb (Add_Inlined_Body): recognize bodies that come from | |
5510 | expression functions, so that the back-end can determine whether they | |
5511 | can in fact be inlined. | |
5512 | * sem_util.adb (Is_Expression_Function): predicate to determine whether | |
5513 | a function body comes from an expression function. | |
5514 | ||
5515 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> | |
5516 | ||
5517 | * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming | |
5518 | null exclusions to test Can_Never_Be_Null on the anonymous access types | |
5519 | of the formals rather than testing the formals themselves. Exclude this | |
5520 | check in cases where the Old_Formal is marked as a controlling formal, | |
5521 | to avoid issuing spurious errors for bodies completing dispatching | |
5522 | operations (due to the flag not getting set on controlling access | |
5523 | formals in body specs). | |
5524 | (Find_Corresponding_Spec): When checking full and subtype conformance of | |
5525 | subprogram bodies in instances, pass Designated and E in that order, for | |
5526 | consistency with the expected order of the formals (New_Id followed by | |
5527 | Old_Id). | |
5528 | ||
5529 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5530 | ||
5531 | * sem_ch8.adb: Minor reformatting. | |
5532 | ||
5533 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
5534 | ||
5535 | * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure | |
5536 | Check_Class_Wide_Actual, to implement AI05-0071, on defaulted | |
5537 | primitive operations of class-wide actuals. | |
5538 | ||
5539 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
5540 | ||
5541 | * exp_atag.ads, exp_atag.adb | |
5542 | (Build_Common_Dispatching_Select_Statements): Remove argument Loc | |
5543 | since its value is implicitly passed in argument Typ. | |
5544 | * exp_disp.adb (Make_Disp_Conditional_Select_Body, | |
5545 | Make_Disp_Timed_Select_Body): Remove Loc in calls to routine | |
5546 | Build_Common_Dispatching_Select_Statements. | |
5547 | ||
5548 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5549 | ||
5550 | * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads, | |
5551 | exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments. | |
5552 | Minor reformatting. | |
5553 | ||
5554 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5555 | ||
5556 | * sem_res.adb: Minor reformatting. | |
5557 | * sem_prag.adb: Minor reformatting. | |
5558 | ||
5559 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
5560 | ||
5561 | * exp_atag.adb, exp_atags.ads | |
5562 | (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr | |
5563 | by the tagged type Entity. Required to use this routine in the VM | |
5564 | targets since we do not have available the Tag entity in the VM | |
5565 | platforms. | |
5566 | * exp_ch6.adb | |
5567 | (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package | |
5568 | Ada.Tags has not been previously loaded. | |
5569 | * exp_ch7.adb | |
5570 | (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke | |
5571 | Build_VM_TSDs if package Ada.Tags has not been previously loaded. | |
5572 | * sem_aux.adb | |
5573 | (Enclosing_Dynamic_Scope): Add missing support to handle the full | |
5574 | view of enclosing scopes. Required to handle enclosing scopes that | |
5575 | are synchronized types whose full view is a task type. | |
5576 | * exp_disp.adb | |
5577 | (Build_VM_TSDs): Minor code improvement to avoid generating and | |
5578 | analyzing lists with empty nodes. | |
5579 | (Make_Disp_Asynchronous_Select_Body): Add support for VM targets. | |
5580 | (Make_Disp_Conditional_Select_Body): Add support for VM targets. | |
5581 | (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets. | |
5582 | (Make_Disp_Timed_Select_Body): Add support for VM targets. | |
5583 | (Make_Select_Specific_Data_Table): Add support for VM targets. | |
5584 | (Make_VM_TSD): Generate code to initialize the SSD structure of | |
5585 | the TSD. | |
5586 | ||
5587 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5588 | ||
5589 | * lib-writ.adb (Write_ALI): when ALFA mode is set, write local | |
5590 | cross-references section in ALI. | |
5591 | * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub | |
5592 | (enclosing subprogram), Slc (location of Sub) and Sun (unit number of | |
5593 | Sub). | |
5594 | (Enclosing_Subprogram_Or_Package): new function to return the enclosing | |
5595 | subprogram or package entity of a node | |
5596 | (Is_Local_Reference_Type): new function returns True for references | |
5597 | selected in local cross-references. | |
5598 | (Lt): function extracted from Lt in Output_References | |
5599 | (Write_Entity_Name): function extracted from Output_References | |
5600 | (Generate_Definition): generate reference with type 'D' for definition | |
5601 | of objects (object declaration and parameter specification), with | |
5602 | appropriate locations and units, for use in local cross-references. | |
5603 | (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created | |
5604 | references of type 'I' for initialization in object definition. | |
5605 | (Output_References): move part of function Lt and procedure | |
5606 | Write_Entity_Name outside of the body. Ignore references of types 'D' | |
5607 | and 'I' introduced for local cross-references. | |
5608 | (Output_Local_References): new procedure to output the local | |
5609 | cross-references sections. | |
5610 | (Lref_Entity_Status): new array defining whether an entity is a local | |
5611 | * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference | |
5612 | with 'I' type when initialization expression is present. | |
5613 | * get_scos.adb, get_scos.ads: Correct comments and typos | |
5614 | ||
5615 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
5616 | ||
5617 | * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in | |
5618 | the JVM target. | |
5619 | * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in | |
5620 | the JVM target. | |
5621 | * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no | |
5622 | TSD support. | |
5623 | ||
5624 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
5625 | ||
5626 | * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line | |
5627 | (No_Space_Img): New function | |
5628 | (Find_Excluded_Sources): When reading from a file, record the file name | |
5629 | and the line number for each excluded source. | |
5630 | (Mark_Excluded_Sources): When reporting an error, if the excluded | |
5631 | sources were read from a file, include file name and line number in | |
5632 | the error message. | |
5633 | ||
5634 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
5635 | ||
5636 | * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2). | |
5637 | ||
5638 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5639 | ||
5640 | * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting | |
5641 | ||
5642 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
5643 | ||
5644 | * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the | |
5645 | generation of TSDs to the DOTNET compiler. | |
5646 | * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the | |
5647 | generation of TSDs to the DOTNET compiler. | |
5648 | ||
5649 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
5650 | ||
5651 | * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data | |
5652 | record of all the tagged types declared inside library level package | |
5653 | declarations, library level package bodies or library level subprograms. | |
5654 | * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD | |
5655 | associated with a given tagged type. | |
5656 | (Build_VM_TSDs): New subprogram. | |
5657 | * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main | |
5658 | compilation units that are subprograms. | |
5659 | * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main | |
5660 | compilation units that are package bodies. | |
5661 | (Expand_N_Package_Declaration): Generate TSDs of the main compilation | |
5662 | units that are a package declaration or a package instantiation. | |
5663 | * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code | |
5664 | reorganization to improve the error generated by the frontend when the | |
5665 | function Ada.Tags.Secondary_Tag is not available. | |
5666 | * rtsfind.ads (RE_Register_TSD): New runtime entity. | |
5667 | * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup. | |
5668 | ||
5669 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
5670 | ||
5671 | * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode. | |
5672 | ||
5673 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5674 | ||
5675 | * s-imenne.ads: Minor reformatting. | |
5676 | ||
5677 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5678 | ||
5679 | * a-stunau.ads: Add pragma Suppress_Initialization for Big_String | |
5680 | * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed | |
5681 | * s-stalib.ads: Add pragma Suppress_Initialization for Big_String | |
5682 | ||
5683 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5684 | ||
5685 | * einfo.ads (Materialize_Entity): Document this is only for renamings | |
5686 | * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate | |
5687 | required debug information in the case where we transform the object | |
5688 | declaration into a renaming declaration. | |
5689 | * exp_ch4.adb (Expand_Concatenate): Generate debug info for result | |
5690 | object | |
5691 | * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of | |
5692 | Materialize_Entity. | |
5693 | ||
5694 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5695 | ||
5696 | * einfo.ads, einfo.adb (Suppress_Initialization): Replaces | |
5697 | Suppress_Init_Procs. | |
5698 | * exp_ch3.adb, exp_disp.adb, freeze.adb: Use | |
5699 | Suppress_Initialization/Initialization_Suppressed. | |
5700 | * gnat_rm.texi: New documentation for pragma Suppress_Initialization | |
5701 | * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function | |
5702 | * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed | |
5703 | * sem_prag.adb: New processing for pragma Suppress_Initialization. | |
5704 | ||
5705 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5706 | ||
5707 | * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb: | |
5708 | Minor reformatting. | |
5709 | ||
5710 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
5711 | ||
5712 | * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can | |
5713 | only have inheritable classwide pre/postconditions. | |
5714 | ||
5715 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
5716 | ||
5717 | * a-tags.ads, a-tags.adb (Check_TSD): New subprogram. | |
5718 | * rtsfind.ads (RE_Check_TSD): New runtime entity. | |
5719 | * exp_disp.adb (Make_DT): Generate call to the new runtime routine that | |
5720 | checks if the external tag of a type is the same as the external tag | |
5721 | of some other declaration. | |
5722 | ||
5723 | 2011-08-02 Thomas Quinot <quinot@adacore.com> | |
5724 | ||
5725 | * s-taskin.ads: Minor reformatting. | |
5726 | ||
5727 | 2011-08-02 Emmanuel Briot <briot@adacore.com> | |
5728 | ||
5729 | * g-comlin.adb (Display_Help): swap the order in which it prints the | |
5730 | short help and the general usage. | |
5731 | ||
5732 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
5733 | ||
5734 | * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly | |
5735 | the aspect declarations and attach them to the generic copy for | |
5736 | subsequent analysis. | |
5737 | (Analyze_Subprogram_Instantiation): copy explicitly the aspect | |
5738 | declarations of the generic tree to the new subprogram declarations. | |
5739 | * sem_attr.adb (Check_Precondition_Postcondition): recognize | |
5740 | conditions that apply to a subprogram instance. | |
5741 | ||
5742 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5743 | ||
5744 | * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project]. | |
5745 | ||
5746 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
5747 | ||
5748 | * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged | |
5749 | private type with a tagged full view is not derived in the immediate | |
5750 | scope of the partial view, (RM 7.3 (7)) use the scope of the base type. | |
5751 | ||
5752 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5753 | ||
5754 | * exp_ch4.adb: Minor reformatting. | |
5755 | ||
5756 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
5757 | ||
5758 | * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an | |
5759 | Ada2012 iterator, the loop will be rewritten during expansion into a | |
5760 | while loop with a cursor and an element declaration. Do not analyze the | |
5761 | body in this case, because if the container is for indefinite types the | |
5762 | actual subtype of the elements will only be determined when the cursor | |
5763 | declaration is analyzed. | |
5764 | ||
5765 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
5766 | ||
5767 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore | |
5768 | size/alignment related attributes in CodePeer_Mode. | |
5769 | ||
5770 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> | |
5771 | ||
5772 | * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to | |
5773 | Prepend_Element, since this can result in the operation getting the | |
5774 | wrong slot in the full type's dispatch table if the full type has | |
5775 | inherited operations. The incomplete type's operation will get added | |
5776 | to the proper position in the full type's primitives | |
5777 | list later in Sem_Disp.Check_Operation_From_Incomplete_Type. | |
5778 | (Process_Incomplete_Dependents): Add Is_Primitive test when checking for | |
5779 | dispatching operations, since there are cases where nonprimitive | |
5780 | subprograms can get added to the list of incomplete dependents (such | |
5781 | as subprograms in nested packages). | |
5782 | * sem_ch6.adb (Process_Formals): First, remove test for being in a | |
5783 | private part when determining whether to add a primitive with a | |
5784 | parameter of a tagged incomplete type to the Private_Dependents list. | |
5785 | Such primitives can also occur in the visible part, and should not have | |
5786 | been excluded from being private dependents. | |
5787 | * sem_ch7.adb (Uninstall_Declarations): When checking the rule of | |
5788 | RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents | |
5789 | list of a Taft-amendment incomplete type is a primitive before issuing | |
5790 | an error that the full type must appear in the same unit. There are | |
5791 | cases where nonprimitives can be in the list (such as subprograms in | |
5792 | nested packages). | |
5793 | * sem_disp.adb (Derives_From): Use correct condition for checking that | |
5794 | a formal's type is derived from the type of the corresponding formal in | |
5795 | the parent subprogram (the condition was completely wrong). Add | |
5796 | checking that was missing for controlling result types being derived | |
5797 | from the result type of the parent operation. | |
5798 | ||
5799 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5800 | ||
5801 | * errout.adb (First_Node): minor renaming | |
5802 | * restrict.adb (Check_Formal_Restriction): put restriction warning on | |
5803 | first node. | |
5804 | ||
5805 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5806 | ||
5807 | * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator | |
5808 | before accessing operands. | |
5809 | * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to | |
5810 | decide whether an initialization expression respects SPARK rules, as | |
5811 | the plain node is the expanded one. This allows for more valid warnings | |
5812 | to be issued. | |
5813 | * gnat_rm.texi: Minor update. | |
5814 | ||
5815 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
5816 | ||
5817 | * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert | |
5818 | previous change. | |
5819 | ||
5820 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5821 | ||
5822 | * sem_ch3.adb, sem_ch4.adb: Minor reformatting. | |
5823 | ||
5824 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
5825 | ||
5826 | * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original | |
5827 | loop statements and the element renaming declaration with a block when | |
5828 | the element type is controlled. | |
5829 | ||
5830 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5831 | ||
5832 | * sinfo.ads: Minor formatting. | |
5833 | ||
5834 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
5835 | ||
5836 | * sem_aggr.adb (Add_Association): if the association has a box and no | |
5837 | expression, use the Sloc of the aggregate itself for the new | |
5838 | association. | |
5839 | * errout.adb (First_Node): Exclude nodes with no Sloc, and always use | |
5840 | the Original_Node. | |
5841 | ||
5842 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
5843 | ||
5844 | * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring. | |
5845 | When a container is provided via a function call, generate a renaming | |
5846 | of the function result. This avoids the creation of a transient scope | |
5847 | and the premature finalization of the container. | |
5848 | * exp_ch7.adb (Is_Container_Cursor): Removed. | |
5849 | (Wrap_Transient_Declaration): Remove the supression of the finalization | |
5850 | of the list controller when the declaration denotes a container cursor, | |
5851 | it is not needed. | |
5852 | ||
5853 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5854 | ||
5855 | * restrict.adb (Check_Formal_Restriction): only issue a warning if the | |
5856 | node is from source, instead of the original node being from source. | |
5857 | * sem_aggr.adb | |
5858 | (Resolve_Array_Aggregate): refine the check for a static expression, to | |
5859 | recognize also static ranges | |
5860 | * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration, | |
5861 | Array_Type_Declaration): postpone the test for the type being a subtype | |
5862 | mark after the type has been resolved, so that component-selection and | |
5863 | expanded-name are discriminated. | |
5864 | (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm | |
5865 | to distinguish the case of an iteration scheme, so that an error is | |
5866 | issed on a non-static range in SPARK except in an iteration scheme. | |
5867 | * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with | |
5868 | In_Iter_Schm = True. | |
5869 | * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for | |
5870 | user-defined operators so that they are allowed in renaming | |
5871 | * sem_ch8.adb | |
5872 | (Find_Selected_Component): refine the check for prefixing of operators | |
5873 | so that they are allowed in renaming. Move the checks for restrictions | |
5874 | on selector name after analysis discriminated between | |
5875 | component-selection and expanded-name. | |
5876 | * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on | |
5877 | concatenation argument of string type if it is static. | |
5878 | * sem_util.adb, sem_util.ads | |
5879 | (Check_Later_Vs_Basic_Declarations): add a new function | |
5880 | Is_Later_Declarative_Item to decice which declarations are allowed as | |
5881 | later items, in the two different modes Ada 83 and SPARK. In the SPARK | |
5882 | mode, add that renamings are considered as later items. | |
5883 | (Enclosing_Package): new function to return the enclosing package | |
5884 | (Enter_Name): correct the rule for homonyms in SPARK | |
5885 | (Is_SPARK_Initialization_Expr): default to returning True on nodes not | |
5886 | from source (result of expansion) to avoid issuing wrong warnings. | |
5887 | ||
5888 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
5889 | ||
5890 | * errout.adb: On anything but an expression First_Node returns its | |
5891 | argument. | |
5892 | ||
5893 | 2011-08-02 Pascal Obry <obry@adacore.com> | |
5894 | ||
5895 | * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting. | |
5896 | ||
5897 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
5898 | ||
5899 | * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization. | |
5900 | Set the associated loop as the related expression of internally | |
5901 | generated cursors. | |
5902 | * exp_ch7.adb (Is_Container_Cursor): New routine. | |
5903 | (Wrap_Transient_Declaration): Supress the finalization of the list | |
5904 | controller when the declaration denotes a container cursor. | |
5905 | ||
5906 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5907 | ||
5908 | * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through | |
5909 | command line now. | |
5910 | * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the | |
5911 | expression is a simple expression. This check cannot be performed in | |
5912 | the semantics, so just drop it. | |
5913 | (P_Index_Or_Discriminant_Constraint): move check that the index or | |
5914 | discriminant is a subtype mark to Analyze_Subtype_Declaration in the | |
5915 | semantics. Other cases were previously checked in the semantics. | |
5916 | * par-ch4.adb (P_Name): move checks that a selector name is not | |
5917 | character literal or an operator symbol to Find_Selected_Component in | |
5918 | the semantics | |
5919 | * par-ch5.adb (Parse_Decls_Begin_End): move check that basic | |
5920 | declarations are not placed after later declarations in a separate | |
5921 | procedure in Sem_Util (possibly not the best choice?), to be used both | |
5922 | during parsing, for Ada 83 mode, and during semantic analysis, for | |
5923 | SPARK mode. | |
5924 | * par-endh.adb (Check_End): move check that end label is not missing | |
5925 | to Process_End_Label in the semantics | |
5926 | * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove | |
5927 | the special case for SPARK restriction | |
5928 | * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End | |
5929 | * restrict.adb, restrict.ads (Check_Formal_Restriction): add a | |
5930 | parameter Force to issue the error message even on internal node (used | |
5931 | for generated end label). Call Check_Restriction to check when an error | |
5932 | must be issued. In SPARK mode, issue an error message even if the | |
5933 | restriction is not set. | |
5934 | (Check_Restriction): new procedure with an additional out parameter to | |
5935 | inform the caller that a message has been issued | |
5936 | * sem_aggr.adb: Minor modification of message | |
5937 | * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction | |
5938 | instead of issuing an error message directly | |
5939 | * sem_ch3.adb (Analyze_Declarations): move here the check that basic | |
5940 | declarations are not placed after later declarations, by calling | |
5941 | Check_Later_Vs_Basic_Declarations | |
5942 | (Analyze_Subtype_Declaration): move here the check that an index or | |
5943 | discriminant constraint must be a subtype mark. Change the check that | |
5944 | a subtype of String must start at one so that it works on subtype marks. | |
5945 | * sem_ch4.adb (Analyze_Call): move here the check that a named | |
5946 | association cannot follow a positional one in a call | |
5947 | * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction | |
5948 | instead of issuing an error message directly | |
5949 | * sem_ch8.adb (Find_Selected_Component): move here the check that a | |
5950 | selector name is not a character literal or an operator symbol. Move | |
5951 | here the check that the prefix of an expanded name cannot be a | |
5952 | subprogram or a loop statement. | |
5953 | * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new | |
5954 | procedure called from parsing and semantics to check that basic | |
5955 | declarations are not placed after later declarations | |
5956 | (Process_End_Label): move here the check that end label is not missing | |
5957 | ||
5958 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
5959 | ||
5960 | * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum | |
5961 | representation clause in codepeer mode, since it confuses CodePeer and | |
5962 | does not bring useful info. | |
5963 | ||
5964 | 2011-08-02 Ed Falis <falis@adacore.com> | |
5965 | ||
5966 | * init.c: initialize fp hw on MILS. | |
5967 | ||
5968 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
5969 | ||
5970 | * errout.adb (First_Node): for bodies, return the node itself (small | |
5971 | optimization). For other nodes, do not check source_unit if the node | |
5972 | comes from Standard. | |
5973 | ||
5974 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5975 | ||
5976 | * exp_ch3.adb: Minor comment additions. | |
5977 | * sem_ch13.adb: Minor reformatting. | |
5978 | ||
5979 | 2011-08-02 Pascal Obry <obry@adacore.com> | |
5980 | ||
5981 | * make.adb, makeutl.adb: Removes some superfluous directory separator. | |
5982 | ||
5983 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5984 | ||
5985 | * sem_attr.adb: Minor reformatting. | |
5986 | ||
5987 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5988 | ||
5989 | * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value | |
5990 | (Has_Default_Component_Value): Removed | |
5991 | * einfo.ads Comment updates | |
5992 | (Has_Default_Aspect): Replaces Has_Default_Value | |
5993 | (Has_Default_Component_Value): Removed | |
5994 | * exp_ch13.adb | |
5995 | (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects | |
5996 | * exp_ch3.adb | |
5997 | (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects | |
5998 | (Get_Simple_Init_Val): Handle Default_Value aspect | |
5999 | (Needs_Simple_Initialization): Handle Default_Value aspect | |
6000 | * exp_ch3.ads: Needs_Simple_Initialization | |
6001 | * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect | |
6002 | * par-prag.adb (Pragma_Default[_Component]Value) Removed | |
6003 | * sem_ch13.adb | |
6004 | (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects | |
6005 | * sem_prag.adb (Pragma_Default[_Component]Value) Removed | |
6006 | * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed | |
6007 | ||
6008 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6009 | ||
6010 | * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate | |
6011 | package containing iteration primitives. | |
6012 | exp_ch5.adb (Expand_Iterator_Loop): ditto. | |
6013 | ||
6014 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6015 | ||
6016 | * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with | |
6017 | "of", pre-analyze expression in case it is a function call with | |
6018 | finalization actions that must be placed ahead of the loop. | |
6019 | * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present | |
6020 | on an Ada2012 iterator, insert them ahead of the rewritten loop. | |
6021 | ||
6022 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
6023 | ||
6024 | * cstand.adb (Create_Float_Types): Only consider C's long double for | |
6025 | Long_Long_Float, in addition to double. | |
6026 | ||
6027 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6028 | ||
6029 | * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads, | |
6030 | sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads, | |
6031 | prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb: | |
6032 | Minor reformatting. | |
6033 | ||
6034 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6035 | ||
6036 | * sem_attr.adb: handle properly 'Result when it is a prefix of an | |
6037 | indexed component. | |
6038 | ||
6039 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6040 | ||
6041 | * einfo.ads, einfo.adb | |
6042 | (Original_Access_Type): Move this attribute to Node26 since there was | |
6043 | an undocumented use of Node21 in E_Access_Subprogram_Type entities | |
6044 | which causes conflicts and breaks the generation of the .NET compiler. | |
6045 | (Interface_Name): Add missing documentation on JGNAT only uses of | |
6046 | this attribute. | |
6047 | ||
6048 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
6049 | ||
6050 | * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist | |
6051 | (Find_Back_End_Float_Type): Likewise | |
6052 | (Create_Back_End_Float_Types): Likewise | |
6053 | (Create_Float_Types): Likewise | |
6054 | (Register_Float_Type): Likewise | |
6055 | * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of | |
6056 | Nlist and split out type selection in new local Find_Base_Type function. | |
6057 | * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of | |
6058 | Nlist | |
6059 | * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist | |
6060 | ||
6061 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6062 | ||
6063 | * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in | |
6064 | alpha order). | |
6065 | * opt.ads: Minor comment change. | |
6066 | * sem_ch12.adb: Minor code reorganization. | |
6067 | ||
6068 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> | |
6069 | ||
6070 | * sem_ch3.adb (Complete_Private_Subtype): Don't append the private | |
6071 | subtype's list of rep items to the list on the full subtype in the case | |
6072 | where the lists are the same. | |
6073 | ||
6074 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
6075 | ||
6076 | * switch-c.adb (Free): New deallocation procedure to avoid implicitly | |
6077 | using the one from System.Strings, which also deallocates all strings. | |
6078 | ||
6079 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
6080 | ||
6081 | * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New | |
6082 | function. | |
6083 | * gcc-interface/Make-lang.in: Update dependencies. | |
6084 | ||
6085 | 2011-08-02 Olivier Hainque <hainque@adacore.com> | |
6086 | ||
6087 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function | |
6088 | end_locus. | |
6089 | ||
6090 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6091 | ||
6092 | * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals | |
6093 | associated with anonymous access to subprograms. | |
6094 | ||
6095 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
6096 | ||
6097 | * opt.ads | |
6098 | (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions. | |
6099 | (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition. | |
6100 | * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads | |
6101 | (Add_Symbol_Definition): Move to switch-c.adb | |
6102 | (Process_Command_Line_Symbol_Definitions): Adjust references to above. | |
6103 | * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation. | |
6104 | (Add_Symbol_Definition): Move to switch-c.adb. | |
6105 | * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw. | |
6106 | * sem_warn.adb | |
6107 | (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch): | |
6108 | Move to warnsw.adb. | |
6109 | * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size, | |
6110 | Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch): | |
6111 | Move to warnsw.adb. | |
6112 | * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw. | |
6113 | (Add_Symbol_Definition): Moved from Prepcomp. | |
6114 | * switch-c.ads: Update copyright notice. Use String_List instead of | |
6115 | Argument_List, removing dependency on System.OS_Lib. | |
6116 | ||
6117 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6118 | ||
6119 | * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal | |
6120 | mode on initialization expression which does not respect SPARK | |
6121 | restrictions. | |
6122 | * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines | |
6123 | if the tree referenced by its argument represents an initialization | |
6124 | expression in SPARK, suitable for initializing an object in an object | |
6125 | declaration. | |
6126 | ||
6127 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6128 | ||
6129 | * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the | |
6130 | internally generated access to subprogram with its associated protected | |
6131 | subprogram type. | |
6132 | * einfo.ads, einfo.adb (Original_Access_Type): New attribute. | |
6133 | ||
6134 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
6135 | ||
6136 | * cstand.adb (Register_Float_Type): Print information about type to | |
6137 | register, if the Debug_Flag_Dot_B is set. | |
6138 | * debug.adb (Debug_Flag_Dot_B): Document d.b debug option. | |
6139 | * rtsfind.ads (RE_Max_Base_Digits): New run time entity. | |
6140 | * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations | |
6141 | with a requested precision of more than Max_Digits digits and no more | |
6142 | than Max_Base_Digits digits, if a range specification is present and the | |
6143 | Predefined_Float_Types list has a suitable type to derive from. | |
6144 | * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the | |
6145 | case of type completion with pragma Import | |
6146 | * sem_prag.adb | |
6147 | (Process_Import_Predefined_Type): Processing to complete a type | |
6148 | with pragma Import. Currently supports floating point types only. | |
6149 | (Set_Convention_From_Pragma): Do nothing without underlying type. | |
6150 | (Process_Convention): Guard against absence of underlying type, | |
6151 | which may happen when importing incomplete types. | |
6152 | (Process_Import_Or_Interface): Handle case of importing predefined | |
6153 | types. Tweak error message. | |
6154 | ||
6155 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
6156 | ||
6157 | * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined | |
6158 | functions to previous change. Reorganize code slightly. | |
6159 | ||
6160 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
6161 | ||
6162 | * back_end.ads (Register_Type_Proc): New call back procedure type for | |
6163 | allowing the back end to provide information about available types. | |
6164 | (Register_Back_End_Types): New procedure to register back end types. | |
6165 | * back_end.adb (Register_Back_End_Types): Call the back end to enumerate | |
6166 | available types. | |
6167 | * cstand.adb (Back_End_Float_Types): New list for floating point types | |
6168 | supported by the back end. | |
6169 | (Build_Float_Type): Add extra parameter for Float_Rep_Kind. | |
6170 | (Copy_Float_Type): New procedure to make new copies of predefined types. | |
6171 | (Register_Float_Type): New call back procedure to populate the BEFT list | |
6172 | (Find_Back_End_Float_Type): New procedure to find a BEFT by name | |
6173 | (Create_Back_End_Float_Types): New procedure to populate the BEFT list. | |
6174 | (Create_Float_Types): New procedure to create entities for floating | |
6175 | point types predefined in Standard, and put these and any remaining | |
6176 | BEFTs on the Predefined_Float_Types list. | |
6177 | * stand.ads (Predefined_Float_Types): New list for predefined floating | |
6178 | point types that do not have declarations in package Standard. | |
6179 | ||
6180 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
6181 | ||
6182 | * inline.adb (Get_Code_Unit_Entity): New local function. Returns the | |
6183 | entity node for the unit containing the parameter. | |
6184 | (Add_Inlined_Body): Use it to find the unit containing the subprogram. | |
6185 | (Add_Inlined_Subprogram): Likewise. | |
6186 | * gcc-interface/Make-lang.in: Update dependencies. | |
6187 | ||
6188 | 2011-08-02 Thomas Quinot <quinot@adacore.com> | |
6189 | ||
6190 | * s-stusta.adb (Print): Make sure Pos is always initialized to a | |
6191 | suitable value. | |
6192 | ||
6193 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
6194 | ||
6195 | * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image. | |
6196 | ||
6197 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
6198 | ||
6199 | * sem_type.adb (Covers): Move trivial case to the top and reuse the | |
6200 | computed value of Base_Type. | |
6201 | ||
6202 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6203 | ||
6204 | * restrict.adb (Check_Restriction): issue an error for any use of | |
6205 | class-wide, even if the No_Dispatch restriction is not set. | |
6206 | * sem_aggr.adb: Correct typos in comments and messages in formal mode | |
6207 | * sem_ch3.adb (Process_Full_View): issue an error in formal mode is, | |
6208 | when completing a private extension, the type named in the private part | |
6209 | is not the same as that named in the visible part. | |
6210 | * sem_res.adb (Resolve_Call): issue an error in formal mode on the use | |
6211 | of an inherited primitive operations of a tagged type or type extension | |
6212 | that returns the tagged type. | |
6213 | * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new | |
6214 | function which returns True for an implicit operation inherited by the | |
6215 | derived type declaration for the argument type. | |
6216 | (Is_SPARK_Object_Reference): move to appropriate place in alphabetic | |
6217 | order. | |
6218 | ||
6219 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6220 | ||
6221 | * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from | |
6222 | Process_Bounds, to perform analysis with expansion of a range or an | |
6223 | expression that is the iteration scheme for a loop. | |
6224 | (Analyze_Iterator_Specification): If domain of iteration is given by a | |
6225 | function call with a controlled result, as is the case if call returns | |
6226 | a predefined container, ensure that finalization actions are properly | |
6227 | generated. | |
6228 | * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range. | |
6229 | ||
6230 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6231 | ||
6232 | * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo. | |
6233 | * gcc-interface/Make-lang.in: Update dependencies. | |
6234 | ||
6235 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6236 | ||
6237 | * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to | |
6238 | determine if the analysis is performed using N or Original_Node (N). | |
6239 | * exp_util.adb (Side_Effect_Free): Code cleanup since the new | |
6240 | functionality of routine Is_Variable avoids code duplication. | |
6241 | * checks.adb (Determine_Range): Handle temporaries generated by | |
6242 | Remove_Side_Effects. | |
6243 | ||
6244 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6245 | ||
6246 | * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and | |
6247 | expansion of the condition. Required since the previous analysis was | |
6248 | done with expansion disabled (see Resolve_Quantified_Expression) and | |
6249 | hence checks were not inserted and record comparisons have not been | |
6250 | expanded. | |
6251 | ||
6252 | 2011-08-02 Ed Falis <falis@adacore.com> | |
6253 | ||
6254 | * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads: | |
6255 | Update header. | |
6256 | ||
6257 | 2011-08-02 Bob Duff <duff@adacore.com> | |
6258 | ||
6259 | * opt.ads: Minor comment fix. | |
6260 | ||
6261 | 2011-08-02 Bob Duff <duff@adacore.com> | |
6262 | ||
6263 | * sem_ch12.adb (Analyze_Package_Instantiation, | |
6264 | Analyze_Subprogram_Instantiation): Turn off style checking while | |
6265 | analyzing an instance. Whatever style checks that apply to the generic | |
6266 | unit should apply, so it makes no sense to apply them in an instance. | |
6267 | This was causing trouble when compiling an instance of a runtime | |
6268 | unit that violates the -gnatyO switch. | |
6269 | * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from | |
6270 | one of the two case statements, causing spurious errors. | |
6271 | ||
6272 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6273 | ||
6274 | * uname.adb: Minor reformatting. | |
6275 | * gnatcmd.adb: Minor reformatting. | |
6276 | * exp_attr.adb: Minor reformatting. | |
6277 | ||
6278 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6279 | ||
6280 | * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction | |
6281 | No_Dispatching_Calls, do not look for the Assign primitive, because | |
6282 | predefined primitives are not created in this case. | |
6283 | ||
6284 | 2011-08-02 Bob Duff <duff@adacore.com> | |
6285 | ||
6286 | * stylesw.ads: Minor comment fixes. | |
6287 | ||
6288 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6289 | ||
6290 | * freeze.adb (Add_To_Result): New procedure. | |
6291 | ||
6292 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
6293 | ||
6294 | * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run | |
6295 | time, if the specific run-time routines for handling streams of strings | |
6296 | are not available, use the default mechanism. | |
6297 | ||
6298 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
6299 | ||
6300 | * s-regpat.ads: Fix typo. | |
6301 | ||
6302 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
6303 | ||
6304 | * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is | |
6305 | not null, call it to create the in memory config project file without | |
6306 | parsing an existing default config project file. | |
6307 | ||
6308 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
6309 | ||
6310 | * atree.adb (Allocate_Initialize_Node): Remove useless temporaries. | |
6311 | ||
6312 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6313 | ||
6314 | * sem_elim.adb: an abstract subprogram does not need an eliminate | |
6315 | pragma for its descendant to be eliminable. | |
6316 | ||
6317 | 2011-08-02 Ed Falis <falis@adacore.com> | |
6318 | ||
6319 | * init.c: revert to handling before previous checkin for VxWorks | |
6320 | * s-intman-vxworks.adb: delete unnecessary declarations related to | |
6321 | using Ada interrupt facilities for handling signals. | |
6322 | Delete Initialize_Interrupts. Use __gnat_install_handler instead. | |
6323 | * s-intman-vxworks.ads: Import __gnat_install_handler as | |
6324 | Initialize_Interrupts. | |
6325 | * s-taprop-vxworks.adb: Delete Signal_Mask. | |
6326 | (Abort_Handler): change construction of mask to unblock exception | |
6327 | signals. | |
6328 | ||
6329 | 2011-08-02 Jerome Guitton <guitton@adacore.com> | |
6330 | ||
6331 | * a-except-2005.adb (Raise_From_Signal_Handler): Call | |
6332 | Debug_Raise_Exception before propagation starts. | |
6333 | ||
6334 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
6335 | ||
6336 | * exp_ch6.adb (Expand_Call): Guard restriction checks with a call | |
6337 | to Restriction_Check_Required. | |
6338 | * sem_ch3.adb (Analyze_Object_Declaration): Likewise. | |
6339 | * sem_res.adb (Resolve_Call): Likewise. | |
6340 | * sem_attr.adb (Check_Stream_Attribute): Likewise. | |
6341 | ||
6342 | 2011-08-02 Bob Duff <duff@adacore.com> | |
6343 | ||
6344 | * stylesw.ads: Update comment. | |
6345 | * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N. | |
6346 | * errout.ads: Remove obsolete comment. | |
6347 | ||
6348 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6349 | ||
6350 | * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function. | |
6351 | (Set_Is_Safe_To_Reevaluate): new procedure. | |
6352 | * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no | |
6353 | assignment is allowed on safe-to-reevaluate variables. | |
6354 | (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the | |
6355 | temporary created to remove side effects in expressions that use | |
6356 | the secondary stack as safe-to-reevaluate. | |
6357 | * exp_util.adb (Side_Effect_Free): Add missing code to handle well | |
6358 | variables that are not true constants. | |
6359 | ||
6360 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6361 | ||
6362 | * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads, | |
6363 | sem_res.adb, sem_ch6.adb: Minor reformatting. | |
6364 | ||
6365 | 2011-08-02 Jerome Guitton <guitton@adacore.com> | |
6366 | ||
6367 | * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code. | |
6368 | ||
6369 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6370 | ||
6371 | * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do | |
6372 | not set Overridden_Operation if subprogram is an initialization | |
6373 | procedure. | |
6374 | ||
6375 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6376 | ||
6377 | * par-ch6.adb: Correct obsolete name in comments | |
6378 | * restrict.adb, restrict.ads (Check_Formal_Restriction): new function | |
6379 | which takes two message arguments (existing function takes one), with | |
6380 | second message used for continuation. | |
6381 | * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject | |
6382 | block statements that originate from a source block statement, not | |
6383 | generated block statements | |
6384 | * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for | |
6385 | symmetry with procedure case | |
6386 | * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new | |
6387 | function to issue an error in formal mode if a package specification | |
6388 | contains more than one tagged type or type extension. | |
6389 | * sem_res.adb (Resolve_Actuals): in formal mode, check that actual | |
6390 | parameters matching formals of tagged types are objects (or ancestor | |
6391 | type conversions of objects), not general expressions. Issue an error | |
6392 | on view conversions that are not involving ancestor conversion of an | |
6393 | extended type. | |
6394 | (Resolve_Type_Conversion): in formal mode, issue an error on the | |
6395 | operand of an ancestor type conversion which is not an object | |
6396 | * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the | |
6397 | procedure so that it works also for actuals of function calls | |
6398 | (Is_Actual_Tagged_Parameter): new function which determines if its | |
6399 | argument is an actual parameter of a formal of tagged type in a | |
6400 | subprogram call | |
6401 | (Is_SPARK_Object_Reference): new function which determines if the tree | |
6402 | referenced by its argument represents an object in SPARK | |
6403 | ||
6404 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6405 | ||
6406 | * sem_ch3.adb: Minor reformatting | |
6407 | Minor comment addition | |
6408 | Minor error msg text change | |
6409 | ||
6410 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6411 | ||
6412 | * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New | |
6413 | function. Used to be more precise when we generate a variable plus one | |
6414 | assignment to remove side effects in the evaluation of the Bound | |
6415 | expressions. | |
6416 | (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes | |
6417 | of the bound expression to force its re-analysis and thus expand the | |
6418 | associated transient scope (if required). Code cleanup replacing the | |
6419 | previous code that declared the constant entity by an invocation to | |
6420 | routine Force_Evaluation which centralizes this work in the frontend. | |
6421 | ||
6422 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6423 | ||
6424 | * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table | |
6425 | (Base_Type): Now uses improved Is_Base_Type function | |
6426 | * einfo.ads (Base_Type): Inline this function | |
6427 | ||
6428 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6429 | ||
6430 | * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion | |
6431 | (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas | |
6432 | ||
6433 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
6434 | ||
6435 | * gcc-interface/Make-lang.in: Update dependencies. | |
6436 | * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks | |
6437 | targets. | |
6438 | ||
6439 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6440 | ||
6441 | * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on | |
6442 | non-simple expression used in delta constraint | |
6443 | (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on | |
6444 | index constraint which is not a subtype mark | |
6445 | * par.adb: With and use Restrict | |
6446 | * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal | |
6447 | mode on component type which is not a subtype mark and default | |
6448 | expression on component | |
6449 | (Analyze_Subtype_Declaration): issue an error in formal mode on subtype | |
6450 | of string which does not have a lower index bound equal to 1 | |
6451 | (Array_Type_Declaration): issue an error in formal mode on index or | |
6452 | component type which is not a subtype mark, and on aliased keyword on | |
6453 | component | |
6454 | (Derived_Type_Declaration): issue an error in formal mode on interface, | |
6455 | limited or abstract type | |
6456 | (Record_Type_Declaration): issue an error in formal mode on interface | |
6457 | (Record_Type_Definition): issue an error in formal mode on tagged types | |
6458 | and type extensions not declared in the specification of a library unit | |
6459 | package; on null non-tagged record; on variant part | |
6460 | ||
6461 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
6462 | ||
6463 | * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir | |
6464 | not declared for qualified library project when Library_Name is not | |
6465 | declared, but Library_Dir is. | |
6466 | ||
6467 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6468 | ||
6469 | * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated | |
6470 | pragmas (affects aspects [Component_]Default_Value | |
6471 | (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use | |
6472 | component type for the resolution | |
6473 | ||
6474 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
6475 | ||
6476 | * einfo.adb (Base_Type): Tune implementation for speed. | |
6477 | ||
6478 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6479 | ||
6480 | * freeze.adb: Minor reformatting. | |
6481 | ||
6482 | 2011-08-02 Thomas Quinot <quinot@adacore.com> | |
6483 | ||
6484 | * scos.ads: Update comments. | |
6485 | ||
6486 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6487 | ||
6488 | * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the | |
6489 | base type, because the parent may be a subtype of a private type whose | |
6490 | convention is established in a private part. | |
6491 | ||
6492 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
6493 | ||
6494 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return | |
6495 | statement in a block when the expansion of the return expression has | |
6496 | created a finalization chain. | |
6497 | * freeze.adb (Freeze_Expression): Alphabetize all choices associated | |
6498 | with the parent node. | |
6499 | Add N_Extended_Return_Statement to handle the case where a transient | |
6500 | object declaration appears in the Return_Object_Declarations list of | |
6501 | an extended return statement. | |
6502 | ||
6503 | 2011-08-02 Matthew Gingell <gingell@adacore.com> | |
6504 | ||
6505 | * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly | |
6506 | unused parameter 'name'. | |
6507 | ||
6508 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6509 | ||
6510 | * sem_elim.adb (Set_Eliminated): If the overridden operation is an | |
6511 | inherited operation, check whether its alias, which is the source | |
6512 | operastion that it renames, has been marked eliminated. | |
6513 | ||
6514 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6515 | ||
6516 | * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an | |
6517 | in-mode parameter whose type is an access type since it can be used to | |
6518 | modify its designated object. Enforce code that handles as safe an | |
6519 | access type that is not access-to-constant but it is the result of a | |
6520 | previous removal of side-effects. | |
6521 | (Remove_Side_Effects): Minor code reorganization of cases which require | |
6522 | no action. Done to incorporate documentation on new cases uncovered | |
6523 | working in this ticket: no action needed if this routine was invoked | |
6524 | too early and the nodes are not yet decorated. | |
6525 | * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls | |
6526 | to routine Remove_Side_Effects by calls to Force_Evaluation since they | |
6527 | were issued with actuals that are implicitly provided by | |
6528 | Force_Evaluation. | |
6529 | ||
6530 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6531 | ||
6532 | * sem_ch3.adb, sem_res.adb: Minor reformatting. | |
6533 | ||
6534 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6535 | ||
6536 | * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure | |
6537 | to issue an error in formal mode on attribute not supported in this mode | |
6538 | (Analyze_Attribute): issue errors on standard attributes not supported | |
6539 | in formal mode. | |
6540 | * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of | |
6541 | comment, and issue error in formal mode on modulus which is not a power | |
6542 | of 2. | |
6543 | (Process_Range_Expr_In_Decl): issue error in formal mode on non-static | |
6544 | range. | |
6545 | * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in | |
6546 | subtype mark. | |
6547 | * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary | |
6548 | operator on modular type (except 'not'). | |
6549 | ||
6550 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6551 | ||
6552 | * gnat_rm.texi: Minor reformatting. | |
6553 | ||
6554 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
6555 | ||
6556 | * s-osinte-linux.ads: Minor comment update and reformatting. | |
6557 | * i-cexten.ads: Make this unit pure, as for its parent. | |
6558 | Will allow its usage in more contexts if needed. | |
6559 | ||
6560 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6561 | ||
6562 | * s-utf_32.ads: Minor comment fix. | |
6563 | ||
6564 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6565 | ||
6566 | * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive | |
6567 | operation of a tagged synchronized type, handle the case where the | |
6568 | controlling argument is overloaded. | |
6569 | ||
6570 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6571 | ||
6572 | * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl: | |
6573 | Replace pragma SPARK_95 with pragma Restrictions (SPARK) | |
6574 | * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set | |
6575 | SPARK mode and formal verification mode on processing SPARK restriction | |
6576 | * s-rident.ads (Restriction_Id): add SPARK restriction in those not | |
6577 | requiring consistency checking. | |
6578 | ||
6579 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6580 | ||
6581 | * sem_res.adb: Minor reformatting. | |
6582 | ||
6583 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6584 | ||
6585 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
6586 | a-cforse.ads: Remove unneeded with of Ada.Containers | |
6587 | Remove commented out pragma Inline's | |
6588 | Move specifications of new subprograms to the actual specs | |
6589 | ||
6590 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6591 | ||
6592 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
6593 | a-cforse.ads: Update comments. | |
6594 | ||
6595 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6596 | ||
6597 | * sem_attr.adb: add attribute name when 'Result has the wrong prefix. | |
6598 | ||
6599 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6600 | ||
6601 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
6602 | a-cforse.ads, a-cofove.ads: Minor reformatting. | |
6603 | ||
6604 | 2011-08-02 Claire Dross <dross@adacore.com> | |
6605 | ||
6606 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads, | |
6607 | a-cofove.ads: Add comments. | |
6608 | ||
6609 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6610 | ||
6611 | * gnat_rm.texi: Document formal containers. | |
6612 | ||
6613 | 2011-08-02 Emmanuel Briot <briot@adacore.com> | |
6614 | ||
6615 | * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there | |
6616 | are empty sections. | |
6617 | ||
6618 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6619 | ||
6620 | * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor | |
6621 | reformatting. | |
6622 | ||
6623 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6624 | ||
6625 | * aspects.adb: New aspects Default_Value and Default_Component_Value | |
6626 | New format of Aspect_Names table checks for omitted entries | |
6627 | * aspects.ads: Remove mention of Aspect_Cancel and add documentation on | |
6628 | handling of boolean aspects for derived types. | |
6629 | New aspects Default_Value and Default_Component_Value | |
6630 | New format of Aspect_Names table checks for omitted entries | |
6631 | * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag | |
6632 | (Has_Default_Value): New flag | |
6633 | (Has_Default_Component_Value): New flag | |
6634 | (Has_Default_Value): New flag | |
6635 | * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names | |
6636 | table. | |
6637 | * par-prag.adb: New pragmas Default_Value and Default_Component_Value | |
6638 | * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects | |
6639 | Default_Value and Default_Component_Value | |
6640 | * sem_prag.adb: New pragmas Default_Value and Default_Component_Value | |
6641 | New aspects Default_Value and Default_Component_Value | |
6642 | * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value | |
6643 | * sprint.adb: Print N_Aspect_Specification node when called from gdb | |
6644 | ||
6645 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
6646 | ||
6647 | * prj-nmsc.adb (Check_Library_Attributes): For virtual library project, | |
6648 | inherit library kind. | |
6649 | ||
6650 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6651 | ||
6652 | * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds. | |
6653 | Minor reformatting. | |
6654 | ||
6655 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6656 | ||
6657 | * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM | |
6658 | ||
6659 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6660 | ||
6661 | * sem_aggr.adb (Resolve_Aggregate): Fix thinko. | |
6662 | ||
6663 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6664 | ||
6665 | * impunit.adb: Add comment. | |
6666 | ||
6667 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6668 | ||
6669 | * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks | |
6670 | qualification of aggregates in formal mode | |
6671 | (Is_Top_Level_Aggregate): returns True for an aggregate not contained in | |
6672 | another aggregate | |
6673 | (Resolve_Aggregate): complete the test that an aggregate is adequately | |
6674 | qualified in formal mode | |
6675 | ||
6676 | 2011-08-02 Pascal Obry <obry@adacore.com> | |
6677 | ||
6678 | * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting. | |
6679 | * mlib-prj.adb: Supress warning when compiling binder generated file. | |
6680 | (Build_Library): Supress all warnings when compiling the binder | |
6681 | generated file. | |
6682 | ||
6683 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6684 | ||
6685 | * errout.adb, errout.ads (Check_Formal_Restriction): move procedure | |
6686 | from here... | |
6687 | * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here | |
6688 | * sem_aggr.adb, sem_ch5.adb, sem_util.adb: | |
6689 | Add with/use clauses to make Check_Formal_Restriction visible | |
6690 | ||
6691 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6692 | ||
6693 | * sem_ch12.adb (Check_Generic_Actuals): handle properly actual | |
6694 | in-parameters when type of the generic formal is private in the generic | |
6695 | spec and non-private in the body. | |
6696 | ||
6697 | 2011-08-02 Claire Dross <dross@adacore.com> | |
6698 | ||
6699 | * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb, | |
6700 | a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads, | |
6701 | a-cofove.adb, a-cofove.ads: New files implementing formal containers. | |
6702 | * impunit.adb, Makefile.rtl: Take new files into account. | |
6703 | ||
6704 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6705 | ||
6706 | * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb, | |
6707 | sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting. | |
6708 | ||
6709 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6710 | ||
6711 | * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in | |
6712 | formal mode | |
6713 | * sem_util.adb (Matching_Static_Array_Bounds): proper detection of | |
6714 | matching static array bounds, taking into account the special case of | |
6715 | string literals | |
6716 | * sem_ch3.adb: Typo in comment. | |
6717 | ||
6718 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6719 | ||
6720 | * errout.adb, errout.ads (Check_Formal_Restriction): new procedure | |
6721 | which issues an error in formal mode if its argument node is originally | |
6722 | from source | |
6723 | * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type | |
6724 | has a discriminant specification so that it does not include the case | |
6725 | of derived types | |
6726 | (Derived_Type_Declaration): move here the test that a derived type has a | |
6727 | discriminant specification | |
6728 | * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the | |
6729 | first element of a component association before accessing its choices | |
6730 | (presence of component association is not enough) | |
6731 | * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram | |
6732 | declaration is a library item before accessing the next element in a | |
6733 | list, as library items are not member of lists | |
6734 | * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, | |
6735 | sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use | |
6736 | Check_Formal_Restriction whenever possible. | |
6737 | ||
6738 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6739 | ||
6740 | * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype | |
6741 | reference when needed. | |
6742 | ||
6743 | 2011-08-02 Bob Duff <duff@adacore.com> | |
6744 | ||
6745 | * gnat_ugn.texi: Fix typo. | |
6746 | ||
6747 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
6748 | ||
6749 | * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of | |
6750 | archive file name. Do not use the full path name of archives for Open | |
6751 | VMS. | |
6752 | ||
6753 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6754 | ||
6755 | * sem_ch12.adb, sem_ch11.adb: New calling sequence for | |
6756 | Analyze_Aspect_Specifications | |
6757 | * sem_ch13.adb | |
6758 | (Analyze_Aspect_Specifications): New handling for boolean aspects | |
6759 | * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence | |
6760 | * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling | |
6761 | sequence for Analyze_Aspect_Specifications | |
6762 | * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely | |
6763 | * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used | |
6764 | ||
6765 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6766 | ||
6767 | * freeze.adb (Freeze_Entity): Remove handling of delayed boolean | |
6768 | aspects, since these no longer exist. | |
6769 | ||
6770 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6771 | ||
6772 | * par-ch13.adb (Aspect_Specifications_Present): Always return false on | |
6773 | semicolon, do not try to see if there are aspects following it. | |
6774 | * par-ch3.adb (P_Declarative_Items): Better message for unexpected | |
6775 | aspect spec. | |
6776 | ||
6777 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6778 | ||
6779 | * sem_ch8.adb, aspects.ads: Minor reformatting. | |
6780 | ||
6781 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
6782 | ||
6783 | * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline. | |
6784 | * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure | |
6785 | extracted from... | |
6786 | (Analyze_Aspect_Specifications): ...here. Call above procedure. | |
6787 | ||
6788 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6789 | ||
6790 | * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal | |
6791 | mode on subprogram declaration outside of package specification, unless | |
6792 | it is followed by a pragma Import | |
6793 | * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration, | |
6794 | Access_Type_Declaration): issue error in formal mode on access type | |
6795 | (Analyze_Incomplete_Type_Decl): issue error in formal mode on | |
6796 | incomplete type | |
6797 | (Analyze_Object_Declaration): issue error in formal mode on object | |
6798 | declaration which does not respect SPARK restrictions | |
6799 | (Analyze_Subtype_Declaration): issue error in formal mode on subtype | |
6800 | declaration which does not respect SPARK restrictions | |
6801 | (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue | |
6802 | error in formal mode on digits or delta constraint | |
6803 | (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on | |
6804 | decimal fixed point type | |
6805 | (Derived_Type_Declaration): issue error in formal mode on derived type | |
6806 | other than type extensions of tagged record types | |
6807 | * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant | |
6808 | with check on access definition | |
6809 | * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal | |
6810 | mode on protected definition. | |
6811 | (Analyze_Task_Definition): issue error in formal mode on task definition | |
6812 | ||
6813 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6814 | ||
6815 | * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting. | |
6816 | ||
6817 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6818 | ||
6819 | * sem_ch6.adb (Can_Override_Operator): New function. | |
6820 | (Verify_Overriding_Indicator): Add missing code to check overriding | |
6821 | indicator in operators. Fixes regression. | |
6822 | (Check_Overriding_Indicator): Minor reformating after replacing the | |
6823 | code that evaluates if the subprogram can override an operator by | |
6824 | invocations to the above new function. | |
6825 | * einfo.adb | |
6826 | (Write_Field26_Name): Add missing code to ensure that, following | |
6827 | the documentation in einfo.ads, this field is not shown as attribute | |
6828 | "Static_Initialization" on non-dispatching functions. | |
6829 | ||
6830 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
6831 | ||
6832 | * sem_res.adb (Resolve_Call): A call to | |
6833 | Ada.Real_Time.Timing_Events.Set_Handler violates restriction | |
6834 | No_Relative_Delay (AI-0211) only when it sets a relative timing event, | |
6835 | i.e., when the second parameter is of type Time_Span. | |
6836 | ||
6837 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
6838 | ||
6839 | * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link | |
6840 | with an archive instead of -L<library dir> -l<library name>. | |
6841 | ||
6842 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6843 | ||
6844 | * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed, | |
6845 | mark the base types In_Use in addition to making the operations | |
6846 | use_visible. | |
6847 | ||
6848 | 2011-08-02 Ed Falis <falis@adacore.com> | |
6849 | ||
6850 | * init.c: add and setup __gnat_signal_mask for the exception signals | |
6851 | * s-inmaop-vxworks.adb: new file. | |
6852 | * s-intman-vxworks.adb: remove unnecessary initializations and | |
6853 | simplify remaining | |
6854 | * s-intman-vxworks.ads: remove unnecessary variable | |
6855 | * s-taprop-vxworks.adb: simplify signal initialization | |
6856 | ||
6857 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6858 | ||
6859 | * sem_ch8.adb: Minor code reorganization, comment updates. | |
6860 | ||
6861 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6862 | ||
6863 | * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util | |
6864 | * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved | |
6865 | here from Sem_Res. | |
6866 | (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression | |
6867 | (Matching_Static_Array_Bounds): Moved here from Sem_Res | |
6868 | ||
6869 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6870 | ||
6871 | * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5. | |
6872 | * par_ch8.adb (P_Use_Type): initialize Used_Operations for node. | |
6873 | * sinfo.ads, sinfo.adb (Used_Operations): new attribute of | |
6874 | use_type_clauses, to handle more efficiently use_type and use_all_type | |
6875 | constructs. | |
6876 | * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the | |
6877 | Ada2012 Use_All_Type clause. | |
6878 | (Use_Class_Wide_Operations): new procedure. | |
6879 | ||
6880 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6881 | ||
6882 | * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb, | |
6883 | sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized | |
6884 | expression to expression function. | |
6885 | ||
6886 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6887 | ||
6888 | * sem_ch4.adb: transform simple Ada2012 membership into equality only | |
6889 | if types are compatible. | |
6890 | ||
6891 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6892 | ||
6893 | * sem_res.adb (Matching_Static_Array_Bounds): new function which | |
6894 | returns True if its argument array types have same dimension and same | |
6895 | static bounds at each index. | |
6896 | (Resolve_Actuals): issue an error in formal mode on actuals passed as | |
6897 | OUT or IN OUT paramaters which are not view conversions in SPARK. | |
6898 | (Resolve_Arithmetic_Op): issue an error in formal mode on | |
6899 | multiplication or division with operands of fixed point types which are | |
6900 | not qualified or explicitly converted. | |
6901 | (Resolve_Comparison_Op): issue an error in formal mode on comparisons of | |
6902 | Boolean or array type (except String) operands. | |
6903 | (Resolve_Equality_Op): issue an error in formal mode on equality | |
6904 | operators for array types other than String with non-matching static | |
6905 | bounds. | |
6906 | (Resolve_Logical_Op): issue an error in formal mode on logical operators | |
6907 | for array types with non-matching static bounds. Factorize the code in | |
6908 | Matching_Static_Array_Bounds. | |
6909 | (Resolve_Qualified_Expression): issue an error in formal mode on | |
6910 | qualified expressions for array types with non-matching static bounds. | |
6911 | (Resolve_Type_Conversion): issue an error in formal mode on type | |
6912 | conversion for array types with non-matching static bounds | |
6913 | ||
6914 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6915 | ||
6916 | * par-ch10.adb: Minor code reorganization (use Nkind_In). | |
6917 | ||
6918 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6919 | ||
6920 | * par-ch9.adb: save location of entry for proper error message. | |
6921 | ||
6922 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6923 | ||
6924 | * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal | |
6925 | (Use_Full_View) which permits this routine to climb through the | |
6926 | ancestors using the full-view of private parents. | |
6927 | * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set | |
6928 | Use_Full_View to true in calls to Is_Ancestor. | |
6929 | * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to | |
6930 | true in call to Is_Ancestor. | |
6931 | * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set | |
6932 | Use_Full_View to true in call to Is_Ancestor. | |
6933 | * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in | |
6934 | call to Is_Ancestor. | |
6935 | * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set | |
6936 | Use_Full_View to true in calls to Is_Ancestor. | |
6937 | * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT, | |
6938 | Make_Select_Specific_Data_Table, Register_Primitive, | |
6939 | Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor. | |
6940 | * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View | |
6941 | to true in call to Is_Ancestor. | |
6942 | * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set | |
6943 | Use_Full_View to true in calls to Is_Ancestor. | |
6944 | * exp_cg.adb | |
6945 | (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor. | |
6946 | (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor. | |
6947 | ||
6948 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6949 | ||
6950 | * gnat_rm.texi: Minor reformatting. | |
6951 | * sem_prag.adb: Minor reformatting. | |
6952 | ||
6953 | 2011-08-02 Tristan Gingold <gingold@adacore.com> | |
6954 | ||
6955 | * vms_data.ads: Add VMS qualifier for -gnateP. | |
6956 | ||
6957 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6958 | ||
6959 | * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty | |
6960 | * par-ch7.adb (P_Package): Proper placement of aspects for package | |
6961 | decl/instantiation. | |
6962 | * par-endh.adb (Check_End): Ad Is_Sloc parameter | |
6963 | (End_Statements): Add Is_Sloc parameterr | |
6964 | * par.adb (P_Aspect_Specification): New meaning of Decl = Empty | |
6965 | (Check_End): Ad Is_Sloc parameter | |
6966 | (End_Statements): Add Is_Sloc parameterr | |
6967 | ||
6968 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
6969 | ||
6970 | * ug_words: Add VMS qualifier equivalent to -gnateP: | |
6971 | /SYMBOL_PREPROCESSING. | |
6972 | ||
6973 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
6974 | ||
6975 | * gnat-style.texi: For hexadecimal numeric literals the typical | |
6976 | grouping of digits is 4 to represent 2 bytes. | |
6977 | A procedure spec which is split into several lines is indented two | |
6978 | characters. | |
6979 | ||
6980 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6981 | ||
6982 | * exp_aggr.adb (Is_Others_Aggregate): move function to other unit. | |
6983 | * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here | |
6984 | (Resolve_Aggregate): issue errors in formal modes when aggregate is not | |
6985 | properly qualified | |
6986 | (Resolve_Array_Aggregate): issue errors in formal modes on non-static | |
6987 | choice in array aggregate | |
6988 | (Resolve_Extension_Aggregate): issue errors in formal modes on subtype | |
6989 | mark as ancestor | |
6990 | (Resolve_Record_Aggregate): issue errors in formal modes on mixed | |
6991 | positional and named aggregate for record, or others in record | |
6992 | aggregate, or multiple choice in record aggregate | |
6993 | * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when | |
6994 | array operands to logical operations AND, OR and XOR do not have the | |
6995 | same static lower and higher bounds | |
6996 | * sem_ch5.adb, sinfo.ads: Correct typos in comments | |
6997 | ||
6998 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
6999 | ||
7000 | * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement): | |
7001 | Replaces Last_Source_Node_In_Sequence. | |
7002 | * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K | |
7003 | * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores | |
7004 | parens and blank in string (this was inconsistently implemented). | |
7005 | * errout.ads | |
7006 | (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and | |
7007 | blank in string (this was inconsistently implemented). | |
7008 | * gnat1drv.adb | |
7009 | (Set_Global_Switches): Set formal mode switches appropriately | |
7010 | * opt.ads, opt.adb: Formal mode is now global switches, more consistent | |
7011 | * par-prag.adb | |
7012 | (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and | |
7013 | call Set_Error_Msg_Lang to set "spark" as language name. | |
7014 | * par.adb: Remove unnecessary call to set formal language for errout | |
7015 | * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches | |
7016 | appropriately and call Set_Error_Msg_Lang to set "spark" as language | |
7017 | name. | |
7018 | * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and | |
7019 | calls to it, moved after resolution so that types are known | |
7020 | * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if | |
7021 | result of concatenation is not of type String | |
7022 | (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of | |
7023 | concatenation is not properly restricted | |
7024 | * gnat_rm.texi: Add doc on pragma Spark_95. | |
7025 | * gcc-interface/Makefile.in: Remove obsolete target pairs for | |
7026 | Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads. | |
7027 | * gcc-interface/Make-lang.in: Update dependencies. | |
7028 | ||
7029 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
7030 | ||
7031 | * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of | |
7032 | condition that detects if the overridden operation must replace an | |
7033 | existing entity. | |
7034 | ||
7035 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
7036 | ||
7037 | * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded | |
7038 | code declarations inserted by Insert_Actions in each alternative of the | |
7039 | N_Case_Expression node. | |
7040 | ||
7041 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7042 | ||
7043 | * sem_ch6.adb: Minor code reorganization. | |
7044 | * sem_util.adb: Minor reformatting. | |
7045 | ||
7046 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
7047 | ||
7048 | * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path. | |
7049 | * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource. | |
7050 | ||
7051 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
7052 | ||
7053 | * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character | |
7054 | literal or operator symbol which is prefixed | |
7055 | * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal | |
7056 | mode on access attributes. | |
7057 | * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check | |
7058 | that concatenation operands are properly restricted in formal mode | |
7059 | (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure | |
7060 | Analyze_Concatenation_Operand. Issue an error in formal mode if the | |
7061 | result of the concatenation has a type different from String. | |
7062 | (Analyze_Conditional_Expression, Analyze_Explicit_Dereference, | |
7063 | Analyze_Quantified_Expression, Analyze_Slice, | |
7064 | Analyze_Null): issue an error in formal mode on unsupported constructs | |
7065 | * sem_ch5.adb | |
7066 | (Analyze_Block_Statement): only issue error on source block statement | |
7067 | * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new | |
7068 | function which returns the last node in a list of nodes for which | |
7069 | Comes_From_Source returns True, if any | |
7070 | * sem_ch6.adb (Check_Missing_Return): minor refactoring to use | |
7071 | Last_Source_Node_In_Sequence | |
7072 | * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming, | |
7073 | Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal | |
7074 | mode on unsupported constructs | |
7075 | * sem_ch9.adb Do not return after issuing error in formal mode, as the | |
7076 | rest of the actions may be needed later on since the error is marked as | |
7077 | not serious. | |
7078 | * sinfo.ads: Typos in comments. | |
7079 | ||
7080 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
7081 | ||
7082 | * projects.texi: Minor editing. | |
7083 | ||
7084 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
7085 | ||
7086 | * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for | |
7087 | insertion character ~~ | |
7088 | * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures | |
7089 | (Set_Error_Msg_Lang): new procedure which fixes the language for use | |
7090 | with insertion character ~~ | |
7091 | (Set_Msg_Text): treat insertion character ~~ | |
7092 | * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb, | |
7093 | sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to | |
7094 | Formal_Error_Msg_... procedures by equivalent Error_Msg_... | |
7095 | procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make | |
7096 | errors related to the formal language restriction not serious | |
7097 | (insertion character |). | |
7098 | * par.adb (Par): set formal language for error messages if needed | |
7099 | * sem_ch6.adb (Check_Missing_Return): take into account possible | |
7100 | generated statements at the end of the function | |
7101 | * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and | |
7102 | enumeration value to define a new pragma SPARK_95 | |
7103 | * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default, | |
7104 | SPARK_Version): new type and variables to store the SPARK version | |
7105 | (none by default). | |
7106 | (SPARK_Mode): return True when SPARK_Version is set | |
7107 | * par-prag.adb: Correct indentation | |
7108 | (Prag): take Pragma_SPARK_95 into account | |
7109 | * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95 | |
7110 | into account. | |
7111 | ||
7112 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7113 | ||
7114 | * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb, | |
7115 | sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb, | |
7116 | sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting | |
7117 | ||
7118 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
7119 | ||
7120 | * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass | |
7121 | Target_Name to Get_Path call. | |
7122 | (Parse_Single_Project): Likewise. | |
7123 | (Post_Parse_Context_Clause): Likewise. | |
7124 | * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter. | |
7125 | Call Initialise_Project_Path with the proper Target_Name. | |
7126 | (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat | |
7127 | search path. | |
7128 | (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path | |
7129 | with the proper Target_Name. | |
7130 | * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to | |
7131 | Part.Parse routine. | |
7132 | (Parse_Project_And_Apply_Config): Likewise. | |
7133 | * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine. | |
7134 | This is fine as this part of the code is supporting only native | |
7135 | compilation. | |
7136 | * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This | |
7137 | is fine as this part of the code is supporting only native compilation. | |
7138 | ||
7139 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
7140 | ||
7141 | * sem_util.adb (Enter_Name): issue error in formal mode on declaration | |
7142 | of homonym, unless the homonym is one of the cases allowed in SPARK | |
7143 | * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for | |
7144 | package declaration occurring after a body. | |
7145 | ||
7146 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7147 | ||
7148 | * checks.adb, exp_ch4.adb: Minor reformatting. | |
7149 | ||
7150 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
7151 | ||
7152 | * einfo.ads (Access_Disp_Table): Fix documentation. | |
7153 | (Dispatch_Table_Wrappers): Fix documentation. | |
7154 | ||
7155 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
7156 | ||
7157 | * prj-env.adb, prj-env.ads: Minor reformatting. | |
7158 | ||
7159 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
7160 | ||
7161 | * sem_util.ads, sem_util.adb, par.adb, par_util.adb | |
7162 | (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move | |
7163 | procedures out of these packages. | |
2c7f9cc0 | 7164 | * errout.ads, errout.adb |
052e0603 AC |
7165 | (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move |
7166 | procedures in of this package | |
7167 | (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE | |
7168 | * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode | |
7169 | on misplaced later vs initial declarations, like in Ada 83 | |
7170 | * sem_attr.adb (Processing for Analyze_Attribute): issue error in | |
7171 | formal mode on attribute of private type whose full type declaration | |
7172 | is not visible | |
7173 | * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a | |
7174 | package declaration inside a package specification | |
7175 | (Analyze_Full_Type_Declaration): issue error in formal mode on | |
7176 | controlled type or discriminant type | |
7177 | * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on | |
7178 | user-defined operator means that it should come from the source | |
7179 | (New_Overloaded_Entity): issue error in formal mode on overloaded | |
7180 | entity. | |
7181 | * sem_ch6.ads, sem_ch13.ads: typos in comments. | |
7182 | ||
7183 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
7184 | ||
7185 | * atree.adb: Minor reformatting. | |
7186 | * checks.adb: Minor reformatting. | |
7187 | ||
7188 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
7189 | ||
7190 | * s-parame-vms-ia64.ads: Fix typo in comment | |
7191 | Minor reformatting | |
7192 | * s-parame-vms-restrict.ads: Removed, unused. | |
7193 | ||
7194 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
7195 | ||
7196 | * exp_ch3.adb | |
7197 | (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound. | |
7198 | * sem_ch3.adb | |
7199 | (Constrain_Index): Remove side effects in the evaluation of the bounds. | |
7200 | * sem_ch3.ads, sem_ch3.adb | |
7201 | (Is_Constant_Bound): New extended version of the subprogram that was | |
7202 | previously located inside function Exp_Ch3.Is_Variable_Size_Array. | |
7203 | Moved here since it is shared by routines of sem_ch3 and exp_ch3. | |
7204 | * sem_aux.ads (Constant_Value): Fix typo in comment. | |
7205 | * checks.adb (Generate_Index_Checks): New implementation which, for | |
7206 | array objects with constant bounds, generates the runtime check | |
7207 | referencing the bounds of the array type. For other cases this routine | |
7208 | provides its previous behavior obtaining such values from the array | |
7209 | object. | |
7210 | * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its | |
7211 | parent type. | |
7212 | * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since | |
7213 | we cannot have semantic interpretations of the new node. | |
7214 | ||
7215 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
7216 | ||
7217 | * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified | |
7218 | expressions. | |
7219 | ||
7220 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
7221 | ||
7222 | * sem_ch8.adb: Minor code editing. | |
7223 | * s-vxwext.adb: Remove trailing space. | |
7224 | * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for | |
7225 | consistency with other files. | |
7226 | ||
7227 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
7228 | ||
7229 | * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting. | |
7230 | ||
7231 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
7232 | ||
7233 | * par-ch10.adb: reject parameterized expressions as compilation unit. | |
7234 | * sem_ch4.adb: handle properly conditional expression with overloaded | |
7235 | then_clause and no else_clause. | |
7236 | ||
7237 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
7238 | ||
7239 | * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address | |
7240 | like done by System.Aux_DEC. | |
7241 | * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table. | |
7242 | ||
7243 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
7244 | ||
7245 | * par-endh.adb (Check_End): issue a syntax error in SPARK mode for | |
7246 | missing label at end of declaration (subprogram or package) | |
7247 | * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing | |
7248 | of positional and named parameter association | |
7249 | * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on | |
7250 | Error_Msg_SP which adds a prefix to the error message giving the name | |
7251 | of the formal language analyzed | |
7252 | * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for | |
7253 | access result type in subprogram, unconstrained array as result type,. | |
7254 | (Analyze_Subprogram_Declaration): issue an error in formal mode for null | |
7255 | procedure | |
7256 | * sem_ch8.adb: Code clean up. | |
7257 | ||
7258 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
7259 | ||
7260 | * sem_ch7.adb (Uninstall_Declarations): Remove useless code. | |
7261 | * einfo.ads (Access_Disp_Table): Fix documentation. | |
7262 | (Dispatch_Table_Wrappers): Fix documentation. | |
7263 | * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers, | |
7264 | Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions | |
7265 | to enforce the documentation of this attribute. | |
7266 | (Set_Is_Interface): Cleanup the assertion. | |
7267 | * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate | |
7268 | the Underlying_Type entity before reading attribute Access_Disp_Table. | |
7269 | * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion): | |
7270 | Locate the Underlying_Type before reading attribute Access_Disp_Table. | |
7271 | * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate | |
7272 | the Underlying_Type entity before reading attribute Access_Disp_Table. | |
7273 | * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration): | |
7274 | Locate the Underlying_Type entity before reading attribute | |
7275 | Access_Disp_Table. | |
7276 | ||
7277 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
7278 | ||
7279 | * s-poosiz.ads: Additional overriding indicators. | |
7280 | ||
7281 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
7282 | ||
7283 | * sem_ch5.adb (Analyze_Exit_Statement): add return after error in | |
7284 | formal mode. | |
7285 | (Analyze_Iteration_Scheme): issue error in formal mode when loop | |
7286 | parameter specification does not include a subtype mark. | |
7287 | * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in | |
7288 | formal mode on abstract subprogram. | |
7289 | (Analyze_Subprogram_Specification): issue error in formal mode on | |
7290 | user-defined operator. | |
7291 | (Process_Formals): issue error in formal mode on access parameter and | |
7292 | default expression. | |
7293 | * sem_ch9.adb (Analyze_Abort_Statement, | |
7294 | Analyze_Accept_Statement, Analyze_Asynchronous_Select, | |
7295 | Analyze_Conditional_Entry_Call, Analyze_Delay_Relative, | |
7296 | Analyze_Delay_Until, Analyze_Entry_Call_Alternative, | |
7297 | Analyze_Requeue, Analyze_Selective_Accept, | |
7298 | Analyze_Timed_Entry_Call): issue error in formal mode on such constructs | |
7299 | * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error): | |
7300 | issue error in formal mode on user-defined raise statement. | |
7301 | ||
7302 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
7303 | ||
7304 | * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a | |
7305 | declaration being hidden when overriding an implicit inherited | |
7306 | subprogram. | |
7307 | * par-ch10.adb (P_Compilation_Unit): In syntax check only mode | |
7308 | (-gnats), do not complain about a source file that contains only a | |
7309 | pragma No_Body. | |
7310 | ||
7311 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
7312 | ||
7313 | * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop | |
7314 | variable if already set. | |
7315 | ||
7316 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
7317 | ||
7318 | * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads, | |
7319 | g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads, | |
7320 | s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads, | |
7321 | g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb, | |
7322 | g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads, | |
7323 | g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads, | |
7324 | g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads, | |
7325 | g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb, | |
7326 | g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb, | |
7327 | g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads, | |
7328 | g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads, | |
7329 | s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb, | |
7330 | g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads, | |
7331 | s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads, | |
7332 | g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb, | |
7333 | g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb, | |
7334 | g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb, | |
7335 | g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb, | |
7336 | g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb, | |
7337 | g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb, | |
7338 | s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads, | |
7339 | s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads, | |
7340 | a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb, | |
7341 | s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads, | |
7342 | s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb, | |
7343 | g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads, | |
7344 | g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb, | |
7345 | g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb, | |
7346 | g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads, | |
7347 | g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads, | |
7348 | g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads, | |
7349 | s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads, | |
7350 | s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb, | |
7351 | g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb, | |
7352 | g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads, | |
7353 | s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb, | |
7354 | s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads, | |
7355 | g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads, | |
7356 | g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb, | |
7357 | g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, | |
7358 | s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads, | |
7359 | g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads, | |
7360 | g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads, | |
7361 | g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb, | |
7362 | s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb, | |
7363 | g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb, | |
7364 | g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb, | |
7365 | g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb, | |
7366 | s-osinte-mingw.ads: Update to GPLv3 run-time license. | |
7367 | Use GNAT instead of GNARL. | |
7368 | ||
7369 | 2011-08-01 Bob Duff <duff@adacore.com> | |
7370 | ||
7371 | * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads, | |
7372 | a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads, | |
7373 | a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor | |
7374 | reformatting. | |
7375 | ||
7376 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
7377 | ||
7378 | * debug.adb (d.D) reverve flag for the SPARK mode | |
7379 | (d.E) reverve flag for SPARK generation mode | |
7380 | (d.F) reverve flag for Why generation mode | |
2c7f9cc0 | 7381 | * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode, |
052e0603 AC |
7382 | ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New |
7383 | functions which return True when the corresponding modes are set | |
7384 | (Formal_Language): return "spark" or "alfa" when in formal verification | |
7385 | mode. | |
7386 | * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on | |
7387 | Error_Msg to prefix the error message with a tag giving the formal | |
7388 | language | |
7389 | (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error | |
7390 | message with a tag giving the formal language | |
7391 | * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on | |
7392 | block statement | |
7393 | (Analyze_Case_Statement): issue error in formal mode on case statement | |
7394 | with a single "others" case alternative | |
7395 | (Analyze_Exit_Statement): issue errors in formal mode on exit | |
7396 | statements which do not respect SPARK restrictions | |
7397 | (Analyze_Goto_Statement): issue error in formal mode on goto statement | |
7398 | (Check_Unreachable_Code): always issue an error (not a warning) in | |
7399 | formal mode on unreachable code (concerns both code after an infinite | |
7400 | loop and after an unconditional jump, both not allowed in SPARK) | |
7401 | * sem_ch6.adb (Analyze_Return_Statement): add call to | |
7402 | Set_Return_Present for a procedure containing a return statement | |
7403 | (already done for functions in Analyze_Function_Return) | |
7404 | (Analyze_Function_Return): issue error in formal mode on extended | |
7405 | return or if return is not last statement in function | |
7406 | (Check_Missing_Return): issue error in formal mode if function does | |
7407 | not end with return or if procedure contains a return | |
7408 | * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new | |
7409 | function to detect if there is an inner scope of its parameter S which | |
7410 | is a loop. | |
7411 | ||
7412 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
7413 | ||
7414 | * sem_ch6.ads: Minor reformatting. | |
7415 | ||
7416 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
7417 | ||
7418 | * sem_util.adb (Abstract_Interface_List): Complete condition when | |
7419 | processing private type declarations to avoid reading unavailable | |
7420 | attribute. | |
7421 | (Is_Synchronized_Tagged_Type): Complete condition when processing | |
7422 | private extension declaration nodes to avoid reading unavailable | |
7423 | attribute. | |
7424 | ||
7425 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
7426 | ||
7427 | * sem_ch3.adb: Minor reformatting. | |
7428 | ||
7429 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
7430 | ||
7431 | * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads, | |
7432 | i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads, | |
7433 | s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads, | |
7434 | s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages | |
7435 | for VMS, instead parametrize the common implementation with | |
7436 | System.Parameters declarations. | |
7437 | ||
7438 | 2011-08-01 Eric Botcazou <ebotcazou@adacore.com> | |
7439 | ||
7440 | * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing. | |
7441 | ||
7442 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
7443 | ||
7444 | * seh_init.c: Fix SEH handler installation on win64. | |
7445 | ||
7446 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
7447 | ||
7448 | * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent | |
7449 | double analysis of an anonymous access to subprogram, because it can | |
7450 | lead to improper sharing of profiles and a back-end crash. | |
7451 | ||
7452 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7453 | ||
7454 | * make.adb, sem_ch4.adb: Minor reformatting. | |
7455 | * gcc-interface/Make-lang.in: Update dependencies. | |
7456 | * sem_util.adb, exp_ch5.adb: Minor reformatting. | |
7457 | ||
7458 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
7459 | ||
7460 | * gnat_rm.texi: Fix definition of Long_Integer. | |
7461 | ||
7462 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
7463 | ||
7464 | * exp_aggr.adb: check limit size of static aggregate unconditionally, | |
7465 | to prevent storage exhaustion. | |
7466 | * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being | |
7467 | finalized is a function body, insert the cleanup code before the final | |
7468 | return statement, to prevent spurious warnings. | |
7469 | * s-pooglo.ads: add overriding indicator. | |
7470 | ||
7471 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
7472 | ||
7473 | * sem_ch4.adb (Operator_Check): improve error message when both a | |
7474 | with_clause and a use_clause are needed to make operator usage legal. | |
7475 | * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to | |
7476 | determine whether a compilation unit is visible within an other, | |
7477 | either through a with_clause in the current unit, or a with_clause in | |
7478 | its library unit or one one of its parents. | |
7479 | ||
7480 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
7481 | ||
7482 | * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator | |
7483 | over an arbitrary expression of an array or container type. | |
7484 | * lib-xref.adb: clarify comment. | |
7485 | ||
7486 | 2011-08-01 Bob Duff <duff@adacore.com> | |
7487 | ||
7488 | * einfo.ads: Minor reformatting. | |
7489 | * debug.adb: Minor comment improvement. | |
7490 | ||
7491 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
7492 | ||
7493 | * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not | |
7494 | consider hidden subprograms as valid candidates. | |
7495 | ||
7496 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
7497 | ||
7498 | * make.adb (Compile): Strip -mxxx switches in CodePeer mode. | |
7499 | ||
7500 | 2011-08-01 Vasiliy Fofanov <fofanov@adacore.com> | |
7501 | ||
7502 | * gnat_ugn.texi: Fix typo. | |
7503 | ||
7504 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7505 | ||
7506 | * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb, | |
7507 | lib-xref.adb: Minor reformatting | |
7508 | ||
7509 | 2011-08-01 Gary Dismukes <dismukes@adacore.com> | |
7510 | ||
7511 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of | |
7512 | when to generate a call to Move_Final_List. | |
7513 | (Has_Controlled_Parts): Remove this function. | |
7514 | ||
7515 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
7516 | ||
7517 | * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra | |
7518 | "," in choice list. | |
7519 | ||
7520 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
7521 | ||
7522 | * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for | |
7523 | explicit raise of a predefined exception as Comes_From_Source if the | |
7524 | original N_Raise_Statement comes from source. | |
7525 | ||
7526 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7527 | ||
7528 | * sinfo.ads: Add comment. | |
7529 | * sem_ch6.adb: Minor reformatting. | |
7530 | ||
7531 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7532 | ||
7533 | * freeze.adb (Freeze_Entity): Refine check for bad component size | |
7534 | clause to avoid rejecting confirming clause when atomic/aliased present. | |
7535 | ||
7536 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
7537 | ||
7538 | * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to | |
7539 | better determine whether an entity reference is a write. | |
7540 | * sem_util.adb (Is_LHS): refine predicate to handle assignment to a | |
7541 | subcomponent. | |
7542 | * lib-xref.adb (Output_References): Do no suppress a read reference at | |
7543 | the same location as an immediately preceeding modify-reference, to | |
7544 | handle properly in-out actuals. | |
7545 | ||
7546 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
7547 | ||
7548 | * env.c (__gnat_setenv) [VMS]: Refine previous change. | |
7549 | ||
7550 | 2011-08-01 Quentin Ochem <ochem@adacore.com> | |
7551 | ||
7552 | * i-cstrin.adb (New_String): Changed implementation, now uses only the | |
7553 | heap to compute the result. | |
7554 | ||
7555 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7556 | ||
7557 | * atree.ads: Minor reformatting. | |
7558 | ||
7559 | 2011-08-01 Emmanuel Briot <briot@adacore.com> | |
7560 | ||
7561 | * g-expect.adb (Get_Command_Output): Fix memory leak. | |
7562 | ||
7563 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
7564 | ||
7565 | * cstand.adb (P_Float_Type): New procedure to print the definition of | |
7566 | predefined fpt types. | |
7567 | (P_Mixed_Name): New procedure to print a name using mixed case | |
7568 | (Print_Standard): Use P_Float_Type for printing floating point types | |
7569 | * einfo.adb (Machine_Emax_Value): Add preliminary support for quad | |
7570 | precision IEEE float. | |
7571 | ||
7572 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
7573 | ||
7574 | * sem_ch3.adb: Minor reformatting. | |
7575 | ||
7576 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
7577 | ||
7578 | * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is | |
7579 | the completion of a generic function, insert the new body rather than | |
7580 | rewriting the original. | |
7581 | ||
7582 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
7583 | ||
7584 | * sinfo.ads, errout.ads: Typos in comments. | |
7585 | ||
7586 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7587 | ||
7588 | * par-endh.adb: Minor reformatting. | |
7589 | ||
7590 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7591 | ||
7592 | * aspects.ads, aspects.adb: Add aspects for library unit pragmas | |
7593 | (Pre_Post_Aspects): New subtype. | |
7594 | * par-ch12.adb (P_Generic): New syntax for aspects in packages | |
7595 | * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter | |
7596 | * par-ch7.adb (P_Package): Remove Decl parameter | |
7597 | (P_Package): Handle new syntax for aspects (before IS) | |
7598 | * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle | |
7599 | new aspect syntax | |
7600 | (P_Task_Definition): Remove Decl parameter, handle new aspect syntax | |
7601 | * par.adb (P_Aspect_Specifications): Add Semicolon parameter | |
7602 | (P_Package): Remove Decl parameter | |
7603 | * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit | |
7604 | aspects | |
7605 | * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect | |
7606 | specs | |
7607 | * sem_util.ads, sem_util.adb (Static_Boolean): New function | |
7608 | * sinfo.ads: Document new syntax for aspects in packages etc. | |
7609 | * sprint.adb: Handle new syntax of aspects before IS in package | |
7610 | ||
7611 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
7612 | ||
7613 | * atree.ads: Minor reformatting. | |
7614 | * sem_prag.adb: Minor reformatting. | |
7615 | ||
7616 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7617 | ||
7618 | * exp_util.adb (Insert_Actions): Fix error in handling Actions for | |
7619 | case expr alternative. | |
7620 | ||
7621 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
7622 | ||
7623 | * sem_ch12.adb: Fix typo. | |
7624 | ||
7625 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
7626 | ||
7627 | * sem_prag.adb (Check_No_Link_Name): New procedure. | |
7628 | (Process_Import_Or_Interface): Use Check_No_Link_Name. | |
7629 | * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float) | |
7630 | instead of Standard_Long_Long_Float_Size global. Preparation for | |
7631 | eventual removal of per type constants. | |
7632 | * exp_util.ads (Get_Stream_Size): New function returning the stream | |
7633 | size value of subtype E. | |
7634 | * exp_util.adb (Get_Stream_Size): Implement new function. | |
7635 | * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size | |
7636 | function. | |
7637 | * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size | |
7638 | * einfo.adb: | |
7639 | (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats | |
7640 | ||
7641 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
7642 | ||
7643 | * cstand.adb: Fix comments. | |
7644 | * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit | |
7645 | count of arguments. | |
7646 | ||
7647 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7648 | ||
7649 | * exp_ch4.adb, sem_cat.adb: Minor reformatting. | |
7650 | ||
7651 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
7652 | ||
7653 | * atree.ads: Fix comment. | |
7654 | ||
7655 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7656 | ||
7657 | * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec. | |
7658 | * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name. | |
7659 | * par.adb: Add with for Namet.Sp. | |
7660 | * par-tchk.adb: Minor reformatting. | |
7661 | ||
7662 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
7663 | ||
7664 | * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb | |
7665 | (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name | |
7666 | of the init procedure of a SAL. | |
7667 | * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name): | |
7668 | New procedure. | |
7669 | ||
7670 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
7671 | ||
7672 | * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor | |
7673 | reformatting. | |
7674 | ||
7675 | 2011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
7676 | ||
7677 | * adaint.c (__gnat_file_time_name_attr): Get rid of warning. | |
7678 | ||
7679 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
7680 | ||
7681 | * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function | |
7682 | conformant with its spec (return True only for types that have | |
7683 | an overriding Initialize primitive operation that prevents them from | |
7684 | having preelaborable initialization). | |
7685 | * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable | |
7686 | initialization for controlled types in Ada 2005 or later mode. | |
7687 | ||
7688 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7689 | ||
7690 | * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition, | |
7691 | Postcondition. | |
7692 | (Same_Aspect): New function. | |
7693 | * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect | |
7694 | Type_Invariant, Precondition, Postcondition. | |
7695 | * snames.ads-tmpl: Add Name_Type_Invariant. | |
7696 | ||
7697 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7698 | ||
7699 | * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point | |
7700 | here. | |
7701 | (Freeze_All_Ent): Fix error in handling inherited aspects. | |
7702 | * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is | |
7703 | already analyzed, but don't skip entire processing of a declaration, | |
7704 | that's wrong in some cases of declarations being rewritten. | |
7705 | (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects. | |
7706 | Don't delay for integer, string literals | |
7707 | Treat predicates in usual manner for delay, remove special case code, | |
7708 | not needed. | |
7709 | (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point | |
7710 | (Build_Predicate_Function): Update saved expression in aspect | |
7711 | (Build_Invariant_Procedure): Update saved expression in aspect | |
7712 | * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization | |
7713 | of replacement of discriminant references if the reference is simple. | |
7714 | ||
7715 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7716 | ||
7717 | * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate. | |
7718 | * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for | |
7719 | Static_Predicate and Dynamic_Predicate. | |
7720 | (Build_Predicate_Function): Add processing for Static_Predicate | |
7721 | and Dynamic_Predicate. | |
7722 | * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag | |
7723 | (From_Static_Predicate): New flag | |
7724 | * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate | |
7725 | ||
7726 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7727 | ||
7728 | * usage.adb: Documentation cleanup for Ada version modes in usage. | |
7729 | * expander.adb: Minor reformatting. | |
7730 | ||
7731 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7732 | ||
7733 | * atree.ads: Minor comment fix. | |
7734 | * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads, | |
7735 | a-witeio.ads, sem_prag.adb: Minor reformatting. | |
7736 | ||
7737 | 2011-08-01 Doug Rupp <rupp@adacore.com> | |
7738 | ||
7739 | * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure | |
7740 | pointers. Use descrip.h header file for convenience. Add some | |
7741 | comments. | |
7742 | ||
7743 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7744 | ||
7745 | * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point | |
7746 | (Freeze_All): Call Check_Aspect_At_End_Of_Declarations | |
7747 | * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point): | |
7748 | New procedure. | |
7749 | (Check_Aspect_At_End_Of_Declarations): New procedure | |
7750 | (Analye_Aspect_Specification): Minor changes for above procedures | |
7751 | * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect | |
7752 | specification node as well. | |
7753 | ||
7754 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
7755 | ||
7756 | * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special | |
7757 | Windows files. Use GetFilesAttributes() in this case to check for file | |
7758 | existence instead of returning with an error code. | |
7759 | ||
7760 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
7761 | ||
7762 | * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when | |
7763 | High is above Source length. | |
7764 | ||
7765 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7766 | ||
7767 | * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment. | |
7768 | ||
7769 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7770 | ||
7771 | * aspects.ads (Boolean_Aspects): New subtype. | |
7772 | * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects | |
7773 | for derived types in cases where the parent type and derived type have | |
7774 | aspects. | |
7775 | * freeze.adb (Freeze_Entity): Fix problems in handling derived type | |
7776 | with aspects when parent type also has aspects. | |
7777 | (Freeze_Entity): Deal with delay of boolean aspects (must evaluate | |
7778 | boolean expression at this point). | |
7779 | * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in | |
7780 | accordance with final decision on the Ada 2012 feature. | |
7781 | * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag. | |
7782 | ||
7783 | 2011-08-01 Matthew Heaney <heaney@adacore.com> | |
7784 | ||
7785 | * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector. | |
7786 | ||
7787 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
7788 | ||
7789 | * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: | |
7790 | Fix Replace_Slice when High is above current string size. | |
7791 | (Replace_Slice): Fix DL computation when High is above current | |
7792 | string length. | |
7793 | ||
7794 | 2011-08-01 Gary Dismukes <dismukes@adacore.com> | |
7795 | ||
7796 | * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired. | |
7797 | ||
7798 | 2011-08-01 Matthew Heaney <heaney@adacore.com> | |
7799 | ||
7800 | * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child | |
7801 | of node. | |
7802 | ||
7803 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
7804 | ||
7805 | * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor | |
7806 | reformatting. | |
7807 | ||
7808 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
7809 | ||
7810 | * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named | |
7811 | access to protected subprograms in generic bodies. | |
7812 | * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a | |
7813 | protected type, indicate that the convention of the subprogram is | |
7814 | Convention_Protected, because it may be used in subsequent declarations | |
7815 | within the protected declaration. | |
7816 | ||
7817 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
7818 | ||
7819 | * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init" | |
7820 | and "final" procedures when the name of the library is "ada", to avoid | |
7821 | duplicate symbols "adainit" and "adafinal" in executables. | |
7822 | ||
7823 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
7824 | ||
7825 | * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a | |
7826 | quantified expression that appears within a postcondition and uses the | |
7827 | Ada2012 'Result attribute. | |
7828 | ||
7829 | 2011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
7830 | ||
7831 | * init.c (__gnat_error_handler): Cast reason to int. | |
7832 | (__gnat_install_handler): Explain sa_sigaction use. | |
7833 | ||
7834 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> | |
7835 | ||
7836 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the | |
7837 | subprogram has copy-in copy-out parameters, try to promote the mode of | |
7838 | the return type if it is passed in registers. | |
7839 | ||
7840 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> | |
7841 | ||
7842 | * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the | |
7843 | left operand as addressable. | |
7844 | ||
7845 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> | |
7846 | ||
7847 | * gcc-interface/gigi.h (build_function_stub): Remove. | |
7848 | (build_return_expr): Likewise. | |
7849 | (convert_vms_descriptor): Declare. | |
7850 | * gcc-interface/utils.c (convert_vms_descriptor): Make global. | |
7851 | (build_function_stub): Move to... | |
7852 | * gcc-interface/utils2.c (build_return_expr): Move to... | |
7853 | * gcc-interface/trans.c (build_function_stub): ...here. | |
7854 | (build_return_expr): ...here. | |
7855 | (Subprogram_Body_to_gnu): Add local variable for language_function. | |
7856 | Disconnect the parameter attributes cache, if any, once done with it. | |
7857 | Call end_subprog_body only after setting the end_locus. | |
7858 | Build the stub associated with the function, if any, at the very end. | |
7859 | (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local | |
7860 | variables and streamline control flow. | |
7861 | ||
7862 | 2011-07-23 Arnaud Charlet <charlet@adacore.com> | |
7863 | ||
7864 | PR ada/49819 | |
7865 | * gcc-interface/Makefile.in (powerpc-linux): Remove reference to | |
7866 | g-trasym-dwarf.adb. | |
7867 | ||
7868 | 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
7869 | ||
7870 | PR bootstrap/49794 | |
7871 | * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler): | |
7872 | Assign to act.sa_sigaction. | |
7873 | * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast | |
7874 | current->return_address to char * before arithmetic. | |
7875 | ||
7876 | 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
7877 | ||
7878 | * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation. | |
7879 | Correct argument types. | |
7880 | Extract code from reason. | |
7881 | (__gnat_install_handler): Assign to act.sa_sigaction. | |
7882 | ||
7883 | 2011-07-21 Eric Botcazou <ebotcazou@adacore.com> | |
7884 | ||
7885 | * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to... | |
7886 | (GNAT1_OBJS): ...here. | |
7887 | ||
7888 | 2011-07-15 Eric Botcazou <ebotcazou@adacore.com> | |
7889 | ||
7890 | PR ada/48711 | |
7891 | * g-socthi-mingw.adb (Fill): Fix formatting. | |
7892 | ||
7893 | * gcc-interface/gigi.h: Move around comment. | |
7894 | ||
7895 | 2011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | |
7896 | ||
7897 | PR ada/46350 | |
7898 | * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast. | |
7899 | ||
7900 | 2011-07-14 Florian Weimer <fw@deneb.enyo.de> | |
7901 | ||
7902 | PR ada/48711 | |
7903 | * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL. | |
7904 | ||
7905 | 2011-07-13 Eric Botcazou <ebotcazou@adacore.com> | |
7906 | ||
7907 | * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit | |
7908 | range comparison if Pmode is SImode. | |
7909 | ||
7910 | 2011-07-12 Laurent GUERBY <laurent@guerby.net> | |
7911 | Eric Botcazou <ebotcazou@adacore.com> | |
7912 | ||
7913 | * adadecode.c: Wrap up in extern "C" block. | |
7914 | * adadecode.h: Likewise. | |
7915 | * adaint.c: Likewise. Remove 'const' keyword. | |
7916 | * adaint.h: Likewise. | |
7917 | * argv.c: Likewise. | |
7918 | * atree.h: Likewise. | |
7919 | * cio.c: Likewise. | |
7920 | * cstreams.c: Likewise. | |
7921 | * env.c: Likewise. | |
7922 | * exit.c: Likewise. | |
7923 | * fe.h: Likewise. | |
7924 | * final.c: Likewise. | |
7925 | * init.c: Likewise. | |
7926 | * initialize.c: Likewise. | |
7927 | * link.c: Likewise. | |
7928 | * namet.h: Likewise. | |
7929 | * nlists.h: Likewise. | |
7930 | * raise.c: Likewise. | |
7931 | * raise.h: Likewise. | |
7932 | * repinfo.h: Likewise. | |
7933 | * seh_init.c: Likewise. | |
7934 | * targext.c: Likewise. | |
7935 | * tracebak.c: Likewise. | |
7936 | * uintp.h: Likewise. | |
7937 | * urealp.h: Likewise. | |
7938 | * xeinfo.adb: Wrap up generated C code in extern "C" block. | |
7939 | * xsinfo.adb: Likewise. | |
7940 | * xsnamest.adb: Likewise. | |
7941 | * gcc-interface/gadaint.h: Wrap up in extern "C" block. | |
7942 | * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block. | |
7943 | * gcc-interface/misc.c: Likewise. | |
7944 | * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER. | |
7945 | (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and | |
7946 | ada/targext.o here... | |
7947 | (GNAT_ADA_OBJS): ...and not here. | |
7948 | (GNAT1_ADA_OBJS): Add ada/b_gnat1.o. | |
7949 | (GNATBIND_OBJS): Reorder. | |
7950 | ||
7951 | 2011-07-07 Richard Henderson <rth@redhat.com> | |
7952 | ||
7953 | * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call | |
7954 | dwarf2out_frame_init. | |
7955 | ||
7956 | 2011-07-07 Eric Botcazou <ebotcazou@adacore.com> | |
7957 | ||
7958 | * gcc-interface/misc.c (gnat_init): Tweak previous change. | |
7959 | ||
7960 | 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
7961 | ||
7962 | PR target/39150 | |
7963 | * gcc-interface/Makefile.in: Handle x86_64-solaris2. | |
7964 | ||
7965 | 2011-07-06 Richard Guenther <rguenther@suse.de> | |
7966 | ||
7967 | * gcc-interface/misc.c (gnat_init): Merge calls to | |
7968 | build_common_tree_nodes and build_common_tree_nodes_2. | |
7969 | Re-initialize boolean_false_node. | |
7970 | ||
7971 | 2011-07-02 Eric Botcazou <ebotcazou@adacore.com> | |
7972 | Olivier Hainque <hainque@adacore.com> | |
7973 | Nicolas Setton <setton@adacore.com> | |
7974 | ||
7975 | * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on | |
7976 | the type according to the ARTIFICIAL_P parameter. | |
7977 | (create_type_decl): Likewise. | |
7978 | (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1. | |
7979 | ||
7980 | 2011-07-01 Eric Botcazou <ebotcazou@adacore.com> | |
7981 | ||
7982 | * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command. | |
7983 | (gnatbind): Likewise. | |
7984 | ||
7985 | 2011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
7986 | ||
7987 | * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL). | |
7988 | ||
7989 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> | |
7990 | ||
7991 | * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE | |
7992 | local variable throughout. Remove useless call to Base_Type. | |
7993 | (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout. | |
7994 | Take it also into account for the volatileness of the field. Set the | |
7995 | TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings. | |
7996 | ||
7997 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> | |
7998 | ||
7999 | * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP | |
8000 | on a dereference built for a by-ref object if it has an address clause. | |
8001 | ||
8002 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> | |
8003 | ||
8004 | * einfo.ads (Address_Taken): Document use for the second argument of | |
8005 | Asm_Input and Asm_Output attributes. | |
8006 | * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second | |
8007 | argument is an entity name, then set Address_Taken on it. | |
8008 | <Attribute_Asm_Output>: Likewise. | |
8009 | * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the | |
8010 | Attr_Asm_Input and Attr_Asm_Output attributes explicitly. | |
8011 | (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in | |
8012 | memory and is a CONST_DECL, retrieve its corresponding VAR_DECL. | |
8013 | ||
8014 | 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com> | |
8015 | ||
8016 | PR middle-end/46500 | |
8017 | * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args. | |
8018 | ||
8019 | 2011-06-14 Joseph Myers <joseph@codesourcery.com> | |
8020 | ||
8021 | * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o. | |
8022 | (ada/utils.o): Update dependencies. | |
8023 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add | |
8024 | ../../../libcpp/libcpp.a. | |
8025 | * gcc-interface/utils.c: Include common/common-target.h. | |
8026 | (process_attributes): Use targetm_common.have_named_sections. | |
8027 | ||
8028 | 2011-06-07 Richard Guenther <rguenther@suse.de> | |
8029 | ||
8030 | * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call | |
8031 | set_sizetype. | |
8032 | ||
8033 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> | |
8034 | ||
8035 | * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the | |
8036 | TREE_THIS_NOTRAP flag. | |
8037 | ||
8038 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> | |
8039 | ||
8040 | * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>: | |
8041 | Fix thinko. | |
8042 | ||
8043 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> | |
8044 | ||
8045 | * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred | |
8046 | constants whose full view has discriminants specially. | |
8047 | ||
8048 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> | |
8049 | ||
8050 | * gcc-interface/utils.c: Include diagnostic.h. | |
8051 | (gnat_write_global_declarations): Output debug information for all | |
8052 | global type declarations before finalizing the compilation unit. | |
8053 | * gcc-interface/Make-lang.in (ada/utils.o): Add dependency. | |
8054 | ||
8055 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> | |
8056 | ||
8057 | * gcc-interface/utils.c (def_fn_type): Remove extra va_end. | |
8058 | ||
8059 | 2011-05-25 Kai Tietz <ktietz@redhat.com> | |
8060 | ||
8061 | * adaint.c (__gnat_to_canonical_file_list_next): Use array | |
8062 | initialization instead of const/none-const pointer assignment. | |
8063 | ||
8064 | 2011-05-24 Joseph Myers <joseph@codesourcery.com> | |
8065 | ||
8066 | * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include | |
8067 | $(EXTRA_GNAT1_OBJS). | |
8068 | (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS). | |
8069 | (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove. | |
8070 | (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a. | |
8071 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use | |
8072 | libcommon-target.a instead of prefix.o. | |
8073 | ||
8074 | 2011-05-21 Joseph Myers <joseph@codesourcery.com> | |
8075 | ||
8076 | PR ada/49097 | |
8077 | * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS). | |
8078 | ||
8079 | 2011-05-20 Joseph Myers <joseph@codesourcery.com> | |
8080 | ||
8081 | * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o. | |
8082 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a | |
8083 | instead of version.o. | |
8084 | ||
8085 | 2011-05-18 Kai Tietz <ktietz@redhat.com> | |
8086 | ||
8087 | * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use | |
8088 | boolean_false_node instead of integer_zero_node. | |
8089 | (convert_with_check): Likewise. | |
8090 | * gcc-interface/decl.c (choices_to_gnu): Likewise. | |
8091 | ||
8092 | 2011-05-12 Eric Botcazou <ebotcazou@adacore.com> | |
8093 | ||
8094 | * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the | |
8095 | type of the parameter is an unconstrained array, convert the actual to | |
8096 | the type of the formal in the In Out and Out cases as well. | |
8097 | ||
8098 | 2011-05-11 Nathan Froyd <froydnj@codesourcery.com> | |
8099 | ||
8100 | * gcc-interface/utils.c (def_fn_type): Don't call build_function_type; | |
8101 | call build_function_type_array or build_varargs_function_type_array | |
8102 | instead. | |
8103 | (create_subprog_type): Don't call build_function_type; call | |
8104 | build_function_type_vec instead. | |
8105 | ||
8106 | 2011-05-11 Nathan Froyd <froydnj@codesourcery.com> | |
8107 | ||
8108 | * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL. | |
8109 | (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL. | |
8110 | (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL. | |
8111 | ||
8112 | 2011-05-07 Eric Botcazou <ebotcazou@adacore.com> | |
8113 | ||
8114 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces. | |
8115 | ||
8116 | * gcc-interface/gigi.h (global_bindings_p): Adjust prototype. | |
8117 | * gcc-interface/utils.c (global_bindings_p): Return bool and simplify. | |
8118 | ||
8119 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> | |
8120 | ||
8121 | * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label. | |
8122 | ||
8123 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> | |
8124 | ||
8125 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators | |
8126 | instead of accessing TYPE_ARG_TYPES directly. | |
8127 | * gcc-interface/utils.c (handle_nonnull_attribute): Likewise. | |
8128 | ||
8129 | 2011-05-05 Eric Botcazou <ebotcazou@adacore.com> | |
8130 | ||
8131 | PR ada/48844 | |
8132 | * gcc-interface/gigi.h (get_variant_part): Declare. | |
8133 | * gcc-interface/decl.c (get_variant_part): Make global. | |
8134 | * gcc-interface/utils2.c (find_common_type): Do not return T1 if the | |
8135 | types have the same constant size, are record types and T1 has a | |
8136 | variant part while T2 doesn't. | |
8137 | ||
8138 | 2011-05-05 Eric Botcazou <ebotcazou@adacore.com> | |
8139 | ||
8140 | * gcc-interface/utils.c (begin_subprog_body): Do not call | |
8141 | get_pending_sizes. | |
8142 | (end_subprog_body): Likewise. | |
8143 | ||
8144 | 2011-05-04 Richard Guenther <rguenther@suse.de> | |
8145 | ||
8146 | * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to | |
8147 | int_const_binop. | |
8148 | (pos_to_constructor): Likewise. | |
8149 | ||
8150 | 2011-05-03 Nathan Froyd <froydnj@codesourcery.com> | |
2c7f9cc0 | 8151 | Eric Botcazou <ebotcazou@adacore.com> |
052e0603 AC |
8152 | |
8153 | * gcc-interface/trans.c (gigi): Call build_function_type_list instead | |
8154 | of build_function_type. Adjust calls to... | |
8155 | (build_raise_check): ...this. Do not take a void_tree parameter. | |
8156 | Call build_function_type_list instead of build_function_type. | |
8157 | Fix head comment and swap couple of conditional blocks. | |
8158 | ||
8159 | 2011-04-30 Eric Botcazou <ebotcazou@adacore.com> | |
8160 | ||
8161 | * gnatvsn.ads (Library_Version): Bump to 4.7. | |
8162 | (Current_Year): Bump to 2011. | |
8163 | ||
8164 | 2011-04-29 Michael Matz <matz@suse.de> | |
8165 | ||
8166 | * gcc-interface/misc.c (gnat_handle_option): Set | |
8167 | warn_maybe_uninitialized. | |
8168 | ||
8169 | 2011-04-23 Gerald Pfeifer <gerald@pfeifer.com> | |
8170 | ||
8171 | * gnat_ugn.texi (Complexity Metrics Control): Update link to | |
8172 | the Watson/McCabe paper. | |
8173 | ||
8174 | 2011-04-23 Jim Meyering <meyering@redhat.com> | |
8175 | ||
8176 | * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/ | |
8177 | ||
8178 | 2011-04-22 Eric Botcazou <ebotcazou@adacore.com> | |
8179 | ||
8180 | * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE | |
8181 | onto the new type. | |
8182 | ||
8183 | 2011-04-22 Eric Botcazou <ebotcazou@adacore.com> | |
8184 | ||
8185 | * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG | |
8186 | parameter. | |
8187 | * gcc-interface/utils.c (create_subprog_decl): Likewise. Set | |
8188 | DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly. | |
8189 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add | |
8190 | ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl. | |
8191 | <all>: Do not set flags on the reused DECL node coming from an alias. | |
8192 | Set DECL_IGNORED_P on the DECL node built for subprograms if they | |
8193 | don't need debug info here... | |
8194 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here. | |
8195 | (gigi): Adjust calls to create_subprog_decl. | |
8196 | (build_raise_check): Likewise. | |
8197 | (establish_gnat_vms_condition_handler): Likewise. | |
8198 | (Compilation_Unit_to_gnu): Likewise. | |
8199 | (gnat_to_gnu): Likewise. | |
8200 | ||
8201 | 2011-04-21 Eric Botcazou <ebotcazou@adacore.com> | |
8202 | ||
8203 | * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define. | |
8204 | (NO_REORDER_ADAFLAGS): New variable. | |
8205 | (EXTRA_GNATTOOLS): Always define. | |
8206 | (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h. | |
8207 | Clean up and adjust list of files compiled with special options. | |
8208 | * gcc-interface/Make-lang.in: Likewise. | |
8209 | (ada/decl.o): Cosmetical change. | |
8210 | (ada/misc.o): Remove dependency on $(PLUGIN_H). | |
8211 | ||
8212 | 2011-04-20 Jim Meyering <meyering@redhat.com> | |
8213 | ||
8214 | * initialize.c (__gnat_initialize): Remove useless if-before-free. | |
8215 | ||
8216 | 2011-04-17 Eric Botcazou <ebotcazou@adacore.com> | |
8217 | ||
8218 | * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with | |
8219 | $(CFLAGS) on the link line. | |
8220 | ||
8221 | 2011-04-17 Eric Botcazou <ebotcazou@adacore.com> | |
8222 | ||
8223 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the | |
8224 | padded type built for the return type if it is unconstrained. | |
8225 | ||
8226 | 2011-04-14 Nathan Froyd <froydnj@codesourcery.com> | |
8227 | ||
8228 | * gcc-interface/utils.c (gnat_poplevel): Use block_chainon. | |
8229 | ||
8230 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> | |
8231 | ||
8232 | * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON | |
8233 | before calling TREE_CHAIN. | |
8234 | * gcc-interface/misc.c (gnat_init_ts): New function. | |
8235 | (LANG_HOOKS_INIT_TS): Define. | |
8236 | ||
8237 | 2011-04-12 Martin Jambor <mjambor@suse.cz> | |
8238 | ||
8239 | * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node | |
8240 | instead of cgraph_node. | |
8241 | ||
8242 | 2011-04-08 Eric Botcazou <ebotcazou@adacore.com> | |
8243 | ||
8244 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum | |
8245 | alignment on fields of the RETURN type built for the Copy-In Copy-Out | |
8246 | mechanism. | |
8247 | ||
8248 | 2011-04-08 Eric Botcazou <ebotcazou@adacore.com> | |
8249 | ||
8250 | * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers | |
8251 | of aggregate types that contain a placeholder. | |
8252 | ||
8253 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> | |
8254 | ||
8255 | * gcc-interface/utils.c (handle_sentinel_attribute): Don't use | |
8256 | TYPE_ARG_TYPES. | |
8257 | (handle_type_generic_attribute): Likewise. | |
8258 | ||
8259 | 2011-04-04 Eric Botcazou <ebotcazou@adacore.com> | |
8260 | ||
8261 | PR ada/47163 | |
8262 | * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change. | |
8263 | ||
8264 | 2011-04-04 Kai Tietz <ktietz@redhat.com> | |
8265 | ||
8266 | PR ada/47163 | |
8267 | * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets | |
8268 | to flag value. | |
8269 | ||
8270 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
8271 | ||
8272 | * gcc-interface/utils2.c (build_allocator): In the unconstrained array | |
8273 | type case, do not strip a padding type around the array type. | |
8274 | ||
8275 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
8276 | ||
8277 | * gcc-interface/utils.c (update_pointer_to): Finalize named pointer | |
8278 | types. | |
8279 | ||
8280 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
8281 | ||
8282 | * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete. | |
8283 | * gcc-interface/misc.c (gnat_handle_option): Remove special handling | |
8284 | code for -feliminate-unused-debug-types. | |
8285 | (gnat_post_options): Likewise. | |
8286 | ||
8287 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
8288 | ||
8289 | * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial | |
8290 | declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a | |
8291 | distinct copy. | |
8292 | ||
8293 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
8294 | ||
8295 | * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the | |
8296 | DECL_ARTIFICIAL flag on enumeration types. | |
8297 | ||
8298 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
8299 | ||
8300 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make | |
8301 | fat pointer types artificial unconditionally. | |
8302 | <E_Array_Subtype>: Attach the base array type as a parallel type if it | |
8303 | isn't artificial. | |
8304 | ||
8305 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
8306 | ||
8307 | * gcc-interface/gigi.h (get_dummy_type): Declare. | |
8308 | (build_dummy_unc_pointer_types): Likewise. | |
8309 | (finish_fat_pointer_type): Likewise. | |
8310 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy | |
8311 | fat pointer type has been built, complete it in place. | |
8312 | <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat | |
8313 | and thin pointers. Remove useless variable. | |
8314 | (finish_fat_pointer_type): Make global and move to... | |
8315 | * gcc-interface/utils.c (finish_fat_pointer_type): ...here. | |
8316 | (get_dummy_type): New function. | |
8317 | (build_dummy_unc_pointer_types): Likewise. | |
8318 | (gnat_pushdecl): Propage the name to the anonymous variants only. | |
8319 | (update_pointer_to): Only adjust the pointer types in the unconstrained | |
8320 | array case. | |
8321 | ||
8322 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
8323 | ||
8324 | * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag. | |
8325 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it | |
8326 | if this is a Taft amendment type and the full declaration is available. | |
8327 | * gcc-interface/trans.c (process_type): Likewise. | |
8328 | If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P. | |
8329 | (process_freeze_entity): Likewise. | |
8330 | * gcc-interface/utils.c (dummy_global): New static variable. | |
8331 | (gnat_write_global_declarations): If there are types declared as used | |
8332 | at the global level, insert them in the global hash table. | |
8333 | ||
8334 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
8335 | ||
8336 | * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param. | |
8337 | * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial | |
8338 | declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct | |
8339 | copy. | |
8340 | (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL | |
8341 | flag of the type accordingly. | |
8342 | * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type. | |
8343 | ||
8344 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
8345 | ||
8346 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer | |
8347 | finalizing types when updating the pointers to the designated type. | |
8348 | <all>: Finalize the deferred types even if we didn't defer processing | |
8349 | of incomplete types in this invocation. | |
8350 | ||
8351 | 2011-04-01 Olivier Hainque <hainque@adacore.com> | |
2c7f9cc0 AS |
8352 | Nicolas Setton <setton@adacore.com> |
8353 | Eric Botcazou <ebotcazou@adacore.com> | |
052e0603 AC |
8354 | |
8355 | * gcc-interface/misc.c (gnat_descriptive_type): New function. | |
8356 | (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type. | |
8357 | ||
8358 | 2011-03-28 Kai Tietz <ktietz@redhat.com> | |
8359 | ||
8360 | * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native | |
8361 | Windows targets. | |
8362 | (EH_MECHANISM): Use GCC exception mechanism for native Windows targets. | |
8363 | * system-mingw.ads (System): Change ZCX_By_Default default to True. | |
8364 | ||
8365 | * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype. | |
8366 | ||
8367 | 2011-03-28 Tristan Gingold <gingold@adacore.com> | |
8368 | ||
8369 | PR ada/44431 | |
8370 | * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c. | |
8371 | Use ada output of gnatbind. | |
8372 | (ada/b_gnatb.adb): Ditto. | |
8373 | (ada/b_gnat1.o, ada/b_gnatb.o): New rules. | |
8374 | (ada.mostlyclean, ada.stage1) | |
8375 | (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile) | |
8376 | (ada.stagefeedback): Adjust. | |
8377 | * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c. | |
8378 | Use ada output of gnatbind. | |
8379 | (b_gnatm.adb): Ditto. | |
8380 | (b_gnatl.o, b_gnatm.o): New rules. | |
8381 | ||
8382 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> | |
8383 | ||
8384 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL | |
8385 | for the padded type built to support a specified size or alignment. | |
8386 | ||
8387 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> | |
8388 | ||
8389 | * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment. | |
8390 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer | |
8391 | unconditionally to the end of the unit when the designated type is | |
8392 | limited_with'ed. | |
8393 | <all>: Rename local variable. Attempt to un-defer types only and do it | |
8394 | for limited_with'ed types as well. | |
8395 | (finalize_from_with_types): Adjust comment. Rename variable and tidy. | |
8396 | * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT | |
8397 | consistently and remove redundant call to finalize_from_with_types. | |
8398 | ||
8399 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> | |
8400 | ||
8401 | * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to | |
8402 | subprograms without a previous spec declared in the same unit. | |
8403 | * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined | |
8404 | subprograms at the end of the unit instead of at the beginning. | |
8405 | * gcc-interface/utils.c (create_subprog_decl): Check that the entity | |
8406 | isn't public for the special handling of non-inline functions nested | |
8407 | inside inline external functions. | |
8408 | ||
8409 | 2011-03-25 Jeff Law <law@redhat.com> | |
8410 | ||
8411 | * gcc-interface/utils.c (def_fn_type): Add missing va_end. | |
8412 | ||
8413 | 2011-03-24 Eric Botcazou <ebotcazou@adacore.com> | |
8414 | ||
8415 | * einfo.ads (Size_Depends_On_Discriminant): Adjust description. | |
8416 | * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure | |
8417 | to compute Set_Size_Depends_On_Discriminant. | |
8418 | (Layout_Type): Call it on array types in back-end layout mode. | |
8419 | * sem_util.adb (Requires_Transient_Scope): Return true for array | |
8420 | types only if the size depends on the value of discriminants. | |
8421 | * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS | |
8422 | type if the RHS is a call to a function that returns an unconstrained | |
8423 | type with default discriminant. | |
8424 | ||
8425 | 2011-03-24 Eric Botcazou <ebotcazou@adacore.com> | |
8426 | ||
8427 | * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of | |
8428 | non-conversion to the nominal result type at the end. | |
8429 | ||
8430 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> | |
8431 | ||
8432 | * gcc-interface/trans.c (create_temporary): New function taken from... | |
8433 | (create_init_temporary): ...here. Call it. | |
8434 | (call_to_gnu): Create the temporary for the return value early, if any. | |
8435 | Create it for a function with copy-in/copy-out parameters if there is | |
8436 | no target; in other cases of copy-in/copy-out, use another temporary. | |
8437 | Push the new binding level lazily. Add and rename local variables. | |
8438 | ||
8439 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> | |
8440 | ||
8441 | * gcc-interface/decl.c (validate_size): Improve comments and tweak | |
8442 | error message. | |
8443 | (set_rm_size): Likewise. | |
8444 | ||
8445 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> | |
8446 | ||
8447 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL | |
8448 | for the padded type built in order to support a specified alignment. | |
8449 | Fix incorrect formatting. | |
8450 | ||
8451 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> | |
8452 | ||
8453 | PR bootstrap/48216 | |
8454 | * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL. | |
8455 | ||
8456 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> | |
8457 | ||
8458 | * gcc-interface/decl.c (components_to_record): Add REORDER parameter, | |
8459 | rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter | |
8460 | to the end of the list. Adjust recursive call. Rename local variable. | |
8461 | If REORDER is true, reorder components of the record type. | |
8462 | (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to | |
8463 | components_to_record and adjust the parameter list. | |
8464 | ||
8465 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> | |
8466 | ||
8467 | * gcc-interface/decl.c (elaborate_expression_1): When optimization is | |
8468 | disabled, use the variable for bounds of loop iteration scheme. | |
8469 | ||
8470 | 2011-03-21 Kai Tietz <ktietz@redhat.com> | |
8471 | ||
8472 | PR target/12171 | |
8473 | * gcc-interface/utils.c (gnat_internal_attribute_table): Add column. | |
8474 | ||
8475 | 2011-03-17 Eric Botcazou <ebotcazou@adacore.com> | |
8476 | ||
8477 | * gcc-interface/decl.c (elaborate_expression_1): Try harder to find | |
8478 | out whether the expression is read-only. Short-circuit placeholder | |
8479 | case and rename a couple of local variables. | |
8480 | ||
8481 | 2011-03-17 Eric Botcazou <ebotcazou@adacore.com> | |
8482 | ||
8483 | * gcc-interface/gigi.h (smaller_form_type_p): Declare. | |
8484 | * gcc-interface/trans.c (smaller_form_type_p): Make global and move... | |
8485 | * gcc-interface/utils.c (smaller_form_type_p): ...to here. | |
8486 | (convert): Deal with conversions from a smaller form type specially. | |
8487 | ||
8488 | 2011-02-14 Eric Botcazou <ebotcazou@adacore.com> | |
8489 | ||
8490 | * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and | |
8491 | its argument, except for the special -I- switch. | |
8492 | ||
8493 | 2011-02-12 Gerald Pfeifer <gerald@pfeifer.com> | |
8494 | ||
8495 | * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to | |
8496 | "Ada Issues". | |
8497 | ||
8498 | 2011-02-08 Eric Botcazou <ebotcazou@adacore.com> | |
8499 | ||
8500 | * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs. | |
8501 | ||
8502 | 2011-02-03 Eric Botcazou <ebotcazou@adacore.com> | |
8503 | ||
8504 | * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of | |
8505 | GNAT_FORMAL. | |
8506 | * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to... | |
8507 | * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE | |
8508 | instead of GNAT_FORMAL. Protect the expression against multiple uses. | |
8509 | Do not generate the check directly, instead instantiate the template | |
8510 | check present in the descriptor. | |
8511 | (make_descriptor_field): Move around. | |
8512 | (build_vms_descriptor32): Build a template check in the POINTER field. | |
8513 | (build_vms_descriptor): Remove useless suffixes. | |
8514 | * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call. | |
8515 | ||
8516 | 2011-01-26 Eric Botcazou <ebotcazou@adacore.com> | |
8517 | ||
8518 | PR bootstrap/47467 | |
8519 | * targext.c: Include target files if IN_RTS is defined. | |
8520 | ||
8521 | 2011-01-26 Richard Guenther <rguenther@suse.de> | |
8522 | ||
8523 | PR bootstrap/47467 | |
8524 | * targext.c: Include config.h. | |
8525 | * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H) | |
8526 | dependency. | |
8527 | ||
8528 | 2011-01-04 Pascal Obry <obry@adacore.com> | |
2c7f9cc0 | 8529 | Eric Botcazou <ebotcazou@adacore.com> |
052e0603 AC |
8530 | |
8531 | * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit. | |
8532 | ||
8533 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> | |
8534 | ||
8535 | * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the | |
8536 | end-of-case on the end label and its associated gotos, if any. | |
8537 | ||
8538 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> | |
8539 | ||
8540 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the | |
8541 | expressions of the parameter cache within the statement group of | |
8542 | the CICO mechanism. | |
8543 | ||
8544 | 2011-01-04 Olivier Hainque <hainque@adacore.com> | |
2c7f9cc0 | 8545 | Eric Botcazou <ebotcazou@adacore.com> |
052e0603 AC |
8546 | |
8547 | * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default. | |
8548 | (set_end_locus_from_node): New function. | |
8549 | (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we | |
8550 | make and the function end_locus. | |
8551 | (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus | |
8552 | for the elaboration subprogram. | |
8553 | (set_gnu_expr_location_from_node) <default case>: Use it to attempt to | |
8554 | set the end_locus of the expression as well. | |
8555 | ||
8556 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> | |
8557 | ||
8558 | PR ada/47131 | |
8559 | * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make | |
8560 | variables that are referenced in exception handlers volatile. | |
8561 | ||
8562 | ||
8563 | \f | |
8564 | Copyright (C) 2011 Free Software Foundation, Inc. | |
8565 | ||
8566 | Copying and distribution of this file, with or without modification, | |
8567 | are permitted in any medium without royalty provided the copyright | |
8568 | notice and this notice are preserved. | |
8569 | ||
8570 | * gnat_rm.texi: Ramification of pragma Eliminate documentation | |
8571 | - fix bugs in the description of Source_Trace; | |
8572 | - get rid of UNIT_NAME; | |
8573 | ||
4fbad0ba AC |
8574 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
8575 | ||
8576 | * exp_ch9.adb | |
8577 | (Build_Dispatching_Requeue): Adding support for VM targets | |
8578 | since we cannot directly reference the Tag entity. | |
8579 | * exp_sel.adb (Build_K): Adding support for VM targets. | |
8580 | (Build_S_Assignment): Adding support for VM targets. | |
8581 | * exp_disp.adb | |
8582 | (Default_Prim_Op_Position): In VM targets do not restrict availability | |
8583 | of predefined interface primitives to compiling in Ada 2005 mode. | |
8584 | (Is_Predefined_Interface_Primitive): In VM targets this service is not | |
8585 | restricted to compiling in Ada 2005 mode. | |
8586 | (Make_VM_TSD): Generate code that declares and initializes the OSD | |
8587 | record. Needed to support dispatching calls through synchronized | |
8588 | interfaces. | |
8589 | * exp_ch3.adb | |
8590 | (Make_Predefined_Primitive_Specs): Enable generation of predefined | |
8591 | primitives associated with synchronized interfaces. | |
8592 | (Make_Predefined_Primitive_Bodies): Enable generation of predefined | |
8593 | primitives associated with synchronized interfaces. | |
8594 | ||
8595 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
8596 | ||
8597 | * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of | |
8598 | statements hidden in SPARK if preceded by the HIDE directive | |
8599 | (Parse_Exception_Handlers): mark each exception handler in a sequence of | |
8600 | exception handlers as hidden in SPARK if preceded by the HIDE directive | |
8601 | * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK | |
8602 | if starting with the HIDE directive | |
8603 | * par-ch7.adb (P_Package): mark a package body hidden in SPARK if | |
8604 | starting with the HIDE directive; mark the declarations in a private | |
8605 | part as hidden in SPARK if the private part starts with the HIDE | |
8606 | directive | |
8607 | * restrict.adb, restrict.ads | |
8608 | (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK | |
8609 | (Is_In_Hidden_Part_In_SPARK): new function which returns whether its | |
8610 | argument node belongs to a part which is hidden in SPARK | |
8611 | (Check_SPARK_Restriction): do not issue violations on nodes in hidden | |
8612 | parts in SPARK; protect the possibly costly call to | |
8613 | Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on | |
8614 | * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration | |
8615 | * scng.adb (Accumulate_Token_Checksum_GNAT_6_3, | |
8616 | Accumulate_Token_Checksum_GNAT_5_03): add case for new token | |
8617 | Tok_SPARK_Hide. | |
8618 | (Scan): recognize special comment starting with '#' and followed by | |
8619 | SPARK keyword "hide" as a HIDE directive. | |
8620 | ||
8621 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
8622 | ||
8623 | * types.ads, erroutc.ads: Minor reformatting. | |
8624 | ||
8625 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
8626 | ||
8627 | * link.c: Add response file support for cross platforms. | |
8628 | ||
6ff6152d ES |
8629 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
8630 | ||
8631 | * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression | |
8632 | in an association, set parent field of copy before partial analysis. | |
8633 | * sem_res.adb (Resolve_Slice): create reference to itype only when | |
8634 | expansion is enabled. | |
8635 | ||
975c6896 YM |
8636 | 2011-08-02 Yannick Moy <moy@adacore.com> |
8637 | ||
8638 | * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set | |
8639 | for new flag denoting which subprogram bodies are in ALFA | |
8640 | * restrict.adb, sem_ch7.adb: Update comment | |
8641 | * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, | |
8642 | sem_ch9.adb, sem_res.adb: Add calls to | |
8643 | Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs. | |
8644 | * sem_ch6.adb (Analyze_Function_Return): add calls to | |
8645 | Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the | |
8646 | middle of the body, and extended return. | |
8647 | (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument | |
8648 | False when missing return. | |
8649 | (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA | |
8650 | to True for subprograms whose spec is in ALFA. Remove later on the flag | |
8651 | on the entity used for a subprogram body when there exists a separate | |
8652 | declaration. | |
8653 | * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA): | |
8654 | if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to | |
8655 | False, otherwise do nothing. | |
8656 | ||
afc8324d AC |
8657 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
8658 | ||
8659 | * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting. | |
8660 | ||
8661 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
8662 | ||
8663 | * sem_ch4.ads: minor formatting. | |
8664 | ||
2ba431e5 YM |
8665 | 2011-08-02 Yannick Moy <moy@adacore.com> |
8666 | ||
8667 | * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, | |
8668 | debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb, | |
8669 | errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb, | |
8670 | restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb, | |
8671 | opt.ads: cleanup of SPARK mode | |
8672 | ||
0f853035 YM |
8673 | 2011-08-02 Yannick Moy <moy@adacore.com> |
8674 | ||
8675 | * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard | |
8676 | types. | |
8677 | * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities | |
8678 | (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA | |
8679 | * sem_ch3.adb | |
8680 | (Analyze_Object_Declaration): set Is_In_ALFA flag for objects | |
8681 | (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes | |
8682 | (Constrain_Integer): set Is_In_ALFA flag for integer subtypes | |
8683 | (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration | |
8684 | types. | |
8685 | (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with | |
8686 | non-static range. | |
8687 | * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for | |
8688 | functions whose return type is not in ALFA. | |
8689 | (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram | |
8690 | specifications. | |
8691 | (Process_Formals): unset Is_In_ALFA flag for subprograms if a | |
8692 | parameter's type is not in ALFA. | |
8693 | * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard | |
8694 | types are in ALFA. | |
8695 | ||
d2b10647 ES |
8696 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
8697 | ||
8698 | * sem_ch6 (Analyze_Expression_Function): treat the function as | |
8699 | Inline_Always, and introduce a subprogram declaration for it when it is | |
8700 | not a completion. | |
8701 | * inline.adb (Add_Inlined_Body): recognize bodies that come from | |
8702 | expression functions, so that the back-end can determine whether they | |
8703 | can in fact be inlined. | |
8704 | * sem_util.adb (Is_Expression_Function): predicate to determine whether | |
8705 | a function body comes from an expression function. | |
8706 | ||
c7b9d548 AC |
8707 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> |
8708 | ||
8709 | * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming | |
8710 | null exclusions to test Can_Never_Be_Null on the anonymous access types | |
8711 | of the formals rather than testing the formals themselves. Exclude this | |
8712 | check in cases where the Old_Formal is marked as a controlling formal, | |
8713 | to avoid issuing spurious errors for bodies completing dispatching | |
8714 | operations (due to the flag not getting set on controlling access | |
8715 | formals in body specs). | |
8716 | (Find_Corresponding_Spec): When checking full and subtype conformance of | |
8717 | subprogram bodies in instances, pass Designated and E in that order, for | |
8718 | consistency with the expected order of the formals (New_Id followed by | |
8719 | Old_Id). | |
8720 | ||
8721 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8722 | ||
8723 | * sem_ch8.adb: Minor reformatting. | |
8724 | ||
1138cf59 AC |
8725 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
8726 | ||
8727 | * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure | |
8728 | Check_Class_Wide_Actual, to implement AI05-0071, on defaulted | |
8729 | primitive operations of class-wide actuals. | |
8730 | ||
8731 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
8732 | ||
8733 | * exp_atag.ads, exp_atag.adb | |
8734 | (Build_Common_Dispatching_Select_Statements): Remove argument Loc | |
8735 | since its value is implicitly passed in argument Typ. | |
8736 | * exp_disp.adb (Make_Disp_Conditional_Select_Body, | |
8737 | Make_Disp_Timed_Select_Body): Remove Loc in calls to routine | |
8738 | Build_Common_Dispatching_Select_Statements. | |
8739 | ||
7b9db926 RD |
8740 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
8741 | ||
8742 | * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads, | |
8743 | exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments. | |
8744 | Minor reformatting. | |
8745 | ||
e8374e7a AC |
8746 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
8747 | ||
8748 | * sem_res.adb: Minor reformatting. | |
8749 | * sem_prag.adb: Minor reformatting. | |
8750 | ||
8751 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
8752 | ||
8753 | * exp_atag.adb, exp_atags.ads | |
8754 | (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr | |
8755 | by the tagged type Entity. Required to use this routine in the VM | |
8756 | targets since we do not have available the Tag entity in the VM | |
8757 | platforms. | |
8758 | * exp_ch6.adb | |
8759 | (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package | |
8760 | Ada.Tags has not been previously loaded. | |
8761 | * exp_ch7.adb | |
8762 | (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke | |
8763 | Build_VM_TSDs if package Ada.Tags has not been previously loaded. | |
8764 | * sem_aux.adb | |
8765 | (Enclosing_Dynamic_Scope): Add missing support to handle the full | |
8766 | view of enclosing scopes. Required to handle enclosing scopes that | |
8767 | are synchronized types whose full view is a task type. | |
8768 | * exp_disp.adb | |
8769 | (Build_VM_TSDs): Minor code improvement to avoid generating and | |
8770 | analyzing lists with empty nodes. | |
8771 | (Make_Disp_Asynchronous_Select_Body): Add support for VM targets. | |
8772 | (Make_Disp_Conditional_Select_Body): Add support for VM targets. | |
8773 | (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets. | |
8774 | (Make_Disp_Timed_Select_Body): Add support for VM targets. | |
8775 | (Make_Select_Specific_Data_Table): Add support for VM targets. | |
8776 | (Make_VM_TSD): Generate code to initialize the SSD structure of | |
8777 | the TSD. | |
8778 | ||
8779 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
8780 | ||
8781 | * lib-writ.adb (Write_ALI): when ALFA mode is set, write local | |
8782 | cross-references section in ALI. | |
8783 | * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub | |
8784 | (enclosing subprogram), Slc (location of Sub) and Sun (unit number of | |
8785 | Sub). | |
8786 | (Enclosing_Subprogram_Or_Package): new function to return the enclosing | |
8787 | subprogram or package entity of a node | |
8788 | (Is_Local_Reference_Type): new function returns True for references | |
8789 | selected in local cross-references. | |
8790 | (Lt): function extracted from Lt in Output_References | |
8791 | (Write_Entity_Name): function extracted from Output_References | |
8792 | (Generate_Definition): generate reference with type 'D' for definition | |
8793 | of objects (object declaration and parameter specification), with | |
8794 | appropriate locations and units, for use in local cross-references. | |
8795 | (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created | |
8796 | references of type 'I' for initialization in object definition. | |
8797 | (Output_References): move part of function Lt and procedure | |
8798 | Write_Entity_Name outside of the body. Ignore references of types 'D' | |
8799 | and 'I' introduced for local cross-references. | |
8800 | (Output_Local_References): new procedure to output the local | |
8801 | cross-references sections. | |
8802 | (Lref_Entity_Status): new array defining whether an entity is a local | |
8803 | * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference | |
8804 | with 'I' type when initialization expression is present. | |
8805 | * get_scos.adb, get_scos.ads: Correct comments and typos | |
8806 | ||
1f6439e3 AC |
8807 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
8808 | ||
8809 | * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in | |
8810 | the JVM target. | |
8811 | * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in | |
8812 | the JVM target. | |
8813 | * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no | |
8814 | TSD support. | |
8815 | ||
8816 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
8817 | ||
8818 | * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line | |
8819 | (No_Space_Img): New function | |
8820 | (Find_Excluded_Sources): When reading from a file, record the file name | |
8821 | and the line number for each excluded source. | |
8822 | (Mark_Excluded_Sources): When reporting an error, if the excluded | |
8823 | sources were read from a file, include file name and line number in | |
8824 | the error message. | |
8825 | ||
8826 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8827 | ||
8828 | * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2). | |
8829 | ||
ab027d28 RD |
8830 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
8831 | ||
8832 | * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting | |
8833 | ||
b3b28b0c JM |
8834 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
8835 | ||
8836 | * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the | |
8837 | generation of TSDs to the DOTNET compiler. | |
8838 | * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the | |
8839 | generation of TSDs to the DOTNET compiler. | |
8840 | ||
9732e886 JM |
8841 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
8842 | ||
8843 | * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data | |
8844 | record of all the tagged types declared inside library level package | |
8845 | declarations, library level package bodies or library level subprograms. | |
8846 | * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD | |
8847 | associated with a given tagged type. | |
8848 | (Build_VM_TSDs): New subprogram. | |
8849 | * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main | |
8850 | compilation units that are subprograms. | |
8851 | * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main | |
8852 | compilation units that are package bodies. | |
8853 | (Expand_N_Package_Declaration): Generate TSDs of the main compilation | |
8854 | units that are a package declaration or a package instantiation. | |
8855 | * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code | |
8856 | reorganization to improve the error generated by the frontend when the | |
8857 | function Ada.Tags.Secondary_Tag is not available. | |
8858 | * rtsfind.ads (RE_Register_TSD): New runtime entity. | |
8859 | * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup. | |
8860 | ||
e526d0c7 AC |
8861 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
8862 | ||
8863 | * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode. | |
8864 | ||
8865 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8866 | ||
8867 | * s-imenne.ads: Minor reformatting. | |
8868 | ||
8869 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8870 | ||
8871 | * a-stunau.ads: Add pragma Suppress_Initialization for Big_String | |
8872 | * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed | |
8873 | * s-stalib.ads: Add pragma Suppress_Initialization for Big_String | |
8874 | ||
8875 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8876 | ||
8877 | * einfo.ads (Materialize_Entity): Document this is only for renamings | |
8878 | * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate | |
8879 | required debug information in the case where we transform the object | |
8880 | declaration into a renaming declaration. | |
8881 | * exp_ch4.adb (Expand_Concatenate): Generate debug info for result | |
8882 | object | |
8883 | * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of | |
8884 | Materialize_Entity. | |
8885 | ||
5b1e6aca RD |
8886 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
8887 | ||
8888 | * einfo.ads, einfo.adb (Suppress_Initialization): Replaces | |
8889 | Suppress_Init_Procs. | |
8890 | * exp_ch3.adb, exp_disp.adb, freeze.adb: Use | |
8891 | Suppress_Initialization/Initialization_Suppressed. | |
8892 | * gnat_rm.texi: New documentation for pragma Suppress_Initialization | |
8893 | * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function | |
8894 | * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed | |
8895 | * sem_prag.adb: New processing for pragma Suppress_Initialization. | |
8896 | ||
5ad4969d RD |
8897 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
8898 | ||
8899 | * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb: | |
8900 | Minor reformatting. | |
8901 | ||
8c4ee6f5 AC |
8902 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
8903 | ||
8904 | * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can | |
8905 | only have inheritable classwide pre/postconditions. | |
8906 | ||
8907 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
8908 | ||
8909 | * a-tags.ads, a-tags.adb (Check_TSD): New subprogram. | |
8910 | * rtsfind.ads (RE_Check_TSD): New runtime entity. | |
8911 | * exp_disp.adb (Make_DT): Generate call to the new runtime routine that | |
8912 | checks if the external tag of a type is the same as the external tag | |
8913 | of some other declaration. | |
8914 | ||
0b3d16c0 AC |
8915 | 2011-08-02 Thomas Quinot <quinot@adacore.com> |
8916 | ||
8917 | * s-taskin.ads: Minor reformatting. | |
8918 | ||
8919 | 2011-08-02 Emmanuel Briot <briot@adacore.com> | |
8920 | ||
8921 | * g-comlin.adb (Display_Help): swap the order in which it prints the | |
8922 | short help and the general usage. | |
8923 | ||
8924 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8925 | ||
8926 | * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly | |
8927 | the aspect declarations and attach them to the generic copy for | |
8928 | subsequent analysis. | |
8929 | (Analyze_Subprogram_Instantiation): copy explicitly the aspect | |
8930 | declarations of the generic tree to the new subprogram declarations. | |
8931 | * sem_attr.adb (Check_Precondition_Postcondition): recognize | |
8932 | conditions that apply to a subprogram instance. | |
8933 | ||
8934 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8935 | ||
8936 | * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project]. | |
8937 | ||
8938 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8939 | ||
8940 | * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged | |
8941 | private type with a tagged full view is not derived in the immediate | |
8942 | scope of the partial view, (RM 7.3 (7)) use the scope of the base type. | |
8943 | ||
4637729f AC |
8944 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
8945 | ||
8946 | * exp_ch4.adb: Minor reformatting. | |
8947 | ||
8948 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8949 | ||
8950 | * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an | |
8951 | Ada2012 iterator, the loop will be rewritten during expansion into a | |
8952 | while loop with a cursor and an element declaration. Do not analyze the | |
8953 | body in this case, because if the container is for indefinite types the | |
8954 | actual subtype of the elements will only be determined when the cursor | |
8955 | declaration is analyzed. | |
8956 | ||
8957 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
8958 | ||
8959 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore | |
8960 | size/alignment related attributes in CodePeer_Mode. | |
8961 | ||
8962 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> | |
8963 | ||
8964 | * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to | |
8965 | Prepend_Element, since this can result in the operation getting the | |
8966 | wrong slot in the full type's dispatch table if the full type has | |
8967 | inherited operations. The incomplete type's operation will get added | |
8968 | to the proper position in the full type's primitives | |
8969 | list later in Sem_Disp.Check_Operation_From_Incomplete_Type. | |
8970 | (Process_Incomplete_Dependents): Add Is_Primitive test when checking for | |
8971 | dispatching operations, since there are cases where nonprimitive | |
8972 | subprograms can get added to the list of incomplete dependents (such | |
8973 | as subprograms in nested packages). | |
8974 | * sem_ch6.adb (Process_Formals): First, remove test for being in a | |
8975 | private part when determining whether to add a primitive with a | |
8976 | parameter of a tagged incomplete type to the Private_Dependents list. | |
8977 | Such primitives can also occur in the visible part, and should not have | |
8978 | been excluded from being private dependents. | |
8979 | * sem_ch7.adb (Uninstall_Declarations): When checking the rule of | |
8980 | RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents | |
8981 | list of a Taft-amendment incomplete type is a primitive before issuing | |
8982 | an error that the full type must appear in the same unit. There are | |
8983 | cases where nonprimitives can be in the list (such as subprograms in | |
8984 | nested packages). | |
8985 | * sem_disp.adb (Derives_From): Use correct condition for checking that | |
8986 | a formal's type is derived from the type of the corresponding formal in | |
8987 | the parent subprogram (the condition was completely wrong). Add | |
8988 | checking that was missing for controlling result types being derived | |
8989 | from the result type of the parent operation. | |
8990 | ||
4c60de0c YM |
8991 | 2011-08-02 Yannick Moy <moy@adacore.com> |
8992 | ||
8993 | * errout.adb (First_Node): minor renaming | |
8994 | * restrict.adb (Check_Formal_Restriction): put restriction warning on | |
8995 | first node. | |
8996 | ||
f5afb270 AC |
8997 | 2011-08-02 Yannick Moy <moy@adacore.com> |
8998 | ||
8999 | * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator | |
9000 | before accessing operands. | |
9001 | * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to | |
9002 | decide whether an initialization expression respects SPARK rules, as | |
9003 | the plain node is the expanded one. This allows for more valid warnings | |
9004 | to be issued. | |
9005 | * gnat_rm.texi: Minor update. | |
9006 | ||
9007 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
9008 | ||
9009 | * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert | |
9010 | previous change. | |
9011 | ||
9012 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9013 | ||
9014 | * sem_ch3.adb, sem_ch4.adb: Minor reformatting. | |
9015 | ||
9016 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
9017 | ||
9018 | * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original | |
9019 | loop statements and the element renaming declaration with a block when | |
9020 | the element type is controlled. | |
9021 | ||
9022 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
9023 | ||
9024 | * sinfo.ads: Minor formatting. | |
9025 | ||
9026 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9027 | ||
9028 | * sem_aggr.adb (Add_Association): if the association has a box and no | |
9029 | expression, use the Sloc of the aggregate itself for the new | |
9030 | association. | |
9031 | * errout.adb (First_Node): Exclude nodes with no Sloc, and always use | |
9032 | the Original_Node. | |
9033 | ||
db72f10a AC |
9034 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> |
9035 | ||
9036 | * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring. | |
9037 | When a container is provided via a function call, generate a renaming | |
9038 | of the function result. This avoids the creation of a transient scope | |
9039 | and the premature finalization of the container. | |
9040 | * exp_ch7.adb (Is_Container_Cursor): Removed. | |
9041 | (Wrap_Transient_Declaration): Remove the supression of the finalization | |
9042 | of the list controller when the declaration denotes a container cursor, | |
9043 | it is not needed. | |
9044 | ||
9045 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
9046 | ||
9047 | * restrict.adb (Check_Formal_Restriction): only issue a warning if the | |
9048 | node is from source, instead of the original node being from source. | |
9049 | * sem_aggr.adb | |
9050 | (Resolve_Array_Aggregate): refine the check for a static expression, to | |
9051 | recognize also static ranges | |
9052 | * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration, | |
9053 | Array_Type_Declaration): postpone the test for the type being a subtype | |
9054 | mark after the type has been resolved, so that component-selection and | |
9055 | expanded-name are discriminated. | |
9056 | (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm | |
9057 | to distinguish the case of an iteration scheme, so that an error is | |
9058 | issed on a non-static range in SPARK except in an iteration scheme. | |
9059 | * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with | |
9060 | In_Iter_Schm = True. | |
9061 | * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for | |
9062 | user-defined operators so that they are allowed in renaming | |
9063 | * sem_ch8.adb | |
9064 | (Find_Selected_Component): refine the check for prefixing of operators | |
9065 | so that they are allowed in renaming. Move the checks for restrictions | |
9066 | on selector name after analysis discriminated between | |
9067 | component-selection and expanded-name. | |
9068 | * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on | |
9069 | concatenation argument of string type if it is static. | |
9070 | * sem_util.adb, sem_util.ads | |
9071 | (Check_Later_Vs_Basic_Declarations): add a new function | |
9072 | Is_Later_Declarative_Item to decice which declarations are allowed as | |
9073 | later items, in the two different modes Ada 83 and SPARK. In the SPARK | |
9074 | mode, add that renamings are considered as later items. | |
9075 | (Enclosing_Package): new function to return the enclosing package | |
9076 | (Enter_Name): correct the rule for homonyms in SPARK | |
9077 | (Is_SPARK_Initialization_Expr): default to returning True on nodes not | |
9078 | from source (result of expansion) to avoid issuing wrong warnings. | |
9079 | ||
9080 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9081 | ||
9082 | * errout.adb: On anything but an expression First_Node returns its | |
9083 | argument. | |
9084 | ||
23685ae6 AC |
9085 | 2011-08-02 Pascal Obry <obry@adacore.com> |
9086 | ||
9087 | * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting. | |
9088 | ||
9089 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
9090 | ||
9091 | * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization. | |
9092 | Set the associated loop as the related expression of internally | |
9093 | generated cursors. | |
9094 | * exp_ch7.adb (Is_Container_Cursor): New routine. | |
9095 | (Wrap_Transient_Declaration): Supress the finalization of the list | |
9096 | controller when the declaration denotes a container cursor. | |
9097 | ||
9098 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
9099 | ||
9100 | * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through | |
9101 | command line now. | |
9102 | * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the | |
9103 | expression is a simple expression. This check cannot be performed in | |
9104 | the semantics, so just drop it. | |
9105 | (P_Index_Or_Discriminant_Constraint): move check that the index or | |
9106 | discriminant is a subtype mark to Analyze_Subtype_Declaration in the | |
9107 | semantics. Other cases were previously checked in the semantics. | |
9108 | * par-ch4.adb (P_Name): move checks that a selector name is not | |
9109 | character literal or an operator symbol to Find_Selected_Component in | |
9110 | the semantics | |
9111 | * par-ch5.adb (Parse_Decls_Begin_End): move check that basic | |
9112 | declarations are not placed after later declarations in a separate | |
9113 | procedure in Sem_Util (possibly not the best choice?), to be used both | |
9114 | during parsing, for Ada 83 mode, and during semantic analysis, for | |
9115 | SPARK mode. | |
9116 | * par-endh.adb (Check_End): move check that end label is not missing | |
9117 | to Process_End_Label in the semantics | |
9118 | * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove | |
9119 | the special case for SPARK restriction | |
9120 | * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End | |
9121 | * restrict.adb, restrict.ads (Check_Formal_Restriction): add a | |
9122 | parameter Force to issue the error message even on internal node (used | |
9123 | for generated end label). Call Check_Restriction to check when an error | |
9124 | must be issued. In SPARK mode, issue an error message even if the | |
9125 | restriction is not set. | |
9126 | (Check_Restriction): new procedure with an additional out parameter to | |
9127 | inform the caller that a message has been issued | |
9128 | * sem_aggr.adb: Minor modification of message | |
9129 | * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction | |
9130 | instead of issuing an error message directly | |
9131 | * sem_ch3.adb (Analyze_Declarations): move here the check that basic | |
9132 | declarations are not placed after later declarations, by calling | |
9133 | Check_Later_Vs_Basic_Declarations | |
9134 | (Analyze_Subtype_Declaration): move here the check that an index or | |
9135 | discriminant constraint must be a subtype mark. Change the check that | |
9136 | a subtype of String must start at one so that it works on subtype marks. | |
9137 | * sem_ch4.adb (Analyze_Call): move here the check that a named | |
9138 | association cannot follow a positional one in a call | |
9139 | * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction | |
9140 | instead of issuing an error message directly | |
9141 | * sem_ch8.adb (Find_Selected_Component): move here the check that a | |
9142 | selector name is not a character literal or an operator symbol. Move | |
9143 | here the check that the prefix of an expanded name cannot be a | |
9144 | subprogram or a loop statement. | |
9145 | * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new | |
9146 | procedure called from parsing and semantics to check that basic | |
9147 | declarations are not placed after later declarations | |
9148 | (Process_End_Label): move here the check that end label is not missing | |
9149 | ||
9150 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
9151 | ||
9152 | * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum | |
9153 | representation clause in codepeer mode, since it confuses CodePeer and | |
9154 | does not bring useful info. | |
9155 | ||
9156 | 2011-08-02 Ed Falis <falis@adacore.com> | |
9157 | ||
9158 | * init.c: initialize fp hw on MILS. | |
9159 | ||
9160 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9161 | ||
9162 | * errout.adb (First_Node): for bodies, return the node itself (small | |
9163 | optimization). For other nodes, do not check source_unit if the node | |
9164 | comes from Standard. | |
9165 | ||
d2d9cc22 AC |
9166 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9167 | ||
9168 | * exp_ch3.adb: Minor comment additions. | |
9169 | * sem_ch13.adb: Minor reformatting. | |
9170 | ||
9171 | 2011-08-02 Pascal Obry <obry@adacore.com> | |
9172 | ||
9173 | * make.adb, makeutl.adb: Removes some superfluous directory separator. | |
9174 | ||
a01b9df6 AC |
9175 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9176 | ||
9177 | * sem_attr.adb: Minor reformatting. | |
9178 | ||
9179 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9180 | ||
9181 | * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value | |
9182 | (Has_Default_Component_Value): Removed | |
9183 | * einfo.ads Comment updates | |
9184 | (Has_Default_Aspect): Replaces Has_Default_Value | |
9185 | (Has_Default_Component_Value): Removed | |
9186 | * exp_ch13.adb | |
9187 | (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects | |
9188 | * exp_ch3.adb | |
9189 | (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects | |
9190 | (Get_Simple_Init_Val): Handle Default_Value aspect | |
9191 | (Needs_Simple_Initialization): Handle Default_Value aspect | |
9192 | * exp_ch3.ads: Needs_Simple_Initialization | |
9193 | * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect | |
9194 | * par-prag.adb (Pragma_Default[_Component]Value) Removed | |
9195 | * sem_ch13.adb | |
9196 | (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects | |
9197 | * sem_prag.adb (Pragma_Default[_Component]Value) Removed | |
9198 | * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed | |
9199 | ||
9200 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9201 | ||
9202 | * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate | |
9203 | package containing iteration primitives. | |
9204 | exp_ch5.adb (Expand_Iterator_Loop): ditto. | |
9205 | ||
75c90775 AC |
9206 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
9207 | ||
9208 | * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with | |
9209 | "of", pre-analyze expression in case it is a function call with | |
9210 | finalization actions that must be placed ahead of the loop. | |
9211 | * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present | |
9212 | on an Ada2012 iterator, insert them ahead of the rewritten loop. | |
9213 | ||
9214 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
9215 | ||
9216 | * cstand.adb (Create_Float_Types): Only consider C's long double for | |
9217 | Long_Long_Float, in addition to double. | |
9218 | ||
ded8909b AC |
9219 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9220 | ||
9221 | * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads, | |
9222 | sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads, | |
9223 | prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb: | |
9224 | Minor reformatting. | |
9225 | ||
9226 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9227 | ||
9228 | * sem_attr.adb: handle properly 'Result when it is a prefix of an | |
9229 | indexed component. | |
9230 | ||
9231 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
9232 | ||
9233 | * einfo.ads, einfo.adb | |
9234 | (Original_Access_Type): Move this attribute to Node26 since there was | |
9235 | an undocumented use of Node21 in E_Access_Subprogram_Type entities | |
9236 | which causes conflicts and breaks the generation of the .NET compiler. | |
9237 | (Interface_Name): Add missing documentation on JGNAT only uses of | |
9238 | this attribute. | |
9239 | ||
70c34e1c AC |
9240 | 2011-08-02 Geert Bosch <bosch@adacore.com> |
9241 | ||
9242 | * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist | |
9243 | (Find_Back_End_Float_Type): Likewise | |
9244 | (Create_Back_End_Float_Types): Likewise | |
9245 | (Create_Float_Types): Likewise | |
9246 | (Register_Float_Type): Likewise | |
9247 | * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of | |
9248 | Nlist and split out type selection in new local Find_Base_Type function. | |
9249 | * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of | |
9250 | Nlist | |
9251 | * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist | |
9252 | ||
9253 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9254 | ||
9255 | * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in | |
9256 | alpha order). | |
9257 | * opt.ads: Minor comment change. | |
9258 | * sem_ch12.adb: Minor code reorganization. | |
9259 | ||
b715bc59 AC |
9260 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> |
9261 | ||
9262 | * sem_ch3.adb (Complete_Private_Subtype): Don't append the private | |
9263 | subtype's list of rep items to the list on the full subtype in the case | |
9264 | where the lists are the same. | |
9265 | ||
9266 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
9267 | ||
9268 | * switch-c.adb (Free): New deallocation procedure to avoid implicitly | |
9269 | using the one from System.Strings, which also deallocates all strings. | |
9270 | ||
002bdd68 AC |
9271 | 2011-08-02 Geert Bosch <bosch@adacore.com> |
9272 | ||
9273 | * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New | |
9274 | function. | |
9275 | * gcc-interface/Make-lang.in: Update dependencies. | |
9276 | ||
9277 | 2011-08-02 Olivier Hainque <hainque@adacore.com> | |
9278 | ||
9279 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function | |
9280 | end_locus. | |
9281 | ||
499769ec AC |
9282 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
9283 | ||
9284 | * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals | |
9285 | associated with anonymous access to subprograms. | |
9286 | ||
9287 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
9288 | ||
9289 | * opt.ads | |
9290 | (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions. | |
9291 | (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition. | |
9292 | * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads | |
9293 | (Add_Symbol_Definition): Move to switch-c.adb | |
9294 | (Process_Command_Line_Symbol_Definitions): Adjust references to above. | |
9295 | * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation. | |
9296 | (Add_Symbol_Definition): Move to switch-c.adb. | |
9297 | * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw. | |
9298 | * sem_warn.adb | |
9299 | (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch): | |
9300 | Move to warnsw.adb. | |
9301 | * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size, | |
9302 | Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch): | |
9303 | Move to warnsw.adb. | |
9304 | * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw. | |
9305 | (Add_Symbol_Definition): Moved from Prepcomp. | |
9306 | * switch-c.ads: Update copyright notice. Use String_List instead of | |
9307 | Argument_List, removing dependency on System.OS_Lib. | |
9308 | ||
aa1e353a AC |
9309 | 2011-08-02 Yannick Moy <moy@adacore.com> |
9310 | ||
9311 | * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal | |
9312 | mode on initialization expression which does not respect SPARK | |
9313 | restrictions. | |
9314 | * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines | |
9315 | if the tree referenced by its argument represents an initialization | |
9316 | expression in SPARK, suitable for initializing an object in an object | |
9317 | declaration. | |
9318 | ||
9319 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
9320 | ||
9321 | * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the | |
9322 | internally generated access to subprogram with its associated protected | |
9323 | subprogram type. | |
9324 | * einfo.ads, einfo.adb (Original_Access_Type): New attribute. | |
9325 | ||
15b682ca GB |
9326 | 2011-08-02 Geert Bosch <bosch@adacore.com> |
9327 | ||
9328 | * cstand.adb (Register_Float_Type): Print information about type to | |
9329 | register, if the Debug_Flag_Dot_B is set. | |
9330 | * debug.adb (Debug_Flag_Dot_B): Document d.b debug option. | |
9331 | * rtsfind.ads (RE_Max_Base_Digits): New run time entity. | |
9332 | * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations | |
9333 | with a requested precision of more than Max_Digits digits and no more | |
9334 | than Max_Base_Digits digits, if a range specification is present and the | |
9335 | Predefined_Float_Types list has a suitable type to derive from. | |
9336 | * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the | |
9337 | case of type completion with pragma Import | |
9338 | * sem_prag.adb | |
9339 | (Process_Import_Predefined_Type): Processing to complete a type | |
9340 | with pragma Import. Currently supports floating point types only. | |
9341 | (Set_Convention_From_Pragma): Do nothing without underlying type. | |
9342 | (Process_Convention): Guard against absence of underlying type, | |
9343 | which may happen when importing incomplete types. | |
9344 | (Process_Import_Or_Interface): Handle case of importing predefined | |
9345 | types. Tweak error message. | |
9346 | ||
f8726f2b AC |
9347 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> |
9348 | ||
9349 | * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined | |
9350 | functions to previous change. Reorganize code slightly. | |
9351 | ||
9352 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
9353 | ||
9354 | * back_end.ads (Register_Type_Proc): New call back procedure type for | |
9355 | allowing the back end to provide information about available types. | |
9356 | (Register_Back_End_Types): New procedure to register back end types. | |
9357 | * back_end.adb (Register_Back_End_Types): Call the back end to enumerate | |
9358 | available types. | |
9359 | * cstand.adb (Back_End_Float_Types): New list for floating point types | |
9360 | supported by the back end. | |
9361 | (Build_Float_Type): Add extra parameter for Float_Rep_Kind. | |
9362 | (Copy_Float_Type): New procedure to make new copies of predefined types. | |
9363 | (Register_Float_Type): New call back procedure to populate the BEFT list | |
9364 | (Find_Back_End_Float_Type): New procedure to find a BEFT by name | |
9365 | (Create_Back_End_Float_Types): New procedure to populate the BEFT list. | |
9366 | (Create_Float_Types): New procedure to create entities for floating | |
9367 | point types predefined in Standard, and put these and any remaining | |
9368 | BEFTs on the Predefined_Float_Types list. | |
9369 | * stand.ads (Predefined_Float_Types): New list for predefined floating | |
9370 | point types that do not have declarations in package Standard. | |
9371 | ||
feecad68 AC |
9372 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> |
9373 | ||
9374 | * inline.adb (Get_Code_Unit_Entity): New local function. Returns the | |
9375 | entity node for the unit containing the parameter. | |
9376 | (Add_Inlined_Body): Use it to find the unit containing the subprogram. | |
9377 | (Add_Inlined_Subprogram): Likewise. | |
9378 | * gcc-interface/Make-lang.in: Update dependencies. | |
9379 | ||
9380 | 2011-08-02 Thomas Quinot <quinot@adacore.com> | |
9381 | ||
9382 | * s-stusta.adb (Print): Make sure Pos is always initialized to a | |
9383 | suitable value. | |
9384 | ||
12f0c50c AC |
9385 | 2011-08-02 Geert Bosch <bosch@adacore.com> |
9386 | ||
9387 | * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image. | |
9388 | ||
9389 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
9390 | ||
9391 | * sem_type.adb (Covers): Move trivial case to the top and reuse the | |
9392 | computed value of Base_Type. | |
9393 | ||
9394 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
9395 | ||
9396 | * restrict.adb (Check_Restriction): issue an error for any use of | |
9397 | class-wide, even if the No_Dispatch restriction is not set. | |
9398 | * sem_aggr.adb: Correct typos in comments and messages in formal mode | |
9399 | * sem_ch3.adb (Process_Full_View): issue an error in formal mode is, | |
9400 | when completing a private extension, the type named in the private part | |
9401 | is not the same as that named in the visible part. | |
9402 | * sem_res.adb (Resolve_Call): issue an error in formal mode on the use | |
9403 | of an inherited primitive operations of a tagged type or type extension | |
9404 | that returns the tagged type. | |
9405 | * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new | |
9406 | function which returns True for an implicit operation inherited by the | |
9407 | derived type declaration for the argument type. | |
9408 | (Is_SPARK_Object_Reference): move to appropriate place in alphabetic | |
9409 | order. | |
9410 | ||
fb86fe11 ES |
9411 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
9412 | ||
9413 | * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from | |
9414 | Process_Bounds, to perform analysis with expansion of a range or an | |
9415 | expression that is the iteration scheme for a loop. | |
9416 | (Analyze_Iterator_Specification): If domain of iteration is given by a | |
9417 | function call with a controlled result, as is the case if call returns | |
9418 | a predefined container, ensure that finalization actions are properly | |
9419 | generated. | |
9420 | * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range. | |
9421 | ||
62be5d0a JM |
9422 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
9423 | ||
9424 | * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo. | |
9425 | * gcc-interface/Make-lang.in: Update dependencies. | |
9426 | ||
9427 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
9428 | ||
9429 | * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to | |
9430 | determine if the analysis is performed using N or Original_Node (N). | |
9431 | * exp_util.adb (Side_Effect_Free): Code cleanup since the new | |
9432 | functionality of routine Is_Variable avoids code duplication. | |
9433 | * checks.adb (Determine_Range): Handle temporaries generated by | |
9434 | Remove_Side_Effects. | |
9435 | ||
9436 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
9437 | ||
9438 | * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and | |
9439 | expansion of the condition. Required since the previous analysis was | |
9440 | done with expansion disabled (see Resolve_Quantified_Expression) and | |
9441 | hence checks were not inserted and record comparisons have not been | |
9442 | expanded. | |
9443 | ||
a20f4389 AC |
9444 | 2011-08-02 Ed Falis <falis@adacore.com> |
9445 | ||
9446 | * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads: | |
9447 | Update header. | |
9448 | ||
9449 | 2011-08-02 Bob Duff <duff@adacore.com> | |
9450 | ||
9451 | * opt.ads: Minor comment fix. | |
9452 | ||
9453 | 2011-08-02 Bob Duff <duff@adacore.com> | |
9454 | ||
9455 | * sem_ch12.adb (Analyze_Package_Instantiation, | |
9456 | Analyze_Subprogram_Instantiation): Turn off style checking while | |
9457 | analyzing an instance. Whatever style checks that apply to the generic | |
9458 | unit should apply, so it makes no sense to apply them in an instance. | |
9459 | This was causing trouble when compiling an instance of a runtime | |
9460 | unit that violates the -gnatyO switch. | |
9461 | * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from | |
9462 | one of the two case statements, causing spurious errors. | |
9463 | ||
9464 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9465 | ||
9466 | * uname.adb: Minor reformatting. | |
9467 | * gnatcmd.adb: Minor reformatting. | |
9468 | * exp_attr.adb: Minor reformatting. | |
9469 | ||
90878b12 AC |
9470 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
9471 | ||
9472 | * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction | |
9473 | No_Dispatching_Calls, do not look for the Assign primitive, because | |
9474 | predefined primitives are not created in this case. | |
9475 | ||
9476 | 2011-08-02 Bob Duff <duff@adacore.com> | |
9477 | ||
9478 | * stylesw.ads: Minor comment fixes. | |
9479 | ||
9480 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9481 | ||
9482 | * freeze.adb (Add_To_Result): New procedure. | |
9483 | ||
9484 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
9485 | ||
9486 | * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run | |
9487 | time, if the specific run-time routines for handling streams of strings | |
9488 | are not available, use the default mechanism. | |
9489 | ||
9490 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
9491 | ||
9492 | * s-regpat.ads: Fix typo. | |
9493 | ||
9494 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
9495 | ||
9496 | * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is | |
9497 | not null, call it to create the in memory config project file without | |
9498 | parsing an existing default config project file. | |
9499 | ||
9500 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
9501 | ||
9502 | * atree.adb (Allocate_Initialize_Node): Remove useless temporaries. | |
9503 | ||
9504 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9505 | ||
9506 | * sem_elim.adb: an abstract subprogram does not need an eliminate | |
9507 | pragma for its descendant to be eliminable. | |
9508 | ||
9509 | 2011-08-02 Ed Falis <falis@adacore.com> | |
9510 | ||
9511 | * init.c: revert to handling before previous checkin for VxWorks | |
9512 | * s-intman-vxworks.adb: delete unnecessary declarations related to | |
9513 | using Ada interrupt facilities for handling signals. | |
9514 | Delete Initialize_Interrupts. Use __gnat_install_handler instead. | |
9515 | * s-intman-vxworks.ads: Import __gnat_install_handler as | |
9516 | Initialize_Interrupts. | |
9517 | * s-taprop-vxworks.adb: Delete Signal_Mask. | |
9518 | (Abort_Handler): change construction of mask to unblock exception | |
9519 | signals. | |
9520 | ||
273adcdf AC |
9521 | 2011-08-02 Jerome Guitton <guitton@adacore.com> |
9522 | ||
9523 | * a-except-2005.adb (Raise_From_Signal_Handler): Call | |
9524 | Debug_Raise_Exception before propagation starts. | |
9525 | ||
9526 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
9527 | ||
9528 | * exp_ch6.adb (Expand_Call): Guard restriction checks with a call | |
9529 | to Restriction_Check_Required. | |
9530 | * sem_ch3.adb (Analyze_Object_Declaration): Likewise. | |
9531 | * sem_res.adb (Resolve_Call): Likewise. | |
9532 | * sem_attr.adb (Check_Stream_Attribute): Likewise. | |
9533 | ||
9534 | 2011-08-02 Bob Duff <duff@adacore.com> | |
9535 | ||
9536 | * stylesw.ads: Update comment. | |
9537 | * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N. | |
9538 | * errout.ads: Remove obsolete comment. | |
9539 | ||
9540 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
9541 | ||
9542 | * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function. | |
9543 | (Set_Is_Safe_To_Reevaluate): new procedure. | |
9544 | * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no | |
9545 | assignment is allowed on safe-to-reevaluate variables. | |
9546 | (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the | |
9547 | temporary created to remove side effects in expressions that use | |
9548 | the secondary stack as safe-to-reevaluate. | |
9549 | * exp_util.adb (Side_Effect_Free): Add missing code to handle well | |
9550 | variables that are not true constants. | |
9551 | ||
6320f5e1 AC |
9552 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9553 | ||
9554 | * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads, | |
9555 | sem_res.adb, sem_ch6.adb: Minor reformatting. | |
9556 | ||
9557 | 2011-08-02 Jerome Guitton <guitton@adacore.com> | |
9558 | ||
9559 | * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code. | |
9560 | ||
2fe829ae ES |
9561 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
9562 | ||
9563 | * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do | |
9564 | not set Overridden_Operation if subprogram is an initialization | |
9565 | procedure. | |
9566 | ||
e24329cd YM |
9567 | 2011-08-02 Yannick Moy <moy@adacore.com> |
9568 | ||
9569 | * par-ch6.adb: Correct obsolete name in comments | |
9570 | * restrict.adb, restrict.ads (Check_Formal_Restriction): new function | |
9571 | which takes two message arguments (existing function takes one), with | |
9572 | second message used for continuation. | |
9573 | * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject | |
9574 | block statements that originate from a source block statement, not | |
9575 | generated block statements | |
9576 | * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for | |
9577 | symmetry with procedure case | |
9578 | * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new | |
9579 | function to issue an error in formal mode if a package specification | |
9580 | contains more than one tagged type or type extension. | |
9581 | * sem_res.adb (Resolve_Actuals): in formal mode, check that actual | |
9582 | parameters matching formals of tagged types are objects (or ancestor | |
9583 | type conversions of objects), not general expressions. Issue an error | |
9584 | on view conversions that are not involving ancestor conversion of an | |
9585 | extended type. | |
9586 | (Resolve_Type_Conversion): in formal mode, issue an error on the | |
9587 | operand of an ancestor type conversion which is not an object | |
9588 | * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the | |
9589 | procedure so that it works also for actuals of function calls | |
9590 | (Is_Actual_Tagged_Parameter): new function which determines if its | |
9591 | argument is an actual parameter of a formal of tagged type in a | |
9592 | subprogram call | |
9593 | (Is_SPARK_Object_Reference): new function which determines if the tree | |
9594 | referenced by its argument represents an object in SPARK | |
9595 | ||
176dadf6 AC |
9596 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9597 | ||
9598 | * sem_ch3.adb: Minor reformatting | |
9599 | Minor comment addition | |
9600 | Minor error msg text change | |
9601 | ||
9602 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
9603 | ||
9604 | * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New | |
9605 | function. Used to be more precise when we generate a variable plus one | |
9606 | assignment to remove side effects in the evaluation of the Bound | |
9607 | expressions. | |
9608 | (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes | |
9609 | of the bound expression to force its re-analysis and thus expand the | |
9610 | associated transient scope (if required). Code cleanup replacing the | |
9611 | previous code that declared the constant entity by an invocation to | |
9612 | routine Force_Evaluation which centralizes this work in the frontend. | |
9613 | ||
d8b962d8 AC |
9614 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9615 | ||
9616 | * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table | |
9617 | (Base_Type): Now uses improved Is_Base_Type function | |
9618 | * einfo.ads (Base_Type): Inline this function | |
9619 | ||
9620 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9621 | ||
9622 | * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion | |
9623 | (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas | |
9624 | ||
9625 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
9626 | ||
9627 | * gcc-interface/Make-lang.in: Update dependencies. | |
9628 | * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks | |
9629 | targets. | |
9630 | ||
9631 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
9632 | ||
9633 | * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on | |
9634 | non-simple expression used in delta constraint | |
9635 | (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on | |
9636 | index constraint which is not a subtype mark | |
9637 | * par.adb: With and use Restrict | |
9638 | * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal | |
9639 | mode on component type which is not a subtype mark and default | |
9640 | expression on component | |
9641 | (Analyze_Subtype_Declaration): issue an error in formal mode on subtype | |
9642 | of string which does not have a lower index bound equal to 1 | |
9643 | (Array_Type_Declaration): issue an error in formal mode on index or | |
9644 | component type which is not a subtype mark, and on aliased keyword on | |
9645 | component | |
9646 | (Derived_Type_Declaration): issue an error in formal mode on interface, | |
9647 | limited or abstract type | |
9648 | (Record_Type_Declaration): issue an error in formal mode on interface | |
9649 | (Record_Type_Definition): issue an error in formal mode on tagged types | |
9650 | and type extensions not declared in the specification of a library unit | |
9651 | package; on null non-tagged record; on variant part | |
9652 | ||
9653 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
9654 | ||
9655 | * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir | |
9656 | not declared for qualified library project when Library_Name is not | |
9657 | declared, but Library_Dir is. | |
9658 | ||
9659 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9660 | ||
9661 | * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated | |
9662 | pragmas (affects aspects [Component_]Default_Value | |
9663 | (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use | |
9664 | component type for the resolution | |
9665 | ||
f96b2d85 AC |
9666 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> |
9667 | ||
9668 | * einfo.adb (Base_Type): Tune implementation for speed. | |
9669 | ||
9670 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9671 | ||
9672 | * freeze.adb: Minor reformatting. | |
9673 | ||
8b3c6430 AC |
9674 | 2011-08-02 Thomas Quinot <quinot@adacore.com> |
9675 | ||
9676 | * scos.ads: Update comments. | |
9677 | ||
9678 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9679 | ||
9680 | * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the | |
9681 | base type, because the parent may be a subtype of a private type whose | |
9682 | convention is established in a private part. | |
9683 | ||
9684 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
9685 | ||
9686 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return | |
9687 | statement in a block when the expansion of the return expression has | |
9688 | created a finalization chain. | |
9689 | * freeze.adb (Freeze_Expression): Alphabetize all choices associated | |
9690 | with the parent node. | |
9691 | Add N_Extended_Return_Statement to handle the case where a transient | |
9692 | object declaration appears in the Return_Object_Declarations list of | |
9693 | an extended return statement. | |
9694 | ||
9695 | 2011-08-02 Matthew Gingell <gingell@adacore.com> | |
9696 | ||
9697 | * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly | |
9698 | unused parameter 'name'. | |
9699 | ||
9700 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9701 | ||
9702 | * sem_elim.adb (Set_Eliminated): If the overridden operation is an | |
9703 | inherited operation, check whether its alias, which is the source | |
9704 | operastion that it renames, has been marked eliminated. | |
9705 | ||
cae81f17 JM |
9706 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
9707 | ||
9708 | * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an | |
9709 | in-mode parameter whose type is an access type since it can be used to | |
9710 | modify its designated object. Enforce code that handles as safe an | |
9711 | access type that is not access-to-constant but it is the result of a | |
9712 | previous removal of side-effects. | |
9713 | (Remove_Side_Effects): Minor code reorganization of cases which require | |
9714 | no action. Done to incorporate documentation on new cases uncovered | |
9715 | working in this ticket: no action needed if this routine was invoked | |
9716 | too early and the nodes are not yet decorated. | |
9717 | * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls | |
9718 | to routine Remove_Side_Effects by calls to Force_Evaluation since they | |
9719 | were issued with actuals that are implicitly provided by | |
9720 | Force_Evaluation. | |
9721 | ||
218e6dee RD |
9722 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9723 | ||
9724 | * sem_ch3.adb, sem_res.adb: Minor reformatting. | |
9725 | ||
7a489a2b AC |
9726 | 2011-08-02 Yannick Moy <moy@adacore.com> |
9727 | ||
9728 | * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure | |
9729 | to issue an error in formal mode on attribute not supported in this mode | |
9730 | (Analyze_Attribute): issue errors on standard attributes not supported | |
9731 | in formal mode. | |
9732 | * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of | |
9733 | comment, and issue error in formal mode on modulus which is not a power | |
9734 | of 2. | |
9735 | (Process_Range_Expr_In_Decl): issue error in formal mode on non-static | |
9736 | range. | |
9737 | * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in | |
9738 | subtype mark. | |
9739 | * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary | |
9740 | operator on modular type (except 'not'). | |
9741 | ||
9742 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9743 | ||
9744 | * gnat_rm.texi: Minor reformatting. | |
9745 | ||
cb7fa356 AC |
9746 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> |
9747 | ||
9748 | * s-osinte-linux.ads: Minor comment update and reformatting. | |
9749 | * i-cexten.ads: Make this unit pure, as for its parent. | |
9750 | Will allow its usage in more contexts if needed. | |
9751 | ||
9752 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9753 | ||
9754 | * s-utf_32.ads: Minor comment fix. | |
9755 | ||
9756 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9757 | ||
9758 | * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive | |
9759 | operation of a tagged synchronized type, handle the case where the | |
9760 | controlling argument is overloaded. | |
9761 | ||
9762 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
9763 | ||
9764 | * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl: | |
9765 | Replace pragma SPARK_95 with pragma Restrictions (SPARK) | |
9766 | * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set | |
9767 | SPARK mode and formal verification mode on processing SPARK restriction | |
9768 | * s-rident.ads (Restriction_Id): add SPARK restriction in those not | |
9769 | requiring consistency checking. | |
9770 | ||
5cc9353d RD |
9771 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9772 | ||
9773 | * sem_res.adb: Minor reformatting. | |
9774 | ||
e51537ff RD |
9775 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9776 | ||
9777 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
9778 | a-cforse.ads: Remove unneeded with of Ada.Containers | |
9779 | Remove commented out pragma Inline's | |
9780 | Move specifications of new subprograms to the actual specs | |
9781 | ||
83fa09c5 AC |
9782 | 2011-08-02 Yannick Moy <moy@adacore.com> |
9783 | ||
9784 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
9785 | a-cforse.ads: Update comments. | |
9786 | ||
9787 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9788 | ||
9789 | * sem_attr.adb: add attribute name when 'Result has the wrong prefix. | |
9790 | ||
d11cfaf8 RD |
9791 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9792 | ||
9793 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
9794 | a-cforse.ads, a-cofove.ads: Minor reformatting. | |
9795 | ||
300b98bb AC |
9796 | 2011-08-02 Claire Dross <dross@adacore.com> |
9797 | ||
9798 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads, | |
9799 | a-cofove.ads: Add comments. | |
9800 | ||
9801 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
9802 | ||
9803 | * gnat_rm.texi: Document formal containers. | |
9804 | ||
9805 | 2011-08-02 Emmanuel Briot <briot@adacore.com> | |
9806 | ||
9807 | * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there | |
9808 | are empty sections. | |
9809 | ||
19fb051c AC |
9810 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9811 | ||
9812 | * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor | |
9813 | reformatting. | |
9814 | ||
9815 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9816 | ||
9817 | * aspects.adb: New aspects Default_Value and Default_Component_Value | |
9818 | New format of Aspect_Names table checks for omitted entries | |
9819 | * aspects.ads: Remove mention of Aspect_Cancel and add documentation on | |
9820 | handling of boolean aspects for derived types. | |
9821 | New aspects Default_Value and Default_Component_Value | |
9822 | New format of Aspect_Names table checks for omitted entries | |
9823 | * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag | |
9824 | (Has_Default_Value): New flag | |
9825 | (Has_Default_Component_Value): New flag | |
9826 | (Has_Default_Value): New flag | |
9827 | * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names | |
9828 | table. | |
9829 | * par-prag.adb: New pragmas Default_Value and Default_Component_Value | |
9830 | * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects | |
9831 | Default_Value and Default_Component_Value | |
9832 | * sem_prag.adb: New pragmas Default_Value and Default_Component_Value | |
9833 | New aspects Default_Value and Default_Component_Value | |
9834 | * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value | |
9835 | * sprint.adb: Print N_Aspect_Specification node when called from gdb | |
9836 | ||
9837 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
9838 | ||
9839 | * prj-nmsc.adb (Check_Library_Attributes): For virtual library project, | |
9840 | inherit library kind. | |
9841 | ||
9842 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9843 | ||
9844 | * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds. | |
9845 | Minor reformatting. | |
9846 | ||
9847 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9848 | ||
9849 | * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM | |
9850 | ||
5f7747af AC |
9851 | 2011-08-02 Yannick Moy <moy@adacore.com> |
9852 | ||
9853 | * sem_aggr.adb (Resolve_Aggregate): Fix thinko. | |
9854 | ||
9855 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9856 | ||
9857 | * impunit.adb: Add comment. | |
9858 | ||
a5fe697b AC |
9859 | 2011-08-02 Yannick Moy <moy@adacore.com> |
9860 | ||
9861 | * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks | |
9862 | qualification of aggregates in formal mode | |
9863 | (Is_Top_Level_Aggregate): returns True for an aggregate not contained in | |
9864 | another aggregate | |
9865 | (Resolve_Aggregate): complete the test that an aggregate is adequately | |
9866 | qualified in formal mode | |
9867 | ||
9868 | 2011-08-02 Pascal Obry <obry@adacore.com> | |
9869 | ||
9870 | * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting. | |
9871 | * mlib-prj.adb: Supress warning when compiling binder generated file. | |
9872 | (Build_Library): Supress all warnings when compiling the binder | |
9873 | generated file. | |
9874 | ||
bd65a2d7 | 9875 | 2011-08-02 Yannick Moy <moy@adacore.com> |
d4487611 | 9876 | |
bd65a2d7 AC |
9877 | * errout.adb, errout.ads (Check_Formal_Restriction): move procedure |
9878 | from here... | |
9879 | * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here | |
9880 | * sem_aggr.adb, sem_ch5.adb, sem_util.adb: | |
9881 | Add with/use clauses to make Check_Formal_Restriction visible | |
9882 | ||
9883 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9884 | ||
9885 | * sem_ch12.adb (Check_Generic_Actuals): handle properly actual | |
9886 | in-parameters when type of the generic formal is private in the generic | |
9887 | spec and non-private in the body. | |
9888 | ||
9889 | 2011-08-02 Claire Dross <dross@adacore.com> | |
9890 | ||
9891 | * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb, | |
9892 | a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads, | |
9893 | a-cofove.adb, a-cofove.ads: New files implementing formal containers. | |
9894 | * impunit.adb, Makefile.rtl: Take new files into account. | |
d4487611 AC |
9895 | |
9896 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9897 | ||
9898 | * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb, | |
9899 | sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting. | |
9900 | ||
bd434b3f YM |
9901 | 2011-08-02 Yannick Moy <moy@adacore.com> |
9902 | ||
9903 | * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in | |
9904 | formal mode | |
9905 | * sem_util.adb (Matching_Static_Array_Bounds): proper detection of | |
9906 | matching static array bounds, taking into account the special case of | |
9907 | string literals | |
9908 | * sem_ch3.adb: Typo in comment. | |
9909 | ||
fe5d3068 YM |
9910 | 2011-08-02 Yannick Moy <moy@adacore.com> |
9911 | ||
9912 | * errout.adb, errout.ads (Check_Formal_Restriction): new procedure | |
9913 | which issues an error in formal mode if its argument node is originally | |
9914 | from source | |
9915 | * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type | |
9916 | has a discriminant specification so that it does not include the case | |
9917 | of derived types | |
9918 | (Derived_Type_Declaration): move here the test that a derived type has a | |
9919 | discriminant specification | |
9920 | * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the | |
9921 | first element of a component association before accessing its choices | |
9922 | (presence of component association is not enough) | |
9923 | * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram | |
9924 | declaration is a library item before accessing the next element in a | |
9925 | list, as library items are not member of lists | |
9926 | * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, | |
9927 | sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use | |
9928 | Check_Formal_Restriction whenever possible. | |
9929 | ||
b60a3f26 AC |
9930 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
9931 | ||
9932 | * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype | |
9933 | reference when needed. | |
9934 | ||
9935 | 2011-08-02 Bob Duff <duff@adacore.com> | |
9936 | ||
9937 | * gnat_ugn.texi: Fix typo. | |
9938 | ||
9939 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
9940 | ||
9941 | * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of | |
9942 | archive file name. Do not use the full path name of archives for Open | |
9943 | VMS. | |
9944 | ||
eaba57fb RD |
9945 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9946 | ||
9947 | * sem_ch12.adb, sem_ch11.adb: New calling sequence for | |
9948 | Analyze_Aspect_Specifications | |
9949 | * sem_ch13.adb | |
9950 | (Analyze_Aspect_Specifications): New handling for boolean aspects | |
9951 | * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence | |
9952 | * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling | |
9953 | sequence for Analyze_Aspect_Specifications | |
9954 | * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely | |
9955 | * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used | |
9956 | ||
9957 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9958 | ||
9959 | * freeze.adb (Freeze_Entity): Remove handling of delayed boolean | |
9960 | aspects, since these no longer exist. | |
9961 | ||
9962 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9963 | ||
9964 | * par-ch13.adb (Aspect_Specifications_Present): Always return false on | |
9965 | semicolon, do not try to see if there are aspects following it. | |
9966 | * par-ch3.adb (P_Declarative_Items): Better message for unexpected | |
9967 | aspect spec. | |
9968 | ||
8830d1d2 AC |
9969 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9970 | ||
9971 | * sem_ch8.adb, aspects.ads: Minor reformatting. | |
9972 | ||
9973 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
9974 | ||
9975 | * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline. | |
9976 | * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure | |
9977 | extracted from... | |
9978 | (Analyze_Aspect_Specifications): ...here. Call above procedure. | |
9979 | ||
7ff2d234 AC |
9980 | 2011-08-02 Yannick Moy <moy@adacore.com> |
9981 | ||
9982 | * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal | |
9983 | mode on subprogram declaration outside of package specification, unless | |
9984 | it is followed by a pragma Import | |
9985 | * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration, | |
9986 | Access_Type_Declaration): issue error in formal mode on access type | |
9987 | (Analyze_Incomplete_Type_Decl): issue error in formal mode on | |
9988 | incomplete type | |
9989 | (Analyze_Object_Declaration): issue error in formal mode on object | |
9990 | declaration which does not respect SPARK restrictions | |
9991 | (Analyze_Subtype_Declaration): issue error in formal mode on subtype | |
9992 | declaration which does not respect SPARK restrictions | |
9993 | (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue | |
9994 | error in formal mode on digits or delta constraint | |
9995 | (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on | |
9996 | decimal fixed point type | |
9997 | (Derived_Type_Declaration): issue error in formal mode on derived type | |
9998 | other than type extensions of tagged record types | |
9999 | * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant | |
10000 | with check on access definition | |
10001 | * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal | |
10002 | mode on protected definition. | |
10003 | (Analyze_Task_Definition): issue error in formal mode on task definition | |
10004 | ||
10005 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10006 | ||
10007 | * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting. | |
10008 | ||
806f6d37 AC |
10009 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
10010 | ||
10011 | * sem_ch6.adb (Can_Override_Operator): New function. | |
10012 | (Verify_Overriding_Indicator): Add missing code to check overriding | |
10013 | indicator in operators. Fixes regression. | |
10014 | (Check_Overriding_Indicator): Minor reformating after replacing the | |
10015 | code that evaluates if the subprogram can override an operator by | |
10016 | invocations to the above new function. | |
10017 | * einfo.adb | |
10018 | (Write_Field26_Name): Add missing code to ensure that, following | |
10019 | the documentation in einfo.ads, this field is not shown as attribute | |
10020 | "Static_Initialization" on non-dispatching functions. | |
10021 | ||
10022 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
10023 | ||
10024 | * sem_res.adb (Resolve_Call): A call to | |
10025 | Ada.Real_Time.Timing_Events.Set_Handler violates restriction | |
10026 | No_Relative_Delay (AI-0211) only when it sets a relative timing event, | |
10027 | i.e., when the second parameter is of type Time_Span. | |
10028 | ||
10029 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
10030 | ||
10031 | * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link | |
10032 | with an archive instead of -L<library dir> -l<library name>. | |
10033 | ||
10034 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10035 | ||
10036 | * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed, | |
10037 | mark the base types In_Use in addition to making the operations | |
10038 | use_visible. | |
10039 | ||
10040 | 2011-08-02 Ed Falis <falis@adacore.com> | |
10041 | ||
10042 | * init.c: add and setup __gnat_signal_mask for the exception signals | |
10043 | * s-inmaop-vxworks.adb: new file. | |
10044 | * s-intman-vxworks.adb: remove unnecessary initializations and | |
10045 | simplify remaining | |
10046 | * s-intman-vxworks.ads: remove unnecessary variable | |
10047 | * s-taprop-vxworks.adb: simplify signal initialization | |
10048 | ||
780d052e RD |
10049 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10050 | ||
10051 | * sem_ch8.adb: Minor code reorganization, comment updates. | |
10052 | ||
10053 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10054 | ||
10055 | * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util | |
10056 | * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved | |
10057 | here from Sem_Res. | |
10058 | (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression | |
10059 | (Matching_Static_Array_Bounds): Moved here from Sem_Res | |
10060 | ||
29efbb8c ES |
10061 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
10062 | ||
10063 | * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5. | |
10064 | * par_ch8.adb (P_Use_Type): initialize Used_Operations for node. | |
10065 | * sinfo.ads, sinfo.adb (Used_Operations): new attribute of | |
10066 | use_type_clauses, to handle more efficiently use_type and use_all_type | |
10067 | constructs. | |
10068 | * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the | |
10069 | Ada2012 Use_All_Type clause. | |
10070 | (Use_Class_Wide_Operations): new procedure. | |
10071 | ||
b0186f71 AC |
10072 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10073 | ||
10074 | * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb, | |
10075 | sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized | |
10076 | expression to expression function. | |
10077 | ||
10078 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10079 | ||
10080 | * sem_ch4.adb: transform simple Ada2012 membership into equality only | |
10081 | if types are compatible. | |
10082 | ||
10083 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
10084 | ||
10085 | * sem_res.adb (Matching_Static_Array_Bounds): new function which | |
10086 | returns True if its argument array types have same dimension and same | |
10087 | static bounds at each index. | |
10088 | (Resolve_Actuals): issue an error in formal mode on actuals passed as | |
10089 | OUT or IN OUT paramaters which are not view conversions in SPARK. | |
10090 | (Resolve_Arithmetic_Op): issue an error in formal mode on | |
10091 | multiplication or division with operands of fixed point types which are | |
10092 | not qualified or explicitly converted. | |
10093 | (Resolve_Comparison_Op): issue an error in formal mode on comparisons of | |
10094 | Boolean or array type (except String) operands. | |
10095 | (Resolve_Equality_Op): issue an error in formal mode on equality | |
10096 | operators for array types other than String with non-matching static | |
10097 | bounds. | |
10098 | (Resolve_Logical_Op): issue an error in formal mode on logical operators | |
10099 | for array types with non-matching static bounds. Factorize the code in | |
10100 | Matching_Static_Array_Bounds. | |
10101 | (Resolve_Qualified_Expression): issue an error in formal mode on | |
10102 | qualified expressions for array types with non-matching static bounds. | |
10103 | (Resolve_Type_Conversion): issue an error in formal mode on type | |
10104 | conversion for array types with non-matching static bounds | |
10105 | ||
767bb4e8 AC |
10106 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10107 | ||
10108 | * par-ch10.adb: Minor code reorganization (use Nkind_In). | |
10109 | ||
10110 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10111 | ||
10112 | * par-ch9.adb: save location of entry for proper error message. | |
10113 | ||
4ac2477e JM |
10114 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
10115 | ||
10116 | * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal | |
10117 | (Use_Full_View) which permits this routine to climb through the | |
10118 | ancestors using the full-view of private parents. | |
10119 | * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set | |
10120 | Use_Full_View to true in calls to Is_Ancestor. | |
10121 | * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to | |
10122 | true in call to Is_Ancestor. | |
10123 | * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set | |
10124 | Use_Full_View to true in call to Is_Ancestor. | |
10125 | * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in | |
10126 | call to Is_Ancestor. | |
10127 | * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set | |
10128 | Use_Full_View to true in calls to Is_Ancestor. | |
10129 | * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT, | |
10130 | Make_Select_Specific_Data_Table, Register_Primitive, | |
10131 | Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor. | |
10132 | * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View | |
10133 | to true in call to Is_Ancestor. | |
10134 | * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set | |
10135 | Use_Full_View to true in calls to Is_Ancestor. | |
10136 | * exp_cg.adb | |
10137 | (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor. | |
10138 | (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor. | |
10139 | ||
9f90d123 AC |
10140 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10141 | ||
10142 | * gnat_rm.texi: Minor reformatting. | |
10143 | * sem_prag.adb: Minor reformatting. | |
10144 | ||
10145 | 2011-08-02 Tristan Gingold <gingold@adacore.com> | |
10146 | ||
10147 | * vms_data.ads: Add VMS qualifier for -gnateP. | |
10148 | ||
10149 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10150 | ||
10151 | * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty | |
10152 | * par-ch7.adb (P_Package): Proper placement of aspects for package | |
10153 | decl/instantiation. | |
10154 | * par-endh.adb (Check_End): Ad Is_Sloc parameter | |
10155 | (End_Statements): Add Is_Sloc parameterr | |
10156 | * par.adb (P_Aspect_Specification): New meaning of Decl = Empty | |
10157 | (Check_End): Ad Is_Sloc parameter | |
10158 | (End_Statements): Add Is_Sloc parameterr | |
10159 | ||
10160 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
10161 | ||
10162 | * ug_words: Add VMS qualifier equivalent to -gnateP: | |
10163 | /SYMBOL_PREPROCESSING. | |
10164 | ||
10165 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
10166 | ||
10167 | * gnat-style.texi: For hexadecimal numeric literals the typical | |
10168 | grouping of digits is 4 to represent 2 bytes. | |
10169 | A procedure spec which is split into several lines is indented two | |
10170 | characters. | |
10171 | ||
10172 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
10173 | ||
10174 | * exp_aggr.adb (Is_Others_Aggregate): move function to other unit. | |
10175 | * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here | |
10176 | (Resolve_Aggregate): issue errors in formal modes when aggregate is not | |
10177 | properly qualified | |
10178 | (Resolve_Array_Aggregate): issue errors in formal modes on non-static | |
10179 | choice in array aggregate | |
10180 | (Resolve_Extension_Aggregate): issue errors in formal modes on subtype | |
10181 | mark as ancestor | |
10182 | (Resolve_Record_Aggregate): issue errors in formal modes on mixed | |
10183 | positional and named aggregate for record, or others in record | |
10184 | aggregate, or multiple choice in record aggregate | |
10185 | * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when | |
10186 | array operands to logical operations AND, OR and XOR do not have the | |
10187 | same static lower and higher bounds | |
10188 | * sem_ch5.adb, sinfo.ads: Correct typos in comments | |
10189 | ||
2933b16c RD |
10190 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
10191 | ||
10192 | * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement): | |
10193 | Replaces Last_Source_Node_In_Sequence. | |
10194 | * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K | |
10195 | * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores | |
10196 | parens and blank in string (this was inconsistently implemented). | |
10197 | * errout.ads | |
10198 | (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and | |
10199 | blank in string (this was inconsistently implemented). | |
10200 | * gnat1drv.adb | |
10201 | (Set_Global_Switches): Set formal mode switches appropriately | |
10202 | * opt.ads, opt.adb: Formal mode is now global switches, more consistent | |
10203 | * par-prag.adb | |
10204 | (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and | |
10205 | call Set_Error_Msg_Lang to set "spark" as language name. | |
10206 | * par.adb: Remove unnecessary call to set formal language for errout | |
10207 | * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches | |
10208 | appropriately and call Set_Error_Msg_Lang to set "spark" as language | |
10209 | name. | |
10210 | * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and | |
10211 | calls to it, moved after resolution so that types are known | |
10212 | * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if | |
10213 | result of concatenation is not of type String | |
10214 | (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of | |
10215 | concatenation is not properly restricted | |
10216 | * gnat_rm.texi: Add doc on pragma Spark_95. | |
10217 | * gcc-interface/Makefile.in: Remove obsolete target pairs for | |
10218 | Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads. | |
10219 | * gcc-interface/Make-lang.in: Update dependencies. | |
10220 | ||
05dbd302 AC |
10221 | 2011-08-01 Javier Miranda <miranda@adacore.com> |
10222 | ||
10223 | * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of | |
10224 | condition that detects if the overridden operation must replace an | |
10225 | existing entity. | |
10226 | ||
10227 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
10228 | ||
10229 | * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded | |
10230 | code declarations inserted by Insert_Actions in each alternative of the | |
10231 | N_Case_Expression node. | |
10232 | ||
10233 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
10234 | ||
10235 | * sem_ch6.adb: Minor code reorganization. | |
10236 | * sem_util.adb: Minor reformatting. | |
10237 | ||
af9e051f PO |
10238 | 2011-08-01 Pascal Obry <obry@adacore.com> |
10239 | ||
10240 | * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path. | |
10241 | * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource. | |
10242 | ||
1d801f21 AC |
10243 | 2011-08-01 Yannick Moy <moy@adacore.com> |
10244 | ||
10245 | * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character | |
10246 | literal or operator symbol which is prefixed | |
10247 | * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal | |
10248 | mode on access attributes. | |
10249 | * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check | |
10250 | that concatenation operands are properly restricted in formal mode | |
10251 | (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure | |
10252 | Analyze_Concatenation_Operand. Issue an error in formal mode if the | |
10253 | result of the concatenation has a type different from String. | |
10254 | (Analyze_Conditional_Expression, Analyze_Explicit_Dereference, | |
10255 | Analyze_Quantified_Expression, Analyze_Slice, | |
10256 | Analyze_Null): issue an error in formal mode on unsupported constructs | |
10257 | * sem_ch5.adb | |
10258 | (Analyze_Block_Statement): only issue error on source block statement | |
10259 | * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new | |
10260 | function which returns the last node in a list of nodes for which | |
10261 | Comes_From_Source returns True, if any | |
10262 | * sem_ch6.adb (Check_Missing_Return): minor refactoring to use | |
10263 | Last_Source_Node_In_Sequence | |
10264 | * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming, | |
10265 | Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal | |
10266 | mode on unsupported constructs | |
10267 | * sem_ch9.adb Do not return after issuing error in formal mode, as the | |
10268 | rest of the actions may be needed later on since the error is marked as | |
10269 | not serious. | |
10270 | * sinfo.ads: Typos in comments. | |
10271 | ||
10272 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
10273 | ||
10274 | * projects.texi: Minor editing. | |
10275 | ||
53beff22 YM |
10276 | 2011-08-01 Yannick Moy <moy@adacore.com> |
10277 | ||
10278 | * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for | |
10279 | insertion character ~~ | |
10280 | * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures | |
10281 | (Set_Error_Msg_Lang): new procedure which fixes the language for use | |
10282 | with insertion character ~~ | |
10283 | (Set_Msg_Text): treat insertion character ~~ | |
10284 | * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb, | |
10285 | sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to | |
10286 | Formal_Error_Msg_... procedures by equivalent Error_Msg_... | |
10287 | procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make | |
10288 | errors related to the formal language restriction not serious | |
10289 | (insertion character |). | |
10290 | * par.adb (Par): set formal language for error messages if needed | |
10291 | * sem_ch6.adb (Check_Missing_Return): take into account possible | |
10292 | generated statements at the end of the function | |
10293 | * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and | |
10294 | enumeration value to define a new pragma SPARK_95 | |
10295 | * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default, | |
10296 | SPARK_Version): new type and variables to store the SPARK version | |
10297 | (none by default). | |
10298 | (SPARK_Mode): return True when SPARK_Version is set | |
10299 | * par-prag.adb: Correct indentation | |
10300 | (Prag): take Pragma_SPARK_95 into account | |
10301 | * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95 | |
10302 | into account. | |
10303 | ||
8d606a78 RD |
10304 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
10305 | ||
10306 | * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb, | |
10307 | sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb, | |
10308 | sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting | |
10309 | ||
1982d5a8 PO |
10310 | 2011-08-01 Pascal Obry <obry@adacore.com> |
10311 | ||
10312 | * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass | |
10313 | Target_Name to Get_Path call. | |
10314 | (Parse_Single_Project): Likewise. | |
10315 | (Post_Parse_Context_Clause): Likewise. | |
10316 | * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter. | |
10317 | Call Initialise_Project_Path with the proper Target_Name. | |
10318 | (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat | |
10319 | search path. | |
10320 | (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path | |
10321 | with the proper Target_Name. | |
10322 | * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to | |
10323 | Part.Parse routine. | |
10324 | (Parse_Project_And_Apply_Config): Likewise. | |
10325 | * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine. | |
10326 | This is fine as this part of the code is supporting only native | |
10327 | compilation. | |
10328 | * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This | |
10329 | is fine as this part of the code is supporting only native compilation. | |
10330 | ||
0d53d36b AC |
10331 | 2011-08-01 Yannick Moy <moy@adacore.com> |
10332 | ||
10333 | * sem_util.adb (Enter_Name): issue error in formal mode on declaration | |
10334 | of homonym, unless the homonym is one of the cases allowed in SPARK | |
10335 | * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for | |
10336 | package declaration occurring after a body. | |
10337 | ||
10338 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
10339 | ||
10340 | * checks.adb, exp_ch4.adb: Minor reformatting. | |
10341 | ||
10342 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
10343 | ||
10344 | * einfo.ads (Access_Disp_Table): Fix documentation. | |
10345 | (Dispatch_Table_Wrappers): Fix documentation. | |
10346 | ||
10347 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
10348 | ||
10349 | * prj-env.adb, prj-env.ads: Minor reformatting. | |
10350 | ||
8ed68165 AC |
10351 | 2011-08-01 Yannick Moy <moy@adacore.com> |
10352 | ||
10353 | * sem_util.ads, sem_util.adb, par.adb, par_util.adb | |
10354 | (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move | |
10355 | procedures out of these packages. | |
2c7f9cc0 | 10356 | * errout.ads, errout.adb |
8ed68165 AC |
10357 | (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move |
10358 | procedures in of this package | |
10359 | (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE | |
10360 | * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode | |
10361 | on misplaced later vs initial declarations, like in Ada 83 | |
10362 | * sem_attr.adb (Processing for Analyze_Attribute): issue error in | |
10363 | formal mode on attribute of private type whose full type declaration | |
10364 | is not visible | |
10365 | * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a | |
10366 | package declaration inside a package specification | |
10367 | (Analyze_Full_Type_Declaration): issue error in formal mode on | |
10368 | controlled type or discriminant type | |
10369 | * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on | |
10370 | user-defined operator means that it should come from the source | |
10371 | (New_Overloaded_Entity): issue error in formal mode on overloaded | |
10372 | entity. | |
10373 | * sem_ch6.ads, sem_ch13.ads: typos in comments. | |
10374 | ||
10375 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
10376 | ||
10377 | * atree.adb: Minor reformatting. | |
10378 | * checks.adb: Minor reformatting. | |
10379 | ||
4230bdb7 AC |
10380 | 2011-08-01 Vincent Celier <celier@adacore.com> |
10381 | ||
10382 | * s-parame-vms-ia64.ads: Fix typo in comment | |
10383 | Minor reformatting | |
10384 | * s-parame-vms-restrict.ads: Removed, unused. | |
10385 | ||
10386 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
10387 | ||
10388 | * exp_ch3.adb | |
10389 | (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound. | |
10390 | * sem_ch3.adb | |
10391 | (Constrain_Index): Remove side effects in the evaluation of the bounds. | |
10392 | * sem_ch3.ads, sem_ch3.adb | |
10393 | (Is_Constant_Bound): New extended version of the subprogram that was | |
10394 | previously located inside function Exp_Ch3.Is_Variable_Size_Array. | |
10395 | Moved here since it is shared by routines of sem_ch3 and exp_ch3. | |
10396 | * sem_aux.ads (Constant_Value): Fix typo in comment. | |
10397 | * checks.adb (Generate_Index_Checks): New implementation which, for | |
10398 | array objects with constant bounds, generates the runtime check | |
10399 | referencing the bounds of the array type. For other cases this routine | |
10400 | provides its previous behavior obtaining such values from the array | |
10401 | object. | |
10402 | * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its | |
10403 | parent type. | |
10404 | * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since | |
10405 | we cannot have semantic interpretations of the new node. | |
10406 | ||
2010d078 AC |
10407 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
10408 | ||
10409 | * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified | |
10410 | expressions. | |
10411 | ||
10412 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
10413 | ||
10414 | * sem_ch8.adb: Minor code editing. | |
10415 | * s-vxwext.adb: Remove trailing space. | |
10416 | * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for | |
10417 | consistency with other files. | |
10418 | ||
10419 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
10420 | ||
10421 | * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting. | |
10422 | ||
10423 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
10424 | ||
10425 | * par-ch10.adb: reject parameterized expressions as compilation unit. | |
10426 | * sem_ch4.adb: handle properly conditional expression with overloaded | |
10427 | then_clause and no else_clause. | |
10428 | ||
10429 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
10430 | ||
10431 | * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address | |
10432 | like done by System.Aux_DEC. | |
10433 | * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table. | |
10434 | ||
daec8eeb YM |
10435 | 2011-08-01 Yannick Moy <moy@adacore.com> |
10436 | ||
10437 | * par-endh.adb (Check_End): issue a syntax error in SPARK mode for | |
10438 | missing label at end of declaration (subprogram or package) | |
10439 | * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing | |
10440 | of positional and named parameter association | |
10441 | * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on | |
10442 | Error_Msg_SP which adds a prefix to the error message giving the name | |
10443 | of the formal language analyzed | |
10444 | * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for | |
10445 | access result type in subprogram, unconstrained array as result type,. | |
10446 | (Analyze_Subprogram_Declaration): issue an error in formal mode for null | |
10447 | procedure | |
10448 | * sem_ch8.adb: Code clean up. | |
10449 | ||
38171f43 AC |
10450 | 2011-08-01 Javier Miranda <miranda@adacore.com> |
10451 | ||
10452 | * sem_ch7.adb (Uninstall_Declarations): Remove useless code. | |
10453 | * einfo.ads (Access_Disp_Table): Fix documentation. | |
10454 | (Dispatch_Table_Wrappers): Fix documentation. | |
10455 | * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers, | |
10456 | Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions | |
10457 | to enforce the documentation of this attribute. | |
10458 | (Set_Is_Interface): Cleanup the assertion. | |
10459 | * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate | |
10460 | the Underlying_Type entity before reading attribute Access_Disp_Table. | |
10461 | * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion): | |
10462 | Locate the Underlying_Type before reading attribute Access_Disp_Table. | |
10463 | * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate | |
10464 | the Underlying_Type entity before reading attribute Access_Disp_Table. | |
10465 | * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration): | |
10466 | Locate the Underlying_Type entity before reading attribute | |
10467 | Access_Disp_Table. | |
10468 | ||
10469 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
10470 | ||
10471 | * s-poosiz.ads: Additional overriding indicators. | |
10472 | ||
10473 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
10474 | ||
10475 | * sem_ch5.adb (Analyze_Exit_Statement): add return after error in | |
10476 | formal mode. | |
10477 | (Analyze_Iteration_Scheme): issue error in formal mode when loop | |
10478 | parameter specification does not include a subtype mark. | |
10479 | * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in | |
10480 | formal mode on abstract subprogram. | |
10481 | (Analyze_Subprogram_Specification): issue error in formal mode on | |
10482 | user-defined operator. | |
10483 | (Process_Formals): issue error in formal mode on access parameter and | |
10484 | default expression. | |
10485 | * sem_ch9.adb (Analyze_Abort_Statement, | |
10486 | Analyze_Accept_Statement, Analyze_Asynchronous_Select, | |
10487 | Analyze_Conditional_Entry_Call, Analyze_Delay_Relative, | |
10488 | Analyze_Delay_Until, Analyze_Entry_Call_Alternative, | |
10489 | Analyze_Requeue, Analyze_Selective_Accept, | |
10490 | Analyze_Timed_Entry_Call): issue error in formal mode on such constructs | |
10491 | * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error): | |
10492 | issue error in formal mode on user-defined raise statement. | |
10493 | ||
1f250383 AC |
10494 | 2011-08-01 Thomas Quinot <quinot@adacore.com> |
10495 | ||
10496 | * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a | |
10497 | declaration being hidden when overriding an implicit inherited | |
10498 | subprogram. | |
10499 | * par-ch10.adb (P_Compilation_Unit): In syntax check only mode | |
10500 | (-gnats), do not complain about a source file that contains only a | |
10501 | pragma No_Body. | |
10502 | ||
10503 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
10504 | ||
10505 | * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop | |
10506 | variable if already set. | |
10507 | ||
607d0635 AC |
10508 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> |
10509 | ||
10510 | * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads, | |
10511 | g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads, | |
10512 | s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads, | |
10513 | g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb, | |
10514 | g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads, | |
10515 | g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads, | |
10516 | g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads, | |
10517 | g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb, | |
10518 | g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb, | |
10519 | g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads, | |
10520 | g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads, | |
10521 | s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb, | |
10522 | g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads, | |
10523 | s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads, | |
10524 | g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb, | |
10525 | g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb, | |
10526 | g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb, | |
10527 | g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb, | |
10528 | g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb, | |
10529 | g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb, | |
10530 | s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads, | |
10531 | s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads, | |
10532 | a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb, | |
10533 | s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads, | |
10534 | s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb, | |
10535 | g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads, | |
10536 | g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb, | |
10537 | g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb, | |
10538 | g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads, | |
10539 | g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads, | |
10540 | g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads, | |
10541 | s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads, | |
10542 | s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb, | |
10543 | g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb, | |
10544 | g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads, | |
10545 | s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb, | |
10546 | s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads, | |
10547 | g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads, | |
10548 | g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb, | |
10549 | g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, | |
10550 | s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads, | |
10551 | g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads, | |
10552 | g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads, | |
10553 | g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb, | |
10554 | s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb, | |
10555 | g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb, | |
10556 | g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb, | |
10557 | g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb, | |
10558 | s-osinte-mingw.ads: Update to GPLv3 run-time license. | |
10559 | Use GNAT instead of GNARL. | |
10560 | ||
10561 | 2011-08-01 Bob Duff <duff@adacore.com> | |
10562 | ||
10563 | * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads, | |
10564 | a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads, | |
10565 | a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor | |
10566 | reformatting. | |
10567 | ||
10568 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
10569 | ||
10570 | * debug.adb (d.D) reverve flag for the SPARK mode | |
10571 | (d.E) reverve flag for SPARK generation mode | |
10572 | (d.F) reverve flag for Why generation mode | |
2c7f9cc0 | 10573 | * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode, |
607d0635 AC |
10574 | ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New |
10575 | functions which return True when the corresponding modes are set | |
10576 | (Formal_Language): return "spark" or "alfa" when in formal verification | |
10577 | mode. | |
10578 | * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on | |
10579 | Error_Msg to prefix the error message with a tag giving the formal | |
10580 | language | |
10581 | (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error | |
10582 | message with a tag giving the formal language | |
10583 | * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on | |
10584 | block statement | |
10585 | (Analyze_Case_Statement): issue error in formal mode on case statement | |
10586 | with a single "others" case alternative | |
10587 | (Analyze_Exit_Statement): issue errors in formal mode on exit | |
10588 | statements which do not respect SPARK restrictions | |
10589 | (Analyze_Goto_Statement): issue error in formal mode on goto statement | |
10590 | (Check_Unreachable_Code): always issue an error (not a warning) in | |
10591 | formal mode on unreachable code (concerns both code after an infinite | |
10592 | loop and after an unconditional jump, both not allowed in SPARK) | |
10593 | * sem_ch6.adb (Analyze_Return_Statement): add call to | |
10594 | Set_Return_Present for a procedure containing a return statement | |
10595 | (already done for functions in Analyze_Function_Return) | |
10596 | (Analyze_Function_Return): issue error in formal mode on extended | |
10597 | return or if return is not last statement in function | |
10598 | (Check_Missing_Return): issue error in formal mode if function does | |
10599 | not end with return or if procedure contains a return | |
10600 | * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new | |
10601 | function to detect if there is an inner scope of its parameter S which | |
10602 | is a loop. | |
10603 | ||
10604 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
10605 | ||
10606 | * sem_ch6.ads: Minor reformatting. | |
10607 | ||
d8b3ccb9 AC |
10608 | 2011-08-01 Javier Miranda <miranda@adacore.com> |
10609 | ||
10610 | * sem_util.adb (Abstract_Interface_List): Complete condition when | |
10611 | processing private type declarations to avoid reading unavailable | |
10612 | attribute. | |
10613 | (Is_Synchronized_Tagged_Type): Complete condition when processing | |
10614 | private extension declaration nodes to avoid reading unavailable | |
10615 | attribute. | |
10616 | ||
10617 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
10618 | ||
10619 | * sem_ch3.adb: Minor reformatting. | |
10620 | ||
10621 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
10622 | ||
10623 | * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads, | |
10624 | i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads, | |
10625 | s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads, | |
10626 | s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages | |
10627 | for VMS, instead parametrize the common implementation with | |
10628 | System.Parameters declarations. | |
10629 | ||
0bb9276c AC |
10630 | 2011-08-01 Eric Botcazou <ebotcazou@adacore.com> |
10631 | ||
10632 | * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing. | |
10633 | ||
10634 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
10635 | ||
10636 | * seh_init.c: Fix SEH handler installation on win64. | |
10637 | ||
10638 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
10639 | ||
10640 | * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent | |
10641 | double analysis of an anonymous access to subprogram, because it can | |
10642 | lead to improper sharing of profiles and a back-end crash. | |
10643 | ||
6a2e4f0b AC |
10644 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
10645 | ||
10646 | * make.adb, sem_ch4.adb: Minor reformatting. | |
10647 | * gcc-interface/Make-lang.in: Update dependencies. | |
10648 | * sem_util.adb, exp_ch5.adb: Minor reformatting. | |
10649 | ||
10650 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
10651 | ||
10652 | * gnat_rm.texi: Fix definition of Long_Integer. | |
10653 | ||
10654 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
10655 | ||
10656 | * exp_aggr.adb: check limit size of static aggregate unconditionally, | |
10657 | to prevent storage exhaustion. | |
10658 | * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being | |
10659 | finalized is a function body, insert the cleanup code before the final | |
10660 | return statement, to prevent spurious warnings. | |
10661 | * s-pooglo.ads: add overriding indicator. | |
10662 | ||
4561baf7 ES |
10663 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
10664 | ||
10665 | * sem_ch4.adb (Operator_Check): improve error message when both a | |
10666 | with_clause and a use_clause are needed to make operator usage legal. | |
10667 | * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to | |
10668 | determine whether a compilation unit is visible within an other, | |
10669 | either through a with_clause in the current unit, or a with_clause in | |
10670 | its library unit or one one of its parents. | |
10671 | ||
383e179e AC |
10672 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
10673 | ||
10674 | * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator | |
10675 | over an arbitrary expression of an array or container type. | |
10676 | * lib-xref.adb: clarify comment. | |
10677 | ||
10678 | 2011-08-01 Bob Duff <duff@adacore.com> | |
10679 | ||
10680 | * einfo.ads: Minor reformatting. | |
10681 | * debug.adb: Minor comment improvement. | |
10682 | ||
10683 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
10684 | ||
10685 | * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not | |
10686 | consider hidden subprograms as valid candidates. | |
10687 | ||
10688 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
10689 | ||
10690 | * make.adb (Compile): Strip -mxxx switches in CodePeer mode. | |
10691 | ||
10692 | 2011-08-01 Vasiliy Fofanov <fofanov@adacore.com> | |
10693 | ||
10694 | * gnat_ugn.texi: Fix typo. | |
10695 | ||
61c161b2 AC |
10696 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
10697 | ||
10698 | * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb, | |
10699 | lib-xref.adb: Minor reformatting | |
10700 | ||
10701 | 2011-08-01 Gary Dismukes <dismukes@adacore.com> | |
10702 | ||
10703 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of | |
10704 | when to generate a call to Move_Final_List. | |
10705 | (Has_Controlled_Parts): Remove this function. | |
10706 | ||
84df40f7 AC |
10707 | 2011-08-01 Geert Bosch <bosch@adacore.com> |
10708 | ||
10709 | * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra | |
10710 | "," in choice list. | |
10711 | ||
10712 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
10713 | ||
10714 | * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for | |
10715 | explicit raise of a predefined exception as Comes_From_Source if the | |
10716 | original N_Raise_Statement comes from source. | |
10717 | ||
10718 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
10719 | ||
10720 | * sinfo.ads: Add comment. | |
10721 | * sem_ch6.adb: Minor reformatting. | |
10722 | ||
10723 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
10724 | ||
10725 | * freeze.adb (Freeze_Entity): Refine check for bad component size | |
10726 | clause to avoid rejecting confirming clause when atomic/aliased present. | |
10727 | ||
10728 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
10729 | ||
10730 | * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to | |
10731 | better determine whether an entity reference is a write. | |
10732 | * sem_util.adb (Is_LHS): refine predicate to handle assignment to a | |
10733 | subcomponent. | |
10734 | * lib-xref.adb (Output_References): Do no suppress a read reference at | |
10735 | the same location as an immediately preceeding modify-reference, to | |
10736 | handle properly in-out actuals. | |
10737 | ||
10738 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
10739 | ||
10740 | * env.c (__gnat_setenv) [VMS]: Refine previous change. | |
10741 | ||
10742 | 2011-08-01 Quentin Ochem <ochem@adacore.com> | |
10743 | ||
10744 | * i-cstrin.adb (New_String): Changed implementation, now uses only the | |
10745 | heap to compute the result. | |
10746 | ||
c7f0d2c0 AC |
10747 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
10748 | ||
10749 | * atree.ads: Minor reformatting. | |
10750 | ||
10751 | 2011-08-01 Emmanuel Briot <briot@adacore.com> | |
10752 | ||
10753 | * g-expect.adb (Get_Command_Output): Fix memory leak. | |
10754 | ||
10755 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
10756 | ||
10757 | * cstand.adb (P_Float_Type): New procedure to print the definition of | |
10758 | predefined fpt types. | |
10759 | (P_Mixed_Name): New procedure to print a name using mixed case | |
10760 | (Print_Standard): Use P_Float_Type for printing floating point types | |
10761 | * einfo.adb (Machine_Emax_Value): Add preliminary support for quad | |
10762 | precision IEEE float. | |
10763 | ||
10764 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
10765 | ||
10766 | * sem_ch3.adb: Minor reformatting. | |
10767 | ||
10768 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
10769 | ||
10770 | * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is | |
10771 | the completion of a generic function, insert the new body rather than | |
10772 | rewriting the original. | |
10773 | ||
10774 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
10775 | ||
10776 | * sinfo.ads, errout.ads: Typos in comments. | |
10777 | ||
1c54829e AC |
10778 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
10779 | ||
10780 | * par-endh.adb: Minor reformatting. | |
10781 | ||
10782 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
10783 | ||
10784 | * aspects.ads, aspects.adb: Add aspects for library unit pragmas | |
10785 | (Pre_Post_Aspects): New subtype. | |
10786 | * par-ch12.adb (P_Generic): New syntax for aspects in packages | |
10787 | * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter | |
10788 | * par-ch7.adb (P_Package): Remove Decl parameter | |
10789 | (P_Package): Handle new syntax for aspects (before IS) | |
10790 | * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle | |
10791 | new aspect syntax | |
10792 | (P_Task_Definition): Remove Decl parameter, handle new aspect syntax | |
10793 | * par.adb (P_Aspect_Specifications): Add Semicolon parameter | |
10794 | (P_Package): Remove Decl parameter | |
10795 | * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit | |
10796 | aspects | |
10797 | * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect | |
10798 | specs | |
10799 | * sem_util.ads, sem_util.adb (Static_Boolean): New function | |
10800 | * sinfo.ads: Document new syntax for aspects in packages etc. | |
10801 | * sprint.adb: Handle new syntax of aspects before IS in package | |
10802 | ||
10803 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
10804 | ||
10805 | * atree.ads: Minor reformatting. | |
10806 | * sem_prag.adb: Minor reformatting. | |
10807 | ||
10808 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
10809 | ||
10810 | * exp_util.adb (Insert_Actions): Fix error in handling Actions for | |
10811 | case expr alternative. | |
10812 | ||
10813 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
10814 | ||
10815 | * sem_ch12.adb: Fix typo. | |
10816 | ||
9eea4346 GB |
10817 | 2011-08-01 Geert Bosch <bosch@adacore.com> |
10818 | ||
10819 | * sem_prag.adb (Check_No_Link_Name): New procedure. | |
10820 | (Process_Import_Or_Interface): Use Check_No_Link_Name. | |
10821 | * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float) | |
10822 | instead of Standard_Long_Long_Float_Size global. Preparation for | |
10823 | eventual removal of per type constants. | |
10824 | * exp_util.ads (Get_Stream_Size): New function returning the stream | |
10825 | size value of subtype E. | |
10826 | * exp_util.adb (Get_Stream_Size): Implement new function. | |
10827 | * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size | |
10828 | function. | |
10829 | * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size | |
10830 | * einfo.adb: | |
10831 | (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats | |
10832 | ||
3d6c3bd7 GB |
10833 | 2011-08-01 Geert Bosch <bosch@adacore.com> |
10834 | ||
10835 | * cstand.adb: Fix comments. | |
10836 | * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit | |
10837 | count of arguments. | |
10838 | ||
e7d897b8 AC |
10839 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
10840 | ||
10841 | * exp_ch4.adb, sem_cat.adb: Minor reformatting. | |
10842 | ||
10843 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
10844 | ||
10845 | * atree.ads: Fix comment. | |
10846 | ||
c228a069 AC |
10847 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
10848 | ||
10849 | * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec. | |
10850 | * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name. | |
10851 | * par.adb: Add with for Namet.Sp. | |
10852 | * par-tchk.adb: Minor reformatting. | |
10853 | ||
10854 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
10855 | ||
10856 | * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb | |
10857 | (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name | |
10858 | of the init procedure of a SAL. | |
10859 | * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name): | |
10860 | New procedure. | |
10861 | ||
10862 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
10863 | ||
10864 | * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor | |
10865 | reformatting. | |
10866 | ||
10867 | 2011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
10868 | ||
10869 | * adaint.c (__gnat_file_time_name_attr): Get rid of warning. | |
10870 | ||
10871 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
10872 | ||
10873 | * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function | |
10874 | conformant with its spec (return True only for types that have | |
10875 | an overriding Initialize primitive operation that prevents them from | |
10876 | having preelaborable initialization). | |
10877 | * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable | |
10878 | initialization for controlled types in Ada 2005 or later mode. | |
10879 | ||
857ade1b RD |
10880 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
10881 | ||
10882 | * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition, | |
10883 | Postcondition. | |
10884 | (Same_Aspect): New function. | |
10885 | * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect | |
10886 | Type_Invariant, Precondition, Postcondition. | |
10887 | * snames.ads-tmpl: Add Name_Type_Invariant. | |
10888 | ||
bd949ee2 RD |
10889 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
10890 | ||
10891 | * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point | |
10892 | here. | |
10893 | (Freeze_All_Ent): Fix error in handling inherited aspects. | |
10894 | * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is | |
10895 | already analyzed, but don't skip entire processing of a declaration, | |
10896 | that's wrong in some cases of declarations being rewritten. | |
10897 | (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects. | |
10898 | Don't delay for integer, string literals | |
10899 | Treat predicates in usual manner for delay, remove special case code, | |
10900 | not needed. | |
10901 | (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point | |
10902 | (Build_Predicate_Function): Update saved expression in aspect | |
10903 | (Build_Invariant_Procedure): Update saved expression in aspect | |
10904 | * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization | |
10905 | of replacement of discriminant references if the reference is simple. | |
10906 | ||
f1c952af RD |
10907 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
10908 | ||
10909 | * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate. | |
10910 | * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for | |
10911 | Static_Predicate and Dynamic_Predicate. | |
10912 | (Build_Predicate_Function): Add processing for Static_Predicate | |
10913 | and Dynamic_Predicate. | |
10914 | * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag | |
10915 | (From_Static_Predicate): New flag | |
10916 | * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate | |
10917 | ||
10918 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
10919 | ||
10920 | * usage.adb: Documentation cleanup for Ada version modes in usage. | |
10921 | * expander.adb: Minor reformatting. | |
10922 | ||
47e11d08 AC |
10923 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
10924 | ||
10925 | * atree.ads: Minor comment fix. | |
10926 | * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads, | |
10927 | a-witeio.ads, sem_prag.adb: Minor reformatting. | |
10928 | ||
10929 | 2011-08-01 Doug Rupp <rupp@adacore.com> | |
10930 | ||
10931 | * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure | |
10932 | pointers. Use descrip.h header file for convenience. Add some | |
10933 | comments. | |
10934 | ||
10935 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
10936 | ||
10937 | * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point | |
10938 | (Freeze_All): Call Check_Aspect_At_End_Of_Declarations | |
10939 | * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point): | |
10940 | New procedure. | |
10941 | (Check_Aspect_At_End_Of_Declarations): New procedure | |
10942 | (Analye_Aspect_Specification): Minor changes for above procedures | |
10943 | * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect | |
10944 | specification node as well. | |
10945 | ||
10946 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
10947 | ||
10948 | * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special | |
10949 | Windows files. Use GetFilesAttributes() in this case to check for file | |
10950 | existence instead of returning with an error code. | |
10951 | ||
a3a16b21 VC |
10952 | 2011-08-01 Vincent Celier <celier@adacore.com> |
10953 | ||
10954 | * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when | |
10955 | High is above Source length. | |
10956 | ||
ff58cc69 RD |
10957 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
10958 | ||
10959 | * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment. | |
10960 | ||
6bb88533 AC |
10961 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
10962 | ||
10963 | * aspects.ads (Boolean_Aspects): New subtype. | |
10964 | * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects | |
10965 | for derived types in cases where the parent type and derived type have | |
10966 | aspects. | |
10967 | * freeze.adb (Freeze_Entity): Fix problems in handling derived type | |
10968 | with aspects when parent type also has aspects. | |
10969 | (Freeze_Entity): Deal with delay of boolean aspects (must evaluate | |
10970 | boolean expression at this point). | |
10971 | * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in | |
10972 | accordance with final decision on the Ada 2012 feature. | |
10973 | * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag. | |
10974 | ||
10975 | 2011-08-01 Matthew Heaney <heaney@adacore.com> | |
10976 | ||
10977 | * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector. | |
10978 | ||
060a3f28 AC |
10979 | 2011-08-01 Pascal Obry <obry@adacore.com> |
10980 | ||
10981 | * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: | |
10982 | Fix Replace_Slice when High is above current string size. | |
10983 | (Replace_Slice): Fix DL computation when High is above current | |
10984 | string length. | |
10985 | ||
10986 | 2011-08-01 Gary Dismukes <dismukes@adacore.com> | |
10987 | ||
10988 | * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired. | |
10989 | ||
e7f567a3 AC |
10990 | 2011-08-01 Matthew Heaney <heaney@adacore.com> |
10991 | ||
10992 | * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child | |
10993 | of node. | |
10994 | ||
10995 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
10996 | ||
10997 | * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor | |
10998 | reformatting. | |
10999 | ||
1a265e78 AC |
11000 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
11001 | ||
11002 | * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named | |
11003 | access to protected subprograms in generic bodies. | |
11004 | * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a | |
11005 | protected type, indicate that the convention of the subprogram is | |
11006 | Convention_Protected, because it may be used in subsequent declarations | |
11007 | within the protected declaration. | |
11008 | ||
11009 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
11010 | ||
11011 | * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init" | |
11012 | and "final" procedures when the name of the library is "ada", to avoid | |
11013 | duplicate symbols "adainit" and "adafinal" in executables. | |
11014 | ||
67e28ef8 ES |
11015 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
11016 | ||
11017 | * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a | |
11018 | quantified expression that appears within a postcondition and uses the | |
11019 | Ada2012 'Result attribute. | |
11020 | ||
6da2ca7d RO |
11021 | 2011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
11022 | ||
11023 | * init.c (__gnat_error_handler): Cast reason to int. | |
11024 | (__gnat_install_handler): Explain sa_sigaction use. | |
11025 | ||
7d5997c6 EB |
11026 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> |
11027 | ||
11028 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the | |
11029 | subprogram has copy-in copy-out parameters, try to promote the mode of | |
11030 | the return type if it is passed in registers. | |
11031 | ||
4b4cfdd5 EB |
11032 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> |
11033 | ||
11034 | * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the | |
11035 | left operand as addressable. | |
11036 | ||
f3d34576 EB |
11037 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> |
11038 | ||
11039 | * gcc-interface/gigi.h (build_function_stub): Remove. | |
11040 | (build_return_expr): Likewise. | |
11041 | (convert_vms_descriptor): Declare. | |
11042 | * gcc-interface/utils.c (convert_vms_descriptor): Make global. | |
11043 | (build_function_stub): Move to... | |
11044 | * gcc-interface/utils2.c (build_return_expr): Move to... | |
11045 | * gcc-interface/trans.c (build_function_stub): ...here. | |
11046 | (build_return_expr): ...here. | |
11047 | (Subprogram_Body_to_gnu): Add local variable for language_function. | |
11048 | Disconnect the parameter attributes cache, if any, once done with it. | |
11049 | Call end_subprog_body only after setting the end_locus. | |
11050 | Build the stub associated with the function, if any, at the very end. | |
11051 | (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local | |
11052 | variables and streamline control flow. | |
11053 | ||
0a6ecc08 AC |
11054 | 2011-07-23 Arnaud Charlet <charlet@adacore.com> |
11055 | ||
11056 | PR ada/49819 | |
11057 | * gcc-interface/Makefile.in (powerpc-linux): Remove reference to | |
11058 | g-trasym-dwarf.adb. | |
11059 | ||
5b6d595b RO |
11060 | 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
11061 | ||
11062 | PR bootstrap/49794 | |
11063 | * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler): | |
11064 | Assign to act.sa_sigaction. | |
11065 | * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast | |
11066 | current->return_address to char * before arithmetic. | |
11067 | ||
94017021 RO |
11068 | 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
11069 | ||
11070 | * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation. | |
11071 | Correct argument types. | |
11072 | Extract code from reason. | |
11073 | (__gnat_install_handler): Assign to act.sa_sigaction. | |
11074 | ||
52fd02bb EB |
11075 | 2011-07-21 Eric Botcazou <ebotcazou@adacore.com> |
11076 | ||
11077 | * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to... | |
11078 | (GNAT1_OBJS): ...here. | |
11079 | ||
f39a9ca2 EB |
11080 | 2011-07-15 Eric Botcazou <ebotcazou@adacore.com> |
11081 | ||
11082 | PR ada/48711 | |
11083 | * g-socthi-mingw.adb (Fill): Fix formatting. | |
11084 | ||
9e36aa23 EB |
11085 | * gcc-interface/gigi.h: Move around comment. |
11086 | ||
e3aca522 JDA |
11087 | 2011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
11088 | ||
11089 | PR ada/46350 | |
11090 | * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast. | |
11091 | ||
696b1960 FW |
11092 | 2011-07-14 Florian Weimer <fw@deneb.enyo.de> |
11093 | ||
11094 | PR ada/48711 | |
11095 | * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL. | |
11096 | ||
f542c405 EB |
11097 | 2011-07-13 Eric Botcazou <ebotcazou@adacore.com> |
11098 | ||
11099 | * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit | |
11100 | range comparison if Pmode is SImode. | |
11101 | ||
9e9bd455 LG |
11102 | 2011-07-12 Laurent GUERBY <laurent@guerby.net> |
11103 | Eric Botcazou <ebotcazou@adacore.com> | |
11104 | ||
11105 | * adadecode.c: Wrap up in extern "C" block. | |
11106 | * adadecode.h: Likewise. | |
11107 | * adaint.c: Likewise. Remove 'const' keyword. | |
11108 | * adaint.h: Likewise. | |
11109 | * argv.c: Likewise. | |
11110 | * atree.h: Likewise. | |
11111 | * cio.c: Likewise. | |
11112 | * cstreams.c: Likewise. | |
11113 | * env.c: Likewise. | |
11114 | * exit.c: Likewise. | |
11115 | * fe.h: Likewise. | |
11116 | * final.c: Likewise. | |
11117 | * init.c: Likewise. | |
11118 | * initialize.c: Likewise. | |
11119 | * link.c: Likewise. | |
11120 | * namet.h: Likewise. | |
11121 | * nlists.h: Likewise. | |
11122 | * raise.c: Likewise. | |
11123 | * raise.h: Likewise. | |
11124 | * repinfo.h: Likewise. | |
11125 | * seh_init.c: Likewise. | |
11126 | * targext.c: Likewise. | |
11127 | * tracebak.c: Likewise. | |
11128 | * uintp.h: Likewise. | |
11129 | * urealp.h: Likewise. | |
11130 | * xeinfo.adb: Wrap up generated C code in extern "C" block. | |
11131 | * xsinfo.adb: Likewise. | |
11132 | * xsnamest.adb: Likewise. | |
11133 | * gcc-interface/gadaint.h: Wrap up in extern "C" block. | |
11134 | * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block. | |
11135 | * gcc-interface/misc.c: Likewise. | |
11136 | * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER. | |
11137 | (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and | |
11138 | ada/targext.o here... | |
11139 | (GNAT_ADA_OBJS): ...and not here. | |
11140 | (GNAT1_ADA_OBJS): Add ada/b_gnat1.o. | |
11141 | (GNATBIND_OBJS): Reorder. | |
11142 | ||
7644b3c7 RH |
11143 | 2011-07-07 Richard Henderson <rth@redhat.com> |
11144 | ||
11145 | * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call | |
11146 | dwarf2out_frame_init. | |
11147 | ||
8384ac41 EB |
11148 | 2011-07-07 Eric Botcazou <ebotcazou@adacore.com> |
11149 | ||
11150 | * gcc-interface/misc.c (gnat_init): Tweak previous change. | |
11151 | ||
fbdd5d87 RO |
11152 | 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
11153 | ||
11154 | PR target/39150 | |
11155 | * gcc-interface/Makefile.in: Handle x86_64-solaris2. | |
11156 | ||
1a072294 RG |
11157 | 2011-07-06 Richard Guenther <rguenther@suse.de> |
11158 | ||
8384ac41 EB |
11159 | * gcc-interface/misc.c (gnat_init): Merge calls to |
11160 | build_common_tree_nodes and build_common_tree_nodes_2. | |
1a072294 RG |
11161 | Re-initialize boolean_false_node. |
11162 | ||
bc712852 EB |
11163 | 2011-07-02 Eric Botcazou <ebotcazou@adacore.com> |
11164 | Olivier Hainque <hainque@adacore.com> | |
11165 | Nicolas Setton <setton@adacore.com> | |
11166 | ||
11167 | * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on | |
11168 | the type according to the ARTIFICIAL_P parameter. | |
11169 | (create_type_decl): Likewise. | |
11170 | (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1. | |
11171 | ||
2eb22389 EB |
11172 | 2011-07-01 Eric Botcazou <ebotcazou@adacore.com> |
11173 | ||
11174 | * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command. | |
11175 | (gnatbind): Likewise. | |
11176 | ||
4bdaaf2f RO |
11177 | 2011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
11178 | ||
11179 | * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL). | |
11180 | ||
c020c92b EB |
11181 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> |
11182 | ||
11183 | * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE | |
11184 | local variable throughout. Remove useless call to Base_Type. | |
11185 | (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout. | |
11186 | Take it also into account for the volatileness of the field. Set the | |
11187 | TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings. | |
11188 | ||
96769d32 EB |
11189 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> |
11190 | ||
11191 | * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP | |
11192 | on a dereference built for a by-ref object if it has an address clause. | |
11193 | ||
7e4680c1 EB |
11194 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> |
11195 | ||
11196 | * einfo.ads (Address_Taken): Document use for the second argument of | |
11197 | Asm_Input and Asm_Output attributes. | |
11198 | * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second | |
11199 | argument is an entity name, then set Address_Taken on it. | |
11200 | <Attribute_Asm_Output>: Likewise. | |
11201 | * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the | |
11202 | Attr_Asm_Input and Attr_Asm_Output attributes explicitly. | |
11203 | (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in | |
11204 | memory and is a CONST_DECL, retrieve its corresponding VAR_DECL. | |
11205 | ||
11206 | 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com> | |
d5cc9181 JR |
11207 | |
11208 | PR middle-end/46500 | |
11209 | * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args. | |
11210 | ||
677f3fa8 JM |
11211 | 2011-06-14 Joseph Myers <joseph@codesourcery.com> |
11212 | ||
11213 | * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o. | |
11214 | (ada/utils.o): Update dependencies. | |
11215 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add | |
11216 | ../../../libcpp/libcpp.a. | |
11217 | * gcc-interface/utils.c: Include common/common-target.h. | |
11218 | (process_attributes): Use targetm_common.have_named_sections. | |
11219 | ||
009db074 RG |
11220 | 2011-06-07 Richard Guenther <rguenther@suse.de> |
11221 | ||
0bad0e23 EB |
11222 | * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call |
11223 | set_sizetype. | |
009db074 | 11224 | |
3bfc61cf EB |
11225 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
11226 | ||
0bad0e23 | 11227 | * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the |
3bfc61cf EB |
11228 | TREE_THIS_NOTRAP flag. |
11229 | ||
5c4a1c7b EB |
11230 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
11231 | ||
11232 | * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>: | |
11233 | Fix thinko. | |
11234 | ||
e9f57686 EB |
11235 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
11236 | ||
11237 | * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred | |
11238 | constants whose full view has discriminants specially. | |
11239 | ||
10e4d056 EB |
11240 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
11241 | ||
11242 | * gcc-interface/utils.c: Include diagnostic.h. | |
11243 | (gnat_write_global_declarations): Output debug information for all | |
11244 | global type declarations before finalizing the compilation unit. | |
11245 | * gcc-interface/Make-lang.in (ada/utils.o): Add dependency. | |
11246 | ||
0957c029 JJ |
11247 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> |
11248 | ||
11249 | * gcc-interface/utils.c (def_fn_type): Remove extra va_end. | |
11250 | ||
52d0a7ac KT |
11251 | 2011-05-25 Kai Tietz <ktietz@redhat.com> |
11252 | ||
11253 | * adaint.c (__gnat_to_canonical_file_list_next): Use array | |
11254 | initialization instead of const/none-const pointer assignment. | |
11255 | ||
1ed1641d JM |
11256 | 2011-05-24 Joseph Myers <joseph@codesourcery.com> |
11257 | ||
11258 | * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include | |
11259 | $(EXTRA_GNAT1_OBJS). | |
11260 | (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS). | |
11261 | (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove. | |
11262 | (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a. | |
11263 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use | |
11264 | libcommon-target.a instead of prefix.o. | |
11265 | ||
9fe72ebd JM |
11266 | 2011-05-21 Joseph Myers <joseph@codesourcery.com> |
11267 | ||
11268 | PR ada/49097 | |
0bad0e23 | 11269 | * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS). |
9fe72ebd | 11270 | |
2691e6d7 JM |
11271 | 2011-05-20 Joseph Myers <joseph@codesourcery.com> |
11272 | ||
0bad0e23 EB |
11273 | * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o. |
11274 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a | |
11275 | instead of version.o. | |
2691e6d7 | 11276 | |
bf6490b5 KT |
11277 | 2011-05-18 Kai Tietz <ktietz@redhat.com> |
11278 | ||
11279 | * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use | |
11280 | boolean_false_node instead of integer_zero_node. | |
11281 | (convert_with_check): Likewise. | |
11282 | * gcc-interface/decl.c (choices_to_gnu): Likewise. | |
11283 | ||
7bf9a5ac EB |
11284 | 2011-05-12 Eric Botcazou <ebotcazou@adacore.com> |
11285 | ||
11286 | * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the | |
11287 | type of the parameter is an unconstrained array, convert the actual to | |
11288 | the type of the formal in the In Out and Out cases as well. | |
11289 | ||
e5b00edf NF |
11290 | 2011-05-11 Nathan Froyd <froydnj@codesourcery.com> |
11291 | ||
11292 | * gcc-interface/utils.c (def_fn_type): Don't call build_function_type; | |
11293 | call build_function_type_array or build_varargs_function_type_array | |
11294 | instead. | |
11295 | (create_subprog_type): Don't call build_function_type; call | |
11296 | build_function_type_vec instead. | |
11297 | ||
51545682 NF |
11298 | 2011-05-11 Nathan Froyd <froydnj@codesourcery.com> |
11299 | ||
11300 | * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL. | |
11301 | (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL. | |
11302 | (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL. | |
11303 | ||
c99c0026 EB |
11304 | 2011-05-07 Eric Botcazou <ebotcazou@adacore.com> |
11305 | ||
f620bd21 EB |
11306 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces. |
11307 | ||
c99c0026 EB |
11308 | * gcc-interface/gigi.h (global_bindings_p): Adjust prototype. |
11309 | * gcc-interface/utils.c (global_bindings_p): Return bool and simplify. | |
11310 | ||
3d528853 NF |
11311 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
11312 | ||
c99c0026 | 11313 | * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label. |
3d528853 | 11314 | |
d7d058c5 NF |
11315 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
11316 | ||
11317 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators | |
11318 | instead of accessing TYPE_ARG_TYPES directly. | |
11319 | * gcc-interface/utils.c (handle_nonnull_attribute): Likewise. | |
11320 | ||
805e60a0 EB |
11321 | 2011-05-05 Eric Botcazou <ebotcazou@adacore.com> |
11322 | ||
11323 | PR ada/48844 | |
11324 | * gcc-interface/gigi.h (get_variant_part): Declare. | |
11325 | * gcc-interface/decl.c (get_variant_part): Make global. | |
11326 | * gcc-interface/utils2.c (find_common_type): Do not return T1 if the | |
11327 | types have the same constant size, are record types and T1 has a | |
11328 | variant part while T2 doesn't. | |
11329 | ||
907a08d9 EB |
11330 | 2011-05-05 Eric Botcazou <ebotcazou@adacore.com> |
11331 | ||
11332 | * gcc-interface/utils.c (begin_subprog_body): Do not call | |
11333 | get_pending_sizes. | |
11334 | (end_subprog_body): Likewise. | |
11335 | ||
d35936ab RG |
11336 | 2011-05-04 Richard Guenther <rguenther@suse.de> |
11337 | ||
11338 | * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to | |
11339 | int_const_binop. | |
11340 | (pos_to_constructor): Likewise. | |
11341 | ||
c1fd8753 | 11342 | 2011-05-03 Nathan Froyd <froydnj@codesourcery.com> |
2c7f9cc0 | 11343 | Eric Botcazou <ebotcazou@adacore.com> |
c1fd8753 NF |
11344 | |
11345 | * gcc-interface/trans.c (gigi): Call build_function_type_list instead | |
11346 | of build_function_type. Adjust calls to... | |
11347 | (build_raise_check): ...this. Do not take a void_tree parameter. | |
11348 | Call build_function_type_list instead of build_function_type. | |
11349 | Fix head comment and swap couple of conditional blocks. | |
11350 | ||
4fb87d2b EB |
11351 | 2011-04-30 Eric Botcazou <ebotcazou@adacore.com> |
11352 | ||
11353 | * gnatvsn.ads (Library_Version): Bump to 4.7. | |
11354 | (Current_Year): Bump to 2011. | |
11355 | ||
fa5e5a76 MM |
11356 | 2011-04-29 Michael Matz <matz@suse.de> |
11357 | ||
11358 | * gcc-interface/misc.c (gnat_handle_option): Set | |
11359 | warn_maybe_uninitialized. | |
11360 | ||
8d6a2f69 GP |
11361 | 2011-04-23 Gerald Pfeifer <gerald@pfeifer.com> |
11362 | ||
11363 | * gnat_ugn.texi (Complexity Metrics Control): Update link to | |
11364 | the Watson/McCabe paper. | |
11365 | ||
770937fd JM |
11366 | 2011-04-23 Jim Meyering <meyering@redhat.com> |
11367 | ||
11368 | * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/ | |
11369 | ||
eb601ae1 EB |
11370 | 2011-04-22 Eric Botcazou <ebotcazou@adacore.com> |
11371 | ||
11372 | * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE | |
11373 | onto the new type. | |
11374 | ||
7d7fcb08 EB |
11375 | 2011-04-22 Eric Botcazou <ebotcazou@adacore.com> |
11376 | ||
11377 | * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG | |
11378 | parameter. | |
11379 | * gcc-interface/utils.c (create_subprog_decl): Likewise. Set | |
11380 | DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly. | |
11381 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add | |
11382 | ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl. | |
11383 | <all>: Do not set flags on the reused DECL node coming from an alias. | |
11384 | Set DECL_IGNORED_P on the DECL node built for subprograms if they | |
11385 | don't need debug info here... | |
11386 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here. | |
11387 | (gigi): Adjust calls to create_subprog_decl. | |
11388 | (build_raise_check): Likewise. | |
11389 | (establish_gnat_vms_condition_handler): Likewise. | |
11390 | (Compilation_Unit_to_gnu): Likewise. | |
11391 | (gnat_to_gnu): Likewise. | |
11392 | ||
e1876cac EB |
11393 | 2011-04-21 Eric Botcazou <ebotcazou@adacore.com> |
11394 | ||
11395 | * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define. | |
11396 | (NO_REORDER_ADAFLAGS): New variable. | |
11397 | (EXTRA_GNATTOOLS): Always define. | |
11398 | (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h. | |
11399 | Clean up and adjust list of files compiled with special options. | |
11400 | * gcc-interface/Make-lang.in: Likewise. | |
11401 | (ada/decl.o): Cosmetical change. | |
11402 | (ada/misc.o): Remove dependency on $(PLUGIN_H). | |
11403 | ||
04695783 JM |
11404 | 2011-04-20 Jim Meyering <meyering@redhat.com> |
11405 | ||
11406 | * initialize.c (__gnat_initialize): Remove useless if-before-free. | |
11407 | ||
23399579 EB |
11408 | 2011-04-17 Eric Botcazou <ebotcazou@adacore.com> |
11409 | ||
11410 | * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with | |
11411 | $(CFLAGS) on the link line. | |
11412 | ||
51c5169c EB |
11413 | 2011-04-17 Eric Botcazou <ebotcazou@adacore.com> |
11414 | ||
11415 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the | |
11416 | padded type built for the return type if it is unconstrained. | |
11417 | ||
61e46a7d NF |
11418 | 2011-04-14 Nathan Froyd <froydnj@codesourcery.com> |
11419 | ||
11420 | * gcc-interface/utils.c (gnat_poplevel): Use block_chainon. | |
11421 | ||
81f653d6 NF |
11422 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> |
11423 | ||
b4867846 EB |
11424 | * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON |
11425 | before calling TREE_CHAIN. | |
81f653d6 NF |
11426 | * gcc-interface/misc.c (gnat_init_ts): New function. |
11427 | (LANG_HOOKS_INIT_TS): Define. | |
11428 | ||
a358e188 MJ |
11429 | 2011-04-12 Martin Jambor <mjambor@suse.cz> |
11430 | ||
b4867846 EB |
11431 | * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node |
11432 | instead of cgraph_node. | |
a358e188 | 11433 | |
29b1c5a4 EB |
11434 | 2011-04-08 Eric Botcazou <ebotcazou@adacore.com> |
11435 | ||
11436 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum | |
11437 | alignment on fields of the RETURN type built for the Copy-In Copy-Out | |
11438 | mechanism. | |
11439 | ||
88872b00 EB |
11440 | 2011-04-08 Eric Botcazou <ebotcazou@adacore.com> |
11441 | ||
11442 | * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers | |
11443 | of aggregate types that contain a placeholder. | |
11444 | ||
dcf0c47e NF |
11445 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> |
11446 | ||
11447 | * gcc-interface/utils.c (handle_sentinel_attribute): Don't use | |
b4867846 | 11448 | TYPE_ARG_TYPES. |
dcf0c47e NF |
11449 | (handle_type_generic_attribute): Likewise. |
11450 | ||
53e3000c EB |
11451 | 2011-04-04 Eric Botcazou <ebotcazou@adacore.com> |
11452 | ||
11453 | PR ada/47163 | |
11454 | * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change. | |
11455 | ||
ab380bb4 KT |
11456 | 2011-04-04 Kai Tietz <ktietz@redhat.com> |
11457 | ||
11458 | PR ada/47163 | |
0bad0e23 EB |
11459 | * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets |
11460 | to flag value. | |
ab380bb4 | 11461 | |
8ffac116 EB |
11462 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
11463 | ||
11464 | * gcc-interface/utils2.c (build_allocator): In the unconstrained array | |
11465 | type case, do not strip a padding type around the array type. | |
11466 | ||
de9528f0 EB |
11467 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
11468 | ||
11469 | * gcc-interface/utils.c (update_pointer_to): Finalize named pointer | |
11470 | types. | |
11471 | ||
d9d7a26c EB |
11472 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
11473 | ||
11474 | * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete. | |
11475 | * gcc-interface/misc.c (gnat_handle_option): Remove special handling | |
de9528f0 | 11476 | code for -feliminate-unused-debug-types. |
d9d7a26c EB |
11477 | (gnat_post_options): Likewise. |
11478 | ||
4cb12a90 EB |
11479 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
11480 | ||
11481 | * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial | |
11482 | declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a | |
11483 | distinct copy. | |
11484 | ||
acccc61c EB |
11485 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
11486 | ||
11487 | * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the | |
11488 | DECL_ARTIFICIAL flag on enumeration types. | |
11489 | ||
583eb0c9 EB |
11490 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
11491 | ||
11492 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make | |
11493 | fat pointer types artificial unconditionally. | |
11494 | <E_Array_Subtype>: Attach the base array type as a parallel type if it | |
11495 | isn't artificial. | |
11496 | ||
e3edbd56 EB |
11497 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
11498 | ||
11499 | * gcc-interface/gigi.h (get_dummy_type): Declare. | |
11500 | (build_dummy_unc_pointer_types): Likewise. | |
11501 | (finish_fat_pointer_type): Likewise. | |
11502 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy | |
11503 | fat pointer type has been built, complete it in place. | |
11504 | <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat | |
11505 | and thin pointers. Remove useless variable. | |
11506 | (finish_fat_pointer_type): Make global and move to... | |
11507 | * gcc-interface/utils.c (finish_fat_pointer_type): ...here. | |
11508 | (get_dummy_type): New function. | |
11509 | (build_dummy_unc_pointer_types): Likewise. | |
11510 | (gnat_pushdecl): Propage the name to the anonymous variants only. | |
11511 | (update_pointer_to): Only adjust the pointer types in the unconstrained | |
11512 | array case. | |
11513 | ||
65444786 EB |
11514 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
11515 | ||
11516 | * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag. | |
11517 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it | |
11518 | if this is a Taft amendment type and the full declaration is available. | |
11519 | * gcc-interface/trans.c (process_type): Likewise. | |
11520 | If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P. | |
11521 | (process_freeze_entity): Likewise. | |
11522 | * gcc-interface/utils.c (dummy_global): New static variable. | |
11523 | (gnat_write_global_declarations): If there are types declared as used | |
11524 | at the global level, insert them in the global hash table. | |
11525 | ||
1aeb40dd EB |
11526 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
11527 | ||
11528 | * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param. | |
11529 | * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial | |
11530 | declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct | |
11531 | copy. | |
11532 | (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL | |
11533 | flag of the type accordingly. | |
11534 | * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type. | |
11535 | ||
80ec8b4c EB |
11536 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
11537 | ||
11538 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer | |
11539 | finalizing types when updating the pointers to the designated type. | |
11540 | <all>: Finalize the deferred types even if we didn't defer processing | |
11541 | of incomplete types in this invocation. | |
11542 | ||
2a9d769a | 11543 | 2011-04-01 Olivier Hainque <hainque@adacore.com> |
2c7f9cc0 AS |
11544 | Nicolas Setton <setton@adacore.com> |
11545 | Eric Botcazou <ebotcazou@adacore.com> | |
2a9d769a OH |
11546 | |
11547 | * gcc-interface/misc.c (gnat_descriptive_type): New function. | |
11548 | (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type. | |
11549 | ||
2438d7a6 KT |
11550 | 2011-03-28 Kai Tietz <ktietz@redhat.com> |
11551 | ||
333d8aff | 11552 | * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native |
80ec8b4c EB |
11553 | Windows targets. |
11554 | (EH_MECHANISM): Use GCC exception mechanism for native Windows targets. | |
11555 | * system-mingw.ads (System): Change ZCX_By_Default default to True. | |
333d8aff | 11556 | |
80ec8b4c | 11557 | * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype. |
2438d7a6 | 11558 | |
8ad150f6 TG |
11559 | 2011-03-28 Tristan Gingold <gingold@adacore.com> |
11560 | ||
11561 | PR ada/44431 | |
80ec8b4c EB |
11562 | * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c. |
11563 | Use ada output of gnatbind. | |
8ad150f6 TG |
11564 | (ada/b_gnatb.adb): Ditto. |
11565 | (ada/b_gnat1.o, ada/b_gnatb.o): New rules. | |
11566 | (ada.mostlyclean, ada.stage1) | |
11567 | (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile) | |
11568 | (ada.stagefeedback): Adjust. | |
80ec8b4c | 11569 | * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c. |
8ad150f6 TG |
11570 | Use ada output of gnatbind. |
11571 | (b_gnatm.adb): Ditto. | |
11572 | (b_gnatl.o, b_gnatm.o): New rules. | |
11573 | ||
51c7954d EB |
11574 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> |
11575 | ||
11576 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL | |
11577 | for the padded type built to support a specified size or alignment. | |
11578 | ||
6ddf9843 EB |
11579 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> |
11580 | ||
11581 | * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment. | |
11582 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer | |
11583 | unconditionally to the end of the unit when the designated type is | |
11584 | limited_with'ed. | |
11585 | <all>: Rename local variable. Attempt to un-defer types only and do it | |
11586 | for limited_with'ed types as well. | |
11587 | (finalize_from_with_types): Adjust comment. Rename variable and tidy. | |
11588 | * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT | |
11589 | consistently and remove redundant call to finalize_from_with_types. | |
11590 | ||
5daed84a EB |
11591 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> |
11592 | ||
11593 | * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to | |
11594 | subprograms without a previous spec declared in the same unit. | |
11595 | * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined | |
11596 | subprograms at the end of the unit instead of at the beginning. | |
11597 | * gcc-interface/utils.c (create_subprog_decl): Check that the entity | |
11598 | isn't public for the special handling of non-inline functions nested | |
11599 | inside inline external functions. | |
11600 | ||
0edf1bb2 JL |
11601 | 2011-03-25 Jeff Law <law@redhat.com> |
11602 | ||
5daed84a | 11603 | * gcc-interface/utils.c (def_fn_type): Add missing va_end. |
0edf1bb2 | 11604 | |
e3c4580e EB |
11605 | 2011-03-24 Eric Botcazou <ebotcazou@adacore.com> |
11606 | ||
11607 | * einfo.ads (Size_Depends_On_Discriminant): Adjust description. | |
11608 | * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure | |
11609 | to compute Set_Size_Depends_On_Discriminant. | |
11610 | (Layout_Type): Call it on array types in back-end layout mode. | |
11611 | * sem_util.adb (Requires_Transient_Scope): Return true for array | |
11612 | types only if the size depends on the value of discriminants. | |
11613 | * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS | |
11614 | type if the RHS is a call to a function that returns an unconstrained | |
11615 | type with default discriminant. | |
11616 | ||
abbc8c7b EB |
11617 | 2011-03-24 Eric Botcazou <ebotcazou@adacore.com> |
11618 | ||
11619 | * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of | |
11620 | non-conversion to the nominal result type at the end. | |
11621 | ||
ddb5a105 EB |
11622 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> |
11623 | ||
11624 | * gcc-interface/trans.c (create_temporary): New function taken from... | |
11625 | (create_init_temporary): ...here. Call it. | |
11626 | (call_to_gnu): Create the temporary for the return value early, if any. | |
11627 | Create it for a function with copy-in/copy-out parameters if there is | |
11628 | no target; in other cases of copy-in/copy-out, use another temporary. | |
11629 | Push the new binding level lazily. Add and rename local variables. | |
11630 | ||
0d853156 EB |
11631 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> |
11632 | ||
11633 | * gcc-interface/decl.c (validate_size): Improve comments and tweak | |
11634 | error message. | |
11635 | (set_rm_size): Likewise. | |
11636 | ||
4184ef1b EB |
11637 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> |
11638 | ||
11639 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL | |
11640 | for the padded type built in order to support a specified alignment. | |
11641 | Fix incorrect formatting. | |
11642 | ||
bf7eefab EB |
11643 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> |
11644 | ||
11645 | PR bootstrap/48216 | |
11646 | * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL. | |
11647 | ||
ef0feeb2 EB |
11648 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> |
11649 | ||
11650 | * gcc-interface/decl.c (components_to_record): Add REORDER parameter, | |
11651 | rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter | |
11652 | to the end of the list. Adjust recursive call. Rename local variable. | |
11653 | If REORDER is true, reorder components of the record type. | |
11654 | (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to | |
11655 | components_to_record and adjust the parameter list. | |
11656 | ||
646f9414 EB |
11657 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> |
11658 | ||
11659 | * gcc-interface/decl.c (elaborate_expression_1): When optimization is | |
11660 | disabled, use the variable for bounds of loop iteration scheme. | |
11661 | ||
62d784f7 KT |
11662 | 2011-03-21 Kai Tietz <ktietz@redhat.com> |
11663 | ||
11664 | PR target/12171 | |
0bad0e23 | 11665 | * gcc-interface/utils.c (gnat_internal_attribute_table): Add column. |
62d784f7 | 11666 | |
f230d759 EB |
11667 | 2011-03-17 Eric Botcazou <ebotcazou@adacore.com> |
11668 | ||
11669 | * gcc-interface/decl.c (elaborate_expression_1): Try harder to find | |
11670 | out whether the expression is read-only. Short-circuit placeholder | |
11671 | case and rename a couple of local variables. | |
11672 | ||
bb1f7929 EB |
11673 | 2011-03-17 Eric Botcazou <ebotcazou@adacore.com> |
11674 | ||
11675 | * gcc-interface/gigi.h (smaller_form_type_p): Declare. | |
11676 | * gcc-interface/trans.c (smaller_form_type_p): Make global and move... | |
11677 | * gcc-interface/utils.c (smaller_form_type_p): ...to here. | |
11678 | (convert): Deal with conversions from a smaller form type specially. | |
11679 | ||
400a2d24 EB |
11680 | 2011-02-14 Eric Botcazou <ebotcazou@adacore.com> |
11681 | ||
11682 | * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and | |
11683 | its argument, except for the special -I- switch. | |
11684 | ||
c26bc3ad GP |
11685 | 2011-02-12 Gerald Pfeifer <gerald@pfeifer.com> |
11686 | ||
0bad0e23 EB |
11687 | * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to |
11688 | "Ada Issues". | |
c26bc3ad | 11689 | |
07b8e910 EB |
11690 | 2011-02-08 Eric Botcazou <ebotcazou@adacore.com> |
11691 | ||
11692 | * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs. | |
11693 | ||
31a5a547 EB |
11694 | 2011-02-03 Eric Botcazou <ebotcazou@adacore.com> |
11695 | ||
11696 | * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of | |
11697 | GNAT_FORMAL. | |
11698 | * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to... | |
11699 | * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE | |
11700 | instead of GNAT_FORMAL. Protect the expression against multiple uses. | |
11701 | Do not generate the check directly, instead instantiate the template | |
11702 | check present in the descriptor. | |
11703 | (make_descriptor_field): Move around. | |
11704 | (build_vms_descriptor32): Build a template check in the POINTER field. | |
11705 | (build_vms_descriptor): Remove useless suffixes. | |
11706 | * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call. | |
11707 | ||
dcf25f59 EB |
11708 | 2011-01-26 Eric Botcazou <ebotcazou@adacore.com> |
11709 | ||
11710 | PR bootstrap/47467 | |
11711 | * targext.c: Include target files if IN_RTS is defined. | |
11712 | ||
0418e131 RG |
11713 | 2011-01-26 Richard Guenther <rguenther@suse.de> |
11714 | ||
11715 | PR bootstrap/47467 | |
11716 | * targext.c: Include config.h. | |
11717 | * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H) | |
11718 | dependency. | |
11719 | ||
c6eecbd8 | 11720 | 2011-01-04 Pascal Obry <obry@adacore.com> |
2c7f9cc0 | 11721 | Eric Botcazou <ebotcazou@adacore.com> |
c6eecbd8 PO |
11722 | |
11723 | * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit. | |
11724 | ||
2d3c7e4f EB |
11725 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> |
11726 | ||
11727 | * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the | |
11728 | end-of-case on the end label and its associated gotos, if any. | |
11729 | ||
0394741f EB |
11730 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> |
11731 | ||
11732 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the | |
11733 | expressions of the parameter cache within the statement group of | |
11734 | the CICO mechanism. | |
11735 | ||
2a02d090 | 11736 | 2011-01-04 Olivier Hainque <hainque@adacore.com> |
2c7f9cc0 | 11737 | Eric Botcazou <ebotcazou@adacore.com> |
2a02d090 OH |
11738 | |
11739 | * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default. | |
11740 | (set_end_locus_from_node): New function. | |
11741 | (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we | |
11742 | make and the function end_locus. | |
11743 | (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus | |
11744 | for the elaboration subprogram. | |
11745 | (set_gnu_expr_location_from_node) <default case>: Use it to attempt to | |
11746 | set the end_locus of the expression as well. | |
11747 | ||
89f5e978 EB |
11748 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> |
11749 | ||
11750 | PR ada/47131 | |
11751 | * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make | |
11752 | variables that are referenced in exception handlers volatile. | |
11753 | ||
11754 | ||
ad41bd84 | 11755 | \f |
797103eb | 11756 | Copyright (C) 2011 Free Software Foundation, Inc. |
ad41bd84 JM |
11757 | |
11758 | Copying and distribution of this file, with or without modification, | |
11759 | are permitted in any medium without royalty provided the copyright | |
11760 | notice and this notice are preserved. |