]>
Commit | Line | Data |
---|---|---|
a8d94a8f | 1 | 2009-04-16 Thomas Quinot <quinot@adacore.com> |
2 | ||
3 | * snames.ads-tmpl (Name_Defined): New predefined name for use by the | |
4 | integrated preprocessor. | |
5 | ||
6 | * prep.ads, prep.adb (Setup_Hooks): New subprogram. | |
7 | (Initialize): Split into two subprograms, Initialize (to be called | |
8 | prior to compiler command line processing) and Setup_Hooks (to be called | |
9 | later on when the first source file is loaded). | |
10 | ||
11 | * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks. | |
12 | Add call to Prep.Initialize. | |
13 | ||
14 | * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call | |
15 | to Prep.Setup_Hooks. | |
16 | ||
17 | 2009-04-16 Pascal Obry <obry@adacore.com> | |
18 | ||
19 | * adaint.h, adaint.c (__gnat_chdir): New routine. | |
20 | Simple wrapper routines used to convert to proper encoding on | |
21 | Windows. | |
22 | ||
23 | * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library. | |
24 | ||
25 | * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL. | |
26 | ||
38c1b9c7 | 27 | 2009-04-16 Quentin Ochem <ochem@adacore.com> |
28 | ||
29 | * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead | |
30 | of Source.Init. | |
31 | ||
32 | 2009-04-16 Eric Botcazou <ebotcazou@adacore.com> | |
33 | ||
34 | * a-convec.ads (Is_Empty): Mark inline. | |
35 | ||
36 | 2009-04-16 Nicolas Roche <roche@adacore.com> | |
37 | ||
38 | * init.c (__gnat_init_float): Initialize FPU on x86_64 windows | |
39 | ||
40 | 2009-04-16 Thomas Quinot <quinot@adacore.com> | |
41 | ||
42 | * prepcomp.adb: Minor reformatting | |
43 | ||
f54101c9 | 44 | 2009-04-16 Jerome Lambourg <lambourg@adacore.com> |
45 | ||
46 | * sem_prag.adb (Process_Import_Or_Interface): With .NET, | |
47 | Access_Subprogram types can also be imported. | |
48 | (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL | |
49 | names. | |
50 | ||
51 | 2009-04-16 Ed Schonberg <schonberg@adacore.com> | |
52 | ||
53 | * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): | |
54 | preserve homonym chain when the declaration is rewritten into a | |
55 | renaming declaration, in order to preserve visibility structure. | |
56 | ||
5ee65f70 | 57 | 2009-04-16 Jerome Lambourg <lambourg@adacore.com> |
58 | ||
59 | * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not | |
60 | taken into account for VM targets. | |
61 | ||
62 | 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com> | |
63 | ||
64 | * g-calend.ads, g-calend.adb (Week_In_Year): Now calls | |
65 | Year_Week_In_Year. | |
66 | (Year_Week_In_Year): New routine which contains the original code from | |
67 | Week_In_Year. Add the missing special case for January 1st falling on | |
68 | a Monday. | |
69 | ||
0c4c5759 | 70 | 2009-04-16 Thomas Quinot <quinot@adacore.com> |
71 | ||
72 | * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic | |
73 | actual type, use the base type to build the To_Any function. | |
74 | (Build_From_Any_Function): Remove junk, useless subtype conversion. | |
75 | ||
76 | 2009-04-16 Thomas Quinot <quinot@adacore.com> | |
77 | ||
78 | * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb, | |
79 | restrict.adb: Minor code reorganization (use | |
80 | Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand). | |
81 | ||
511d352a | 82 | 2009-04-16 Bob Duff <duff@adacore.com> |
83 | ||
84 | * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove, | |
85 | unused. | |
86 | ||
87 | 2009-04-16 Thomas Quinot <quinot@adacore.com> | |
88 | ||
89 | * sem_ch4.adb: Minor reformatting | |
90 | ||
91 | * adaint.c: Remove junk duplicated code. | |
92 | ||
93 | * sem_ch3.adb: Minor reformatting | |
94 | ||
95 | * exp_dist.adb: Minor comment rewording | |
96 | ||
b78f400b | 97 | 2009-04-16 Robert Dewar <dewar@adacore.com> |
98 | ||
99 | * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa | |
100 | used together. | |
101 | ||
102 | 2009-04-16 Ed Schonberg <schonberg@adacore.com> | |
103 | ||
104 | * sem_ch4.adb (Find_Equality_Types): Filter out types that are not | |
105 | usable before calling Add_One_Interp, to resolve spurious ambiguities. | |
106 | ||
45045496 | 107 | 2009-04-16 Robert Dewar <dewar@adacore.com> |
108 | ||
949255b7 | 109 | * Make-lang.in: Add entries for s-conca?.o |
110 | ||
45045496 | 111 | * Makefile.rtl: Add entries for s-conca? |
112 | ||
113 | * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior | |
114 | of concatenation expansion | |
115 | ||
116 | * exp_ch4.adb (Expand_Concatenation): Generate calls for certain | |
117 | string cases instead of expanding assignments inline. | |
118 | ||
119 | * opt.ads (Optimize_Size): New flag | |
120 | ||
121 | * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads, | |
122 | s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb, | |
123 | s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads, | |
124 | s-conca9.adb, s-conca9.ads: New file. | |
125 | ||
ed1c90f6 | 126 | 2009-04-16 Robert Dewar <dewar@adacore.com> |
127 | ||
128 | * exp_ch6.adb: Add comments | |
129 | ||
130 | * rtsfind.ads: Add entries for s-conca? routines | |
131 | ||
84614c68 | 132 | 2009-04-15 Arnaud Charlet <charlet@adacore.com> |
133 | ||
134 | * gcc-interface/Make-lang.in: Update dependencies. | |
135 | ||
136 | * gcc-interface/Makefile.in: Update translation for vms. | |
137 | ||
405d066a | 138 | 2009-04-16 Ed Schonberg <schonberg@adacore.com> |
139 | ||
140 | * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities | |
141 | and made global, to be used when installing parents of a child | |
142 | instance, to provide mappings for entities declared in formal packages | |
143 | of ancestor units. Now called from Install_Formal_Packages. | |
144 | ||
145 | 2009-04-16 Doug Rupp <rupp@adacore.com> | |
146 | ||
147 | * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others | |
148 | notation for clarity. | |
149 | ||
150 | * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb, | |
151 | s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb, | |
152 | s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb | |
153 | (Initialize): Initialize Known_Tasks with Environment task. | |
154 | ||
155 | * s-taskin.ads (Task_States): Move new states to end for the sake of | |
156 | GDB compatibility. | |
157 | ||
158 | * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task. | |
159 | ||
e4401d9b | 160 | 2009-04-16 Ed Schonberg <schonberg@adacore.com> |
161 | ||
162 | * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected | |
163 | operation has an inline pragma, propagate the flag to the internal | |
164 | unprotected subprogram. | |
165 | ||
e156dd80 | 166 | 2009-04-16 Doug Rupp <rupp@adacore.com> |
167 | ||
168 | * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb, | |
169 | s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb, | |
170 | s-taprop-hpux-dce.adb, s-taprop-posix.adb | |
171 | (Enter_Task): Move Known_Tasks initialization to s-tassta.adb | |
172 | ||
173 | * s-taprop-vms.adb (Enter_Task): Likewise. | |
174 | (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback. | |
175 | ||
176 | * s-tassta.adb (Activate_Tasks): After task creation set state to | |
177 | Activating, vice Runnable. Initialize Known_Tasks, moved here from | |
178 | s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger. | |
179 | Set state to Runnable after above. | |
180 | (Task_Wrapper): Set Debug_Event_Run. In exception block set | |
181 | Debug_Event_Terminated. | |
182 | ||
183 | * s-taskin.ads (Task_States): Add new states Activiting and | |
184 | Activator_Delay_Sleep. | |
185 | (Bit_Array, Debug_Event_Array): New types. | |
186 | (Global_Task_Debug_Event_Set: New flag. | |
187 | (Common_ATCB): New field Debug_Events. | |
188 | ||
189 | * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events. | |
190 | ||
191 | * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice | |
192 | Activator_Sleep. | |
193 | ||
194 | * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when | |
195 | Activating and when Acceptor_Delay_Sleep. | |
196 | ||
197 | * s-tasdeb.ads: Add constants for Debug_Events. | |
198 | (Debug_Event_Kind_Type): New subtype. | |
199 | (Signal_Debug_Event): New subprogram. | |
200 | ||
201 | * s-tasdeb.adb (Signal_Debug_Event): New null subprogram. | |
202 | ||
bb8d99b2 | 203 | 2009-04-16 Thomas Quinot <quinot@adacore.com> |
204 | ||
205 | * sem_elim.adb: Minor reformatting | |
206 | ||
207 | * freeze.adb: Minor reformatting | |
208 | ||
209 | * exp_ch4.adb: Minor reformatting | |
210 | ||
1f958cd0 | 211 | 2009-04-16 Emmanuel Briot <briot@adacore.com> |
212 | ||
213 | * prj-nmsc.adb (Path_Name_Of): fix memory leak | |
214 | ||
215 | 2009-04-16 Robert Dewar <dewar@adacore.com> | |
216 | ||
217 | * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation | |
218 | ||
219 | 2009-04-16 Vincent Celier <celier@adacore.com> | |
220 | ||
221 | * fmap.adb (Initialize): Show the current line when the mapping file | |
222 | is detected as "incorrectly formatted". | |
223 | ||
224 | 2009-04-16 Robert Dewar <dewar@adacore.com> | |
225 | ||
226 | * sem_ch12.adb: Minor reformatting | |
227 | ||
228 | * sem_ch5.adb: Minor comment addition | |
229 | ||
230 | * sem_util.adb: Minor reformatting | |
231 | ||
232 | * sinput-p.adb: Minor reformatting | |
233 | Add missing pragma Warnings (On) | |
234 | ||
74fb3c27 | 235 | 2009-04-16 Ed Falis <falis@adacore.com> |
236 | ||
237 | * s-vxwext-kernel.adb: (ERROR): deleted unused constant | |
238 | ||
239 | 2009-04-16 Vincent Celier <celier@adacore.com> | |
240 | ||
241 | * ali-util.adb: Minor comment spelling error fix | |
242 | ||
0650d72b | 243 | 2009-04-16 Eric Botcazou <ebotcazou@adacore.com> |
244 | ||
245 | * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not | |
246 | generate an assignment loop in case of overlap. | |
247 | ||
50fa7613 | 248 | 2009-04-16 Olivier Hainque <hainque@adacore.com> |
249 | ||
250 | * gnat_ugn.texi (gnatmem description): Make it explicit that | |
251 | gnatmem is designed to work in association with static runtime | |
252 | library only. | |
253 | ||
254 | 2009-04-16 Thomas Quinot <quinot@adacore.com> | |
255 | ||
256 | * sem_type.adb: Minor reformatting | |
257 | ||
258 | 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com> | |
259 | ||
260 | * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment | |
261 | concerning return codes of gettimeofday and return value check. | |
262 | ||
263 | 2009-04-16 Ed Falis <falis@adacore.com> | |
264 | ||
265 | * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so | |
266 | body can be renaming of imported routines. | |
267 | ||
268 | 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com> | |
269 | ||
270 | * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more | |
271 | targeted fashion. | |
272 | ||
e0c76917 | 273 | 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com> |
274 | ||
275 | * exp_ch9.adb: Comment improvements. | |
276 | (Build_Entry_Family_Name): Add parentheses around the index of a entry | |
277 | family member. | |
278 | ||
279 | 2009-04-15 Bob Duff <duff@adacore.com> | |
280 | ||
281 | * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like | |
282 | "while X /= null loop" where X is unchanged inside the loop. We were | |
283 | not warning in this case, because of the pointers -- we feared that the | |
284 | loop variable could be updated via a pointer, if there are any pointers | |
285 | around the place. But that is impossible in this case. | |
286 | ||
287 | * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in | |
288 | the case of dereferences. In X.all, X cannot be an l-value. We now | |
289 | catch that case (and implicit dereferences, too). | |
290 | ||
291 | 2009-04-15 Vincent Celier <celier@adacore.com> | |
292 | ||
293 | * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure | |
294 | ||
295 | 2009-04-15 Ed Schonberg <schonberg@adacore.com> | |
296 | ||
297 | * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive. | |
298 | From code reading. | |
299 | (Analyze_Package_Instantiation): If generic unit in child instance is | |
300 | the same as generic unit in parent instance, look for an outer homonym | |
301 | to locate the desired generic. | |
302 | ||
ba14ef4a | 303 | 2009-04-15 Bob Duff <duff@adacore.com> |
304 | ||
305 | * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop | |
306 | warnings unless the loop comes from source, because checking generated | |
307 | loops is a waste of time, and makes it harder to debug | |
308 | Check_Infinite_Loop_Warning. | |
309 | ||
310 | * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable | |
311 | tested in the while loop is a renaming, do not warn. Otherwise, we get | |
312 | false alarms, because it's usually renaming something that we can't | |
313 | deal with (an indexed component, a global variable, ...). | |
314 | ||
315 | * gnat_rm.texi: Fix typo | |
316 | ||
317 | 2009-04-15 Thomas Quinot <quinot@adacore.com> | |
318 | ||
319 | * sem_ch6.adb: Minor reformatting | |
320 | ||
dd13e522 | 321 | 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com> |
322 | ||
323 | * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the | |
324 | immediate parent of the controlled function call is a component | |
325 | association. | |
326 | ||
327 | 2009-04-15 Ed Schonberg <schonberg@adacore.com> | |
328 | ||
329 | * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the | |
330 | corresponding class-wide type is also in use. | |
331 | ||
332 | 2009-04-15 Thomas Quinot <quinot@adacore.com> | |
333 | ||
334 | * frontend.adb: Minor comment fix | |
335 | ||
53e876ae | 336 | 2009-04-15 Robert Dewar <dewar@adacore.com> |
337 | ||
338 | * gnatchop.adb (BOM_Length): New global variable | |
339 | (Write_Unit): Add new parameter Write_BOM | |
340 | (Write_Chopped_Files): Check for BOM and set Write_BOM for call | |
341 | to Write_Unit | |
342 | ||
343 | * gnat_ugn.texi: Add note on propagation of BOM by gnatchop | |
344 | ||
345 | 2009-04-15 Geert Bosch <bosch@adacore.com> | |
346 | ||
347 | * system-mingw-x86_64.ads, system-darwin-x86_64.ads | |
348 | (Backend_Overflow_Checks): Set to True. | |
349 | ||
350 | 2009-04-15 Gary Dismukes <dismukes@adacore.com> | |
351 | ||
352 | * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized | |
353 | keyword is given in a record extension. | |
354 | ||
355 | 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com> | |
356 | ||
357 | * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion | |
358 | of a controlled function call in the context of a record aggregate. | |
359 | This does not apply to array aggregates since the call will be expanded | |
360 | into assignments. | |
361 | ||
362 | 2009-04-15 Ed Falis <falis@adacore.com> | |
363 | ||
364 | * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb, | |
365 | s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb, | |
5d2ef540 | 366 | s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize |
367 | s-osinte-vxworks* and s-vxwext*. | |
53e876ae | 368 | |
9a8abef6 | 369 | 2009-04-15 Arnaud Charlet <charlet@adacore.com> |
370 | ||
371 | * gcc-interface/Make-lang.in: Update dependencies. | |
372 | ||
373 | * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks* | |
374 | and s-vxwext*. | |
375 | ||
299480f9 | 376 | 2009-04-15 Robert Dewar <dewar@adacore.com> |
377 | ||
378 | * sem_ch13.adb (Unchecked_Conversions): Store source location instead | |
379 | of node for location for warning messages. | |
380 | ||
381 | * gnatchop.adb: Minor reformatting | |
382 | ||
383 | 2009-04-15 Ed Schonberg <schonberg@adacore.com> | |
384 | ||
385 | * exp_ch6.adb: additional guard for renaming declarations for in | |
386 | parameters of an array type. | |
387 | ||
87d3518d | 388 | 2009-04-15 Robert Dewar <dewar@adacore.com> |
389 | ||
390 | * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds | |
391 | in case they were rewritten by expander (Force_Evaluation). | |
392 | ||
393 | * targparm.adb (Get_Target_Parameters): Correct check for | |
394 | Suppress_Exception_Locations. | |
395 | ||
396 | 2009-04-15 Ed Schonberg <schonberg@adacore.com> | |
397 | ||
398 | * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be | |
399 | inlined is of an array type that is not bit-packed, use a renaming | |
400 | declaration to capture its value, rather than a constant declaration. | |
401 | ||
b2a537cf | 402 | 2009-04-15 Robert Dewar <dewar@adacore.com> |
403 | ||
404 | * rtsfind.adb: Minor reformatting. | |
405 | ||
406 | 2009-04-15 Emmanuel Briot <briot@adacore.com> | |
407 | ||
408 | * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames | |
409 | Restore, and free the saved context. | |
410 | ||
411 | 2009-04-15 Gary Dismukes <dismukes@adacore.com> | |
412 | ||
413 | * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check | |
414 | for illegal private extension from a synchronized interface parent in | |
415 | front of check for illegal limited extension so that limited extension | |
416 | from a synchronized interface will be rejected. | |
417 | (Check_Ifaces): Check that a private extension that has a synchronized | |
418 | interface as a progenitor must be explicitly declared synchronized. | |
419 | Also check that a record extension cannot derive from a synchronized | |
420 | interface. | |
421 | ||
49260fa5 | 422 | 2009-04-15 Pascal Obry <obry@adacore.com> |
423 | ||
424 | * adaint.h (__gnat_unlink): Add spec. | |
425 | (__gnat_rename): Likewise. | |
426 | ||
427 | 2009-04-15 Vincent Celier <celier@adacore.com> | |
428 | ||
429 | * prj-nmsc.adb: Minor spelling error corrections in error messages | |
430 | ||
431 | 2009-04-15 Robert Dewar <dewar@adacore.com> | |
432 | ||
433 | * sinfo.ads: Minor comment update | |
434 | ||
435 | * opt.ads: Minor comment updates | |
436 | ||
437 | * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for | |
438 | modular type. | |
439 | ||
440 | 2009-04-15 Ed Schonberg <schonberg@adacore.com> | |
441 | ||
442 | * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function | |
443 | that generates the code needed to update a dispatch table when a | |
444 | primitive operation is declared with a subprogram body without previous | |
445 | spec. Insertion of the generated code is responsibility of the caller. | |
446 | (Make_DT): When building static tables, append the code created by | |
447 | Register_Primitive to update a secondary table after it has been | |
448 | constructed. | |
449 | ||
450 | * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive. | |
451 | ||
452 | * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive | |
453 | on an overriding operation that implements an interface operation only | |
454 | if not building static dispatch tables. | |
455 | ||
456 | 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com> | |
457 | ||
458 | * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which | |
459 | does not cause overflow when converted to Duration. Use the safe value | |
460 | as the maximum allowable time delay.. | |
461 | ||
462 | 2009-04-15 Jerome Lambourg <lambourg@adacore.com> | |
463 | ||
464 | * g-comlin.adb (Set_Command_Line): When adding a switch with attached | |
465 | parameter, specify that the delimiter is NUL, otherwise "-j2" will be | |
466 | translated to "-j 2". | |
467 | ||
468 | 2009-04-15 Bob Duff <duff@adacore.com> | |
469 | ||
470 | * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit | |
471 | with_clauses, to avoid code duplication. Change this processing so we | |
472 | always add a with_clause on the main unit if needed. | |
473 | ||
13320214 | 474 | 2009-04-15 Pascal Obry <obry@adacore.com> |
475 | ||
476 | Add support for Win32 native encoding for delete/rename routines. | |
477 | ||
478 | * adaint.c (__gnat_unlink): New routine. | |
479 | (__gnat_rename): New routine. | |
480 | Simple wrapper routines used to convert to proper encoding on | |
481 | Windows. | |
482 | ||
483 | * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct | |
484 | call to the C library. | |
485 | ||
486 | * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding. | |
487 | ||
488 | 2009-04-15 Robert Dewar <dewar@adacore.com> | |
489 | ||
490 | * s-tassta.adb: Minor reformatting | |
491 | ||
30e5c8d3 | 492 | 2009-04-15 Robert Dewar <dewar@adacore.com> |
493 | ||
494 | * frontend.adb (Frontend): Set proper default for | |
495 | Warn_On_Non_Local_Exception. | |
496 | ||
497 | * opt.ads (Exception_Handler_Encountered): New flag | |
498 | (No_Warn_On_Non_Local_Exception): New flag | |
499 | ||
500 | * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered | |
501 | ||
502 | * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception | |
503 | (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception | |
504 | ||
505 | 2009-04-15 Cyrille Comar <comar@adacore.com> | |
506 | ||
507 | * s-tassta.adb, a-exextr.adb, a-elchha.adb | |
508 | (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception | |
509 | message when exception traces are active since it would generate | |
510 | redundant information. | |
511 | (Exception_Traces.Notify_Exception): put message output by a critical | |
512 | section to avoid unsynchronized output. | |
513 | (Trace_Unhandled_Exception_In_Task): put message output by a critical | |
514 | section to avoid unsynchronized output. | |
515 | ||
516 | 2009-04-15 Emmanuel Briot <briot@adacore.com> | |
517 | ||
518 | * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads | |
519 | (Free): New subprogram. | |
520 | ||
c970afb7 | 521 | 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com> |
522 | ||
523 | * a-calend.adb: Add new constant Nanos_In_Four_Years. | |
524 | (Formatting_Operations.Time_Of): Change the way four year chunks of | |
525 | nanoseconds are added to the intermediate result. | |
526 | ||
527 | 2009-04-15 Nicolas Setton <setton@adacore.com> | |
528 | ||
529 | * sysdep.c: Add __APPLE__ in the list of systems where get_immediate | |
530 | does not need to wait for a carriage return. | |
531 | ||
532 | 2009-04-15 Tristan Gingold <gingold@adacore.com> | |
533 | ||
534 | * bindgen.adb: Do not generate adafinal if No_Finalization restriction | |
535 | is set. | |
536 | ||
537 | 2009-04-15 Ed Schonberg <schonberg@adacore.com> | |
538 | ||
539 | * freeze.adb (Freeze_Entity): improve error message for improper use of | |
540 | incomplete types. | |
541 | Diagnose additional illegal uses of incomplete types in formal parts. | |
542 | appearing in formal parts. | |
543 | ||
544 | * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto. | |
545 | ||
546 | 2009-04-15 Robert Dewar <dewar@adacore.com> | |
547 | ||
548 | * exp_ch4.adb (Expand_N_Allocator): Install test for object too large. | |
549 | ||
a0d9619f | 550 | 2009-04-15 Nicolas Roche <roche@adacore.com> |
551 | ||
552 | * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the | |
553 | current thread. | |
554 | ||
555 | * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self | |
556 | ||
557 | * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB | |
558 | ||
46f942b1 | 559 | 2009-04-15 Ed Schonberg <schonberg@adacore.com> |
560 | ||
561 | * sem_ch4.adb: improve error message on exponentiation. | |
562 | ||
563 | 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com> | |
564 | ||
565 | * a-calend.adb: Move constant Epoch_Offset from package | |
566 | Conversion_Operations to top level. | |
567 | (Delay_Operations.To_Duration): Define a constant which represents | |
568 | "end of time" and use it as a guard against very distant delay dates. | |
569 | Protect the code against overflow when performing the origin shift to | |
570 | Unix time. | |
571 | ||
555c63a6 | 572 | 2009-04-15 Robert Dewar <dewar@adacore.com> |
573 | ||
574 | * sem_prag.adb: Minor reformatting. | |
575 | ||
576 | * sem_type.adb: Minor reformatting | |
577 | ||
578 | 2009-04-15 Javier Miranda <miranda@adacore.com> | |
579 | ||
580 | * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing | |
581 | support to check eliminated subprograms. | |
582 | ||
583 | * sem_elim.ads (Eliminate_Error_Msg): Update documentation. | |
584 | ||
585 | * sem_elim.adb (Set_Eliminated): Add support for elimination of | |
586 | dispatching subprograms. | |
587 | ||
588 | * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive | |
589 | operations. Initialize with "null" the slots of eliminated dispaching | |
590 | primitives. | |
591 | (Write_DT): Add output for eliminated primitives. | |
592 | ||
593 | * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives. | |
594 | ||
2018b7fa | 595 | 2009-04-15 Ed Schonberg <schonberg@adacore.com> |
596 | ||
597 | * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit, | |
598 | the second is redundant, regardless of scopes. | |
599 | ||
600 | 2009-04-15 Vincent Celier <celier@adacore.com> | |
601 | ||
602 | * prj-nmsc.adb (Get_Directories): Check for sources before checking | |
603 | the object directory as when there are no sources, they may not be any | |
604 | object directory. | |
605 | ||
606 | * make.adb (Gnatmake): Do not attempt to get the path name of the exec | |
607 | directory, when there are no exec directory. | |
608 | ||
609 | 2009-04-15 Ed Schonberg <schonberg@adacore.com> | |
610 | ||
611 | * sem_type.adb (Remove_Conversions): In order to resolve spurious | |
612 | ambiguities, refine removal of universal interpretations from complex | |
613 | expressions with literal arguments, when some numeric operators have | |
614 | been declared abstract. | |
615 | ||
616 | 2009-04-15 Ed Falis <falis@adacore.com> | |
617 | ||
618 | * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity | |
619 | and backward compatibility for targets using probing for stack overflow | |
620 | ||
621 | 2009-04-15 Ed Schonberg <schonberg@adacore.com> | |
622 | ||
623 | * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal | |
624 | after any declaration, including renaming declarations. | |
625 | ||
debc2e20 | 626 | 2009-04-15 Arnaud Charlet <charlet@adacore.com> |
627 | ||
628 | * gcc-interface/Make-lang.in: Update dependencies. | |
629 | ||
630 | * gcc-interface/Makefile.in: Fix VxWorks target pairs. | |
b91c587a | 631 | Update xenomai target pairs. |
debc2e20 | 632 | |
004058b1 | 633 | 2009-04-15 Javier Miranda <miranda@adacore.com> |
634 | ||
635 | * exp_ch4.adb (Expand_N_Allocator): Code cleanup. | |
636 | ||
637 | * sem_ch6.adb (Check_Anonymous_Return): Add missing support for | |
638 | functions returning anonymous access to class-wide limited types. Mark | |
639 | also the containing scope as a task master. | |
640 | ||
641 | * sem_ch8.adb (Restore_Scope_Stack): Add missing management for | |
642 | limited-withed packages. Required to restore their visibility after | |
643 | processing packages associated with implicit with-clauses. | |
644 | ||
645 | * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters | |
646 | associated with return statements because this work is now done by | |
647 | Check_Anonymous_Return. | |
648 | (Build_Master): Code cleanup. | |
649 | ||
235a2f4e | 650 | 2009-04-15 Thomas Quinot <quinot@adacore.com> |
651 | ||
652 | * sem_warn.ads: Minor reformatting | |
653 | ||
654 | 2009-04-15 Ed Schonberg <schonberg@adacore.com> | |
655 | ||
656 | * sem_ch3.adb: better error message for illegal interfaces | |
657 | ||
658 | * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a | |
659 | formal is an incomplete type from a limited_with clause. | |
660 | ||
e5501a8e | 661 | 2009-04-15 Vincent Celier <celier@adacore.com> |
662 | ||
663 | * prj-nmsc.adb (Locate_Directory): New Boolean parameter | |
664 | Externally_Built indicating if the project is externally built. If it | |
665 | is, and --subdirs is specified, but the subdir does not exist, look | |
666 | for the specified directory, without the subdir. | |
667 | ||
d82baf7f | 668 | 2009-04-15 Gary Dismukes <dismukes@adacore.com> |
669 | ||
670 | * a-tasatt.adb: Fix typo, plus minor reformatting | |
671 | ||
672 | * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide"). | |
673 | ||
674 | * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible"). | |
675 | ||
676 | 2009-04-15 Ed Schonberg <schonberg@adacore.com> | |
677 | ||
678 | * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a | |
679 | private extension whose parent is a synchronized interface carries an | |
680 | explicit synchronized keyword. | |
681 | ||
f8bf3c33 | 682 | 2009-04-15 Thomas Quinot <quinot@adacore.com> |
683 | ||
684 | * exp_smem.adb (Make_Shared_Var_Procs): For a protected type, | |
685 | instantiate generic shared object package with the corresponding | |
686 | record type. | |
687 | ||
07ae4f9f | 688 | 2009-04-15 Arnaud Charlet <charlet@adacore.com> |
689 | ||
690 | * system-linux-sparc.ads: Remove obsolete entries. | |
691 | ||
692 | 2009-04-15 Thomas Quinot <quinot@adacore.com> | |
693 | ||
694 | * s-tasuti.ads: Add ??? comment | |
695 | ||
216db6e5 | 696 | 2009-04-15 Ed Schonberg <schonberg@adacore.com> |
697 | ||
698 | * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access | |
699 | type even if the designated type comes from a limited_with clause, to | |
700 | ensure that the symbol for the finalization list of the access type is | |
701 | created. | |
702 | ||
f3f7771d | 703 | 2009-04-10 Robert Dewar <dewar@adacore.com> |
704 | ||
705 | * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases | |
706 | for warning suppression. | |
707 | ||
708 | 2009-04-10 Ed Schonberg <schonberg@adacore.com> | |
709 | ||
710 | * sem_ch8.adb (Use_One_Type): If the two use_type clauses are | |
711 | identical, there is no redudancy to check. | |
712 | ||
713 | 2009-04-10 Gary Dismukes <dismukes@adacore.com> | |
714 | ||
715 | * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant | |
716 | calls initializing SS_Allocator (which is initialized in following | |
717 | code). | |
718 | (Expand_Simple_Function_Return): Add comment about False value for | |
719 | Comes_From_Source on secondary-stack allocator. | |
720 | ||
721 | * exp_ch9.adb (Build_Entry_Family_Name): Add comment. | |
722 | (Build_Entry_Name): Add comment. | |
723 | ||
19b4517d | 724 | 2009-04-10 Robert Dewar <dewar@adacore.com> |
725 | ||
726 | * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known | |
727 | ||
728 | * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower | |
729 | bound tested, since this is now done more generally in Sem_Res. | |
730 | ||
731 | * sem_res.adb (Resolve_Comparison_Op): Add call to | |
732 | Check_Lower_Bound_Tested. | |
733 | (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested | |
734 | ||
735 | * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure | |
736 | (Low_Bound_Tested): New name for Low_Bound_Known flag | |
737 | ||
738 | * exp_ch5.adb: Minor reformatting | |
739 | ||
740 | * exp_ch4.adb: | |
741 | Add comments on copying the Comes_From_Source flag for allocators | |
742 | ||
743 | * sinfo.ads: | |
744 | Add comments on copying the Comes_From_Source flag for allocators | |
745 | ||
746 | * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy | |
747 | Comes_From_Source flag from old allocator to new one. | |
748 | ||
749 | 2009-04-10 Ed Schonberg <schonberg@adacore.com> | |
750 | ||
751 | * sem_ch6.ads: Address missing documentation query | |
752 | ||
753 | 2009-04-10 Vincent Celier <celier@adacore.com> | |
754 | ||
755 | * prj-attr.adb: | |
756 | Add new Linker attributes Max_Command_Line_Length, Response_File_Format | |
757 | and Response_File_Switches. | |
758 | ||
759 | * prj-nmsc.adb (Process_Linker): Process new attributes | |
760 | Max_Command_Line_Length, Response_File_Format and | |
761 | Response_File_Switches. | |
762 | ||
763 | * prj.ads (Response_File_Format): New enumeration type | |
764 | (Project_Configuration): New componants Max_Command_Line_Length, | |
765 | Resp_File_Format and Resp_File_Options. | |
766 | ||
767 | * snames.ads-tmpl: Add new standard names for linking response files | |
768 | for gprbuild: GNU, None, Object_List, Option_List, | |
769 | Max_Command_Line_Length, Response_File_Format and | |
770 | Response_File_Switches. | |
771 | ||
772 | 2009-04-10 Geert Bosch <bosch@adacore.com> | |
773 | ||
774 | * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads, | |
775 | system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads, | |
776 | system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads, | |
777 | system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads, | |
778 | system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads, | |
779 | system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads, | |
780 | system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads, | |
781 | system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads, | |
782 | system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads, | |
783 | system-vxworks-arm.ads, system-vxworks-m68k.ads, | |
784 | system-vxworks-mips.ads, system-vxworks-ppc.ads, | |
785 | system-vxworks-sparcv9.ads, system-vxworks-x86.ads | |
786 | (Backend_Overflow_Checks): Set to True. | |
787 | ||
b6dbc975 | 788 | 2009-04-10 Thomas Quinot <quinot@adacore.com> |
789 | ||
790 | * exp_attr.adb: Minor reformatting | |
791 | ||
792 | 2009-04-10 Ed Schonberg <schonberg@adacore.com> | |
793 | ||
794 | * sem_prag.adb (Check_Precondition_Postcondition): Within a generic, | |
795 | analyze the expression for a postcondition, even if the compiler mode | |
796 | is Generate_Code. | |
797 | ||
d3df8832 | 798 | 2009-04-10 Robert Dewar <dewar@adacore.com> |
799 | ||
800 | * sem_aux.adb: Minor reformatting | |
801 | ||
dc8b96e9 | 802 | 2009-04-10 Ed Falis <falis@adacore.com> |
803 | ||
804 | * init.c: Change VxWorks 6 stack overflow checking for kernel apps. | |
805 | ||
806 | * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header. | |
807 | ||
1e35409d | 808 | 2009-04-10 Thomas Quinot <quinot@adacore.com> |
809 | ||
810 | * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for | |
811 | undocumented formal. | |
812 | Minor reformatting | |
813 | ||
814 | * a-direio.ads: Fix typo in comment | |
815 | ||
816 | * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb, | |
817 | errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb: | |
818 | Use uniform phrasing for comment at start of subprogram body. | |
819 | ||
820 | * xsnamest.adb: Add note to explain why we use specific names for the | |
821 | newly generated files instead of generating snames.{ads,adb,h} directly | |
822 | ||
ab31e6f8 | 823 | 2009-04-10 Sergey Rybin <rybin@adacore.com> |
824 | ||
825 | * vms_data.ads: | |
826 | Add qualifier for new gnatstub option '--no-exception' | |
827 | ||
828 | * gnat_ugn.texi: | |
829 | Add the description of the new gnatstub option '--no-exception' | |
830 | ||
831 | 2009-04-10 Robert Dewar <dewar@adacore.com> | |
832 | ||
833 | * rtsfind.adb: Minor reformatting | |
834 | ||
835 | 2009-04-10 Thomas Quinot <quinot@adacore.com> | |
836 | ||
837 | * sem_disp.adb: Minor reformatting. | |
838 | Add comment pointing to RM clause for the case of warning against a | |
839 | (failed) attempt at declaring a primitive operation elsewhere than in a | |
840 | package spec. | |
841 | ||
842 | 2009-04-10 Ed Schonberg <schonberg@adacore.com> | |
843 | ||
844 | * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is | |
845 | an actual for a previous formal package of the current instance. | |
846 | ||
399ad7e8 | 847 | 2009-04-10 Bob Duff <duff@adacore.com> |
848 | ||
849 | * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs | |
850 | them first, rather than on the extended main unit. | |
851 | ||
852 | 2009-04-10 Ed Schonberg <schonberg@adacore.com> | |
853 | ||
854 | * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant | |
855 | specification of full view carries a null exclusion indicator, create | |
856 | an itype for it, to check for conformance with partial view. | |
857 | ||
24b37698 | 858 | 2009-04-10 Bob Duff <duff@adacore.com> |
859 | ||
860 | * rtsfind.ads: Minor code change: make RE_Unit_Table constant. | |
861 | ||
862 | * rtsfind.adb: Minor comment changes, and remove useless code. | |
863 | ||
864 | * sinfo.ads: Add ??? comment. | |
865 | ||
866 | 2009-04-10 Vincent Celier <celier@adacore.com> | |
867 | ||
868 | * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U | |
869 | ||
8188864b | 870 | 2009-04-10 Ed Schonberg <schonberg@adacore.com> |
871 | ||
872 | * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged | |
873 | type is a synchronized type, retrieve tag information from the | |
874 | corresponding record, which has the dispatch table link. | |
875 | ||
876 | 2009-04-10 Jerome Lambourg <lambourg@adacore.com> | |
877 | ||
878 | * g-comlin.adb (Group_Analysis): Take care of switches that might be | |
879 | decomposed afterwards, but are present as-is in the command line | |
880 | configuration, and thus should be kept as-is. | |
881 | ||
1ce752d5 | 882 | 2009-04-10 Robert Dewar <dewar@adacore.com> |
883 | ||
884 | * gnat_rm.texi: Document that postconditions are tested on implicit | |
885 | returns. | |
886 | ||
887 | * sem_aux.adb: Minor reformatting | |
888 | ||
889 | 2009-04-10 Gary Dismukes <dismukes@adacore.com> | |
890 | ||
891 | * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when | |
892 | setting Etype. | |
893 | ||
894 | * par-ch3.adb (P_Access_Type_Definition): Set new attribute | |
895 | Null_Exclusion_In_Return_Present when an access-to-function type has a | |
896 | result type with an explicit not null. | |
897 | ||
898 | * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is | |
899 | given on the result type, then create a null-excluding itype for the | |
900 | function. | |
901 | ||
902 | * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in | |
903 | the case where a null exclusion is imposed on a named access type. | |
904 | (Analyze_Subprogram_Specification): Push and pop the scope of the | |
905 | function around the call to Analyze_Return_Type in the case of no | |
906 | formals, for consistency with handling when formals are present | |
907 | (Process_Formals does this). Ensures that any itype created for the | |
908 | return type will be associated with the proper scope. | |
909 | ||
910 | * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null | |
911 | exclusion is given on a generic function's result type, then create a | |
912 | null-excluding itype for the generic function. | |
913 | (Instantiate_Object): Set Null_Exclusion_Present of a constant created | |
914 | for an actual for a formal in object according to the setting on the | |
915 | formal. Ensures null exclusion checks are done when the association is | |
916 | elaborated. | |
917 | ||
918 | * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on | |
919 | N_Access_Function_Definition. | |
920 | ||
921 | * sinfo.adb: Add Get_ and Set_ operations for | |
922 | Null_Exclusion_In_Return_Present. | |
923 | ||
53f083ab | 924 | 2009-04-10 Bob Duff <duff@adacore.com> |
925 | ||
926 | * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a | |
927 | call to the _Postconditions procedure in the case of implicit returns | |
928 | from analysis to expansion. This eliminates some duplicated code. Use | |
929 | the Postcondition_Proc to find the identity of this procedure during | |
930 | expansion. | |
931 | ||
d8da6385 | 932 | 2009-04-10 Robert Dewar <dewar@adacore.com> |
933 | ||
934 | * sem_ch6.adb: Minor code clean up. | |
935 | ||
936 | * einfo.ads, sem_attr.adb: Minor comment fixes. | |
937 | ||
938 | 2009-04-10 Robert Dewar <dewar@adacore.com> | |
939 | ||
940 | * sem_ch8.adb: Minor reformatting | |
941 | ||
00f76ed6 | 942 | 2009-04-10 Robert Dewar <dewar@adacore.com> |
943 | ||
944 | * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for | |
945 | procedures. | |
946 | ||
947 | * sem_ch6.adb: Minor code clean up. | |
948 | ||
4d1f0a53 | 949 | 2009-04-10 Robert Dewar <dewar@adacore.com> |
950 | ||
951 | * mlib-tgt-specific-xi.adb: Minor reformatting | |
952 | ||
953 | 2009-04-10 Bob Duff <duff@adacore.com> | |
954 | ||
955 | * einfo.ads: Minor comment fixes | |
956 | ||
957 | 2009-04-10 Vincent Celier <celier@adacore.com> | |
958 | ||
959 | * snames.ads-tmpl: Remove names that are no longer used in the | |
960 | Project Manager. | |
961 | Mark specifically those that are used only in gprbuild | |
962 | ||
963 | 2009-04-10 Eric Botcazou <ebotcazou@adacore.com> | |
964 | ||
965 | * init.c: Adjust EH support code on Alpha/Tru64. | |
966 | ||
967 | 2009-04-10 Bob Duff <duff@adacore.com> | |
968 | ||
969 | * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions | |
970 | procedure on every path that could return implicitly (not via a return | |
971 | statement) from a procedure. | |
972 | ||
973 | 2009-04-10 Ed Schonberg <schonberg@adacore.com> | |
974 | ||
975 | * exp_ch9.adb (Build_Master_Entity): An extended return statement is a | |
976 | valid scope for a task declarations and therefore for a master id. | |
977 | ||
978 | 2009-04-10 Robert Dewar <dewar@adacore.com> | |
979 | ||
980 | * sem_aux.adb: Minor reformatting | |
981 | ||
982 | 2009-04-10 Vincent Celier <celier@adacore.com> | |
983 | ||
984 | * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to | |
985 | True. | |
986 | (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False | |
987 | (Set_Obsolescent_Check): New procedure to change the value of | |
988 | Obsolescent_Check_Flag. | |
989 | ||
990 | * scn.ads (Set_Obsolescent_Check): New procedure to control | |
991 | Obsolescent_Check. | |
992 | ||
993 | * sinput-l.adb (Load_File): Do not check for pragma Restrictions on | |
994 | obsolescent features while preprocessing. | |
995 | ||
4a8d5a0a | 996 | 2009-04-10 Thomas Quinot <quinot@adacore.com> |
997 | ||
998 | * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in | |
999 | generated files on all platforms. | |
1000 | ||
1001 | 2009-04-10 Robert Dewar <dewar@adacore.com> | |
1002 | ||
1003 | * sem_aux.adb: Minor reformatting | |
1004 | ||
1005 | 2009-04-10 Ed Schonberg <schonberg@adacore.com> | |
1006 | ||
1007 | * sem_ch3.adb (Access_Definition): Handle properly the case of a | |
1008 | protected function with formals that returns an anonymous access type. | |
1009 | ||
1010 | 2009-04-10 Thomas Quinot <quinot@adacore.com> | |
1011 | ||
1012 | * sem_disp.adb: Minor reformatting | |
1013 | ||
1014 | 2009-04-10 Vasiliy Fofanov <fofanov@adacore.com> | |
1015 | ||
1016 | * seh_init.c: Do not use the 32-bit specific implementation of | |
1017 | __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific | |
1018 | version TBD). | |
1019 | ||
1020 | 2009-04-10 Jose Ruiz <ruiz@adacore.com> | |
1021 | ||
1022 | * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain | |
1023 | a '/' at the end so we better use the complete target name to determine | |
1024 | whether it is a PowerPC 55xx target. | |
1025 | ||
526e024a | 1026 | 2009-04-10 Thomas Quinot <quinot@adacore.com> |
1027 | ||
1028 | * sem_eval.adb: Minor reformatting | |
1029 | ||
d48e2634 | 1030 | 2009-04-10 Thomas Quinot <quinot@adacore.com> |
1031 | ||
1032 | * snames.h, snames.ads, snames.adb: Remove files, now generated from | |
1033 | templates. | |
1034 | ||
1035 | * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the | |
1036 | above. | |
1037 | ||
1038 | * xsnamest.adb: New file. | |
1039 | ||
1040 | * gcc-interface/Make-lang.in: New target for automated generation of | |
1041 | snames.ads, snames.adb and snames.h | |
1042 | ||
00388045 | 1043 | 2009-04-10 Tristan Gingold <gingold@adacore.com> |
1044 | ||
1045 | * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to | |
1046 | avoid compile time warnings. | |
1047 | Do not add gcc/config in include search list while compiling the RTS. | |
1048 | Pragma Thread_Local_Storage is available on any target. | |
1049 | ||
9f42b990 | 1050 | 2009-04-10 Bob Duff <duff@adacore.com> |
1051 | ||
1052 | * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes. | |
1053 | ||
2b523281 | 1054 | 2009-04-10 Tristan Gingold <gingold@adacore.com> |
1055 | ||
1056 | * init.c: Install signal handler on Darwin. | |
1057 | ||
1058 | 2009-04-10 Robert Dewar <dewar@adacore.com> | |
1059 | ||
1060 | * sem_prag.adb: Minor reformatting | |
1061 | ||
1062 | * exp_util.adb (Make_Non_Empty_Check): New function | |
1063 | (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check | |
1064 | (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check | |
1065 | ||
1066 | 2009-04-10 Arnaud Charlet <charlet@adacore.com> | |
1067 | ||
1068 | * make.adb, gnatlink.adb: Rename JGNAT toolchain. | |
1069 | ||
1070 | 2009-04-10 Jose Ruiz <ruiz@adacore.com> | |
1071 | ||
1072 | * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate | |
1073 | tool prefix for AVR and PowerPC 55xx targets. | |
1074 | ||
1075 | 2009-04-10 Robert Dewar <dewar@adacore.com> | |
1076 | ||
1077 | * sem_warn.adb (Within_Postcondition): New function | |
1078 | (Check_Unset_Reference): Use Within_Postcondition to stop bad warning | |
1079 | ||
6bc4e5b9 | 1080 | 2009-04-10 Robert Dewar <dewar@adacore.com> |
1081 | ||
1082 | * sem_warn.adb: Minor reformatting | |
1083 | ||
1084 | * make.adb: Minor reformatting. | |
1085 | ||
1086 | 2009-04-10 Gary Dismukes <dismukes@adacore.com> | |
1087 | ||
1088 | * exp_ch7.adb (Find_Final_List): When creating a finalization-chain | |
1089 | entity and the scope is a subprogram, retrieve the Sloc of the | |
1090 | subprogram's body rather than using the sloc of the spec, for better | |
1091 | line-stepping behavior in gdb. | |
1092 | (Wrap_Transient_Declaration): For the Sloc of nodes created with a list | |
1093 | controller, use the Sloc of the first declaration of the containing list | |
1094 | rather than that of the node that triggered creation of the list | |
1095 | controller. | |
1096 | ||
284a54ba | 1097 | 2009-04-10 Vincent Celier <celier@adacore.com> |
1098 | ||
1099 | * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing | |
1100 | to avoid gcc warning. | |
1101 | ||
1102 | 2009-04-10 Robert Dewar <dewar@adacore.com> | |
1103 | ||
1104 | * g-comlin.adb: Add ??? comment | |
1105 | ||
1106 | 2009-04-10 Ed Schonberg <schonberg@adacore.com> | |
1107 | ||
1108 | * sem_warn.adb (Check_Unused_Withs): Do not emit message about | |
1109 | unreferenced entities for a package with no visible declarations. | |
1110 | ||
1111 | 2009-04-10 Robert Dewar <dewar@adacore.com> | |
1112 | ||
1113 | * exp_ch9.adb: Minor reformatting | |
1114 | ||
14de9547 | 1115 | 2009-04-10 Thomas Quinot <quinot@adacore.com> |
1116 | ||
1117 | * sem_prag.adb: Minor reformatting | |
1118 | ||
1119 | 2009-04-10 Vincent Celier <celier@adacore.com> | |
1120 | ||
1121 | * prj-nmsc.adb: | |
1122 | (Check_Library_Attributes): For a project qualified as a library project | |
1123 | that is not a library project, indicate in the error message which | |
1124 | attributes are missing (Library_Dir and/or Library_Name). | |
1125 | ||
791c4a7c | 1126 | 2009-04-10 Bob Duff <duff@adacore.com> |
1127 | ||
1128 | * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of | |
1129 | generated nodes, because it might confuse various circuits in the FE. | |
1130 | ||
fa0b5df1 | 1131 | 2009-04-10 Ed Schonberg <schonberg@adacore.com> |
1132 | ||
1133 | * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument | |
1134 | of pragma. It will be recopied and analyzed when used in call to | |
1135 | Create_Task. | |
1136 | ||
1137 | * sem_res.adb (Resolve_Call): Clarify use of secondary stack within | |
1138 | initialization operations and recognize use of it in procedure calls | |
1139 | within init_procs. | |
1140 | ||
1141 | * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name | |
1142 | argument, because it may have side-effects. | |
1143 | ||
1144 | * exp_ch2.adb: Remove obsolete comments on default functions | |
1145 | ||
1146 | 2009-04-10 Jose Ruiz <ruiz@adacore.com> | |
1147 | ||
1148 | * adaint.c (RTX section): Do for RTX the same thing as we do for | |
1149 | Windows (include ctype.h and define a fallback ISALPHA if IN_RTS). | |
1150 | ||
1971b754 | 1151 | 2009-04-10 Robert Dewar <dewar@adacore.com> |
1152 | ||
1153 | * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function. | |
1154 | ||
1155 | * sem_res.adb (Resolve_Call): Fix test for | |
1156 | Suppress_Value_Tracking_On_Call (was wrong for the case of a call from | |
1157 | a non-dynamic scope). | |
1158 | ||
14ae7702 | 1159 | 2009-04-10 Robert Dewar <dewar@adacore.com> |
1160 | ||
1161 | * make.adb: Add comment. | |
1162 | Minor reformatting | |
1163 | ||
1164 | 2009-04-10 Nicolas Setton <setton@adacore.com> | |
1165 | ||
1166 | * s-osprim-darwin.adb: New file. | |
1167 | ||
1168 | * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec. | |
1169 | ||
1170 | 2009-04-10 Thomas Quinot <quinot@adacore.com> | |
1171 | ||
1172 | * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set | |
1173 | ||
6bc9506f | 1174 | 2009-04-09 Nick Clifton <nickc@redhat.com> |
1175 | ||
1176 | * adadecode.h: Change copyright header to refer to version | |
1177 | 3 of the GNU General Public License with version 3.1 of the | |
1178 | GCC Runtime Library Exception and to point readers at the | |
1179 | COPYING3 and COPYING3.RUNTIME files and the FSF's license web | |
1180 | page. | |
1181 | * 9drpc.adb: Likewise. | |
1182 | * a-assert.adb: Likewise. | |
1183 | * a-astaco.adb: Likewise. | |
1184 | * a-calari.adb: Likewise. | |
1185 | * a-calcon.adb: Likewise. | |
1186 | * a-calcon.ads: Likewise. | |
1187 | * a-caldel.ads: Likewise. | |
1188 | * a-calend-vms.adb: Likewise. | |
1189 | * a-calend-vms.ads: Likewise. | |
1190 | * a-calend.adb: Likewise. | |
1191 | * a-calend.ads: Likewise. | |
1192 | * a-calfor.adb: Likewise. | |
1193 | * a-catizo.adb: Likewise. | |
1194 | * a-cdlili.adb: Likewise. | |
1195 | * a-cdlili.ads: Likewise. | |
1196 | * a-cgaaso.adb: Likewise. | |
1197 | * a-cgaaso.ads: Likewise. | |
1198 | * a-cgarso.adb: Likewise. | |
1199 | * a-cgcaso.adb: Likewise. | |
1200 | * a-chacon.adb: Likewise. | |
1201 | * a-chacon.ads: Likewise. | |
1202 | * a-chahan.adb: Likewise. | |
1203 | * a-chahan.ads: Likewise. | |
1204 | * a-chlat9.ads: Likewise. | |
1205 | * a-chtgke.adb: Likewise. | |
1206 | * a-chtgke.ads: Likewise. | |
1207 | * a-chtgop.adb: Likewise. | |
1208 | * a-chtgop.ads: Likewise. | |
1209 | * a-chzla1.ads: Likewise. | |
1210 | * a-chzla9.ads: Likewise. | |
1211 | * a-cidlli.adb: Likewise. | |
1212 | * a-cidlli.ads: Likewise. | |
1213 | * a-cihama.adb: Likewise. | |
1214 | * a-cihama.ads: Likewise. | |
1215 | * a-cihase.adb: Likewise. | |
1216 | * a-cihase.ads: Likewise. | |
1217 | * a-ciorma.adb: Likewise. | |
1218 | * a-ciorma.ads: Likewise. | |
1219 | * a-ciormu.adb: Likewise. | |
1220 | * a-ciormu.ads: Likewise. | |
1221 | * a-ciorse.adb: Likewise. | |
1222 | * a-ciorse.ads: Likewise. | |
1223 | * a-clrefi.adb: Likewise. | |
1224 | * a-clrefi.ads: Likewise. | |
1225 | * a-cohama.adb: Likewise. | |
1226 | * a-cohama.ads: Likewise. | |
1227 | * a-cohase.adb: Likewise. | |
1228 | * a-cohase.ads: Likewise. | |
1229 | * a-cohata.ads: Likewise. | |
1230 | * a-coinve.adb: Likewise. | |
1231 | * a-coinve.ads: Likewise. | |
1232 | * a-colien.adb: Likewise. | |
1233 | * a-colien.ads: Likewise. | |
1234 | * a-colire.adb: Likewise. | |
1235 | * a-colire.ads: Likewise. | |
1236 | * a-comlin.adb: Likewise. | |
1237 | * a-comlin.ads: Likewise. | |
1238 | * a-convec.adb: Likewise. | |
1239 | * a-convec.ads: Likewise. | |
1240 | * a-coorma.adb: Likewise. | |
1241 | * a-coorma.ads: Likewise. | |
1242 | * a-coormu.adb: Likewise. | |
1243 | * a-coormu.ads: Likewise. | |
1244 | * a-coorse.adb: Likewise. | |
1245 | * a-coorse.ads: Likewise. | |
1246 | * a-coprnu.adb: Likewise. | |
1247 | * a-coprnu.ads: Likewise. | |
1248 | * a-crbltr.ads: Likewise. | |
1249 | * a-crbtgk.adb: Likewise. | |
1250 | * a-crbtgk.ads: Likewise. | |
1251 | * a-crbtgo.adb: Likewise. | |
1252 | * a-crbtgo.ads: Likewise. | |
1253 | * a-crdlli.adb: Likewise. | |
1254 | * a-crdlli.ads: Likewise. | |
1255 | * a-cwila1.ads: Likewise. | |
1256 | * a-cwila9.ads: Likewise. | |
1257 | * a-decima.adb: Likewise. | |
1258 | * a-decima.ads: Likewise. | |
1259 | * a-diocst.adb: Likewise. | |
1260 | * a-diocst.ads: Likewise. | |
1261 | * a-direct.adb: Likewise. | |
1262 | * a-direct.ads: Likewise. | |
1263 | * a-direio.adb: Likewise. | |
1264 | * a-direio.ads: Likewise. | |
1265 | * a-dirval-mingw.adb: Likewise. | |
1266 | * a-dirval-vms.adb: Likewise. | |
1267 | * a-dirval.adb: Likewise. | |
1268 | * a-dirval.ads: Likewise. | |
1269 | * a-dynpri.adb: Likewise. | |
1270 | * a-einuoc.adb: Likewise. | |
1271 | * a-einuoc.ads: Likewise. | |
1272 | * a-elchha.adb: Likewise. | |
1273 | * a-elchha.ads: Likewise. | |
1274 | * a-envvar.adb: Likewise. | |
1275 | * a-excach.adb: Likewise. | |
1276 | * a-except-2005.adb: Likewise. | |
1277 | * a-except-2005.ads: Likewise. | |
1278 | * a-except.adb: Likewise. | |
1279 | * a-except.ads: Likewise. | |
1280 | * a-excpol-abort.adb: Likewise. | |
1281 | * a-excpol.adb: Likewise. | |
1282 | * a-exctra.adb: Likewise. | |
1283 | * a-exctra.ads: Likewise. | |
1284 | * a-exetim-mingw.adb: Likewise. | |
1285 | * a-exetim-mingw.ads: Likewise. | |
1286 | * a-exexda.adb: Likewise. | |
1287 | * a-exexpr-gcc.adb: Likewise. | |
1288 | * a-exexpr.adb: Likewise. | |
1289 | * a-exextr.adb: Likewise. | |
1290 | * a-exstat.adb: Likewise. | |
1291 | * a-filico.adb: Likewise. | |
1292 | * a-filico.ads: Likewise. | |
1293 | * a-finali.adb: Likewise. | |
1294 | * a-finali.ads: Likewise. | |
1295 | * a-interr.ads: Likewise. | |
1296 | * a-intnam-aix.ads: Likewise. | |
1297 | * a-intnam-darwin.ads: Likewise. | |
1298 | * a-intnam-dummy.ads: Likewise. | |
1299 | * a-intnam-freebsd.ads: Likewise. | |
1300 | * a-intnam-hpux.ads: Likewise. | |
1301 | * a-intnam-irix.ads: Likewise. | |
1302 | * a-intnam-linux.ads: Likewise. | |
1303 | * a-intnam-lynxos.ads: Likewise. | |
1304 | * a-intnam-mingw.ads: Likewise. | |
1305 | * a-intnam-rtems.ads: Likewise. | |
1306 | * a-intnam-solaris.ads: Likewise. | |
1307 | * a-intnam-tru64.ads: Likewise. | |
1308 | * a-intnam-vms.ads: Likewise. | |
1309 | * a-intnam-vxworks.ads: Likewise. | |
1310 | * a-intsig.adb: Likewise. | |
1311 | * a-intsig.ads: Likewise. | |
1312 | * a-ngcefu.adb: Likewise. | |
1313 | * a-ngcoar.adb: Likewise. | |
1314 | * a-ngcoty.adb: Likewise. | |
1315 | * a-ngcoty.ads: Likewise. | |
1316 | * a-ngelfu.adb: Likewise. | |
1317 | * a-ngrear.adb: Likewise. | |
1318 | * a-ngrear.ads: Likewise. | |
1319 | * a-nudira.adb: Likewise. | |
1320 | * a-nudira.ads: Likewise. | |
1321 | * a-nuflra.adb: Likewise. | |
1322 | * a-nuflra.ads: Likewise. | |
1323 | * a-numaux-darwin.adb: Likewise. | |
1324 | * a-numaux-darwin.ads: Likewise. | |
1325 | * a-numaux-libc-x86.ads: Likewise. | |
1326 | * a-numaux-vxworks.ads: Likewise. | |
1327 | * a-numaux-x86.adb: Likewise. | |
1328 | * a-numaux-x86.ads: Likewise. | |
1329 | * a-numaux.ads: Likewise. | |
1330 | * a-rbtgso.adb: Likewise. | |
1331 | * a-rbtgso.ads: Likewise. | |
1332 | * a-reatim.ads: Likewise. | |
1333 | * a-retide.adb: Likewise. | |
1334 | * a-retide.ads: Likewise. | |
1335 | * a-rttiev.adb: Likewise. | |
1336 | * a-rttiev.ads: Likewise. | |
1337 | * a-secain.adb: Likewise. | |
1338 | * a-secain.ads: Likewise. | |
1339 | * a-sequio.adb: Likewise. | |
1340 | * a-sequio.ads: Likewise. | |
1341 | * a-shcain.adb: Likewise. | |
1342 | * a-shcain.ads: Likewise. | |
1343 | * a-siocst.adb: Likewise. | |
1344 | * a-siocst.ads: Likewise. | |
1345 | * a-slcain.adb: Likewise. | |
1346 | * a-slcain.ads: Likewise. | |
1347 | * a-ssicst.adb: Likewise. | |
1348 | * a-ssicst.ads: Likewise. | |
1349 | * a-stboha.adb: Likewise. | |
1350 | * a-stmaco.ads: Likewise. | |
1351 | * a-storio.adb: Likewise. | |
1352 | * a-strbou.adb: Likewise. | |
1353 | * a-strbou.ads: Likewise. | |
1354 | * a-stream.ads: Likewise. | |
1355 | * a-strfix.adb: Likewise. | |
1356 | * a-strhas.adb: Likewise. | |
1357 | * a-strmap.adb: Likewise. | |
1358 | * a-strmap.ads: Likewise. | |
1359 | * a-strsea.adb: Likewise. | |
1360 | * a-strsea.ads: Likewise. | |
1361 | * a-strsup.adb: Likewise. | |
1362 | * a-strsup.ads: Likewise. | |
1363 | * a-strunb.adb: Likewise. | |
1364 | * a-strunb.ads: Likewise. | |
1365 | * a-ststio.adb: Likewise. | |
1366 | * a-ststio.ads: Likewise. | |
1367 | * a-stunau.adb: Likewise. | |
1368 | * a-stunau.ads: Likewise. | |
1369 | * a-stunha.adb: Likewise. | |
1370 | * a-stwibo.adb: Likewise. | |
1371 | * a-stwibo.ads: Likewise. | |
1372 | * a-stwifi.adb: Likewise. | |
1373 | * a-stwiha.adb: Likewise. | |
1374 | * a-stwima.adb: Likewise. | |
1375 | * a-stwima.ads: Likewise. | |
1376 | * a-stwise.adb: Likewise. | |
1377 | * a-stwise.ads: Likewise. | |
1378 | * a-stwisu.adb: Likewise. | |
1379 | * a-stwisu.ads: Likewise. | |
1380 | * a-stwiun.adb: Likewise. | |
1381 | * a-stwiun.ads: Likewise. | |
1382 | * a-stzbou.adb: Likewise. | |
1383 | * a-stzbou.ads: Likewise. | |
1384 | * a-stzfix.adb: Likewise. | |
1385 | * a-stzhas.adb: Likewise. | |
1386 | * a-stzmap.adb: Likewise. | |
1387 | * a-stzmap.ads: Likewise. | |
1388 | * a-stzsea.adb: Likewise. | |
1389 | * a-stzsea.ads: Likewise. | |
1390 | * a-stzsup.adb: Likewise. | |
1391 | * a-stzsup.ads: Likewise. | |
1392 | * a-stzunb.adb: Likewise. | |
1393 | * a-stzunb.ads: Likewise. | |
1394 | * a-suteio.adb: Likewise. | |
1395 | * a-suteio.ads: Likewise. | |
1396 | * a-swbwha.adb: Likewise. | |
1397 | * a-swmwco.ads: Likewise. | |
1398 | * a-swunau.adb: Likewise. | |
1399 | * a-swunau.ads: Likewise. | |
1400 | * a-swuwha.adb: Likewise. | |
1401 | * a-swuwti.adb: Likewise. | |
1402 | * a-swuwti.ads: Likewise. | |
1403 | * a-sytaco.adb: Likewise. | |
1404 | * a-sytaco.ads: Likewise. | |
1405 | * a-szbzha.adb: Likewise. | |
1406 | * a-szmzco.ads: Likewise. | |
1407 | * a-szunau.adb: Likewise. | |
1408 | * a-szunau.ads: Likewise. | |
1409 | * a-szuzha.adb: Likewise. | |
1410 | * a-szuzti.adb: Likewise. | |
1411 | * a-szuzti.ads: Likewise. | |
1412 | * a-tags.adb: Likewise. | |
1413 | * a-tags.ads: Likewise. | |
1414 | * a-tasatt.ads: Likewise. | |
1415 | * a-taside.adb: Likewise. | |
1416 | * a-taside.ads: Likewise. | |
1417 | * a-taster.adb: Likewise. | |
1418 | * a-teioed.adb: Likewise. | |
1419 | * a-teioed.ads: Likewise. | |
1420 | * a-textio.adb: Likewise. | |
1421 | * a-textio.ads: Likewise. | |
1422 | * a-tiboio.adb: Likewise. | |
1423 | * a-ticoau.adb: Likewise. | |
1424 | * a-ticoau.ads: Likewise. | |
1425 | * a-ticoio.adb: Likewise. | |
1426 | * a-ticoio.ads: Likewise. | |
1427 | * a-tideau.adb: Likewise. | |
1428 | * a-tideau.ads: Likewise. | |
1429 | * a-tideio.adb: Likewise. | |
1430 | * a-tideio.ads: Likewise. | |
1431 | * a-tienau.adb: Likewise. | |
1432 | * a-tienau.ads: Likewise. | |
1433 | * a-tienio.adb: Likewise. | |
1434 | * a-tienio.ads: Likewise. | |
1435 | * a-tifiio.adb: Likewise. | |
1436 | * a-tifiio.ads: Likewise. | |
1437 | * a-tiflau.adb: Likewise. | |
1438 | * a-tiflau.ads: Likewise. | |
1439 | * a-tiflio.adb: Likewise. | |
1440 | * a-tiflio.ads: Likewise. | |
1441 | * a-tigeau.adb: Likewise. | |
1442 | * a-tigeau.ads: Likewise. | |
1443 | * a-tiinau.adb: Likewise. | |
1444 | * a-tiinau.ads: Likewise. | |
1445 | * a-tiinio.adb: Likewise. | |
1446 | * a-tiinio.ads: Likewise. | |
1447 | * a-timoau.adb: Likewise. | |
1448 | * a-timoau.ads: Likewise. | |
1449 | * a-timoio.adb: Likewise. | |
1450 | * a-timoio.ads: Likewise. | |
1451 | * a-tiocst.adb: Likewise. | |
1452 | * a-tiocst.ads: Likewise. | |
1453 | * a-titest.adb: Likewise. | |
1454 | * a-wichun.adb: Likewise. | |
1455 | * a-wichun.ads: Likewise. | |
1456 | * a-witeio.adb: Likewise. | |
1457 | * a-witeio.ads: Likewise. | |
1458 | * a-wtcoau.adb: Likewise. | |
1459 | * a-wtcoau.ads: Likewise. | |
1460 | * a-wtcoio.adb: Likewise. | |
1461 | * a-wtcstr.adb: Likewise. | |
1462 | * a-wtcstr.ads: Likewise. | |
1463 | * a-wtdeau.adb: Likewise. | |
1464 | * a-wtdeau.ads: Likewise. | |
1465 | * a-wtdeio.adb: Likewise. | |
1466 | * a-wtdeio.ads: Likewise. | |
1467 | * a-wtedit.adb: Likewise. | |
1468 | * a-wtedit.ads: Likewise. | |
1469 | * a-wtenau.adb: Likewise. | |
1470 | * a-wtenau.ads: Likewise. | |
1471 | * a-wtenio.adb: Likewise. | |
1472 | * a-wtenio.ads: Likewise. | |
1473 | * a-wtfiio.adb: Likewise. | |
1474 | * a-wtfiio.ads: Likewise. | |
1475 | * a-wtflau.adb: Likewise. | |
1476 | * a-wtflau.ads: Likewise. | |
1477 | * a-wtflio.adb: Likewise. | |
1478 | * a-wtflio.ads: Likewise. | |
1479 | * a-wtgeau.adb: Likewise. | |
1480 | * a-wtgeau.ads: Likewise. | |
1481 | * a-wtinau.adb: Likewise. | |
1482 | * a-wtinau.ads: Likewise. | |
1483 | * a-wtinio.adb: Likewise. | |
1484 | * a-wtmoau.adb: Likewise. | |
1485 | * a-wtmoau.ads: Likewise. | |
1486 | * a-wtmoio.adb: Likewise. | |
1487 | * a-wtmoio.ads: Likewise. | |
1488 | * a-wttest.adb: Likewise. | |
1489 | * a-wwboio.adb: Likewise. | |
1490 | * a-zchuni.adb: Likewise. | |
1491 | * a-zchuni.ads: Likewise. | |
1492 | * a-ztcoau.adb: Likewise. | |
1493 | * a-ztcoau.ads: Likewise. | |
1494 | * a-ztcoio.adb: Likewise. | |
1495 | * a-ztcstr.adb: Likewise. | |
1496 | * a-ztcstr.ads: Likewise. | |
1497 | * a-ztdeau.adb: Likewise. | |
1498 | * a-ztdeau.ads: Likewise. | |
1499 | * a-ztdeio.adb: Likewise. | |
1500 | * a-ztdeio.ads: Likewise. | |
1501 | * a-ztedit.adb: Likewise. | |
1502 | * a-ztedit.ads: Likewise. | |
1503 | * a-ztenau.adb: Likewise. | |
1504 | * a-ztenau.ads: Likewise. | |
1505 | * a-ztenio.adb: Likewise. | |
1506 | * a-ztenio.ads: Likewise. | |
1507 | * a-ztexio.adb: Likewise. | |
1508 | * a-ztexio.ads: Likewise. | |
1509 | * a-ztfiio.adb: Likewise. | |
1510 | * a-ztfiio.ads: Likewise. | |
1511 | * a-ztflau.adb: Likewise. | |
1512 | * a-ztflau.ads: Likewise. | |
1513 | * a-ztflio.adb: Likewise. | |
1514 | * a-ztflio.ads: Likewise. | |
1515 | * a-ztgeau.adb: Likewise. | |
1516 | * a-ztgeau.ads: Likewise. | |
1517 | * a-ztinau.adb: Likewise. | |
1518 | * a-ztinau.ads: Likewise. | |
1519 | * a-ztinio.adb: Likewise. | |
1520 | * a-ztmoau.adb: Likewise. | |
1521 | * a-ztmoau.ads: Likewise. | |
1522 | * a-ztmoio.adb: Likewise. | |
1523 | * a-ztmoio.ads: Likewise. | |
1524 | * a-zttest.adb: Likewise. | |
1525 | * a-zzboio.adb: Likewise. | |
1526 | * adadecode.c: Likewise. | |
1527 | * adaint.c: Likewise. | |
1528 | * adaint.h: Likewise. | |
1529 | * alloc.ads: Likewise. | |
1530 | * argv.c: Likewise. | |
1531 | * arit64.c: Likewise. | |
1532 | * atree.adb: Likewise. | |
1533 | * atree.ads: Likewise. | |
1534 | * aux-io.c: Likewise. | |
1535 | * cal.c: Likewise. | |
1536 | * casing.adb: Likewise. | |
1537 | * casing.ads: Likewise. | |
1538 | * cio.c: Likewise. | |
1539 | * csets.adb: Likewise. | |
1540 | * csets.ads: Likewise. | |
1541 | * cstreams.c: Likewise. | |
1542 | * ctrl_c.c: Likewise. | |
1543 | * debug.adb: Likewise. | |
1544 | * debug.ads: Likewise. | |
1545 | * dec.ads: Likewise. | |
1546 | * einfo.adb: Likewise. | |
1547 | * einfo.ads: Likewise. | |
1548 | * elists.adb: Likewise. | |
1549 | * elists.ads: Likewise. | |
1550 | * env.c: Likewise. | |
1551 | * env.h: Likewise. | |
1552 | * errno.c: Likewise. | |
1553 | * exit.c: Likewise. | |
1554 | * fe.h: Likewise. | |
1555 | * final.c: Likewise. | |
1556 | * fname.adb: Likewise. | |
1557 | * fname.ads: Likewise. | |
1558 | * g-allein.ads: Likewise. | |
1559 | * g-alleve.adb: Likewise. | |
1560 | * g-alleve.ads: Likewise. | |
1561 | * g-altcon.adb: Likewise. | |
1562 | * g-altcon.ads: Likewise. | |
1563 | * g-altive.ads: Likewise. | |
1564 | * g-alveop.adb: Likewise. | |
1565 | * g-alveop.ads: Likewise. | |
1566 | * g-alvety.ads: Likewise. | |
1567 | * g-alvevi.ads: Likewise. | |
1568 | * g-arrspl.adb: Likewise. | |
1569 | * g-arrspl.ads: Likewise. | |
1570 | * g-calend.ads: Likewise. | |
1571 | * g-comlin.adb: Likewise. | |
1572 | * g-debpoo.adb: Likewise. | |
1573 | * g-debpoo.ads: Likewise. | |
1574 | * g-eacodu-vms.adb: Likewise. | |
1575 | * g-eacodu.adb: Likewise. | |
1576 | * g-excact.adb: Likewise. | |
1577 | * g-excact.ads: Likewise. | |
1578 | * g-locfil.adb: Likewise. | |
1579 | * g-os_lib.ads: Likewise. | |
1580 | * g-rannum.adb: Likewise. | |
1581 | * g-rannum.ads: Likewise. | |
1582 | * g-regist.adb: Likewise. | |
1583 | * g-regist.ads: Likewise. | |
1584 | * g-signal.adb: Likewise. | |
1585 | * g-signal.ads: Likewise. | |
1586 | * g-soccon.ads: Likewise. | |
1587 | * g-string.adb: Likewise. | |
1588 | * g-string.ads: Likewise. | |
1589 | * g-strspl.ads: Likewise. | |
1590 | * g-timsta.adb: Likewise. | |
1591 | * g-timsta.ads: Likewise. | |
1592 | * g-trasym-vms-alpha.adb: Likewise. | |
1593 | * g-trasym-vms-ia64.adb: Likewise. | |
1594 | * g-utf_32.adb: Likewise. | |
1595 | * g-utf_32.ads: Likewise. | |
1596 | * g-wistsp.ads: Likewise. | |
1597 | * g-zstspl.ads: Likewise. | |
1598 | * gmem.c: Likewise. | |
1599 | * gnatvsn.adb: Likewise. | |
1600 | * gnatvsn.ads: Likewise. | |
1601 | * gsocket.h: Likewise. | |
1602 | * hostparm.ads: Likewise. | |
1603 | * i-c.adb: Likewise. | |
1604 | * i-cexten.ads: Likewise. | |
1605 | * i-cobol.adb: Likewise. | |
1606 | * i-cobol.ads: Likewise. | |
1607 | * i-cpoint.adb: Likewise. | |
1608 | * i-cpoint.ads: Likewise. | |
1609 | * i-cpp.adb: Likewise. | |
1610 | * i-cpp.ads: Likewise. | |
1611 | * i-cstrea-vms.adb: Likewise. | |
1612 | * i-cstrea.adb: Likewise. | |
1613 | * i-cstrea.ads: Likewise. | |
1614 | * i-cstrin.adb: Likewise. | |
1615 | * i-cstrin.ads: Likewise. | |
1616 | * i-forbla-darwin.adb: Likewise. | |
1617 | * i-forbla-unimplemented.ads: Likewise. | |
1618 | * i-forbla.adb: Likewise. | |
1619 | * i-forbla.ads: Likewise. | |
1620 | * i-forlap.ads: Likewise. | |
1621 | * i-fortra.adb: Likewise. | |
1622 | * i-pacdec.adb: Likewise. | |
1623 | * i-pacdec.ads: Likewise. | |
1624 | * i-vxwoio.adb: Likewise. | |
1625 | * i-vxwoio.ads: Likewise. | |
1626 | * indepsw-aix.adb: Likewise. | |
1627 | * indepsw-gnu.adb: Likewise. | |
1628 | * indepsw-mingw.adb: Likewise. | |
1629 | * indepsw.adb: Likewise. | |
1630 | * indepsw.ads: Likewise. | |
1631 | * init.c: Likewise. | |
1632 | * initialize.c: Likewise. | |
1633 | * interfac.ads: Likewise. | |
1634 | * krunch.adb: Likewise. | |
1635 | * krunch.ads: Likewise. | |
1636 | * lib-list.adb: Likewise. | |
1637 | * lib-sort.adb: Likewise. | |
1638 | * lib.adb: Likewise. | |
1639 | * lib.ads: Likewise. | |
1640 | * link.c: Likewise. | |
1641 | * math_lib.adb: Likewise. | |
1642 | * memtrack.adb: Likewise. | |
1643 | * mingw32.h: Likewise. | |
1644 | * mkdir.c: Likewise. | |
1645 | * namet-sp.adb: Likewise. | |
1646 | * namet-sp.ads: Likewise. | |
1647 | * namet.adb: Likewise. | |
1648 | * namet.ads: Likewise. | |
1649 | * nlists.adb: Likewise. | |
1650 | * nlists.ads: Likewise. | |
1651 | * opt.adb: Likewise. | |
1652 | * opt.ads: Likewise. | |
1653 | * output.adb: Likewise. | |
1654 | * output.ads: Likewise. | |
1655 | * raise-gcc.c: Likewise. | |
1656 | * raise.c: Likewise. | |
1657 | * raise.h: Likewise. | |
1658 | * repinfo.adb: Likewise. | |
1659 | * repinfo.ads: Likewise. | |
1660 | * repinfo.h: Likewise. | |
1661 | * rident.ads: Likewise. | |
1662 | * s-addima.adb: Likewise. | |
1663 | * s-addima.ads: Likewise. | |
1664 | * s-addope.adb: Likewise. | |
1665 | * s-addope.ads: Likewise. | |
1666 | * s-arit64.adb: Likewise. | |
1667 | * s-arit64.ads: Likewise. | |
1668 | * s-assert.adb: Likewise. | |
1669 | * s-assert.ads: Likewise. | |
1670 | * s-asthan-vms-alpha.adb: Likewise. | |
1671 | * s-asthan.adb: Likewise. | |
1672 | * s-asthan.ads: Likewise. | |
1673 | * s-atacco.adb: Likewise. | |
1674 | * s-atacco.ads: Likewise. | |
1675 | * s-auxdec-empty.adb: Likewise. | |
1676 | * s-auxdec-empty.ads: Likewise. | |
1677 | * s-auxdec-vms_64.ads: Likewise. | |
1678 | * s-auxdec.adb: Likewise. | |
1679 | * s-auxdec.ads: Likewise. | |
1680 | * s-bitops.adb: Likewise. | |
1681 | * s-bitops.ads: Likewise. | |
1682 | * s-boarop.ads: Likewise. | |
1683 | * s-carsi8.adb: Likewise. | |
1684 | * s-carsi8.ads: Likewise. | |
1685 | * s-carun8.adb: Likewise. | |
1686 | * s-carun8.ads: Likewise. | |
1687 | * s-casi16.adb: Likewise. | |
1688 | * s-casi16.ads: Likewise. | |
1689 | * s-casi32.adb: Likewise. | |
1690 | * s-casi32.ads: Likewise. | |
1691 | * s-casi64.adb: Likewise. | |
1692 | * s-casi64.ads: Likewise. | |
1693 | * s-casuti.ads: Likewise. | |
1694 | * s-caun16.adb: Likewise. | |
1695 | * s-caun16.ads: Likewise. | |
1696 | * s-caun32.adb: Likewise. | |
1697 | * s-caun32.ads: Likewise. | |
1698 | * s-caun64.adb: Likewise. | |
1699 | * s-caun64.ads: Likewise. | |
1700 | * s-chepoo.ads: Likewise. | |
1701 | * s-crc32.adb: Likewise. | |
1702 | * s-crc32.ads: Likewise. | |
1703 | * s-crtl.ads: Likewise. | |
1704 | * s-direio.adb: Likewise. | |
1705 | * s-direio.ads: Likewise. | |
1706 | * s-dsaser.ads: Likewise. | |
1707 | * s-except.adb: Likewise. | |
1708 | * s-except.ads: Likewise. | |
1709 | * s-exctab.adb: Likewise. | |
1710 | * s-exctab.ads: Likewise. | |
1711 | * s-exnint.adb: Likewise. | |
1712 | * s-exnint.ads: Likewise. | |
1713 | * s-exnllf.adb: Likewise. | |
1714 | * s-exnllf.ads: Likewise. | |
1715 | * s-exnlli.adb: Likewise. | |
1716 | * s-exnlli.ads: Likewise. | |
1717 | * s-expint.adb: Likewise. | |
1718 | * s-expint.ads: Likewise. | |
1719 | * s-explli.adb: Likewise. | |
1720 | * s-explli.ads: Likewise. | |
1721 | * s-expllu.adb: Likewise. | |
1722 | * s-expllu.ads: Likewise. | |
1723 | * s-expmod.adb: Likewise. | |
1724 | * s-expmod.ads: Likewise. | |
1725 | * s-expuns.adb: Likewise. | |
1726 | * s-expuns.ads: Likewise. | |
1727 | * s-fatflt.ads: Likewise. | |
1728 | * s-fatgen.adb: Likewise. | |
1729 | * s-fatgen.ads: Likewise. | |
1730 | * s-fatlfl.ads: Likewise. | |
1731 | * s-fatllf.ads: Likewise. | |
1732 | * s-fatsfl.ads: Likewise. | |
1733 | * s-ficobl.ads: Likewise. | |
1734 | * s-fileio.adb: Likewise. | |
1735 | * s-fileio.ads: Likewise. | |
1736 | * s-filofl.ads: Likewise. | |
1737 | * s-finimp.adb: Likewise. | |
1738 | * s-finimp.ads: Likewise. | |
1739 | * s-finroo.adb: Likewise. | |
1740 | * s-finroo.ads: Likewise. | |
1741 | * s-fishfl.ads: Likewise. | |
1742 | * s-fore.adb: Likewise. | |
1743 | * s-fore.ads: Likewise. | |
1744 | * s-fvadfl.ads: Likewise. | |
1745 | * s-fvaffl.ads: Likewise. | |
1746 | * s-fvagfl.ads: Likewise. | |
1747 | * s-gearop.adb: Likewise. | |
1748 | * s-gearop.ads: Likewise. | |
1749 | * s-gecobl.adb: Likewise. | |
1750 | * s-gecobl.ads: Likewise. | |
1751 | * s-gecola.adb: Likewise. | |
1752 | * s-gecola.ads: Likewise. | |
1753 | * s-gerebl.adb: Likewise. | |
1754 | * s-gerebl.ads: Likewise. | |
1755 | * s-gerela.adb: Likewise. | |
1756 | * s-gerela.ads: Likewise. | |
1757 | * s-geveop.adb: Likewise. | |
1758 | * s-geveop.ads: Likewise. | |
1759 | * s-gloloc.adb: Likewise. | |
1760 | * s-gloloc.ads: Likewise. | |
1761 | * s-hibaen.ads: Likewise. | |
1762 | * s-imenne.adb: Likewise. | |
1763 | * s-imenne.ads: Likewise. | |
1764 | * s-imgbiu.adb: Likewise. | |
1765 | * s-imgbiu.ads: Likewise. | |
1766 | * s-imgboo.adb: Likewise. | |
1767 | * s-imgboo.ads: Likewise. | |
1768 | * s-imgcha.adb: Likewise. | |
1769 | * s-imgcha.ads: Likewise. | |
1770 | * s-imgdec.adb: Likewise. | |
1771 | * s-imgdec.ads: Likewise. | |
1772 | * s-imgenu.adb: Likewise. | |
1773 | * s-imgenu.ads: Likewise. | |
1774 | * s-imgint.adb: Likewise. | |
1775 | * s-imgint.ads: Likewise. | |
1776 | * s-imgllb.adb: Likewise. | |
1777 | * s-imgllb.ads: Likewise. | |
1778 | * s-imglld.adb: Likewise. | |
1779 | * s-imglld.ads: Likewise. | |
1780 | * s-imglli.adb: Likewise. | |
1781 | * s-imglli.ads: Likewise. | |
1782 | * s-imgllu.adb: Likewise. | |
1783 | * s-imgllu.ads: Likewise. | |
1784 | * s-imgllw.adb: Likewise. | |
1785 | * s-imgllw.ads: Likewise. | |
1786 | * s-imgrea.adb: Likewise. | |
1787 | * s-imgrea.ads: Likewise. | |
1788 | * s-imguns.adb: Likewise. | |
1789 | * s-imguns.ads: Likewise. | |
1790 | * s-imgwch.adb: Likewise. | |
1791 | * s-imgwch.ads: Likewise. | |
1792 | * s-imgwiu.adb: Likewise. | |
1793 | * s-imgwiu.ads: Likewise. | |
1794 | * s-inmaop-dummy.adb: Likewise. | |
1795 | * s-inmaop-vms.adb: Likewise. | |
1796 | * s-inmaop.ads: Likewise. | |
1797 | * s-interr-hwint.adb: Likewise. | |
1798 | * s-interr-sigaction.adb: Likewise. | |
1799 | * s-interr-vms.adb: Likewise. | |
1800 | * s-interr.adb: Likewise. | |
1801 | * s-interr.ads: Likewise. | |
1802 | * s-intman-dummy.adb: Likewise. | |
1803 | * s-intman-mingw.adb: Likewise. | |
1804 | * s-intman-posix.adb: Likewise. | |
1805 | * s-intman-solaris.adb: Likewise. | |
1806 | * s-intman-vms.adb: Likewise. | |
1807 | * s-intman-vms.ads: Likewise. | |
1808 | * s-intman-vxworks.adb: Likewise. | |
1809 | * s-intman-vxworks.ads: Likewise. | |
1810 | * s-intman.ads: Likewise. | |
1811 | * s-io.adb: Likewise. | |
1812 | * s-io.ads: Likewise. | |
1813 | * s-linux-alpha.ads: Likewise. | |
1814 | * s-linux-hppa.ads: Likewise. | |
1815 | * s-linux.ads: Likewise. | |
1816 | * s-maccod.ads: Likewise. | |
1817 | * s-mantis.adb: Likewise. | |
1818 | * s-mantis.ads: Likewise. | |
1819 | * s-mastop-irix.adb: Likewise. | |
1820 | * s-mastop.adb: Likewise. | |
1821 | * s-mastop.ads: Likewise. | |
1822 | * s-memcop.ads: Likewise. | |
1823 | * s-memory-mingw.adb: Likewise. | |
1824 | * s-memory.adb: Likewise. | |
1825 | * s-memory.ads: Likewise. | |
1826 | * s-os_lib.ads: Likewise. | |
1827 | * s-oscons-tmplt.c: Likewise. | |
1828 | * s-osinte-aix.adb: Likewise. | |
1829 | * s-osinte-darwin.adb: Likewise. | |
1830 | * s-osinte-freebsd.adb: Likewise. | |
1831 | * s-osinte-irix.adb: Likewise. | |
1832 | * s-osinte-lynxos-3.adb: Likewise. | |
1833 | * s-osinte-rtems.ads: Likewise. | |
1834 | * s-osinte-tru64.adb: Likewise. | |
1835 | * s-osinte-vxworks-kernel.adb: Likewise. | |
1836 | * s-osinte-vxworks.adb: Likewise. | |
1837 | * s-osprim-mingw.adb: Likewise. | |
1838 | * s-osprim-posix.adb: Likewise. | |
1839 | * s-osprim-solaris.adb: Likewise. | |
1840 | * s-osprim-unix.adb: Likewise. | |
1841 | * s-osprim-vms.adb: Likewise. | |
1842 | * s-osprim-vms.ads: Likewise. | |
1843 | * s-osprim-vxworks.adb: Likewise. | |
1844 | * s-osprim.ads: Likewise. | |
1845 | * s-pack03.adb: Likewise. | |
1846 | * s-pack03.ads: Likewise. | |
1847 | * s-pack05.adb: Likewise. | |
1848 | * s-pack05.ads: Likewise. | |
1849 | * s-pack06.adb: Likewise. | |
1850 | * s-pack06.ads: Likewise. | |
1851 | * s-pack07.adb: Likewise. | |
1852 | * s-pack07.ads: Likewise. | |
1853 | * s-pack09.adb: Likewise. | |
1854 | * s-pack09.ads: Likewise. | |
1855 | * s-pack10.adb: Likewise. | |
1856 | * s-pack10.ads: Likewise. | |
1857 | * s-pack11.adb: Likewise. | |
1858 | * s-pack11.ads: Likewise. | |
1859 | * s-pack12.adb: Likewise. | |
1860 | * s-pack12.ads: Likewise. | |
1861 | * s-pack13.adb: Likewise. | |
1862 | * s-pack13.ads: Likewise. | |
1863 | * s-pack14.adb: Likewise. | |
1864 | * s-pack14.ads: Likewise. | |
1865 | * s-pack15.adb: Likewise. | |
1866 | * s-pack15.ads: Likewise. | |
1867 | * s-pack17.adb: Likewise. | |
1868 | * s-pack17.ads: Likewise. | |
1869 | * s-pack18.adb: Likewise. | |
1870 | * s-pack18.ads: Likewise. | |
1871 | * s-pack19.adb: Likewise. | |
1872 | * s-pack19.ads: Likewise. | |
1873 | * s-pack20.adb: Likewise. | |
1874 | * s-pack20.ads: Likewise. | |
1875 | * s-pack21.adb: Likewise. | |
1876 | * s-pack21.ads: Likewise. | |
1877 | * s-pack22.adb: Likewise. | |
1878 | * s-pack22.ads: Likewise. | |
1879 | * s-pack23.adb: Likewise. | |
1880 | * s-pack23.ads: Likewise. | |
1881 | * s-pack24.adb: Likewise. | |
1882 | * s-pack24.ads: Likewise. | |
1883 | * s-pack25.adb: Likewise. | |
1884 | * s-pack25.ads: Likewise. | |
1885 | * s-pack26.adb: Likewise. | |
1886 | * s-pack26.ads: Likewise. | |
1887 | * s-pack27.adb: Likewise. | |
1888 | * s-pack27.ads: Likewise. | |
1889 | * s-pack28.adb: Likewise. | |
1890 | * s-pack28.ads: Likewise. | |
1891 | * s-pack29.adb: Likewise. | |
1892 | * s-pack29.ads: Likewise. | |
1893 | * s-pack30.adb: Likewise. | |
1894 | * s-pack30.ads: Likewise. | |
1895 | * s-pack31.adb: Likewise. | |
1896 | * s-pack31.ads: Likewise. | |
1897 | * s-pack33.adb: Likewise. | |
1898 | * s-pack33.ads: Likewise. | |
1899 | * s-pack34.adb: Likewise. | |
1900 | * s-pack34.ads: Likewise. | |
1901 | * s-pack35.adb: Likewise. | |
1902 | * s-pack35.ads: Likewise. | |
1903 | * s-pack36.adb: Likewise. | |
1904 | * s-pack36.ads: Likewise. | |
1905 | * s-pack37.adb: Likewise. | |
1906 | * s-pack37.ads: Likewise. | |
1907 | * s-pack38.adb: Likewise. | |
1908 | * s-pack38.ads: Likewise. | |
1909 | * s-pack39.adb: Likewise. | |
1910 | * s-pack39.ads: Likewise. | |
1911 | * s-pack40.adb: Likewise. | |
1912 | * s-pack40.ads: Likewise. | |
1913 | * s-pack41.adb: Likewise. | |
1914 | * s-pack41.ads: Likewise. | |
1915 | * s-pack42.adb: Likewise. | |
1916 | * s-pack42.ads: Likewise. | |
1917 | * s-pack43.adb: Likewise. | |
1918 | * s-pack43.ads: Likewise. | |
1919 | * s-pack44.adb: Likewise. | |
1920 | * s-pack44.ads: Likewise. | |
1921 | * s-pack45.adb: Likewise. | |
1922 | * s-pack45.ads: Likewise. | |
1923 | * s-pack46.adb: Likewise. | |
1924 | * s-pack46.ads: Likewise. | |
1925 | * s-pack47.adb: Likewise. | |
1926 | * s-pack47.ads: Likewise. | |
1927 | * s-pack48.adb: Likewise. | |
1928 | * s-pack48.ads: Likewise. | |
1929 | * s-pack49.adb: Likewise. | |
1930 | * s-pack49.ads: Likewise. | |
1931 | * s-pack50.adb: Likewise. | |
1932 | * s-pack50.ads: Likewise. | |
1933 | * s-pack51.adb: Likewise. | |
1934 | * s-pack51.ads: Likewise. | |
1935 | * s-pack52.adb: Likewise. | |
1936 | * s-pack52.ads: Likewise. | |
1937 | * s-pack53.adb: Likewise. | |
1938 | * s-pack53.ads: Likewise. | |
1939 | * s-pack54.adb: Likewise. | |
1940 | * s-pack54.ads: Likewise. | |
1941 | * s-pack55.adb: Likewise. | |
1942 | * s-pack55.ads: Likewise. | |
1943 | * s-pack56.adb: Likewise. | |
1944 | * s-pack56.ads: Likewise. | |
1945 | * s-pack57.adb: Likewise. | |
1946 | * s-pack57.ads: Likewise. | |
1947 | * s-pack58.adb: Likewise. | |
1948 | * s-pack58.ads: Likewise. | |
1949 | * s-pack59.adb: Likewise. | |
1950 | * s-pack59.ads: Likewise. | |
1951 | * s-pack60.adb: Likewise. | |
1952 | * s-pack60.ads: Likewise. | |
1953 | * s-pack61.adb: Likewise. | |
1954 | * s-pack61.ads: Likewise. | |
1955 | * s-pack62.adb: Likewise. | |
1956 | * s-pack62.ads: Likewise. | |
1957 | * s-pack63.adb: Likewise. | |
1958 | * s-pack63.ads: Likewise. | |
1959 | * s-parame-ae653.ads: Likewise. | |
1960 | * s-parame-hpux.ads: Likewise. | |
1961 | * s-parame-rtems.adb: Likewise. | |
1962 | * s-parame-vms-alpha.ads: Likewise. | |
1963 | * s-parame-vms-ia64.ads: Likewise. | |
1964 | * s-parame-vms-restrict.ads: Likewise. | |
1965 | * s-parame-vxworks.adb: Likewise. | |
1966 | * s-parame-vxworks.ads: Likewise. | |
1967 | * s-parame.adb: Likewise. | |
1968 | * s-parame.ads: Likewise. | |
1969 | * s-parint.adb: Likewise. | |
1970 | * s-parint.ads: Likewise. | |
1971 | * s-pooglo.adb: Likewise. | |
1972 | * s-pooglo.ads: Likewise. | |
1973 | * s-pooloc.adb: Likewise. | |
1974 | * s-pooloc.ads: Likewise. | |
1975 | * s-poosiz.adb: Likewise. | |
1976 | * s-poosiz.ads: Likewise. | |
1977 | * s-powtab.ads: Likewise. | |
1978 | * s-proinf-irix-athread.adb: Likewise. | |
1979 | * s-proinf-irix-athread.ads: Likewise. | |
1980 | * s-proinf.adb: Likewise. | |
1981 | * s-proinf.ads: Likewise. | |
1982 | * s-purexc.ads: Likewise. | |
1983 | * s-rannum.adb: Likewise. | |
1984 | * s-rannum.ads: Likewise. | |
1985 | * s-restri.adb: Likewise. | |
1986 | * s-restri.ads: Likewise. | |
1987 | * s-rident.ads: Likewise. | |
1988 | * s-rpc.adb: Likewise. | |
1989 | * s-rpc.ads: Likewise. | |
1990 | * s-scaval.adb: Likewise. | |
1991 | * s-scaval.ads: Likewise. | |
1992 | * s-secsta.adb: Likewise. | |
1993 | * s-secsta.ads: Likewise. | |
1994 | * s-sequio.adb: Likewise. | |
1995 | * s-sequio.ads: Likewise. | |
1996 | * s-shasto.adb: Likewise. | |
1997 | * s-shasto.ads: Likewise. | |
1998 | * s-soflin.adb: Likewise. | |
1999 | * s-soflin.ads: Likewise. | |
2000 | * s-solita.adb: Likewise. | |
2001 | * s-solita.ads: Likewise. | |
2002 | * s-sopco3.adb: Likewise. | |
2003 | * s-sopco3.ads: Likewise. | |
2004 | * s-sopco4.adb: Likewise. | |
2005 | * s-sopco4.ads: Likewise. | |
2006 | * s-sopco5.adb: Likewise. | |
2007 | * s-sopco5.ads: Likewise. | |
2008 | * s-stache.adb: Likewise. | |
2009 | * s-stache.ads: Likewise. | |
2010 | * s-stalib.adb: Likewise. | |
2011 | * s-stalib.ads: Likewise. | |
2012 | * s-stausa.adb: Likewise. | |
2013 | * s-stausa.ads: Likewise. | |
2014 | * s-stchop-limit.ads: Likewise. | |
2015 | * s-stchop-rtems.adb: Likewise. | |
2016 | * s-stchop-vxworks.adb: Likewise. | |
2017 | * s-stchop.adb: Likewise. | |
2018 | * s-stchop.ads: Likewise. | |
2019 | * s-stoele.adb: Likewise. | |
2020 | * s-stoele.ads: Likewise. | |
2021 | * s-stopoo.adb: Likewise. | |
2022 | * s-stopoo.ads: Likewise. | |
2023 | * s-stratt.adb: Likewise. | |
2024 | * s-stratt.ads: Likewise. | |
2025 | * s-strcom.adb: Likewise. | |
2026 | * s-strcom.ads: Likewise. | |
2027 | * s-string.adb: Likewise. | |
2028 | * s-string.ads: Likewise. | |
2029 | * s-strops.adb: Likewise. | |
2030 | * s-strops.ads: Likewise. | |
2031 | * s-strxdr.adb: Likewise. | |
2032 | * s-ststop.adb: Likewise. | |
2033 | * s-ststop.ads: Likewise. | |
2034 | * s-taasde.adb: Likewise. | |
2035 | * s-taasde.ads: Likewise. | |
2036 | * s-tadeca.adb: Likewise. | |
2037 | * s-tadeca.ads: Likewise. | |
2038 | * s-tadert.adb: Likewise. | |
2039 | * s-tadert.ads: Likewise. | |
2040 | * s-taenca.adb: Likewise. | |
2041 | * s-taenca.ads: Likewise. | |
2042 | * s-taprob.ads: Likewise. | |
2043 | * s-taprop-dummy.adb: Likewise. | |
2044 | * s-taprop-hpux-dce.adb: Likewise. | |
2045 | * s-taprop-irix.adb: Likewise. | |
2046 | * s-taprop-linux.adb: Likewise. | |
2047 | * s-taprop-lynxos.adb: Likewise. | |
2048 | * s-taprop-mingw.adb: Likewise. | |
2049 | * s-taprop-posix.adb: Likewise. | |
2050 | * s-taprop-solaris.adb: Likewise. | |
2051 | * s-taprop-tru64.adb: Likewise. | |
2052 | * s-taprop-vms.adb: Likewise. | |
2053 | * s-taprop-vxworks.adb: Likewise. | |
2054 | * s-taprop.ads: Likewise. | |
2055 | * s-tarest.adb: Likewise. | |
2056 | * s-tarest.ads: Likewise. | |
2057 | * s-tasdeb.adb: Likewise. | |
2058 | * s-tasdeb.ads: Likewise. | |
2059 | * s-tasinf-irix.ads: Likewise. | |
2060 | * s-tasinf-linux.adb: Likewise. | |
2061 | * s-tasinf-linux.ads: Likewise. | |
2062 | * s-tasinf-mingw.adb: Likewise. | |
2063 | * s-tasinf-mingw.ads: Likewise. | |
2064 | * s-tasinf-solaris.adb: Likewise. | |
2065 | * s-tasinf-solaris.ads: Likewise. | |
2066 | * s-tasinf-tru64.ads: Likewise. | |
2067 | * s-tasinf.adb: Likewise. | |
2068 | * s-tasinf.ads: Likewise. | |
2069 | * s-tasini.adb: Likewise. | |
2070 | * s-tasini.ads: Likewise. | |
2071 | * s-taskin.adb: Likewise. | |
2072 | * s-taskin.ads: Likewise. | |
2073 | * s-taspri-dummy.ads: Likewise. | |
2074 | * s-taspri-hpux-dce.ads: Likewise. | |
2075 | * s-taspri-mingw.ads: Likewise. | |
2076 | * s-taspri-solaris.ads: Likewise. | |
2077 | * s-taspri-tru64.ads: Likewise. | |
2078 | * s-taspri-vms.ads: Likewise. | |
2079 | * s-taspri-vxworks.ads: Likewise. | |
2080 | * s-tasque.adb: Likewise. | |
2081 | * s-tasque.ads: Likewise. | |
2082 | * s-tasren.adb: Likewise. | |
2083 | * s-tasren.ads: Likewise. | |
2084 | * s-tasres.ads: Likewise. | |
2085 | * s-tassta.adb: Likewise. | |
2086 | * s-tassta.ads: Likewise. | |
2087 | * s-tasuti.adb: Likewise. | |
2088 | * s-tasuti.ads: Likewise. | |
2089 | * s-tfsetr-default.adb: Likewise. | |
2090 | * s-tfsetr-vxworks.adb: Likewise. | |
2091 | * s-tpinop.adb: Likewise. | |
2092 | * s-tpinop.ads: Likewise. | |
2093 | * s-tpoben.adb: Likewise. | |
2094 | * s-tpoben.ads: Likewise. | |
2095 | * s-tpobop.adb: Likewise. | |
2096 | * s-tpobop.ads: Likewise. | |
2097 | * s-tpopde-vms.adb: Likewise. | |
2098 | * s-tpopde-vms.ads: Likewise. | |
2099 | * s-tpopsp-lynxos.adb: Likewise. | |
2100 | * s-tpopsp-posix-foreign.adb: Likewise. | |
2101 | * s-tpopsp-posix.adb: Likewise. | |
2102 | * s-tpopsp-solaris.adb: Likewise. | |
2103 | * s-tpopsp-vxworks.adb: Likewise. | |
2104 | * s-tporft.adb: Likewise. | |
2105 | * s-tposen.adb: Likewise. | |
2106 | * s-tposen.ads: Likewise. | |
2107 | * s-traceb.adb: Likewise. | |
2108 | * s-traceb.ads: Likewise. | |
2109 | * s-traces-default.adb: Likewise. | |
2110 | * s-traces.adb: Likewise. | |
2111 | * s-traces.ads: Likewise. | |
2112 | * s-traent-vms.adb: Likewise. | |
2113 | * s-traent-vms.ads: Likewise. | |
2114 | * s-traent.adb: Likewise. | |
2115 | * s-traent.ads: Likewise. | |
2116 | * s-trafor-default.adb: Likewise. | |
2117 | * s-trafor-default.ads: Likewise. | |
2118 | * s-tratas-default.adb: Likewise. | |
2119 | * s-tratas.adb: Likewise. | |
2120 | * s-tratas.ads: Likewise. | |
2121 | * s-unstyp.ads: Likewise. | |
2122 | * s-utf_32.adb: Likewise. | |
2123 | * s-utf_32.ads: Likewise. | |
2124 | * s-vaflop-vms-alpha.adb: Likewise. | |
2125 | * s-vaflop.adb: Likewise. | |
2126 | * s-vaflop.ads: Likewise. | |
2127 | * s-valboo.adb: Likewise. | |
2128 | * s-valboo.ads: Likewise. | |
2129 | * s-valcha.adb: Likewise. | |
2130 | * s-valcha.ads: Likewise. | |
2131 | * s-valdec.adb: Likewise. | |
2132 | * s-valdec.ads: Likewise. | |
2133 | * s-valenu.adb: Likewise. | |
2134 | * s-valenu.ads: Likewise. | |
2135 | * s-valint.adb: Likewise. | |
2136 | * s-valint.ads: Likewise. | |
2137 | * s-vallld.adb: Likewise. | |
2138 | * s-vallld.ads: Likewise. | |
2139 | * s-vallli.adb: Likewise. | |
2140 | * s-vallli.ads: Likewise. | |
2141 | * s-valllu.adb: Likewise. | |
2142 | * s-valllu.ads: Likewise. | |
2143 | * s-valrea.adb: Likewise. | |
2144 | * s-valrea.ads: Likewise. | |
2145 | * s-valuns.adb: Likewise. | |
2146 | * s-valuns.ads: Likewise. | |
2147 | * s-valuti.adb: Likewise. | |
2148 | * s-valuti.ads: Likewise. | |
2149 | * s-valwch.adb: Likewise. | |
2150 | * s-valwch.ads: Likewise. | |
2151 | * s-veboop.adb: Likewise. | |
2152 | * s-veboop.ads: Likewise. | |
2153 | * s-vector.ads: Likewise. | |
2154 | * s-vercon.adb: Likewise. | |
2155 | * s-vercon.ads: Likewise. | |
2156 | * s-vmexta.adb: Likewise. | |
2157 | * s-vmexta.ads: Likewise. | |
2158 | * s-vxwext-kernel.ads: Likewise. | |
2159 | * s-vxwext-rtp.adb: Likewise. | |
2160 | * s-vxwext-rtp.ads: Likewise. | |
2161 | * s-vxwext.ads: Likewise. | |
2162 | * s-vxwork-arm.ads: Likewise. | |
2163 | * s-vxwork-m68k.ads: Likewise. | |
2164 | * s-vxwork-mips.ads: Likewise. | |
2165 | * s-vxwork-ppc.ads: Likewise. | |
2166 | * s-vxwork-sparcv9.ads: Likewise. | |
2167 | * s-vxwork-x86.ads: Likewise. | |
2168 | * s-wchcnv.adb: Likewise. | |
2169 | * s-wchcnv.ads: Likewise. | |
2170 | * s-wchcon.adb: Likewise. | |
2171 | * s-wchcon.ads: Likewise. | |
2172 | * s-wchjis.adb: Likewise. | |
2173 | * s-wchjis.ads: Likewise. | |
2174 | * s-wchstw.adb: Likewise. | |
2175 | * s-wchstw.ads: Likewise. | |
2176 | * s-wchwts.adb: Likewise. | |
2177 | * s-wchwts.ads: Likewise. | |
2178 | * s-widboo.adb: Likewise. | |
2179 | * s-widboo.ads: Likewise. | |
2180 | * s-widcha.adb: Likewise. | |
2181 | * s-widcha.ads: Likewise. | |
2182 | * s-widenu.adb: Likewise. | |
2183 | * s-widenu.ads: Likewise. | |
2184 | * s-widlli.adb: Likewise. | |
2185 | * s-widlli.ads: Likewise. | |
2186 | * s-widllu.adb: Likewise. | |
2187 | * s-widllu.ads: Likewise. | |
2188 | * s-widwch.adb: Likewise. | |
2189 | * s-widwch.ads: Likewise. | |
2190 | * s-win32.ads: Likewise. | |
2191 | * s-winext.ads: Likewise. | |
2192 | * s-wwdcha.adb: Likewise. | |
2193 | * s-wwdcha.ads: Likewise. | |
2194 | * s-wwdenu.adb: Likewise. | |
2195 | * s-wwdenu.ads: Likewise. | |
2196 | * s-wwdwch.adb: Likewise. | |
2197 | * s-wwdwch.ads: Likewise. | |
2198 | * scans.adb: Likewise. | |
2199 | * scans.ads: Likewise. | |
2200 | * seh_init.c: Likewise. | |
2201 | * sfn_scan.adb: Likewise. | |
2202 | * sinfo.adb: Likewise. | |
2203 | * sinfo.ads: Likewise. | |
2204 | * sinput.adb: Likewise. | |
2205 | * sinput.ads: Likewise. | |
2206 | * snames.adb: Likewise. | |
2207 | * snames.ads: Likewise. | |
2208 | * socket.c: Likewise. | |
2209 | * stand.adb: Likewise. | |
2210 | * stand.ads: Likewise. | |
2211 | * stringt.adb: Likewise. | |
2212 | * stringt.ads: Likewise. | |
2213 | * sysdep.c: Likewise. | |
2214 | * system-aix.ads: Likewise. | |
2215 | * system-darwin-ppc.ads: Likewise. | |
2216 | * system-darwin-x86.ads: Likewise. | |
2217 | * system-darwin-x86_64.ads: Likewise. | |
2218 | * system-freebsd-x86.ads: Likewise. | |
2219 | * system-hpux-ia64.ads: Likewise. | |
2220 | * system-hpux.ads: Likewise. | |
2221 | * system-irix-n32.ads: Likewise. | |
2222 | * system-irix-n64.ads: Likewise. | |
2223 | * system-irix-o32.ads: Likewise. | |
2224 | * system-linux-alpha.ads: Likewise. | |
2225 | * system-linux-hppa.ads: Likewise. | |
2226 | * system-linux-ia64.ads: Likewise. | |
2227 | * system-linux-mips.ads: Likewise. | |
2228 | * system-linux-mipsel.ads: Likewise. | |
2229 | * system-linux-ppc.ads: Likewise. | |
2230 | * system-linux-ppc64.ads: Likewise. | |
2231 | * system-linux-s390.ads: Likewise. | |
2232 | * system-linux-s390x.ads: Likewise. | |
2233 | * system-linux-sh4.ads: Likewise. | |
2234 | * system-linux-sparc.ads: Likewise. | |
2235 | * system-linux-sparcv9.ads: Likewise. | |
2236 | * system-linux-x86.ads: Likewise. | |
2237 | * system-linux-x86_64.ads: Likewise. | |
2238 | * system-lynxos-ppc.ads: Likewise. | |
2239 | * system-lynxos-x86.ads: Likewise. | |
2240 | * system-mingw-x86_64.ads: Likewise. | |
2241 | * system-mingw.ads: Likewise. | |
2242 | * system-rtems.ads: Likewise. | |
2243 | * system-solaris-sparc.ads: Likewise. | |
2244 | * system-solaris-sparcv9.ads: Likewise. | |
2245 | * system-solaris-x86.ads: Likewise. | |
2246 | * system-solaris-x86_64.ads: Likewise. | |
2247 | * system-tru64.ads: Likewise. | |
2248 | * system-vms-ia64.ads: Likewise. | |
2249 | * system-vms-zcx.ads: Likewise. | |
2250 | * system-vms.ads: Likewise. | |
2251 | * system-vms_64.ads: Likewise. | |
2252 | * system-vxworks-arm.ads: Likewise. | |
2253 | * system-vxworks-m68k.ads: Likewise. | |
2254 | * system-vxworks-mips.ads: Likewise. | |
2255 | * system-vxworks-ppc.ads: Likewise. | |
2256 | * system-vxworks-sparcv9.ads: Likewise. | |
2257 | * system-vxworks-x86.ads: Likewise. | |
2258 | * system.ads: Likewise. | |
2259 | * table.adb: Likewise. | |
2260 | * table.ads: Likewise. | |
2261 | * targext.c: Likewise. | |
2262 | * targparm.ads: Likewise. | |
2263 | * tree_in.adb: Likewise. | |
2264 | * tree_in.ads: Likewise. | |
2265 | * tree_io.adb: Likewise. | |
2266 | * tree_io.ads: Likewise. | |
2267 | * types.adb: Likewise. | |
2268 | * types.ads: Likewise. | |
2269 | * uintp.adb: Likewise. | |
2270 | * uintp.ads: Likewise. | |
2271 | * uname.adb: Likewise. | |
2272 | * uname.ads: Likewise. | |
2273 | * urealp.adb: Likewise. | |
2274 | * urealp.ads: Likewise. | |
2275 | * vx_stack_info.c: Likewise. | |
2276 | * widechar.adb: Likewise. | |
2277 | * widechar.ads: Likewise. | |
2278 | * exp_attr.adb: Change copyright header to refer to version | |
2279 | 3 of the GNU General Public License and to point readers at the | |
2280 | COPYING3 file and the FSF's license web page. | |
2281 | * sem.adb: Likewise. | |
2282 | * sem_attr.ads: Likewise. | |
2283 | * freeze.adb: Likewise. | |
2284 | * freeze.ads: Likewise. | |
2285 | * errout.ads: Likewise. | |
2286 | * erroutc.adb: Likewise. | |
2287 | * exp_ch11.ads: Likewise. | |
2288 | ||
2289 | 2009-04-09 Jakub Jelinek <jakub@redhat.com> | |
2290 | ||
2291 | * config-lang.in: Change copyright header to refer to version | |
2292 | 3 of the GNU General Public License and to point readers at the | |
2293 | COPYING3 file and the FSF's license web page. | |
2294 | * gcc-interface/trans.c: Likewise. | |
2295 | * gnathtml.pl: Likewise. | |
2296 | * gcc-interface/ada.h: Likewise. Remove runtime exception. | |
2297 | * gcc-interface/gigi.h: Likewise. | |
2298 | * gcc-interface/misc.c: Likewise. | |
2299 | * gcc-interface/targtyps.c: Likewise. | |
2300 | ||
7cab648c | 2301 | 2009-04-09 Nicolas Setton <setton@adacore.com> |
2302 | ||
2303 | * s-osinte-darwin.ads: Fix wrong binding to struc timeval. | |
2304 | ||
2305 | * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of | |
2306 | struct_timeval. | |
2307 | ||
2308 | 2009-04-09 Bob Duff <duff@adacore.com> | |
2309 | ||
2310 | * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in | |
2311 | internally-generated nodes related to select statements to avoid | |
2312 | confusing the debugger. | |
2313 | ||
2314 | 2009-04-09 Pascal Obry <obry@adacore.com> | |
2315 | ||
2316 | * make.adb: Ensure that all linker arguments are duplicated. | |
2317 | ||
f41ce91a | 2318 | 2009-04-09 Robert Dewar <dewar@adacore.com> |
2319 | ||
2320 | * sem_ch5.adb: Minor reformatting | |
2321 | ||
2322 | 2009-04-09 Vincent Celier <celier@adacore.com> | |
2323 | ||
2324 | * vms_data.ads: | |
2325 | Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT | |
2326 | New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn | |
2327 | New qualifier /LXDEBUG=nnn for -gnatDnnn | |
2328 | For H820-010 | |
2329 | ||
2330 | * gnat_ugn.texi: | |
2331 | Update documentation for VMS qualifiers equivalent to -gnatGnn and | |
2332 | -gnatDnn | |
2333 | ||
2334 | 2009-04-09 Nicolas Setton <setton@adacore.com> | |
2335 | ||
2336 | * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long, | |
2337 | to match layout of siginfo_t in sys/signal.h. | |
2338 | ||
2339 | * gcc-interface/Makefile.in: Add section for x86_64 darwin. | |
2340 | ||
2341 | 2009-04-09 Thomas Quinot <quinot@adacore.com> | |
2342 | ||
2343 | * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment. | |
2344 | ||
2345 | 2009-04-09 Nicolas Setton <setton@adacore.com> | |
2346 | ||
2347 | * s-oscons-tmplt.c: Allow long lines in the generated spec. | |
2348 | Add generation of Darwin-specific constants needed when binding to the | |
2349 | pthread library. | |
2350 | ||
2351 | 2009-04-09 Robert Dewar <dewar@adacore.com> | |
2352 | ||
2353 | * checks.adb: | |
2354 | (Insert_Valid_Check): Avoid unnecessary generation of junk declaration | |
2355 | when no invalid values exist, Avoid duplicate read of atomic variable. | |
2356 | ||
2357 | * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid | |
2358 | (Standard_Unsigned): Set Is_Known_Valid | |
2359 | ||
2360 | * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on | |
2361 | subtype declaration if no constraint. | |
2362 | (Set_Modular_Size): Set Is_Known_Valid if appropriate | |
2363 | (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint | |
2364 | ||
5e81d637 | 2365 | 2009-04-09 Robert Dewar <dewar@adacore.com> |
2366 | ||
2367 | * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb, | |
2368 | switch.ads: for numeric switches, an optional equal sign is always | |
2369 | allowed. | |
2370 | ||
2371 | 2009-04-09 Vincent Celier <celier@adacore.com> | |
2372 | ||
2373 | * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where | |
2374 | the case of file names is not significant. | |
2375 | ||
ecf90fb4 | 2376 | 2009-04-09 Vincent Celier <celier@adacore.com> |
2377 | ||
2378 | * errout.adb: Remove dependency on package Style | |
2379 | ||
2380 | * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function, | |
2381 | moved to Stylesw. | |
2382 | ||
2383 | * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from | |
2384 | Styleg. | |
2385 | ||
2386 | * errutil.adb, par.adb: Import Stylesw | |
2387 | ||
2388 | 2009-04-09 Arnaud Charlet <charlet@adacore.com> | |
2389 | ||
2390 | * opt.ads: Fix typos. | |
2391 | ||
2392 | 2009-04-09 Robert Dewar <dewar@adacore.com> | |
2393 | ||
2394 | * einfo.adb: Minor reformatting | |
2395 | ||
2eabe08b | 2396 | 2009-04-09 Robert Dewar <dewar@adacore.com> |
2397 | ||
2398 | * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style | |
2399 | units. | |
2400 | ||
2401 | * styleg-c.ads, styleg-c.adb: Removed, no longer used. | |
2402 | ||
b56de1bc | 2403 | 2009-04-09 Robert Dewar <dewar@adacore.com> |
2404 | ||
2405 | * g-comver.adb: Minor reformatting. | |
2406 | ||
2407 | 2009-04-09 Thomas Quinot <quinot@adacore.com> | |
2408 | ||
2409 | * lib-load.ads (Load_Unit): Update documentation. | |
2410 | ||
2411 | 2009-04-09 Ed Schonberg <schonberg@adacore.com> | |
2412 | ||
2413 | * lib-load.adb (Load_Unit): When loading the parent of a child unit | |
2414 | named in a with_clause, retain the with_clause to preserve a | |
2415 | limited_with indication. | |
2416 | ||
7ab0189d | 2417 | 2009-04-09 Robert Dewar <dewar@adacore.com> |
2418 | ||
2419 | * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb, | |
2420 | exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb, | |
2421 | sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where | |
2422 | possible to replace an OR of two separate tests. | |
2423 | ||
15175b09 | 2424 | 2009-04-09 Robert Dewar <dewar@adacore.com> |
2425 | ||
2426 | * binderr.adb, errout.adb, errutil.adb: New circuitry for handling | |
2427 | Maximum_Messages. | |
2428 | ||
2429 | * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global | |
2430 | warning status as well. | |
2431 | ||
2432 | * opt.ads (Maximum_Messages): New name for Maximum_Errors. | |
2433 | ||
2434 | * switch-b.adb, switch-c.adb: Change name Maximum_Errors to | |
2435 | Maximum_Messages. | |
2436 | ||
2437 | * bindusg.adb, usage.adb: Update line for -gnatm switch | |
2438 | ||
2439 | * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and | |
2440 | -mnn binder switch. | |
2441 | ||
2442 | 2009-04-09 Robert Dewar <dewar@adacore.com> | |
2443 | ||
2444 | * sem_ch10.adb: Minor reformatting. | |
2445 | ||
7efd77ab | 2446 | 2009-04-09 Bob Duff <duff@adacore.com> |
2447 | ||
2448 | * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler): | |
2449 | Set Sloc of generated nodes for calls to Undefer_Aborts and | |
2450 | Save_Occurrence to No_Location, so the debugger ignores them and | |
2451 | therefore does not jump back and forth when single stepping. | |
2452 | ||
2453 | 2009-04-09 Robert Dewar <dewar@adacore.com> | |
2454 | ||
2455 | * switch-b.adb: Minor reformatting. | |
2456 | ||
d60c9ff7 | 2457 | 2009-04-09 Robert Dewar <dewar@adacore.com> |
2458 | ||
2459 | * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb, | |
2460 | sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb, | |
2461 | exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb, | |
2462 | sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb, | |
2463 | einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb, | |
2464 | tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb, | |
2465 | exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb, | |
2466 | sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb, | |
2467 | sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb, | |
2468 | sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb: | |
2469 | Reorganize einfo/sem_aux, moving routines from einfo to sem_aux | |
2470 | ||
bfd188a4 | 2471 | 2009-04-09 Robert Dewar <dewar@adacore.com> |
2472 | ||
2473 | * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code. | |
2474 | ||
2475 | * atree.h: Add Elist26 | |
2476 | ||
2477 | * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc | |
2478 | backends. | |
2479 | ||
f301a57b | 2480 | 2009-04-09 Javier Miranda <miranda@adacore.com> |
2481 | ||
2482 | * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to | |
2483 | retrieve from the Dispatch_Table_Wrappers list the external name. | |
2484 | Addition of documentation. | |
2485 | (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is | |
2486 | used to export secondary dispatch tables (in the previous version of | |
2487 | the frontend only primary dispatch tables were exported). Addition of | |
2488 | documentation. | |
2489 | (Import_DT): New subprogram (internal of Make_Tags). Used to import a | |
2490 | dispatch table of a given tagged type. | |
2491 | (Make_Tags): Modified to import secondary dispatch tables. | |
2492 | ||
2493 | * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup. | |
2494 | (Constant_Redeclaration): Code cleanup. | |
2495 | ||
2496 | * einfo.ads (Dispatch_Table_Wrapper): Renamed to | |
2497 | Dispatch_Table_Wrappers. Update documentation. | |
2498 | ||
2499 | * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper): | |
2500 | Renamed to Dispatch_Table_Wrappers. | |
2501 | ||
2502 | * sem_util.adb (Collect_Interface_Components): Improve handling of | |
2503 | private types. | |
2504 | ||
2505 | * atree.ads (Elist26, Set_Elist26): New subprograms | |
2506 | ||
2507 | * atree.adb (Elist26, Set_Elist26): New subprograms | |
2508 | ||
d70d22d5 | 2509 | 2009-04-09 Javier Miranda <miranda@adacore.com> |
2510 | ||
2511 | * sem_ch3.adb (Build_Derived_Record_Type): Fix typo. | |
2512 | (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of | |
2513 | tagged types. | |
2514 | ||
2515 | 2009-04-09 Robert Dewar <dewar@adacore.com> | |
2516 | ||
2517 | * s-direio.adb: Minor reformatting | |
2518 | ||
2519 | * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String | |
2520 | ||
b6772205 | 2521 | 2009-04-09 Robert Dewar <dewar@adacore.com> |
2522 | ||
2523 | * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases | |
2524 | ||
2525 | 2009-04-09 Pascal Obry <obry@adacore.com> | |
2526 | ||
2527 | * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads, | |
2528 | s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads, | |
2529 | a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads, | |
2530 | a-filico.ads: Add some missing overriding keywords. | |
2531 | ||
c640b24a | 2532 | 2009-04-09 Pascal Obry <obry@adacore.com> |
2533 | ||
2534 | * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb, | |
2535 | a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads, | |
2536 | a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor | |
2537 | reformatting. | |
2538 | ||
2539 | 2009-04-09 Ed Schonberg <schonberg@adacore.com> | |
2540 | ||
2541 | * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on | |
2542 | missing overriding indicator if the new declaration is not seen as | |
2543 | primitive. | |
2544 | ||
a50e85e5 | 2545 | 2009-04-09 Thomas Quinot <quinot@adacore.com> |
2546 | ||
2547 | * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle | |
2548 | overflows in computation of bounds. | |
2549 | ||
2550 | 2009-04-09 Pascal Obry <obry@adacore.com> | |
2551 | ||
2552 | * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some | |
2553 | typos in comment. | |
2554 | ||
89a24c22 | 2555 | 2009-04-09 Robert Dewar <dewar@adacore.com> |
2556 | ||
2557 | * sem_attr.adb (Check_Stream_Attribute): Check violation of | |
2558 | restriction No_Streams | |
2559 | ||
2560 | * gnat_rm.texi: Clarify No_Streams restriction | |
2561 | ||
2562 | * g-socket.adb: Minor reformatting. | |
2563 | ||
2564 | 2009-04-09 Thomas Quinot <quinot@adacore.com> | |
2565 | ||
2566 | * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces. | |
2567 | ||
2568 | 2009-04-09 Geert Bosch <bosch@adacore.com> | |
2569 | ||
2570 | * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument. | |
2571 | (Set_Result): Likewise. | |
2572 | (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the | |
2573 | conversion, as required by RM 4.6(31). | |
2574 | ||
75209ec5 | 2575 | 2009-04-08 Robert Dewar <dewar@adacore.com> |
2576 | ||
2577 | * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks | |
2578 | suppressed. | |
2579 | ||
2580 | * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all | |
2581 | resolution steps. | |
2582 | ||
2583 | 2009-04-08 Robert Dewar <dewar@adacore.com> | |
2584 | ||
2585 | * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for | |
2586 | No_Local_Allocators restriction preventing local instantiation. | |
2587 | ||
2588 | 2009-04-08 Thomas Quinot <quinot@adacore.com> | |
2589 | ||
2590 | * sem_eval.adb: Minor comment fix | |
2591 | ||
2592 | 2009-04-08 Thomas Quinot <quinot@adacore.com> | |
2593 | ||
2594 | * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller): | |
2595 | New limited controlled type used to automate the initialization and | |
2596 | finalization of the sockets implementation. | |
2597 | (GNAT.Sockets.Initialize, Finalize): Make these no-ops | |
2598 | ||
2599 | 2009-04-08 Vincent Celier <celier@adacore.com> | |
2600 | ||
2601 | * prj-attr.adb: New read-only project-level attribute Project_Dir | |
2602 | ||
2603 | * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of | |
2604 | read-only attribute of the same name. | |
2605 | (Process_Declarative_Items): Call Add_Attributes with Project_Dir | |
2606 | (Recursive_Process): Ditto | |
2607 | ||
2608 | * snames.adb: Add new standard name Project_Dir | |
2609 | ||
2610 | * snames.ads: Add new standard name Project_Dir | |
2611 | ||
fc75802a | 2612 | 2009-04-08 Thomas Quinot <quinot@adacore.com> |
2613 | ||
2614 | * checks.adb: Minor reformatting | |
2615 | ||
2616 | 2009-04-08 Vincent Celier <celier@adacore.com> | |
2617 | ||
2618 | * vms_data.ads: Add documentation for new style keyword | |
2619 | OVERRIDING_INDICATORS | |
2620 | ||
2621 | 2009-04-08 Robert Dewar <dewar@adacore.com> | |
2622 | ||
2623 | * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the | |
2624 | spec is in the current unit. | |
2625 | ||
d70ba424 | 2626 | 2009-04-08 Ed Schonberg <schonberg@adacore.com> |
2627 | ||
2628 | * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for | |
2629 | presence of entity. | |
2630 | ||
2631 | * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators | |
2632 | ||
2633 | 2009-04-08 Vincent Celier <celier@adacore.com> | |
2634 | ||
2635 | * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS) | |
2636 | ||
2637 | 2009-04-08 Thomas Quinot <quinot@adacore.com> | |
2638 | ||
2639 | * checks.ads: Minor reformatting | |
2640 | ||
2641 | 2009-04-08 Robert Dewar <dewar@adacore.com> | |
2642 | ||
2643 | * gnat_rm.texi: Update documentation of pragma Obsolescent | |
2644 | ||
2645 | * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to | |
2646 | be omitted, and allow Entity parameter to be omitted. | |
2647 | ||
750a4931 | 2648 | 2009-04-08 Thomas Quinot <quinot@adacore.com> |
2649 | ||
2650 | * exp_util.adb: Minor comment fix | |
2651 | ||
2652 | 2009-04-08 Robert Dewar <dewar@adacore.com> | |
2653 | ||
2654 | * g-socket.ads: Fix bad syntax in pragma Obsolescent | |
2655 | ||
2656 | * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of | |
2657 | argument with no identifier following one that has an identifier. Was | |
2658 | missed in some cases. | |
2659 | ||
2660 | * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy | |
2661 | identifier. | |
2662 | (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers | |
2663 | ||
2664 | * snames.adb: Add Name_Policy | |
2665 | ||
2666 | * snames.ads: Add Name_Policy | |
2667 | ||
dd9fb5ec | 2668 | 2009-04-08 Robert Dewar <dewar@adacore.com> |
2669 | ||
2670 | * gnat_rm.texi: Minor reformatting | |
2671 | ||
2672 | * par-ch2.adb: Minor reformatting | |
2673 | ||
80e22f63 | 2674 | 2009-04-08 Robert Dewar <dewar@adacore.com> |
2675 | ||
2676 | * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up. | |
2677 | ||
559f994d | 2678 | 2009-04-08 Robert Dewar <dewar@adacore.com> |
2679 | ||
2680 | * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate | |
2681 | properly in the presence of Remote_Types or Remote_Call_Interface. | |
2682 | ||
2683 | * sem_util.adb: Add comment. | |
2684 | ||
326f781e | 2685 | 2009-04-08 Robert Dewar <dewar@adacore.com> |
2686 | ||
2687 | * ug_words: Add /ASSUME_VALID for -gnatB | |
2688 | ||
2689 | * vms_data.ads: Add /ASSUME_VALID for -gnatB | |
2690 | ||
2691 | * sem_cat.adb: Add clarifying commment | |
2692 | ||
2693 | * a-direio.ads (Bytes): Make sure value is non-zero | |
2694 | ||
2695 | 2009-04-08 Ed Schonberg <schonberg@adacore.com> | |
2696 | ||
2697 | * sem_util.adb (Is_Variable): If the prefix is an explicit dereference | |
2698 | that does not come from source, check for a rewritten function call in | |
2699 | prefixed notation before other forms of rewriting. | |
2700 | ||
2701 | 2009-04-08 Robert Dewar <dewar@adacore.com> | |
2702 | ||
2703 | * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since | |
2704 | these are now obsolescent units used only for bootrapping with an | |
2705 | older compiler. | |
2706 | ||
d7fb5ea8 | 2707 | 2009-04-08 Robert Dewar <dewar@adacore.com> |
2708 | ||
2709 | * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage | |
2710 | ||
2711 | * sem_ch3.adb: Minor comment updates | |
2712 | ||
2713 | 2009-04-08 Ed Schonberg <schonberg@adacore.com> | |
2714 | ||
2715 | * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms | |
2716 | that come from source. | |
2717 | ||
90d3e56e | 2718 | 2009-04-08 Tristan Gingold <gingold@adacore.com> |
2719 | ||
83bf5876 | 2720 | * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE. |
2721 | * gcc-interface/decl.c (prepend_attributes): New case | |
2722 | Pragma_Thread_Local_Storage. | |
2723 | * gcc-interface/utils.c (process_attributes): New case | |
2724 | ATTR_THREAD_LOCAL_STORAGE. | |
2725 | ||
e92a2f27 | 2726 | 2009-04-08 Ed Schonberg <schonberg@adacore.com> |
2727 | ||
2728 | * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable | |
2729 | by the back-end if it contains a call to a subprogram without a | |
2730 | previous spec that is declared in the same unit. | |
2731 | ||
2732 | * errout.ads: Update comments on uses of dirs | |
2733 | ||
2734 | 2009-04-08 Robert Dewar <dewar@adacore.com> | |
2735 | ||
2736 | * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed | |
2737 | ||
b376b1d7 | 2738 | 2009-04-08 Tristan Gingold <gingold@adacore.com> |
2739 | ||
2740 | * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level | |
2741 | variables. | |
2742 | Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work). | |
2743 | ||
2744 | 2009-04-08 Vincent Celier <celier@adacore.com> | |
2745 | ||
2746 | * prj-nmsc.adb: | |
2747 | (Add_Source): Add the mapping of the unit name to source file name in | |
2748 | the Unit_Sources_HT hash table, if the unit name is not null. | |
2749 | ||
2750 | * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT | |
2751 | ||
2752 | * prj.ads (Unit_Sources_Htable): New hash table instantiation | |
2753 | (Project_Tree_Data): New component Unit_Sources_HT | |
2754 | ||
5d840260 | 2755 | 2009-04-08 Thomas Quinot <quinot@adacore.com> |
2756 | ||
2757 | * sem_ch8.adb: Minor reformatting. | |
2758 | Minor code reorganization. | |
2759 | ||
2760 | 2009-04-08 Robert Dewar <dewar@adacore.com> | |
2761 | ||
2762 | * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb, | |
2763 | snames.ads, freeze.adb, par-prag.adb: Add implementation of | |
2764 | pragma Thread_Local_Storage, setting new flag | |
2765 | Has_Pragma_Thread_Local_Storage in corresponding entities. | |
2766 | ||
107ec33e | 2767 | 2009-04-08 Emmanuel Briot <briot@adacore.com> |
2768 | ||
2769 | * prj.ads: Update comment on switches file | |
2770 | ||
2771 | * prj-nmsc.adb: Code clean up. Use renaming clauses. | |
2772 | ||
2773 | 2009-04-08 Robert Dewar <dewar@adacore.com> | |
2774 | ||
2775 | * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling | |
2776 | ||
2777 | 2009-04-08 Thomas Quinot <quinot@adacore.com> | |
2778 | ||
2779 | * ali-util.adb: Minor comment fix | |
2780 | ||
2781 | 2009-04-08 Ed Schonberg <schonberg@adacore.com> | |
2782 | ||
2783 | * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause | |
2784 | appears in a context clause, and the enclosing package is mentioned in | |
2785 | a limited_with_clause. | |
2786 | (Use_One_Type): Reject clause if type is still incomplete. | |
2787 | ||
0a5976bd | 2788 | 2009-04-08 Emmanuel Briot <briot@adacore.com> |
2789 | ||
2790 | * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode): | |
2791 | avoid copies of Source_Data variables when possible, since these | |
2792 | involve calls to memcpy() which are done too many times. | |
2793 | ||
2794 | 2009-04-08 Robert Dewar <dewar@adacore.com> | |
2795 | ||
2796 | * exp_ch4.adb (Expand_Concatenate): Clean up code | |
2797 | ||
449a120b | 2798 | 2009-04-07 Thomas Quinot <quinot@adacore.com> |
2799 | ||
2800 | * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index | |
2801 | type for the case of concatenating a constrained array indexed by an | |
2802 | enumeration type. | |
2803 | ||
2804 | 2009-04-07 Ed Schonberg <schonberg@adacore.com> | |
2805 | ||
2806 | * sem_ch6.adb (Check_Conformance): when checking conformance of an | |
2807 | operation that overrides an abstract operation inherited from an | |
2808 | interface, return False if only one of the controlling formals is an | |
2809 | access parameter. | |
2810 | ||
2811 | 2009-04-07 Ed Schonberg <schonberg@adacore.com> | |
2812 | ||
2813 | * sem_ch8.adb (Analyze_Object_Renaming): additional error messages | |
2814 | mandated by AI05-105. | |
2815 | ||
2816 | 2009-04-07 Vincent Celier <celier@adacore.com> | |
2817 | ||
2818 | * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string | |
2819 | ||
2820 | 2009-04-07 Thomas Quinot <quinot@adacore.com> | |
2821 | ||
2822 | * usage.adb: Minor fix in usage message. | |
2823 | ||
2824 | * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to | |
2825 | match declaration; the correct subtype is Node_Id, not Entity_Id, | |
2826 | because the expected node kind is an identifier, not a defining | |
2827 | identifier. | |
2828 | ||
2829 | * switch-c.adb: Minor reformatting. | |
2830 | ||
2831 | * uintp.adb: Minor reformatting. | |
2832 | ||
2833 | 2009-04-07 Robert Dewar <dewar@adacore.com> | |
2834 | ||
2835 | * exp_ch13.adb: Minor reformatting | |
2836 | ||
aab73971 | 2837 | 2009-04-07 Robert Dewar <dewar@adacore.com> |
2838 | ||
2839 | * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence | |
2840 | against missing parent. | |
2841 | ||
2842 | 2009-04-07 Thomas Quinot <quinot@adacore.com> | |
2843 | ||
2844 | * xoscons.adb: Minor reformatting | |
2845 | ||
2846 | 2009-04-07 Robert Dewar <dewar@adacore.com> | |
2847 | ||
2848 | * rtsfind.ads: Remove obsolete string concatenation entries | |
2849 | ||
2850 | 2009-04-07 Robert Dewar <dewar@adacore.com> | |
2851 | ||
2852 | * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds | |
2853 | ||
2854 | 2009-04-07 Ed Schonberg <schonberg@adacore.com> | |
2855 | ||
2856 | * sem_ch10.adb (Check_Body_Required): Handle properly imported | |
2857 | subprograms. | |
2858 | ||
2859 | 2009-04-07 Gary Dismukes <dismukes@adacore.com> | |
2860 | ||
2861 | * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case | |
2862 | Attribute_Address): When Init_Or_Norm_Scalars is True and the object | |
2863 | is of a scalar or string type then suppress the setting of the | |
2864 | expression to Empty. | |
2865 | ||
2866 | * freeze.adb (Warn_Overlay): Also emit the warnings about default | |
2867 | initialization for the cases of scalar and string objects when | |
2868 | Init_Or_Norm_Scalars is True. | |
2869 | ||
d21d7832 | 2870 | 2009-04-07 Bob Duff <duff@adacore.com> |
2871 | ||
2872 | * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes | |
2873 | ||
2874 | 2009-04-07 Bob Duff <duff@adacore.com> | |
2875 | ||
2876 | * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A | |
2877 | Form parameter of Text_Translation=No allows binary mode for Text_IO | |
2878 | files. | |
2879 | ||
2880 | * gnat_rm.texi: Document Form parameter Text_Translation=xxx. | |
2881 | ||
2882 | 2009-04-07 Javier Miranda <miranda@adacore.com> | |
2883 | ||
2884 | * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when | |
2885 | processing the bounds for bit packed arrays or VM target machines. | |
2886 | ||
a57388e5 | 2887 | 2009-04-07 Thomas Quinot <quinot@adacore.com> |
2888 | ||
2889 | * g-sothco.ads (Int_Access): Remove extraneous access type (use | |
2890 | anonymous access instead). | |
2891 | (Get_Socket_From_Set): Fix incorrectly reverted formals | |
2892 | Last and Socket to match the underlying C routine. | |
2893 | ||
99dd12bf | 2894 | * g-socket.adb, g-socket.ads |
a57388e5 | 2895 | (Get): Use named parameter associations instead of positional ones in |
2896 | call go Get_Socket_From_Set, since this routine has two formals of the | |
2897 | same type. | |
99dd12bf | 2898 | (Image): New procedure. |
a57388e5 | 2899 | |
2900 | * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb, | |
2901 | g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads: | |
2902 | (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access" | |
2903 | for type of Arg formal. | |
2904 | ||
2905 | * sem_warn.adb: Minor reformatting | |
2906 | ||
2907 | 2009-04-07 Ed Schonberg <schonberg@adacore.com> | |
2908 | ||
2909 | * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates | |
2910 | over record components. | |
2911 | ||
2912 | 2009-04-07 Nicolas Roche <roche@adacore.com> | |
2913 | ||
2914 | * gsocket.h: | |
2915 | Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library | |
2916 | has disappeared between VxWorks 6.4 and VxWorks 6.5 | |
2917 | In RTP mode use time.h instead of times.h | |
2918 | ||
2919 | 2009-04-07 Robert Dewar <dewar@adacore.com> | |
2920 | ||
2921 | * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling | |
2922 | ||
2923 | 2009-04-07 Kevin Pouget <pouget@adacore.com> | |
2924 | ||
2925 | * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct | |
2926 | expanded code for constrained types. | |
2927 | ||
2928 | 2009-04-07 Ed Schonberg <schonberg@adacore.com> | |
2929 | ||
2930 | * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement | |
2931 | AI05-105: in an object renaming declaration, anonymousness is a name | |
2932 | resolution rule. | |
2933 | ||
2934 | * sem_ch8.adb (Analyze_Object_Renaming): Ditto. | |
2935 | ||
2936 | 2009-04-07 Arnaud Charlet <charlet@adacore.com> | |
2937 | ||
2938 | * g-comlin.adb (Expansion): Fix old regression: also return directory | |
2939 | names when matching. | |
2940 | ||
769e3ade | 2941 | 2009-04-07 Robert Dewar <dewar@adacore.com> |
2942 | ||
2943 | * exp_ch4.adb: | |
2944 | (Expand_N_Op_Concat): Call Expand_Concatenate for all cases | |
2945 | (Expand_Concatenate): New name for Expand_Concatenate_String which has | |
2946 | been rewritten to handle all types. | |
2947 | (Expand_Concatenate_Other): Remove | |
2948 | ||
2949 | 2009-04-07 Ed Schonberg <schonberg@adacore.com> | |
2950 | ||
2951 | * lib-xref.adb (Generate_Reference): A default subprogram in an | |
2952 | instance appears within the tree for the instance, but generates an | |
2953 | implicit reference in the ALI. | |
2954 | ||
440ec0be | 2955 | 2009-04-07 Javier Miranda <miranda@adacore.com> |
2956 | ||
2957 | * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged | |
2958 | derived type that has discriminants, propagate the list of interfaces | |
2959 | to the corresponding new base type. In addition, propagate also | |
2960 | attribute Limited_Present (found working in this patch). | |
2961 | ||
2962 | 2009-04-07 Robert Dewar <dewar@adacore.com> | |
2963 | ||
2964 | * exp_ch4.adb: Rewrite concatenation expansion. | |
2965 | ||
bb40b8ec | 2966 | 2009-04-07 Ed Schonberg <schonberg@adacore.com> |
2967 | ||
2968 | * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only | |
2969 | relevant to packages. | |
2970 | ||
2971 | 2009-04-07 Robert Dewar <dewar@adacore.com> | |
2972 | ||
2973 | * sem_attr.adb: Minor reformatting | |
2974 | ||
2975 | * sem_ch6.adb: Minor reformatting | |
2976 | ||
66808196 | 2977 | 2009-04-07 Tristan Gingold <gingold@adacore.com> |
2978 | ||
2979 | * socket.c: Add more protections against S_resolvLib_ macros. | |
2980 | ||
2981 | 2009-04-07 Thomas Quinot <quinot@adacore.com> | |
2982 | ||
2983 | * sem_attr.adb: Minor reformatting | |
2984 | ||
2985 | 2009-04-07 Ed Schonberg <schonberg@adacore.com> | |
2986 | ||
2987 | * sem_ch6.adb (New_Overloaded_Entity): New predicate | |
2988 | Is_Overriding_Alias to handle properly types that inherit two homonym | |
2989 | operations that have distinct dispatch table entries. | |
2990 | ||
950ddf69 | 2991 | 2009-04-07 Emmanuel Briot <briot@adacore.com> |
2992 | ||
2993 | * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when | |
2994 | looking for the end of a parenthesis group | |
2995 | ||
2996 | 2009-04-07 Tristan Gingold <gingold@adacore.com> | |
2997 | ||
2998 | * gsocket.h Don't #include resolvLib.h if __RTP__ is defined. | |
2999 | ||
3000 | * socket.c Don't use resolvLib_ macros if not defined. | |
3001 | ||
e37ded63 | 3002 | 2009-04-07 Robert Dewar <dewar@adacore.com> |
3003 | ||
3004 | * g-socket.adb: Minor reformatting. | |
3005 | ||
3006 | * g-socthi-mingw.adb: Minor reformatting | |
3007 | ||
3008 | * g-sothco.ads: Minor reformatting | |
3009 | ||
3010 | * exp_ch4.adb: | |
3011 | (Expand_Concatenate_String): Complete rewrite to generate efficient code | |
3012 | inline instead of relying on external library routines. | |
3013 | ||
3014 | * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb, | |
3015 | s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now | |
3016 | obsolescent | |
3017 | ||
3018 | 2009-04-07 Ed Schonberg <schonberg@adacore.com> | |
3019 | ||
3020 | * sem_attr.adb: | |
3021 | (Eval_Attribute): for attributes of array objects that are not strings, | |
3022 | attributes are not static if nominal subtype of object is unconstrained. | |
3023 | ||
3024 | 2009-04-07 Ed Schonberg <schonberg@adacore.com> | |
3025 | ||
3026 | * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym | |
3027 | operations for a type T in an instance do not override each other, | |
3028 | when T is derived from a formal private type, the corresponding | |
3029 | operations inherited by a type derived from T outside | |
3030 | of the instance do not override each other either. | |
3031 | ||
38d2fa31 | 3032 | 2009-04-07 Robert Dewar <dewar@adacore.com> |
3033 | ||
3034 | (Osint.Fail): Change calling sequence to have one string arg | |
3035 | (Make.Make_Failed): Same change | |
3036 | All callers are adjusted to use concatenation | |
3037 | ||
3038 | 2009-04-07 Robert Dewar <dewar@adacore.com> | |
3039 | ||
3040 | * exp_ch4.adb: Fix documentation typo | |
3041 | ||
3042 | 2009-04-07 Robert Dewar <dewar@adacore.com> | |
3043 | ||
3044 | * tbuild.ads: Minor reformatting | |
3045 | ||
3046 | 2009-04-07 Javier Miranda <miranda@adacore.com> | |
3047 | ||
3048 | * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table | |
3049 | when compiling under ZFP runtime. | |
3050 | ||
3051 | 2009-04-07 Robert Dewar <dewar@adacore.com> | |
3052 | ||
3053 | * g-comlin.adb: Minor reformatting | |
3054 | ||
3055 | 2009-04-07 Thomas Quinot <quinot@adacore.com> | |
3056 | ||
3057 | * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb, | |
3058 | g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads, | |
3059 | g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads: | |
3060 | Remove dynamic allocation of Fd_Set in Socket_Set_Type objects. | |
3061 | ||
4076879f | 3062 | 2009-04-07 Robert Dewar <dewar@adacore.com> |
3063 | ||
3064 | * gnat_ugn.texi: Document -gnatDnn/-gnatGnn | |
3065 | ||
3066 | * opt.ads (Sprint_Line_Limit): New parameter | |
3067 | ||
3068 | * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout | |
3069 | ||
3070 | * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches | |
3071 | ||
3072 | * usage.adb: Output information for -gnatGnn -gnatDnn | |
3073 | ||
3074 | 2009-04-07 Robert Dewar <dewar@adacore.com> | |
3075 | ||
3076 | * make.adb: Minor reformatting | |
3077 | ||
3078 | 2009-04-07 Robert Dewar <dewar@adacore.com> | |
3079 | ||
3080 | * mlib-tgt-specific-vms-alpha.adb: Minor reformatting | |
3081 | ||
3082 | 2009-04-07 Robert Dewar <dewar@adacore.com> | |
3083 | ||
3084 | * mlib-tgt-specific-vms-ia64.adb: Minor reformatting | |
3085 | ||
7a1dabb3 | 3086 | 2009-04-07 Robert Dewar <dewar@adacore.com> |
3087 | ||
3088 | * checks.adb: | |
3089 | Remove Assume_Valid parameter from In_Subrange_Of calls | |
3090 | ||
3091 | * sem_eval.adb: | |
3092 | (Is_Subrange_Of): Remove Assume_Valid parameter, not needed | |
3093 | (Is_In_Range): Remove incorrect use of Assume_Valid | |
3094 | (Is_Out_Of_Range): Remove incorrect use of Assume_Valid | |
3095 | ||
3096 | * sem_eval.ads: | |
3097 | (Is_Subrange_Of): Remove Assume_Valid parameter, not needed | |
3098 | (Is_In_Range): Documentation cleanup | |
3099 | (Is_Out_Of_Range): Documentation cleanup | |
3100 | ||
3101 | * gnat_rm.texi: | |
3102 | Add documentation for Assume_No_Invalid_Values pragma | |
3103 | ||
3104 | * sem_ch12.adb: Minor reformatting | |
3105 | ||
3106 | * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors | |
3107 | ||
3108 | * sem_prag.adb: Improve error message. | |
3109 | ||
3110 | * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb: | |
3111 | LF/CR no longer recognized as line terminator | |
3112 | ||
3113 | * switch.ads: Minor documentation improvement | |
3114 | ||
3115 | * vms_data.ads: Minor reformatting | |
3116 | ||
9c486805 | 3117 | 2009-04-07 Robert Dewar <dewar@adacore.com> |
3118 | ||
3119 | * checks.adb (Determine_Range): Add Assume_Valid parameter | |
3120 | ||
3121 | * checks.ads (Determine_Range): Add Assume_Valid parameter | |
3122 | ||
3123 | * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than | |
3124 | Is_Null_Loop to suppress warnings in a loop body. | |
3125 | ||
3126 | * exp_ch4.adb: | |
3127 | (Rewrite_Comparison): Major rewrite to accomodate invalid values | |
3128 | ||
3129 | * exp_ch5.adb: | |
3130 | (Expand_N_Loop_Statement): Delete loop known not to execute | |
3131 | ||
3132 | * opt.ads: | |
3133 | (Assume_No_Invalid_Values): Now set to False, and as documented, this | |
3134 | fully enables the proper handling of invalid values. | |
3135 | ||
3136 | * sem_attr.adb: | |
3137 | New calling sequence for Is_In_Range | |
3138 | ||
3139 | * sem_ch5.adb: | |
3140 | (Analyze_Iteration_Scheme): Accomodate possible invalid values | |
3141 | in determining if a loop range is null. | |
3142 | ||
3143 | * sem_eval.adb: | |
3144 | (Is_In_Range): Add Assume_Valid parameter | |
3145 | (Is_Out_Of_Range): Add Assume_Valid_Parameter | |
3146 | (Compile_Time_Compare): Major rewrite to accomodate invalid values and | |
3147 | also to do more accurate and complete range analysis, catching more | |
3148 | cases. | |
3149 | ||
3150 | * sem_eval.ads: | |
3151 | (Is_In_Range): Add Assume_Valid parameter | |
3152 | (Is_Out_Of_Range): Add Assume_Valid_Parameter | |
3153 | ||
3154 | * sem_util.adb: | |
3155 | New calling sequence for Is_In_Range | |
3156 | ||
3157 | * sinfo.adb: | |
3158 | (Suppress_Loop_Warnings): New flag | |
3159 | ||
3160 | * sinfo.ads: | |
3161 | (Is_Null_Loop): Update documentation | |
3162 | (Suppress_Loop_Warnings): New flag | |
3163 | ||
3164 | * gnat_ugn.texi: Document -gnatB switch | |
3165 | ||
f08c7133 | 3166 | 2009-04-07 Arnaud Charlet <charlet@adacore.com> |
3167 | ||
3168 | * gnatvsn.ads: Bump version number. | |
3169 | ||
9e7de1e1 | 3170 | 2009-04-07 Thomas Quinot <quinot@adacore.com> |
3171 | ||
3172 | * exp_ch3.adb: Minor rewording (comments) | |
3173 | ||
3174 | 2009-04-07 Robert Dewar <dewar@adacore.com> | |
3175 | ||
3176 | * exp_disp.adb: Minor reformatting | |
3177 | ||
e3676880 | 3178 | 2009-04-07 Eric Botcazou <ebotcazou@adacore.com> |
3179 | ||
3180 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the | |
3181 | underlying type. | |
3182 | * gcc-interface/trans.c (lvalue_required_p): Likewise. | |
3183 | ||
91b6aca6 | 3184 | 2009-04-07 Eric Botcazou <ebotcazou@adacore.com> |
3185 | ||
3186 | * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>: | |
3187 | Do not convert the result. Remove obsolete comment. | |
3188 | ||
2aa63447 | 3189 | 2009-04-07 Eric Botcazou <ebotcazou@adacore.com> |
3190 | ||
3191 | * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear | |
3192 | DECL_CONTEXT. | |
3193 | (Subprogram_Body_to_gnu): Fix pasto. | |
3194 | ||
515c6c6c | 3195 | 2009-04-07 Eric Botcazou <ebotcazou@adacore.com> |
3196 | ||
3197 | * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl. | |
3198 | (void_type_decl_node): Remove. | |
3199 | (init_gigi_decls): Likewise. | |
3200 | (gnat_install_builtins): Declare. | |
3201 | (record_builtin_type): Likewise. | |
3202 | (create_type_stub_decl): Likewise. | |
3203 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type. | |
3204 | (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types | |
3205 | artificial. | |
3206 | <E_Array_Subtype>: Use the index types, not only their name, in the | |
3207 | record giving the names of the bounds, if any. | |
3208 | For a packed array type, make it artificial only if the base type | |
3209 | was artificial as well. Remove redundant statement. | |
3210 | (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for | |
3211 | dummy types. | |
3212 | Use create_type_stub_decl to build the TYPE_STUB_DECL of types. | |
3213 | (rest_of_type_decl_compilation_no_defer): Likewise. | |
3214 | * gcc-interface/misc.c (gnat_printable_name): Add missing guard. | |
3215 | * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL | |
3216 | and use create_type_stub_decl to build it. | |
3217 | (gnat_pushdecl): Rewrite condition. | |
3218 | (gnat_install_builtins): Remove bogus declaration. | |
3219 | (record_builtin_type): New function. | |
3220 | (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL | |
3221 | of types. | |
3222 | (create_type_stub_decl): New function. | |
3223 | (create_type_decl): Assert that the type is not dummy. If the type | |
3224 | hasn't been named yet, equate the TYPE_STUB_DECL to the created node. | |
3225 | (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor. | |
3226 | (build_vms_descriptor): Likewise. | |
3227 | (init_gigi_decls): Delete and move bulk of code to... | |
3228 | * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type. | |
3229 | (emit_range_check): Add gnat_node parameter. | |
3230 | (emit_index_check): Likewise. | |
3231 | (emit_check): Likewise. | |
3232 | (build_unary_op_trapv): Likewise. | |
3233 | (build_binary_op_trapv): Likewise. | |
3234 | (convert_with_check): Likewise. | |
3235 | (Attribute_to_gnu): Adjust calls for above changes. | |
3236 | (call_to_gnu): Likewise. | |
3237 | (gnat_to_gnu): Likewise. | |
3238 | (assoc_to_constructor): Likewise. | |
3239 | (pos_to_constructor): Likewise. | |
3240 | (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes. | |
3241 | (process_type): Do not create TYPE_DECL for dummy types. | |
3242 | ||
27dd98d5 | 3243 | 2009-04-07 Eric Botcazou <ebotcazou@adacore.com> |
3244 | ||
32826d65 | 3245 | * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables. |
3246 | * gcc-interface/trans.c: Fix formatting throughout. Fix comments. | |
3247 | * gcc-interface/utils.c: Fix comments. | |
3248 | ||
3249 | 2009-04-07 Eric Botcazou <ebotcazou@adacore.com> | |
3250 | ||
3251 | * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and | |
3252 | move around. | |
27dd98d5 | 3253 | (gnat_to_gnu_type): Move around. |
3254 | (get_unpadded_type): Likewise. | |
32826d65 | 3255 | * gcc-interface/utils.c (update_pointer_to): Use synthetic macro. |
3256 | Tidy comments. | |
27dd98d5 | 3257 | |
19b59272 | 3258 | 2009-04-07 Eric Botcazou <ebotcazou@adacore.com> |
3259 | ||
3260 | * gcc-interface/trans.c (check_for_eliminated_entity): New function. | |
3261 | (Attribute_to_gnu): Invoke it for Access- and Address-like attributes. | |
3262 | (call_to_gnu): Invoke it instead of manually checking. | |
3263 | ||
09cd9e44 | 3264 | 2009-04-04 Eric Botcazou <ebotcazou@adacore.com> |
3265 | ||
3266 | * gcc-interface/utils.c (finish_record_type): Force structural equality | |
3267 | checks if the record type is discriminated. | |
3268 | ||
33745ea5 | 3269 | 2009-03-31 Eric Botcazou <ebotcazou@adacore.com> |
3270 | ||
3271 | * system-linux-alpha.ads (Functions_Return_By_DSP): Remove. | |
3272 | * system-linux-mips.ads (Functions_Return_By_DSP): Likewise. | |
3273 | * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise. | |
3274 | * system-linux-s390.ads (Functions_Return_By_DSP): Likewise. | |
3275 | * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise. | |
3276 | * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise. | |
3277 | * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise. | |
3278 | ||
be763a3f | 3279 | 2009-03-30 Paolo Bonzini <bonzini@gnu.org> |
3280 | ||
36ac1281 | 3281 | * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead |
3282 | of TREE_CONSTANT_OVERFLOW. | |
be763a3f | 3283 | |
c6418a4e | 3284 | 2009-03-30 Joseph Myers <joseph@codesourcery.com> |
3285 | ||
3286 | PR rtl-optimization/323 | |
3287 | * gcc-interface/misc.c (gnat_post_options): Set | |
3288 | flag_excess_precision_cmdline. Give an error for | |
3289 | -fexcess-precision=standard for processors where the option is | |
3290 | significant. | |
3291 | ||
7cfdc2f0 | 3292 | 2009-03-27 H.J. Lu <hongjiu.lu@intel.com> |
3293 | ||
3294 | PR c/39323 | |
3295 | * gcc-interface/utils.c (create_field_decl): Use "unsigned int" | |
3296 | on bit_align. | |
3297 | ||
a45338e6 | 3298 | 2009-03-11 Olivier Hainque <hainque@adacore.com> |
3299 | ||
3300 | * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range | |
3301 | checks processing, remove unintended TREE_TYPE walk on index type. | |
3302 | ||
f6b2b596 | 3303 | 2009-03-01 Eric Botcazou <ebotcazou@adacore.com> |
3304 | ||
3305 | PR ada/39264 | |
3306 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no | |
3307 | call make_packable_type on fat pointer types. | |
3308 | <E_Array_Subtype>: Likewise. | |
3309 | <E_Record_Subtype>: Call make_packable_type on all record types | |
3310 | except for fat pointer types. | |
3311 | (make_packable_type): Likewise. | |
3312 | (gnat_to_gnu_field): Likewise. | |
3313 | ||
79357758 | 3314 | 2009-02-28 Eric Botcazou <ebotcazou@adacore.com> |
3315 | ||
3316 | * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental | |
9ff37fb4 | 3317 | EH_MECHANISM change made on 2007-12-06. |
79357758 | 3318 | |
369e542b | 3319 | 2009-02-26 Andreas Schwab <schwab@suse.de> |
3320 | ||
91c745ea | 3321 | PR ada/39172 |
369e542b | 3322 | * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@. |
369e542b | 3323 | * gcc-interface/Makefile.in: Change all uses of $(srcdir), |
3324 | $(fsrcdir) and $(fsrcpfx) to add ada subdir. | |
3325 | (AWK): Substitute. | |
3326 | (target_cpu_default): Substitute. | |
3327 | ||
fc569392 | 3328 | 2009-02-25 Laurent GUERBY <laurent@guerby.net> |
3329 | ||
9963b131 | 3330 | PR ada/39221 |
369e542b | 3331 | * a-teioed.adb (Expand): Fix Result overflow. |
3332 | ||
f91878b6 | 3333 | 2009-02-25 Laurent GUERBY <laurent@guerby.net> |
3334 | ||
369e542b | 3335 | * gcc-interface/Makefile.in: Fix multilib handling for |
3336 | sparc64-linux. | |
3337 | ||
6e0613db | 3338 | 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
3339 | ||
3340 | * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6. | |
3341 | ||
0ff5b865 | 3342 | 2009-02-18 H.J. Lu <hongjiu.lu@intel.com> |
3343 | ||
3344 | * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi. | |
3345 | ||
e584dc46 | 3346 | 2009-02-16 Eric Botcazou <ebotcazou@adacore.com> |
3347 | ||
3348 | * gcc-interface/deftarg.c: Remove. | |
3349 | ||
892fdb03 | 3350 | 2009-02-10 Olivier Hainque <hainque@adacore.com> |
0ff5b865 | 3351 | Eric Botcazou <ebotcazou@adacore.com> |
892fdb03 | 3352 | |
3353 | * gcc-interface/decl.c (enum alias_set_op): New enumeration. | |
3354 | (copy_alias_set): Rename into... | |
3355 | (relate_alias_sets): ...this. Add third parameter OP. Retrieve the | |
3356 | underlying array of unconstrained arrays for the new type as well. | |
3357 | If the old and new alias sets don't conflict, make one a subset of | |
3358 | the other as per the OP parameter. | |
3359 | (gnat_to_gnu_entity): Adjust calls to copy_alias_set. | |
3360 | <E_Record_Type>: Do not copy the alias set for derived types. | |
3361 | For all types, make the alias set of derived types a superset of | |
3362 | that of their parent type. | |
3363 | (make_aligning_type): Adjust calls to copy_alias_set. | |
3364 | (make_packable_type): Likewise. | |
3365 | * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>: | |
3366 | Check for alias set conflict instead of strict equality to issue the | |
3367 | warning. | |
3368 | ||
9c843fa0 | 3369 | 2009-02-09 Eric Botcazou <ebotcazou@adacore.com> |
3370 | ||
3371 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>: | |
3372 | Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate. | |
3373 | (copy_alias_set): Assert that arrays have the same aliasing settings. | |
3374 | (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT. | |
3375 | ||
34e9b3c7 | 3376 | 2009-02-08 Eric Botcazou <ebotcazou@adacore.com> |
3377 | ||
3378 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>: | |
3379 | Set TYPE_NONALIASED_COMPONENT on the array type. | |
3380 | ||
5f65ad17 | 3381 | 2009-01-31 Laurent GUERBY <laurent@guerby.net> |
3382 | ||
3383 | * gcc-interface/Makefile.in: Fix mipsel linux handling. | |
369e542b | 3384 | |
ac27c1c8 | 3385 | 2009-01-16 Jakub Jelinek <jakub@redhat.com> |
3386 | ||
3387 | * gcc-interface/Makefile.in: Fix multilib handling for | |
3388 | powerpc64-linux. | |
3389 | ||
d626a092 | 3390 | 2009-01-12 Eric Botcazou <ebotcazou@adacore.com> |
3391 | ||
3392 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip | |
3393 | only useless conversions around renamed objects. | |
3394 | ||
c4f4d389 | 3395 | 2009-01-11 Eric Botcazou <ebotcazou@adacore.com> |
3396 | ||
3397 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put | |
3398 | the _Tag field before any discriminants in the field list. | |
3399 | (components_to_record): Remove obsolete comment. | |
3400 | ||
3a2a1581 | 3401 | 2008-12-09 Jakub Jelinek <jakub@redhat.com> |
3402 | ||
3403 | PR ada/38450 | |
3404 | * gcc-interface/utils.c (finish_record_type): Use SET_TYPE_MODE. | |
3405 | * gcc-interface/decl.c (gnat_to_gnu_entity, make_aligning_type): | |
3406 | Likewise. | |
3407 | ||
9322d72e | 3408 | 2008-12-05 Sebastian Pop <sebastian.pop@amd.com> |
29bb3e39 | 3409 | |
3410 | PR bootstrap/38262 | |
3411 | * gcc-interface/Make-lang.in (gnat1): Add BACKENDLIBS, remove GMPLIBS. | |
3412 | ||
3e7184e0 | 3413 | 2008-11-29 Eric Botcazou <ebotcazou@adacore.com> |
3414 | ||
3415 | PR ada/30827 | |
3416 | * g-comver.adb (Ver_Len_Max): Fix inconsistency. | |
3417 | ||
ea5ec53d | 3418 | 2008-11-27 Eric Botcazou <ebotcazou@adacore.com> |
3419 | ||
3420 | * gcc-interface/decl.c: Fix various nits. | |
3421 | ||
6e60f579 | 3422 | 2008-11-20 Eric Botcazou <ebotcazou@adacore.com> |
3423 | ||
3424 | * gcc-interface/utils.c (init_gigi_decls): Fix type mismatch. | |
3425 | ||
27c3efc2 | 3426 | 2008-11-16 Eric Botcazou <ebotcazou@adacore.com> |
3427 | ||
3428 | PR ada/38127 | |
98fa7d23 | 3429 | * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not |
3430 | special-case boolean types. Propagate the name. | |
27c3efc2 | 3431 | * gcc-interface/targtyps.c: Tweak comment. |
3432 | ||
14a80f8f | 3433 | 2008-11-15 Geert Bosch <bosch@adacore.com> |
3434 | ||
3435 | * gcc-interface/trans.c (emit_check): Put back a final save_expr | |
3436 | to prevent exponential expansion during gimplification. | |
3437 | ||
68f4c740 | 3438 | 2008-11-15 Eric Botcazou <ebotcazou@adacore.com> |
3439 | ||
3440 | * gcc-interface/lang-specs.h: Expand -coverage and reorder switches. | |
3441 | ||
1f141a0c | 3442 | 2008-11-15 Eric Botcazou <ebotcazou@adacore.com> |
3443 | ||
3444 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Force constants | |
3445 | initialized to a static constant to be statically allocated even if | |
3446 | they are of a padding type, provided the original type also has | |
3447 | constant size. | |
3448 | ||
b87b63ab | 3449 | 2008-11-15 Laurent Guerby <laurent@guerby.net> |
3450 | ||
3451 | PR ada/37993 | |
3452 | * gcc-interface/Makefile.in: Add multilib handling for x86_64 | |
3453 | on darwin. | |
3454 | * system-darwin-x86_64.ads: New file. | |
3455 | ||
02f226ee | 3456 | 2008-11-13 Olivier Hainque <hainque@adacore.com> |
3457 | ||
3458 | * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: | |
3459 | Turn Ada Pure on subprograms back into GCC CONST when eh constructs | |
3460 | are explicit to the middle-end. Tidy. | |
3461 | ||
05139fae | 3462 | 2008-11-09 Eric Botcazou <ebotcazou@adacore.com> |
3463 | ||
3464 | * gcc-interface/ada-tree.def (PLUS_NOMOD_EXPR): New tree code. | |
3465 | (MINUS_NOMOD_EXPR): Likewise. | |
3466 | * gcc-interface/utils2.c (build_binary_op) <PREINCREMENT_EXPR>: Make | |
3467 | unreachable. | |
3468 | <PLUS_NOMOD_EXPR>: New case. | |
3469 | <MINUS_NOMOD_EXPR>: Likewise. | |
3470 | * gcc-interface/trans.c (Loop_Statement_to_gnu): Build increment-and- | |
3471 | assignment statement instead of using an increment operator. | |
3472 | ||
4d4c9311 | 3473 | 2008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
3474 | ||
3475 | * system-irix-n64.ads: New file. | |
3476 | * gcc-interface/Makefile.in (mips-sgi-irix6*): Support O32 and N64 | |
3477 | multilibs. | |
3478 | ||
3479 | 2008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> | |
3480 | ||
3481 | PR ada/37681 | |
3482 | * system-solaris-x86_64.ads: New file. | |
3483 | * gcc-interface/Makefile.in (*86-solaris2*): Support x86_64 multilib. | |
3484 | ||
814231e5 | 3485 | 2008-11-07 Bechir Zalila <bechir.zalila@gmail.com> |
0ff5b865 | 3486 | Eric Botcazou <ebotcazou@adacore.com> |
814231e5 | 3487 | |
3488 | PR ada/34289 | |
3489 | * lib.ads: (Enable_Switch_Storing): Declare. | |
3490 | * lib.adb: (Enable_Switch_Storing): New procedure. | |
3491 | * switch-c.adb (Scan_Front_End_Switches): Add support for -gnatea. | |
3492 | * make.adb: (Compile_Sources.Compile): Add -gnatea as first option. | |
3493 | (Display): Never display -gnatea | |
3494 | * gcc-interface/lang-specs.h: If -gnatea is present, pass -gnatez. | |
3495 | ||
bced40af | 3496 | 2008-11-07 Thomas Quinot <quinot@adacore.com> |
3497 | ||
3498 | * gcc-interface/trans.c (Attribute_to_gnu, case Attr_Length): Check | |
3499 | for empty range in original base type, not converted result type. | |
3500 | ||
32c461f5 | 3501 | 2008-11-07 Geert Bosch <bosch@adacore.com> |
3502 | ||
3503 | * gcc-interface/trans.c (build_binary_op_trapv): Convert arguments | |
3504 | and result for call to __gnat_mulv64. | |
3505 | ||
071ddad8 | 3506 | 2008-11-07 Eric Botcazou <ebotcazou@adacore.com> |
3507 | ||
3508 | * gcc-interface/trans.c: Fix formatting nits. | |
3509 | ||
c85352a1 | 3510 | 2008-11-07 Geert Bosch <bosch@adacore.com> |
3511 | ||
3512 | * gcc-interface/trans.c (build_binary_op_trapv): Avoid emitting | |
3513 | overflow check for constant result. | |
3514 | ||
53d01a99 | 3515 | 2008-11-07 Geert Bosch <bosch@adacore.com> |
3516 | ||
3517 | * gcc-interface/trans.c (build_binary_op_trapv): Use more efficient | |
3518 | overflow check for addition/subtraction if neither operand is constant. | |
3519 | ||
8b492055 | 3520 | 2008-11-06 Eric Botcazou <ebotcazou@adacore.com> |
3521 | ||
3522 | * gcc-interface/Makefile.in (SPARC/Solaris): Use a common set of | |
3523 | files for the target-dependent part of the runtime. | |
3524 | (SPARC/Linux): Likewise. | |
3525 | ||
d6917824 | 3526 | 2008-11-06 Eric Botcazou <ebotcazou@adacore.com> |
3527 | ||
3528 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: If not | |
3529 | optimizing, create a PARM_DECL pointing to the VAR_DECL for debugging | |
3530 | purposes. | |
3531 | ||
065c8a7b | 3532 | 2008-11-06 Eric Botcazou <ebotcazou@adacore.com> |
3533 | ||
3534 | * gcc-interface/misc.c (gnat_printable_name): Always return a copy | |
3535 | in GC memory. | |
3536 | ||
c5a5f7f2 | 3537 | 2008-11-06 Eric Botcazou <ebotcazou@adacore.com> |
3538 | ||
3539 | PR ada/19419 | |
3540 | * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: | |
3541 | Generate a call to memmove for an assignment between overlapping | |
3542 | array slices. | |
3543 | ||
231cec58 | 3544 | 2008-11-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
3545 | ||
3546 | PR target/37977 | |
3547 | * gcc-interface/Makefile.in: Add multilib handling for | |
3548 | s390-linux and s390x-linux. | |
3549 | ||
a0d20ccb | 3550 | 2008-10-24 Jakub Jelinek <jakub@redhat.com> |
3551 | ||
3552 | * gcc-interface/Make-lang.in (check-ada-subtargets): Depend on | |
3553 | check-acats-subtargets and check-gnat-subtargets. | |
3554 | (check_acats_targets): New variable. | |
3555 | (check-acats-subtargets, check-acats%): New targets. | |
3556 | (check-acats): If -j is used and CHAPTERS is empty, run the testing | |
3557 | in multiple make goals, possibly parallel, and afterwards run | |
3558 | dg-extract-results.sh to merge the sum and log files. | |
3559 | ||
04b82dcd | 3560 | 2008-10-17 Geert Bosch <bosch@adacore.com> |
3561 | ||
3562 | * gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion | |
3563 | to use only a single check instead of three, and avoid unnecessary | |
3564 | COMPOUND_EXPR. | |
3565 | (emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes | |
3566 | creating more opportunities for optimizations. | |
3567 | ||
686353fe | 3568 | 2008-10-13 Jakub Jelinek <jakub@redhat.com> |
3569 | ||
3570 | PR middle-end/37601 | |
3571 | * gcc-interface/utils.c (gnat_types_compatible_p): Handle | |
3572 | NULL TYPE_DOMAIN. | |
3573 | ||
71ef616f | 3574 | 2008-10-07 Eric Botcazou <ebotcazou@adacore.com> |
3575 | ||
3576 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Move code | |
3577 | dealing with volatileness to after code dealing with renaming. | |
3578 | ||
a462cd80 | 3579 | 2008-10-06 Eric Botcazou <ebotcazou@adacore.com> |
3580 | ||
3581 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Minor tweaks. | |
3582 | * gcc-interface/trans.c (Pragma_to_gnu): Likewise. | |
3583 | ||
4d00c918 | 3584 | 2008-10-06 Eric Botcazou <ebotcazou@adacore.com> |
3585 | ||
3586 | * gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate. | |
3587 | (unchecked_convert): Use it to disable problematic folding with | |
3588 | VIEW_CONVERT_EXPR in the general case. Always disable it for the | |
3589 | special VIEW_CONVERT_EXPR built for integral types and cope with | |
3590 | its addressability issues by preserving the first conversion. | |
3591 | ||
7c066666 | 3592 | 2008-10-01 Andreas Schwab <schwab@suse.de> |
3593 | ||
3594 | * system-linux-ppc64.ads: New file. | |
3595 | * gcc-interface/Makefile.in: Add multilib handling for | |
3596 | powerpc-linux. | |
3597 | ||
2096ca9c | 3598 | 2008-09-26 Eric Botcazou <ebotcazou@adacore.com> |
3599 | ||
3600 | * decl.c (gnat_to_gnu_entity) <object>: Cap the alignment promotion | |
3601 | to that of ptr_mode instead of word_mode. | |
3602 | ||
292432c7 | 3603 | 2008-09-26 Eric Botcazou <ebotcazou@adacore.com> |
3604 | ||
3605 | PR ada/5911 | |
3606 | * gcc-interface/Makefile.in (SPARC/Solaris): Add multilib support. | |
3607 | ||
64d569f5 | 3608 | 2008-09-25 Samuel Tardieu <sam@rfc1149.net> |
3609 | ||
3610 | PR ada/37641 | |
3611 | * adaint.c (__gnat_set_non_writable): Use FILE_WRITE_EA | |
3612 | instead of deprecated FILE_WRITE_PROPERTIES. | |
3613 | ||
ee82d891 | 3614 | 2008-09-22 Olivier Hainque <hainque@adacore.com> |
3615 | ||
3616 | * gcc-interface/decl.c (gnat_to_gnu_entity): Even when they | |
3617 | are never assigned, volatile entities are not constant for code | |
3618 | generation purposes. | |
3619 | ||
3356431d | 3620 | 2008-09-21 Laurent Guerby <laurent@guerby.net> |
3621 | ||
7c066666 | 3622 | PR ada/5911 |
3356431d | 3623 | * gcc-interface/Makefile.in: Add multilib handling for x86_64 |
3624 | and sparc. | |
3625 | * system-linux-sparcv9.ads: New file. | |
7c066666 | 3626 | |
79e18c7c | 3627 | 2008-09-20 Eric Botcazou <ebotcazou@adacore.com> |
3628 | ||
3629 | * exp_dbug.ads: Document new convention for the XVZ variable. | |
3630 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate | |
3631 | debug info if necessary for the type padding the component type. | |
3632 | <E_Array_Subtype>: Likewise. | |
3633 | (maybe_pad_type): Emit the XVZ variable in units. | |
3634 | * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits. | |
3635 | (Subprogram_Body_to_gnu): Set the source line of the subprogram's node | |
3636 | on statements generated to initialize the parameter attributes cache. | |
3637 | Set the source line of the end label of the body on the special return | |
3638 | statement built for a procedure with copy-in copy-out parameters. | |
3639 | ||
333f0c1d | 3640 | 2008-09-20 Eric Botcazou <ebotcazou@adacore.com> |
3641 | ||
3642 | PR ada/37585 | |
3643 | * gcc-interface/utils.c (create_subprog_decl): Disable inlining for | |
3644 | inlined external functions if they contain a nested function not | |
3645 | declared inline. | |
3646 | ||
4f19d6d1 | 3647 | 2008-09-18 Jan Hubicka <jh@suse.cz> |
3648 | ||
3649 | * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P. | |
3650 | (end_subprog_body): Do not set DECL_INLINE. | |
3651 | ||
3fb60a46 | 3652 | 2008-09-17 Pascal Rigaux <pixel@mandriva.com> |
3653 | ||
3654 | PR ada/21327 | |
3655 | * gnat_ugn.texi: Use proper format in direntry. | |
3656 | ||
0e4b796a | 3657 | 2008-09-15 Eric Botcazou <ebotcazou@adacore.com> |
3658 | ||
3659 | * gcc-interface/trans.c (gigi): Declare the name of the compilation | |
3660 | unit as the first global name. | |
3661 | ||
e184280d | 3662 | 2008-09-14 Jan Hubicka <jh@suse.cz> |
3663 | ||
0e4b796a | 3664 | * gcc-interface/Make-lang.in (gnat1): Add CFLAGS. |
e184280d | 3665 | |
bf3e1520 | 3666 | 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
3667 | ||
3668 | * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads, | |
3669 | bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb, | |
3670 | exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb, | |
3671 | exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb, | |
3672 | exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads, | |
3673 | g-diopit.adb, g-socket.ads, gcc-interface/decl.c, | |
3674 | gcc-interface/gigi.h, gcc-interface/trans.c, | |
3675 | lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads, | |
3676 | opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads, | |
3677 | s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads, | |
3678 | s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb, | |
3679 | sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb, | |
3680 | sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, | |
3681 | sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads, | |
3682 | sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in | |
3683 | comments. | |
3684 | * gnathtml.pl: Fix typos. | |
3685 | ||
722e1a0d | 3686 | 2008-09-10 Joel Sherrill <joel.sherrill@oarcorp.com> |
3687 | ||
3688 | * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb. | |
3689 | * s-osinte-rtems.ads: Add shared hardware interrupt adapter | |
3690 | layer. RTEMS binds to OS provided adapter routines so there are | |
3691 | no modifications to s-osinte-rtems.adb. | |
3692 | ||
b4fea9fc | 3693 | 2008-09-09 Arnaud Charlet <charlet@adacore.com> |
3694 | Joel Sherrill <joel.sherrill@oarcorp.com> | |
3695 | ||
3696 | * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb. | |
3697 | ||
3698 | * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb | |
3699 | ||
3700 | * s-interr-hwint.adb: New file. | |
3701 | ||
3702 | * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions | |
3703 | needed by s-interr-hwint.adb. | |
3704 | ||
3705 | * s-osinte-vxworks-kernel.adb: New file. | |
3706 | ||
9049240c | 3707 | 2008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com> |
3708 | ||
3709 | * s-stchop-rtems.adb: Add file missed in early commit. Already | |
3710 | referenced in gcc-interface/Makefile.in. | |
3711 | ||
f93009a4 | 3712 | 2008-08-30 Thomas Quinot <quinot@adacore.com> |
3713 | ||
3714 | * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to | |
3715 | be built even without a separate libada directory. | |
3716 | ||
bf130475 | 3717 | 2008-08-22 Arnaud Charlet <charlet@adacore.com> |
3718 | ||
3719 | * lib-xref.ads: Fix typo in subprogram reference definition. | |
3720 | ||
3721 | 2008-08-22 Robert Dewar <dewar@adacore.com> | |
3722 | ||
75890282 | 3723 | * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix |
3724 | to avoid warning. | |
bf130475 | 3725 | |
75890282 | 3726 | * g-trasym.adb: Ditto |
bf130475 | 3727 | |
3728 | * s-utf_32.adb (Get_Category): Fix obvious typo | |
3729 | ||
3730 | * s-wwdcha.adb: Minor code reorganization | |
3731 | Remove dead code | |
3732 | ||
c9e9428a | 3733 | 2008-08-22 Robert Dewar <dewar@adacore.com> |
3734 | ||
3735 | * checks.adb (Determine_Range): Deal with values that might be invalid | |
3736 | ||
b4fea9fc | 3737 | * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New |
3738 | configuration switches. | |
c9e9428a | 3739 | |
3740 | * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values | |
3741 | ||
3742 | * sem_prag.adb: Implement pragma Assume_No_Default_Values | |
3743 | ||
3744 | * snames.adb, snames.ads, snames.h: | |
3745 | Add entries for pragma Assume_No_Invalid_Values | |
3746 | ||
3747 | * switch-c.adb: Add processing for -gnatB switch | |
3748 | ||
3749 | * usage.adb: Add entry for flag -gnatB (no bad invalid values) | |
3750 | ||
3751 | 2008-08-22 Javier Miranda <miranda@adacore.com> | |
3752 | ||
3753 | * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the | |
3754 | init procedure all the expanded code associated with the spec of | |
3755 | task types and protected types. | |
3756 | ||
f815903c | 3757 | 2008-08-22 Gary Dismukes <dismukes@adacore.com> |
3758 | ||
3759 | * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the | |
3760 | component expression copies rather than directly setting Etype and | |
3761 | Is_Static_Expression. | |
3762 | ||
3763 | 2008-08-22 Gary Dismukes <dismukes@adacore.com> | |
3764 | ||
3765 | * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of | |
3766 | private types to allow for types derived from a private type with | |
3767 | preelaborable initialization, but return False for a private extension | |
3768 | (unless it has the pragma). | |
3769 | ||
3770 | 2008-08-22 Robert Dewar <dewar@adacore.com> | |
3771 | ||
3772 | * opt.ads: Minor code reorganization (put entries in alpha order) | |
3773 | ||
9a427786 | 3774 | 2008-08-22 Pascal Obry <obry@adacore.com> |
3775 | ||
3776 | * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking | |
3777 | spawn. | |
3778 | ||
14e99469 | 3779 | 2008-08-22 Geert Bosch <bosch@adacore.com> |
3780 | ||
3781 | * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN | |
3782 | (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0 | |
3783 | ||
e254d721 | 3784 | 2008-08-22 Doug Rupp <rupp@adacore.com> |
3785 | ||
3786 | * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call | |
3787 | __gnat_set_features. | |
3788 | ||
3789 | * init.c | |
3790 | (__gnat_set_features): New function. | |
3791 | (__gnat_features_set): New tracking variable. | |
3792 | (__gl_no_malloc_64): New feature global variable | |
3793 | ||
3794 | 2008-08-22 Ed Schonberg <schonberg@adacore.com> | |
3795 | ||
3796 | * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant | |
3797 | use_type_clause in an instance. | |
3798 | ||
3799 | 2008-08-22 Bob Duff <duff@adacore.com> | |
3800 | ||
3801 | * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds. | |
3802 | ||
3803 | 2008-08-22 Robert Dewar <dewar@adacore.com> | |
3804 | ||
3805 | * exp_ch6.adb: Minor reformatting | |
3806 | ||
3807 | * exp_ch7.adb: Minor reformatting | |
3808 | ||
3809 | * exp_ch7.ads: Put routines in proper alpha order | |
3810 | ||
3811 | * exp_dist.adb: Minor reformatting | |
3812 | ||
3813 | 2008-08-22 Vincent Celier <celier@adacore.com> | |
3814 | ||
3815 | * prj.ads: Minor comment update | |
3816 | ||
3817 | 2008-08-22 Robert Dewar <dewar@adacore.com> | |
3818 | ||
3819 | * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack | |
3820 | ||
3821 | 2008-08-22 Ed Schonberg <schonberg@adacore.com> | |
3822 | ||
3823 | * exp_tss.adb: | |
3824 | (Base_Init_Proc): For a protected subtype, use the base type of the | |
3825 | corresponding record to locate the propoer initialization procedure. | |
3826 | ||
3827 | 2008-08-22 Robert Dewar <dewar@adacore.com> | |
3828 | ||
3829 | * checks.adb: | |
3830 | (In_Subrange_Of): New calling sequence | |
3831 | (Determine_Range): Prepare for new processing using base type | |
3832 | ||
3833 | * exp_ch4.adb: | |
3834 | (Compile_Time_Compare): Use new calling sequence | |
3835 | ||
3836 | * exp_ch5.adb: | |
3837 | (Compile_Time_Compare): Use new calling sequence | |
3838 | ||
3839 | * sem_eval.adb: | |
3840 | (Compile_Time_Compare): New calling sequence allows dealing with | |
3841 | invalid values. | |
3842 | (In_Subrange_Of): Ditto | |
3843 | ||
3844 | * sem_eval.ads: | |
3845 | (Compile_Time_Compare): New calling sequence allows dealing with | |
3846 | invalid values. | |
3847 | (In_Subrange_Of): Ditto | |
3848 | ||
3849 | 2008-08-22 Pascal Obry <obry@adacore.com> | |
3850 | ||
3851 | * adaint.c: Fix possible race condition on win32_wait(). | |
3852 | ||
45851103 | 3853 | 2008-08-22 Bob Duff <duff@adacore.com> |
3854 | ||
3855 | * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb, | |
3856 | exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb, | |
3857 | exp_intr.adb, exp_ch3.adb: Rename: | |
3858 | Exp_Ch7.Controlled_Type => Needs_Finalization | |
3859 | Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part | |
3860 | Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type => | |
3861 | Has_Controlled_Parts | |
3862 | (Has_Some_Controlled_Component): Fix bug in array case. | |
3863 | ||
9654d7b3 | 3864 | 2008-08-22 Robert Dewar <dewar@adacore.com> |
3865 | ||
3866 | * sem_ch8.adb: Minor reformatting | |
3867 | ||
3868 | 2008-08-22 Kevin Pouget <pouget@adacore.com> | |
3869 | ||
3870 | * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and | |
3871 | Shared_Var_Close procedure specifications from package spec to package body. | |
3872 | ||
3873 | * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen, | |
3874 | RE_Shared_Var_WOpen entries. | |
3875 | ||
3876 | * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in | |
3877 | Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures. | |
3878 | ||
3879 | 2008-08-22 Eric Botcazou <ebotcazou@adacore.com> | |
3880 | ||
3881 | * init.c: adjust EH support code on Alpha/Tru64 as well. | |
3882 | ||
3883 | * raise-gcc.c: Add back a couple of comments. | |
3884 | ||
3885 | 2008-08-22 Ed Schonberg <schonberg@adacore.com> | |
3886 | ||
3887 | * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is | |
3888 | involved and the return type is class-wide, use the type of the expression | |
3889 | for the generated access type. Suppress useless discriminant checks on the | |
3890 | allocator. | |
3891 | ||
3892 | 2008-08-22 Bob Duff <duff@adacore.com> | |
3893 | ||
3894 | * exp_ch7.adb: Minor comment fix | |
3895 | ||
3896 | * exp_ch6.ads: Minor comment fix | |
3897 | ||
372ac9de | 3898 | 2008-08-22 Thomas Quinot <quinot@adacore.com> |
3899 | ||
3900 | * sem_ch8.adb: Minor reformatting | |
3901 | Minor code reorganization (introduce subprogram to factor duplicated | |
3902 | code). | |
3903 | ||
3904 | 2008-08-22 Sergey Rybin <rybin@adacore.com> | |
3905 | ||
3906 | * gnat_ugn.texi: Change the description of gnatcheck default rule | |
3907 | settings. | |
3908 | ||
3909 | 2008-08-22 Eric Botcazou <ebotcazou@adacore.com> | |
3910 | ||
3911 | * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX, | |
3912 | Solaris, FreeBSD, VxWorks and PowerPC/Linux. For x86{-64}/Linux, | |
3913 | do not adjust the PC anymore. | |
3914 | (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise | |
3915 | on AIX, HP-UX, Solaris, FreeBSD and VxWorks. | |
3916 | ||
3917 | * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo | |
3918 | instead of _Unwind_GetIP. | |
3919 | ||
3920 | 2008-08-22 Gary Dismukes <dismukes@adacore.com> | |
3921 | ||
3922 | * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate | |
3923 | with a range is transformed into a positional aggregate, any copied | |
3924 | component literals should be marked Is_Static_Expression. | |
3925 | ||
3926 | * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as | |
3927 | not being known at at compile time when Configurable_Run_Time_Mode is | |
3928 | true. | |
3929 | ||
3930 | 2008-08-22 Robert Dewar <dewar@adacore.com> | |
3931 | ||
3932 | * exp_attr.adb: | |
3933 | (Expand_N_Attribute_Reference): No validity checking on OUT parameter of | |
3934 | Read or Input attribute. | |
3935 | ||
d251c56f | 3936 | 2008-08-22 Ed Schonberg <schonberg@adacore.com> |
3937 | ||
3938 | * sem_ch8.adb (Use_One_Type): when checking which of two use_type | |
3939 | clauses in related units is redundant, if one of the units is a package | |
3940 | instantiation, use its instance_spec to determine which unit is the | |
3941 | ancestor of the other. | |
3942 | ||
3943 | 2008-08-22 Javier Miranda <miranda@adacore.com> | |
3944 | ||
3945 | * exp_attr.adb (Expand_N_Attribute_Reference): In case of access | |
3946 | attributes add missing support to handle designated types that come | |
3947 | from the limited view. | |
3948 | ||
3949 | * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion. | |
3950 | ||
3951 | 2008-08-22 Sergey Rybin <rybin@adacore.com> | |
3952 | ||
3953 | * vms_data.ads: Add entry for new gnatcheck -mNNN option | |
3954 | ||
3955 | * gnat_ugn.texi: Add description for gnatcheck option '-m' | |
3956 | ||
b0bcf227 | 3957 | 2008-08-22 Sergey Rybin <rybin@adacore.com> |
3958 | ||
3959 | * gnat_ugn.texi: Update the gnatcheck subsection for metric rules | |
3960 | acoording to the latest changes in the metric rule interface | |
3961 | ||
3962 | 2008-08-22 Vincent Celier <celier@adacore.com> | |
3963 | ||
3964 | * make.adb (Check.File_Not_A_Source_Of): New Boolean function | |
3965 | (Check): Check if the file names registered in the ALI file for the | |
3966 | spec, the body and each of the subunits are the ones expected. | |
3967 | ||
3968 | 2008-08-22 Robert Dewar <dewar@adacore.com> | |
3969 | ||
3970 | * g-catiio.adb: Code cleanup. | |
3971 | ||
c2192989 | 3972 | 2008-08-20 Vincent Celier <celier@adacore.com> |
3973 | ||
3974 | * make.adb (Gnatmake): Remove extra space in version line | |
3975 | ||
3976 | * ali.adb: | |
3977 | (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit, | |
3978 | as the name may already have been entered in the table by the Project | |
3979 | Manager. | |
3980 | ||
3981 | 2008-08-20 Jose Ruiz <ruiz@adacore.com> | |
3982 | ||
3983 | * errno.c (__get_errno, __set_errno for MaRTE): Transform then into | |
3984 | weak symbols so we use the version provided by MaRTE when available. | |
3985 | ||
3986 | 2008-08-20 Emmanuel Briot <briot@adacore.com> | |
3987 | ||
3988 | * g-catiio.ads, g-catiio.adb: | |
3989 | (Value): Avoid an unnecessary system call to Clock in most cases. | |
3990 | This call is only needed when only the time is provided in the string, | |
3991 | and ignored in all other cases. This is more efficient. | |
3992 | ||
3993 | 2008-08-20 Eric Botcazou <ebotcazou@adacore.com> | |
3994 | ||
3995 | * raise-gcc.c: Fix formatting nits. | |
3996 | ||
31486bc0 | 3997 | 2008-08-20 Robert Dewar <dewar@adacore.com> |
3998 | ||
3999 | * sem_ch13.adb: | |
4000 | (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for | |
4001 | non-existing component clause. | |
4002 | ||
4003 | * exp_ch5.adb: Minor reformatting | |
4004 | ||
4005 | * g-comlin.adb: Minor reformatting | |
4006 | ||
4007 | * make.adb: Minor reformatting | |
4008 | ||
4009 | * prj-proc.adb: Minor reformatting | |
4010 | ||
4011 | * stylesw.ads: Minor reformatting | |
4012 | ||
d39cadc6 | 4013 | 2008-08-20 Vincent Celier <celier@adacore.com> |
4014 | ||
4015 | * make.adb (Gnatmake_Switch_Found): New Boolean global variable | |
4016 | (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable | |
4017 | (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler | |
4018 | defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False | |
4019 | and a switch is not recognized by gnatmake. | |
4020 | (Gnatmake): Implement new scheme for gnatmake switches and global | |
4021 | compilation switches. | |
4022 | (Switches_Of): Try successively Switches (<file name>), | |
4023 | Switches ("Ada"), Switches (others) and Default_Switches ("Ada"). | |
4024 | ||
4025 | 2008-08-20 Ed Schonberg <schonberg@adacore.com> | |
4026 | ||
4027 | * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to | |
4028 | implement style check that overriding operations are explicitly marked | |
4029 | at such. | |
4030 | ||
4031 | * style.ads (Missing_Overriding): new procedure that provides interface | |
4032 | to previous one. | |
4033 | ||
4034 | * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check | |
4035 | that the declaration or body of overriding operations carries an | |
4036 | explicit overriding indicator. | |
4037 | ||
4038 | * sem_ch8.adb | |
4039 | (Analyze_Subprogram_Renaming): if operation is overriding, check whether | |
4040 | explicit indicator should be present. | |
4041 | ||
4042 | * sem_ch6.adb (Verify_Overriding_Indicator, | |
4043 | Check_Overriding_Indicator): If operation is overriding, check whether | |
4044 | declaration and/or body of subprogram should be present | |
4045 | ||
d7fcadec | 4046 | 2008-08-20 Vincent Celier <celier@adacore.com> |
4047 | ||
4048 | * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for | |
4049 | gprbuild when casing is MixedCase, whatever the casing of the letters | |
4050 | in the file name. | |
4051 | ||
4052 | 2008-08-20 Gary Dismukes <dismukes@adacore.com> | |
4053 | ||
4054 | * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to | |
4055 | creating dummy init proc. | |
4056 | (Requires_Init_Proc): Return False in the case No_Default_Initialization | |
4057 | is in force and the type does not have associated default | |
4058 | initialization. Move test of Is_Public (with tests of restrictions | |
4059 | No_Initialize_Scalars and No_Default_Initialization) to end, past tests | |
4060 | for default initialization. | |
4061 | ||
4062 | 2008-08-20 Jerome Lambourg <lambourg@adacore.com> | |
4063 | ||
4064 | * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part | |
4065 | of any alias or prefix but having attached parameters (as \"-O2\"). | |
4066 | ||
e0840443 | 4067 | 2008-08-20 Robert Dewar <dewar@adacore.com> |
4068 | ||
4069 | * s-fileio.adb: Minor reformatting | |
4070 | ||
4071 | 2008-08-20 Thomas Quinot <quinot@adacore.com> | |
4072 | ||
4073 | * exp_strm.adb (Build_Elementary_Input_Call, | |
4074 | Build_Elementary_Write_Call): Fix incorrect condition in circuitry that | |
4075 | selects the stream attribute routines for long float types. | |
4076 | ||
4077 | 2008-08-20 Vincent Celier <celier@adacore.com> | |
4078 | ||
4079 | * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data | |
4080 | ||
4081 | * prj.ads (Array_Data): Add a component Location | |
4082 | ||
4083 | 2008-08-20 Ed Schonberg <schonberg@adacore.com> | |
4084 | ||
4085 | * sem_prag.adb: | |
4086 | (Analyze_Pragma, case Obsolescent): Add entity information on the pragma | |
4087 | argument for ASIS and navigation use. | |
4088 | ||
4089 | 2008-08-20 Ed Schonberg <schonberg@adacore.com> | |
4090 | ||
4091 | * einfo.ads: Add comment. | |
4092 | ||
4093 | 2008-08-20 Bob Duff <duff@adacore.com> | |
4094 | ||
4095 | * sem_eval.ads: Minor comment fix. | |
4096 | ||
4097 | 2008-08-20 Bob Duff <duff@adacore.com> | |
4098 | ||
4099 | * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant | |
4100 | folding. We were folding things like "False and then ...", but not | |
4101 | "X and then ..." where X is a constant whose value is known at compile | |
4102 | time. | |
4103 | ||
4104 | 2008-08-20 Hristian Kirtchev <kirtchev@adacore.com> | |
4105 | ||
4106 | * exp_ch5.adb (Controlled_Type): New routine. | |
4107 | (Expand_N_Extended_Return_Statement): When generating a move of the | |
4108 | final list in extended return statements, check the type of the | |
4109 | function and in the case of double expanded return statements, the type | |
4110 | of the returned object. | |
4111 | (Expand_Simple_Function_Return): Perform an interface conversion when | |
4112 | the type of the returned object is an interface and the context is an | |
4113 | extended return statement. | |
4114 | ||
4115 | 2008-08-20 Ed Schonberg <schonberg@adacore.com> | |
4116 | ||
4117 | * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type | |
4118 | and the full view is visible, set flag on full view as well. | |
4119 | ||
4120 | 2008-08-20 Thomas Quinot <quinot@adacore.com> | |
4121 | ||
4122 | * g-comlin.adb: Minor reformatting | |
4123 | Minor code reorganization. | |
4124 | ||
4125 | * freeze.adb: Minor reformatting | |
4126 | ||
4127 | 2008-08-20 Vincent Celier <celier@adacore.com> | |
4128 | ||
4129 | * prj-nmsc.adb (Check_File): An excluded Ada source file may be a | |
4130 | source of another project. | |
4131 | ||
4132 | 2008-08-20 Pascal Obry <obry@adacore.com> | |
4133 | ||
4134 | * s-os_lib.ads: Minor reformatting. | |
4135 | ||
bcccc1cf | 4136 | 2008-08-20 Arnaud Charlet <charlet@adacore.com> |
4137 | ||
4138 | * gnatvsn.ads: Minor reformatting. | |
4139 | ||
453f02bd | 4140 | 2008-08-20 Arnaud Charlet <charlet@adacore.com> |
4141 | ||
4142 | * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads, | |
4143 | system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb, | |
4144 | g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads, | |
4145 | mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb, | |
4146 | exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads, | |
4147 | g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb, | |
4148 | s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb, | |
4149 | sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb, | |
4150 | s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads, | |
4151 | g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb, | |
4152 | g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb, | |
4153 | g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads, | |
4154 | live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb, | |
4155 | g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads, | |
4156 | s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb, | |
4157 | g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads, | |
4158 | s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads, | |
4159 | g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb, | |
4160 | osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb, | |
4161 | system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads, | |
4162 | i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads, | |
4163 | s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads, | |
4164 | a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads, | |
4165 | s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb, | |
4166 | a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads, | |
4167 | g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb, | |
4168 | a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c, | |
4169 | a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb, | |
4170 | lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads, | |
4171 | s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads, | |
4172 | par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads, | |
4173 | a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb, | |
4174 | system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads, | |
4175 | s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads, | |
4176 | a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb, | |
4177 | mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb, | |
4178 | s-poosiz.adb, link.c: Fix copyright notice. | |
4179 | ||
e81bf082 | 4180 | 2008-08-20 Arnaud Charlet <charlet@adacore.com> |
4181 | ||
4182 | * g-comlin.ads: Update comments. | |
4183 | ||
bac65237 | 4184 | 2008-08-20 Ed Schonberg <schonberg@adacore.com> |
4185 | ||
4186 | * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag. | |
4187 | ||
4188 | 2008-08-20 Gary Dismukes <dismukes@adacore.com> | |
4189 | ||
4190 | * exp_ch11.adb: | |
4191 | (Expand_Exception_Handlers): Call Make_Exception_Handler instead of | |
4192 | Make_Implicit_Exception_Handler when rewriting an exception handler with | |
4193 | a choice parameter, and pass the handler's Sloc instead of that of the | |
4194 | handled sequence of statements. Make_Implicit_Exception_Handler sets the | |
4195 | Sloc to No_Location (unless debugging generated code), which we don't | |
4196 | want for the case of a user handler. | |
4197 | ||
9abcce89 | 4198 | 2008-08-20 Robert Dewar <dewar@adacore.com> |
4199 | ||
4200 | * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field | |
7c066666 | 4201 | |
9abcce89 | 4202 | * sem_ch13.adb: |
4203 | (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are | |
4204 | now labeled as info msgs, not warnings. | |
4205 | ||
4206 | * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler | |
4207 | ||
4208 | * usage.adb: Minor change to avoid overlong line for -gnatwz/Z | |
4209 | ||
4210 | * a-textio.adb: Remove redundant test. | |
4211 | ||
4212 | * a-witeio.adb: Minor code reorganization | |
4213 | Remove redundant test found working on another issue | |
4214 | ||
4215 | * a-ztexio.adb: Minor code reorganization | |
4216 | Remove redundant test found working on another issue | |
4217 | ||
4218 | 2008-08-20 Thomas Quinot <quinot@adacore.com> | |
4219 | ||
4220 | * s-fileio.adb (Open) Use C helper function to determine whether a | |
4221 | given errno value corresponds to a "file not found" error. | |
4222 | ||
4223 | * sysdep.c (__gnat_is_file_not_found_error): New C helper function. | |
4224 | ||
4225 | 2008-08-20 Jose Ruiz <ruiz@adacore.com> | |
4226 | ||
4227 | * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno | |
4228 | to get access to the per-task errno variable. | |
4229 | (__set_errno for MaRTE): Do not redefine this function here since it is | |
4230 | already defined in MaRTE. | |
4231 | ||
4232 | 2008-08-20 Tristan Gingold <gingold@adacore.com> | |
4233 | ||
4234 | * gnat_ugn.texi: Gcov is not supported on static library on AIX. | |
4235 | ||
b99f6e13 | 4236 | 2008-08-20 Robert Dewar <dewar@adacore.com> |
4237 | ||
4238 | * freeze.adb: Minor reformatting | |
4239 | ||
4240 | * g-comlin.adb: Minor reformatting | |
4241 | ||
4242 | * g-socket.adb: Minor reformatting | |
4243 | ||
4244 | * g-socthi-mingw.adb: Minor reformatting | |
4245 | ||
4246 | * g-stheme.adb: Minor reformatting | |
4247 | ||
f4e9d48d | 4248 | 2008-08-20 Ed Schonberg <schonberg@adacore.com> |
4249 | ||
4250 | * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads, | |
4251 | exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve | |
4252 | confusion between partial and full views of an ancestor of the context | |
4253 | type when the parent is a private extension declared in a parent unit, | |
4254 | and full views are available for the context type. | |
4255 | ||
2f3dba54 | 4256 | 2008-08-18 Samuel Tardieu <sam@rfc1149.net> |
7c066666 | 4257 | Robert Dewar <dewar@adacore.com> |
2f3dba54 | 4258 | |
4259 | PR ada/30827 | |
4260 | * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the | |
4261 | version string. | |
4262 | Move comment in the right place. | |
4263 | * g-comver.adb (Version): Look for a zero-termination in | |
4264 | addition to a closing parenthesis. | |
4265 | ||
65149aa0 | 4266 | 2008-08-18 Samuel Tardieu <sam@rfc1149.net> |
4267 | ||
4268 | * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb, | |
4269 | * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, | |
4270 | * sem_prag.adb, sem_util.adb, sem_warn.adb: Use | |
4271 | Is_Package_Or_Generic_Package instead of hand-crafted tests. | |
4272 | ||
f3e36c5e | 4273 | 2008-08-18 Samuel Tardieu <sam@rfc1149.net> |
4274 | ||
4275 | PR ada/15808 | |
4276 | * sem_ch6.adb (Check_Private_Overriding): Check for generic packages | |
4277 | as well. | |
4278 | ||
07f34887 | 4279 | 2008-08-17 Aaron W. LaFramboise <aaronavay62@aaronwl.com> |
4280 | ||
4281 | * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement. | |
4282 | ||
ea0e8a5c | 4283 | 2008-08-16 Eric Botcazou <ebotcazou@adacore.com> |
4284 | ||
4285 | * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call | |
4286 | for back-copy statements in lieu of that of the actual. | |
4287 | ||
4852b829 | 4288 | 2008-08-16 Eric Botcazou <ebotcazou@adacore.com> |
4289 | ||
4290 | PR ada/20548 | |
4291 | * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the | |
4d2b836a | 4292 | setjmp test consistently. Adjust for new behavior of flag_stack_check. |
4852b829 | 4293 | * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant |
4d2b836a | 4294 | test of flag_stack_check. Adjust for new behavior of flag_stack_check. |
4852b829 | 4295 | |
98d58e33 | 4296 | 2008-08-13 Samuel Tardieu <sam@rfc1149.net> |
4297 | ||
4298 | PR ada/36777 | |
4299 | * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New. | |
4300 | * sem_attr.adb (Check_Type): The current instance of a protected | |
4301 | object is not a type name. | |
4302 | (Analyze_Access_Attribute): Accept instances of protected objects. | |
4303 | (Analyze_Attribute, Attribute_Address clause): Ditto. | |
4304 | * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite | |
4305 | the prefix as being the current instance if needed. | |
4306 | ||
73646cd9 | 4307 | 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net> |
4308 | ||
dddf6c27 | 4309 | * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]: |
4310 | Remove duplicate s-win32.o. Add s-winext.o. | |
73646cd9 | 4311 | |
3937c5ed | 4312 | 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net> |
4313 | ||
4314 | * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM | |
4315 | with SOSC.SOCK__STREAM. | |
4316 | * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with | |
4317 | SOSC.MSG_OOB. | |
4318 | ||
a7353285 | 4319 | 2008-08-11 Joel Sherrill <joel.sherrill@oarcorp.com> |
4320 | ||
4321 | * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it. | |
4322 | * gsocket.h, socket.c: Update to support RTEMS. | |
4323 | * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross. | |
4324 | ||
f6f20e0e | 4325 | 2008-08-10 Samuel Tardieu <sam@rfc1149.net> |
7c066666 | 4326 | Robert Dewar <dewar@adacore.com> |
f6f20e0e | 4327 | |
4328 | * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of | |
4329 | left argument even when right argument is 0. | |
4330 | (Expand_N_Op_Mod): Ditto when right argument is 1. | |
4331 | (Expand_N_Op_Multiply): Ditto when any argument is 0. | |
4332 | (Expand_N_Op_Rem): Ditto when right argument is 1. | |
4333 | ||
1896de12 | 4334 | 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
4335 | ||
4336 | * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused | |
4337 | by warn_unused. | |
7c066666 | 4338 | |
1bd37fcf | 4339 | 2008-08-08 Ed Schonberg <schonberg@adacore.com> |
4340 | ||
4341 | * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted | |
4342 | from Freeze_Entity. Used to generate cross-reference information for | |
4343 | types declared in generic packages. | |
4344 | ||
e0749079 | 4345 | 2008-08-08 Thomas Quinot <quinot@adacore.com> |
4346 | ||
4347 | * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a | |
4348 | compatibility shim. | |
4349 | ||
dc028b88 | 4350 | 2008-08-08 Thomas Quinot <quinot@adacore.com> |
4351 | ||
4352 | * gsocket.h: | |
4353 | On Windows, include <errno.h> and redefine only selected errno values | |
4354 | from their <winsock2.h> definitions. | |
4355 | ||
4356 | * s-osinte-freebsd.ads: Minor reformatting | |
4357 | ||
4358 | * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting | |
4359 | ||
4360 | * g-soccon.ads: New file. | |
4361 | ||
4362 | * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb, | |
4363 | g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb, | |
4364 | g-stsifd-sockets.adb, g-socket.adb, g-socket.ads, | |
4365 | g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child | |
4366 | unit, to allow building software that depends on this internal unit | |
4367 | with both older and newer compilers. | |
4368 | ||
4369 | 2008-08-08 Robert Dewar <dewar@adacore.com> | |
4370 | ||
4371 | * s-strxdr.adb: Minor reformatting | |
4372 | ||
4373 | 2008-08-08 Bob Duff <duff@adacore.com> | |
4374 | ||
4375 | * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow | |
4376 | checking for integer operations (including division by zero)", which | |
4377 | is wrong -- divide by zero is not part of overflow checking. | |
4378 | Also added misc clarification about what check-suppression means. | |
4379 | ||
4380 | * gnat_rm.texi: Clarify the meaning of pragma Suppress. | |
4381 | ||
4382 | 2008-08-08 Jerome Lambourg <lambourg@adacore.com> | |
4383 | ||
4384 | * g-comlin.adb (Add_Switch): Handle addition of switches at the | |
4385 | begining of the command line. | |
4386 | (Append, Add): Renaming of Append to Add as this now allows addition | |
4387 | at the begining of the list. | |
7c066666 | 4388 | |
dc028b88 | 4389 | * g-comlin.ads (Add_Switch): Handle addition of switches at the |
4390 | begining of the command line. | |
4391 | ||
4392 | 2008-08-08 Thomas Quinot <quinot@adacore.com> | |
4393 | ||
4394 | * g-sercom.ads: | |
4395 | (Name): Document application scope (only legacy PC serial ports on | |
4396 | Linux and Windows). | |
4397 | ||
db3b8d9f | 4398 | 2008-08-08 Thomas Quinot <quinot@adacore.com> |
4399 | ||
4400 | * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert | |
4401 | previous change, not needed after all. | |
4402 | ||
9cba1736 | 4403 | 2008-08-08 Ed Schonberg <schonberg@adacore.com> |
4404 | ||
4405 | * exp_ch4.adb (Expand_Allocator_Expression): add check if null | |
4406 | exclusion indicator is present | |
4407 | ||
4408 | 2008-08-08 Robert Dewar <dewar@adacore.com> | |
4409 | ||
4410 | * g-comlin.adb: Minor code reorganization | |
4411 | Minor reformatting | |
4412 | ||
4413 | * g-comlin.ads: Minor reformatting | |
4414 | ||
4415 | * s-fileio.adb: Minor reformatting | |
4416 | ||
4417 | * sem_attr.adb: Minor code reorganization (use Nkind_In) | |
4418 | Minor reformatting | |
4419 | ||
d62f29b2 | 4420 | 2008-08-06 Samuel Tardieu <sam@rfc1149.net> |
4421 | ||
4422 | * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing | |
4423 | with s-oscons-tmplt.i. | |
4424 | ||
fe187bcb | 4425 | 2008-08-06 Samuel Tardieu <sam@rfc1149.net> |
4426 | ||
4427 | * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove. | |
4428 | ||
5552c69f | 4429 | 2008-08-06 Ed Schonberg <schonberg@adacore.com> |
4430 | ||
4431 | * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse | |
4432 | of incomplete type. | |
4433 | ||
4434 | * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming | |
4435 | of a formal parameter of an incomplete type. Improve error message for | |
4436 | other improper uses of incomplete types. | |
4437 | ||
4438 | 2008-08-06 Robert Dewar <dewar@adacore.com> | |
4439 | ||
4440 | * gnat_ugn.texi: Clarify -gnato documentation | |
4441 | ||
4442 | 2008-08-06 Thomas Quinot <quinot@adacore.com> | |
4443 | ||
4444 | * gcc-interface/Makefile.in, | |
4445 | g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb, | |
4446 | g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads, | |
4447 | g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads, | |
4448 | g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads, | |
4449 | g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads, | |
4450 | g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads, | |
4451 | g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads, | |
4452 | g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads, | |
4453 | g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads: | |
4454 | Remove GNAT.Sockets.Constants. This internal package is replaced by | |
4455 | System.OS_Constants. | |
4456 | ||
fc9261ce | 4457 | 2008-08-06 Thomas Quinot <quinot@adacore.com> |
4458 | ||
4459 | * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: | |
4460 | Remove obsolete targets referencing gen-soccon | |
4461 | When generating s-oscons.ads, use a file name that includes the | |
4462 | THREAD_KIND, to ensure that the (potentially different) version from a | |
4463 | previous build with a different threads flavour does not get reused. | |
4464 | ||
b43911a6 | 4465 | 2008-08-06 Thomas Quinot <quinot@adacore.com> |
4466 | ||
4467 | * sem_res.adb: Minor reformatting | |
4468 | ||
4469 | * s-fileio.adb (Open): When file open operation fails, raise Name_Error | |
4470 | only when the operating system reports a non-existing file or directory | |
4471 | (ENOENT), otherwise raise Name_Error. | |
4472 | ||
4473 | * exp_ch11.adb: Minor reformatting | |
4474 | ||
4475 | 2008-08-06 Ed Schonberg <schonberg@adacore.com> | |
4476 | ||
4477 | * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is | |
4478 | incomplete, add the access_to_subprogram type to the list of private | |
4479 | dependents only if the incomplete type will be completed in the current | |
4480 | scope. | |
4481 | (Build_Discriminant_Constraints): If the type of the discriminant is | |
4482 | access_to_variable, reject a constraint that is access_to_constant. | |
4483 | ||
270349ca | 4484 | 2008-08-06 Thomas Quinot <quinot@adacore.com> |
4485 | ||
4486 | * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb, | |
4487 | g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads, | |
4488 | g-sttsne-dummy.ads: New files. | |
4489 | ||
4490 | * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources | |
4491 | with pragma Unimplemented_Unit for sockets packages on Nucleus. | |
4492 | ||
4493 | 2008-08-06 Pascal Obry <obry@adacore.com> | |
4494 | ||
4495 | * adaint.c: Another fix for ACL support on Windows. | |
4496 | ||
4497 | 2008-08-06 Javier Miranda <miranda@adacore.com> | |
4498 | ||
4499 | * exp_disp (Expand_Interface_Actuals): Adds missing support for | |
4500 | expansion of calls to subprograms using selected components. | |
4501 | ||
4502 | 2008-08-06 Ed Schonberg <schonberg@adacore.com> | |
4503 | ||
4504 | * sem_res.adb (Resolve_Call): Use base type to determine whether a | |
4505 | dereference is needed because a subtype of an access_to_subprogram is | |
4506 | simply an access-subtype | |
4507 | ||
4508 | 2008-08-06 Jerome Lambourg <lambourg@adacore.com> | |
4509 | ||
4510 | * g-comlin.adb (Set_Command_Line): Now that aliases can contain | |
4511 | parameters, always specify the expected separator. | |
4512 | ||
bc0d729a | 4513 | 2008-08-06 Thomas Quinot <quinot@adacore.com> |
4514 | ||
4515 | * xnmake.adb: Use new XUtil package for platform independent text | |
4516 | output. | |
4517 | ||
4518 | 2008-08-06 Vincent Celier <celier@adacore.com> | |
4519 | ||
4520 | * gnat_ugn.texi: Document compiler switch -gnateG | |
4521 | ||
4522 | 2008-08-06 Quentin Ochem <ochem@adacore.com> | |
4523 | ||
4524 | * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark | |
4525 | in the case of an empty pattern size. | |
4526 | (Compute_Result): Do not do any computation in the case of an empty | |
4527 | pattern size. | |
4528 | (Report_Result): Fixed computation of the overflow guard. | |
4529 | ||
4530 | 2008-08-06 Ed Schonberg <schonberg@adacore.com> | |
4531 | ||
4532 | * g-awk.adb (Finalize): Do not use directly objects of the type in the | |
4533 | finalization routine to prevent elaboration order anomalies in new | |
4534 | finalization scheme. | |
4535 | ||
4536 | 2008-08-06 Ed Schonberg <schonberg@adacore.com> | |
4537 | ||
4538 | * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete | |
4539 | declaration for the same type. | |
4540 | ||
4541 | 2008-08-06 Thomas Quinot <quinot@adacore.com> | |
4542 | ||
4543 | * sem.adb: Minor rewording (comment) | |
4544 | ||
4545 | 2008-08-06 Jerome Lambourg <lambourg@adacore.com> | |
4546 | ||
4547 | * g-comlin.adb (Define_Switch, Get_Switches): New. | |
4548 | (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when | |
4549 | ungrouping switches. | |
4550 | (For_Each_Simple_Switch): Allow more control over parameters handling. | |
4551 | This generic method now allows ungrouping of switches with parameters | |
4552 | and switches with more than one letter after the prefix. | |
4553 | (Set_Command_Line): Take care of switches that are prefixed with a | |
4554 | switch handling parameters without delimiter (-gnatya and -gnaty3 for | |
4555 | example). | |
4556 | (Add_Switch, Remove_Switch): Handle parameters possibly present inside | |
4557 | a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of | |
4558 | the operation. | |
4559 | (Start, Alias_Switches, Group_Switches): Take care of parameters | |
4560 | possibly present inside a group. | |
4561 | ||
4562 | * g-comlin.ads (Define_Switch): New method used to define a list of | |
4563 | expected switches, that are necessary for correctly ungrouping switches | |
4564 | with more that one character after the prefix. | |
4565 | (Get_Switches): Method that builds a getopt string from the list of | |
4566 | switches as set previously by Define_Switch. | |
4567 | (Add_Switch, Remove_Switch): New versions of the methods, reporting the | |
4568 | status of the operation. Also allow the removal of switches with | |
4569 | parameters only. | |
4570 | (Command_Line_Configuration_Record): Maintain a list of expected | |
4571 | switches. | |
4572 | ||
f2e1149c | 4573 | 2008-08-06 Doug Rupp <rupp@adacore.com> |
4574 | ||
4575 | * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if | |
4576 | TARGET_MALLOC64 clear. | |
4577 | ||
4578 | * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc | |
4579 | if TARGET_MALLOC64 clear. | |
4580 | ||
4581 | * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c | |
4582 | (TARGET_MALLC64): New macro. Default to clear. | |
4583 | ||
6e8c8b10 | 4584 | 2008-08-06 Doug Rupp <rupp@adacore.com> |
4585 | ||
4586 | * gcc-interface/utils2.c (snames.h) Include | |
4587 | (TARGET_ABI_OPEN_VMS): Initialize. | |
4588 | (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap | |
4589 | for Convention C. | |
4590 | ||
a17cc77d | 4591 | 2008-08-06 Ed Schonberg <schonberg@adacore.com> |
4592 | ||
4593 | * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper | |
4594 | null exclusion in a discriminant declaration | |
4595 | ||
4596 | * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion | |
4597 | indicators when type is not an access type. | |
4598 | ||
4599 | * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion | |
4600 | indicators when type is not an access type. | |
4601 | ||
4602 | 2008-08-06 Javier Miranda <miranda@adacore.com> | |
4603 | ||
4604 | * exp_disp (Expand_Interface_Conversion): Freeze the entity associated | |
4605 | with the target interface before expanding the code of the interface | |
4606 | conversion. | |
4607 | ||
5efcab60 | 4608 | 2008-08-05 Ed Schonberg <schonberg@adacore.com> |
4609 | ||
4610 | * freeze.adb: | |
4611 | (Freeze_Entity): A deferred constant does not violate the restriction | |
7c066666 | 4612 | No_Default_Initialization, |
5efcab60 | 4613 | |
4614 | * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that | |
4615 | can carry a null exclusion indicator, and on which an error may be | |
4616 | posted if the indicator is redundant. | |
4617 | ||
4618 | * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion | |
4619 | does not apply to a subtype mark that already excludes null. | |
4620 | ||
4621 | * sem_ch12.adb (Formal_Object_Declaration): Verify that a null | |
4622 | exclusion does not apply to a subtype mark that already excludes null. | |
4623 | ||
4624 | 2008-08-05 Thomas Quinot <quinot@adacore.com> | |
4625 | ||
4626 | * Makefile.rtl: Compile s-oscons.ads as part of the runtime library. | |
4627 | ||
4628 | 2008-08-05 Doug Rupp <rupp@adacore.com> | |
4629 | ||
4630 | * vms_data.ads: Translation for /POINTER_SIZE qualifier. | |
4631 | ||
dab17737 | 4632 | 2008-08-05 Thomas Quinot <quinot@adacore.com> |
4633 | ||
4634 | * gsocket.h: Make this file includable in a Nucleus environment, which | |
4635 | does not support sockets. | |
4636 | ||
4637 | * socket.c: Remove Nucleus-specific hack. | |
4638 | ||
4639 | 2008-08-05 Pascal Obry <obry@adacore.com> | |
4640 | ||
4641 | * adaint.c: Remove support for readable attribute on vxworks and nucleus | |
4642 | ||
4643 | 2008-08-05 Ed Schonberg <schonberg@adacore.com> | |
4644 | ||
4645 | * sem_attr.adb: | |
4646 | (Analyze_Attribute, case 'Result): handle properly the case where some | |
4647 | operand of the expression in a post-condition generates a transient | |
4648 | block. | |
4649 | ||
4650 | * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to | |
4651 | right-hand side when it is an anonymous access_to_subprogram, to force | |
4652 | static accessibility check when needed. | |
4653 | ||
acb4ee7c | 4654 | 2008-08-05 Sergey Rybin <rybin@adacore.com> |
4655 | ||
4656 | * gnat_ugn.texi: Changing the description of the gnatcheck metrics | |
4657 | rule according to the change in the rule option. | |
4658 | Add documentation for -gnatw.b/-gnatw.B | |
4659 | ||
4660 | 2008-08-05 Robert Dewar <dewar@adacore.com> | |
4661 | ||
4662 | * ug_words: Add entries for -gnatw.b/-gnatw.B | |
4663 | ||
4664 | * vms_data.ads: Add entries for -gnatw.b/-gnatw.B | |
4665 | ||
6056b6d9 | 4666 | 2008-08-05 Vincent Celier <celier@adacore.com> |
4667 | ||
4668 | * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put | |
4669 | (File). | |
7c066666 | 4670 | |
6056b6d9 | 4671 | * a-ztdeio.adb: Ditto. |
4672 | ||
0b3929a6 | 4673 | 2008-08-05 Pascal Obry <obry@adacore.com> |
4674 | ||
4675 | * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the | |
4676 | readable attribute. | |
4677 | ||
4678 | 2008-08-05 Vincent Celier <celier@adacore.com> | |
4679 | ||
4680 | * s-wchwts.adb: | |
4681 | (Wide_String_To_String): Returns a String with the same 'First as its | |
4682 | parameter S. | |
4683 | (Wide_Wide_String_To_String): Ditto | |
7c066666 | 4684 | |
0b3929a6 | 4685 | * s-wchwts.ads: |
4686 | (Wide_String_To_String): Document that the lowest index of the returned | |
4687 | String is equal to S'First. | |
4688 | ||
38e26016 | 4689 | 2008-08-05 Thomas Quinot <quinot@adacore.com> |
4690 | ||
4691 | * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files. | |
4692 | ||
4693 | * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate | |
4694 | s-oscons.ads | |
4695 | ||
cc46ff4b | 4696 | 2008-08-05 Robert Dewar <dewar@adacore.com> |
4697 | ||
4698 | * opt.ads (Warn_On_Biased_Representation): New flag | |
7c066666 | 4699 | |
cc46ff4b | 4700 | * sem_ch13.adb: |
4701 | (Analyze_Attribute_Definition_Clause): Issue warning when biased | |
4702 | representation is required. | |
4703 | (Minimum_Size): Don't allow biasing if enum rep clause case | |
7c066666 | 4704 | |
cc46ff4b | 4705 | * sem_warn.adb: |
4706 | (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches | |
4707 | (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws | |
7c066666 | 4708 | |
cc46ff4b | 4709 | * usage.adb: Add lines for -gnatw.b/B switches |
4710 | ||
4711 | 2008-08-05 Pascal Obry <obry@adacore.com> | |
4712 | ||
4713 | * a-coinve.adb: Reorder the code to avoid uninitialized warning. | |
4714 | ||
4715 | * adaint.c: In UNIX cases do not call __gnat_stat but stat directly. | |
4716 | ||
4717 | 2008-08-05 Thomas Quinot <quinot@adacore.com> | |
4718 | ||
4719 | * socket.c: Minor reformatting. | |
4720 | ||
45c5cbda | 4721 | 2008-08-05 Robert Dewar <dewar@adacore.com> |
4722 | ||
4723 | * sem_ch3.adb: Minor reformatting | |
4724 | ||
4725 | * prj-nmsc.adb: Minor reformatting | |
4726 | ||
4727 | 2008-08-05 Ed Schonberg <schonberg@adacore.com> | |
4728 | ||
4729 | * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex | |
4730 | visibility check on the component type if the simple test fails. | |
4731 | ||
d5a19530 | 4732 | 2008-08-05 Jose Ruiz <ruiz@adacore.com> |
4733 | ||
4734 | * init.c (__gnat_install_handler for linux): If we are building the | |
4735 | Xenomai run time then we need to do two additional things: avoid | |
4736 | memory swapping and transform the Linux environment task into a native | |
4737 | Xenomai task. | |
4738 | ||
4739 | * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run | |
4740 | time): Use interface to Xenomai native skin and avoid linux-specific | |
4741 | way of setting CPU affinity. | |
4742 | (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism. | |
4743 | ||
4744 | 2008-08-05 Bob Duff <duff@adacore.com> | |
4745 | ||
4746 | * checks.ads: Minor comment fix | |
4747 | ||
4748 | 2008-08-05 Thomas Quinot <quinot@adacore.com> | |
4749 | ||
4750 | * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb, | |
4751 | g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and | |
4752 | CS8. | |
4753 | ||
4754 | 2008-08-05 Robert Dewar <dewar@adacore.com> | |
4755 | ||
4756 | * mlib.adb: Minor code reorganization | |
4757 | Minor reformatting | |
4758 | ||
4759 | * make.adb: Minor reformatting | |
4760 | ||
4761 | * prj-attr.ads: Minor reformatting | |
4762 | ||
4763 | * s-os_lib.adb: Minor reformatting | |
4764 | ||
4765 | * s-fileio.adb: Minor code reorganization | |
4766 | Minor reformatting | |
4767 | ||
4768 | * prj.ads: Minor reformatting | |
4769 | ||
4770 | 2008-08-05 Bob Duff <duff@adacore.com> | |
4771 | ||
4772 | * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in | |
4773 | unresolved initial value of "null", because it causes implicitly | |
4774 | generated "=" operators to be ambiguous, and because this type should | |
4775 | not be passed to gigi. | |
4776 | ||
9c0520cb | 4777 | 2008-08-05 Vincent Celier <celier@adacore.com> |
4778 | ||
4779 | * mlib.adb: Update comments. | |
4780 | ||
4781 | * make.adb (Switches_Of): Check for Switches (others), before checking | |
4782 | for Default_Switches ("Ada"). | |
4783 | (Gnatmake): Use Builder'Switches (others) in preference to | |
4784 | Builder'Default_Switches ("Ada") if there are several mains. | |
4785 | ||
4786 | * prj-attr-pm.adb: | |
4787 | (Add_Attribute): Add component Others_Allowed in Attribute_Record | |
4788 | aggregate. | |
4789 | ||
4790 | * prj-attr.adb: | |
4791 | Add markers to indicates that attributes Switches allow others as index | |
4792 | (Others_Allowed_For): New Boolean function, returning True for | |
4793 | attributes with the mark. | |
4794 | (Initialize): Recognize optional letter 'O' as the marker for | |
4795 | associative array attributes where others is allowed as the index. | |
4796 | ||
4797 | * prj-attr.ads: | |
4798 | (Others_Allowed_For): New Boolean function | |
4799 | (Attribute_Record): New Boolean component Others_Allowed | |
7c066666 | 4800 | |
9c0520cb | 4801 | * prj-dect.adb: |
4802 | (Parse_Attribute_Declaration): For associative array attribute where | |
4803 | others is allowed as the index, allow others as an index. | |
4804 | ||
4805 | * prj-nmsc.adb: | |
4806 | (Process_Binder): Skip associative array attributes with index others | |
4807 | (Process_Compiler): Ditto | |
4808 | ||
4809 | * prj-util.adb: | |
4810 | (Value_Of (Index, In_Array)): Make no attempt to put in lower case when | |
4811 | index is All_Other_Names. | |
4812 | ||
4813 | * prj.ads: | |
4814 | (All_Other_Names): New constant | |
4815 | ||
4816 | * prj-proc.adb: | |
4817 | (Process_Declarative_Items): Skip associative array attribute when index | |
4818 | is reserved word "others". | |
4819 | ||
4820 | 2008-08-05 Vasiliy Fofanov <fofanov@adacore.com> | |
4821 | ||
4822 | * gen-oscons.c: Adapt for VMS where termios.h is not available. | |
4823 | ||
4cddad9f | 4824 | 2008-08-05 Thomas Quinot <quinot@adacore.com> |
4825 | ||
4826 | * a-rttiev.adb: Minor reformatting (comments) | |
4827 | ||
4828 | * gen-soccon.c: Rename to gen-oscons.c | |
4829 | ||
4830 | * gen-oscons.c: New file. Now generate System.OS_Constants instead of | |
4831 | GNAT.Sockets.Constants. | |
4832 | Add new constants for GNAT.Serial_Communications and System.File_IO. | |
4833 | ||
2ab009c7 | 4834 | 2008-08-05 Javier Miranda <miranda@adacore.com> |
4835 | ||
4836 | * sem_util.adb (Collect_Interfaces_Info): Minor reformating. | |
4837 | * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the | |
4838 | implementation of this routine has been simplified. | |
4839 | ||
4840 | 2008-08-05 Pascal Obry <obry@adacore.com> | |
4841 | ||
4842 | * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the | |
4843 | Set_Read_Only Win32 implementation. | |
4844 | ||
02aa7a86 | 4845 | 2008-08-05 Thomas Quinot <quinot@adacore.com> |
4846 | ||
4847 | * exp_strm.adb: Minor reformatting (comments) | |
4848 | ||
4849 | * sem_ch12.adb: Minor reformatting. | |
4850 | ||
761ee828 | 4851 | 2008-08-05 Robert Dewar <dewar@adacore.com> |
4852 | ||
4853 | * sem_ch3.adb: Minor reformatting | |
4854 | ||
4855 | * checks.adb: Minor reformatting | |
4856 | ||
4857 | 2008-08-05 Thomas Quinot <quinot@adacore.com> | |
4858 | ||
4859 | * tbuild.ads (New_External_Name): Update spec to reflect relaxed | |
4860 | restriction on Prefix. | |
4861 | ||
4862 | 2008-08-05 Jerome Lambourg <lambourg@adacore.com> | |
4863 | ||
4864 | * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal | |
4865 | methods needed to handle switch sections when building a command line. | |
4866 | (Define_Section, Add_Switch, Remove_Switch, Is_New_Section, | |
4867 | Current_Section): New public methods or methods modified to handle | |
4868 | building command lines with sections. | |
4869 | (Set_Command_Line): Take into account sections when analysing a switch | |
4870 | string. | |
4871 | (Start): Sort the switches by sections before iterating the command line | |
4872 | elements. | |
7c066666 | 4873 | |
761ee828 | 4874 | * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch, |
4875 | Is_New_Section, Current_Section): New methods or methods modified to | |
4876 | handle building command lines with sections. | |
4877 | ||
4878 | 2008-08-05 Ed Schonberg <schonberg@adacore.com> | |
4879 | ||
4880 | * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access | |
4881 | discriminants, indicate that the corresponding object declaration has | |
4882 | no initialization, to prevent spurious warnings when the access type is | |
4883 | null-excluding. | |
4884 | ||
4885 | 2008-08-05 Ed Schonberg <schonberg@adacore.com> | |
4886 | ||
4887 | * sem_res.adb (Resolve_Call): If this is a call to the predefined | |
4888 | Abort_Task, warn if the call appears within a protected operation. | |
4889 | ||
d17e11be | 4890 | 2008-08-04 Robert Dewar <dewar@adacore.com> |
4891 | ||
4892 | * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances | |
4893 | ||
4894 | 2008-08-04 Ed Schonberg <schonberg@adacore.com> | |
4895 | ||
4896 | * sem_ch3.adb: | |
4897 | (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an | |
4898 | anonymous access to protected subprogram that is the return type of the | |
4899 | specification of a subprogram body. | |
4900 | ||
4901 | * sem_ch6.adb: | |
4902 | (Analyze_Subprogram_Body): if the return type is an anonymous access to | |
4903 | subprogram, freeze it now to prevent access anomalies in the back-end. | |
4904 | ||
4905 | * exp_ch9.adb: Minor code cleanup. | |
4906 | Make sure that new declarations are inserted into the tree before | |
4907 | analysis (from code reading). | |
4908 | ||
4909 | 2008-08-04 Robert Dewar <dewar@adacore.com> | |
4910 | ||
4911 | * exp_ch5.adb: | |
4912 | (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction | |
4913 | at point of return. | |
4914 | ||
ff7159cc | 4915 | 2008-08-04 Thomas Quinot <quinot@adacore.com> |
4916 | ||
4917 | * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting | |
4918 | ||
4919 | 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com> | |
4920 | ||
4921 | * g-soccon-mingw.ads: Fix value for MSG_WAITALL | |
4922 | ||
4923 | 2008-08-04 Javier Miranda <miranda@adacore.com> | |
4924 | ||
4925 | * sem_prag.adb (Process_Convention): Add missing support for | |
4926 | N_Private_Extension_Declaration nodes. | |
4927 | ||
4928 | 2008-08-04 Robert Dewar <dewar@adacore.com> | |
4929 | ||
4930 | * exp_ch4.adb: Minor reformatting | |
4931 | ||
3855c659 | 4932 | 2008-08-04 Pascal Obry <obry@adacore.com> |
4933 | ||
4934 | * adaint.h: Add missing prototype. | |
4935 | ||
4936 | * adaint.c: Refine support for Windows file attributes. | |
4937 | ||
4938 | 2008-08-04 Robert Dewar <dewar@adacore.com> | |
4939 | ||
4940 | * sem_res.adb: | |
4941 | (Valid_Conversion): Catch case of designated types having different | |
4942 | sizes, even though they statically match. | |
4943 | ||
4944 | 2008-08-04 Javier Miranda <miranda@adacore.com> | |
4945 | ||
4946 | * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch | |
4947 | added in previous patch to handle access to subprograms. | |
4948 | ||
4949 | 2008-08-04 Robert Dewar <dewar@adacore.com> | |
4950 | ||
4951 | * freeze.adb: | |
4952 | (Freeze_Entity): Only check No_Default_Initialization restriction for | |
4953 | constructs that come from source | |
4954 | ||
4955 | 2008-08-04 Thomas Quinot <quinot@adacore.com> | |
4956 | ||
4957 | * exp_ch6.adb: Minor comment fix. | |
4958 | ||
4959 | * sem_ch4.adb: Minor reformatting. | |
4960 | ||
7db1ef17 | 4961 | 2008-08-04 Robert Dewar <dewar@adacore.com> |
4962 | ||
4963 | * sem_res.adb: (Large_Storage_Type): Improve previous change. | |
4964 | ||
4965 | 2008-08-04 Pascal Obry <obry@adacore.com> | |
4966 | ||
4967 | * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with | |
4968 | file attributes. | |
4969 | ||
d16989f1 | 4970 | 2008-08-04 Javier Miranda <miranda@adacore.com> |
4971 | ||
4972 | * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support | |
4973 | for N_Formal_Object_Declaration nodes. Adding kludge required by | |
4974 | First_Formal to provide its functionality with access to functions. | |
4975 | (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support | |
4976 | for anonymous access types returned by functions. | |
4977 | ||
4978 | * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate | |
4979 | conversion of null-excluding access types (required only once to force | |
4980 | the generation of the required runtime check). | |
4981 | ||
4982 | * sem_type.adb (Covers): minor reformating | |
4983 | ||
4984 | * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors | |
4985 | with internally generated nodes. Avoid generating the error inside init | |
4986 | procs. | |
4987 | ||
4988 | * sem_res.adb (Resolve_Membership_Test): Minor reformating. | |
4989 | (Resolve_Null): Generate the null-excluding check in case of assignment | |
4990 | to a null-excluding object. | |
4991 | (Valid_Conversion): Add missing support for anonymous access to | |
4992 | subprograms. | |
4993 | ||
4994 | * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for | |
4995 | anonymous access types whose designated type is an itype. This case | |
4996 | occurs with anonymous access to protected subprograms types. | |
4997 | (Analyze_Return_Type): Add missing support for anonymous access to | |
4998 | protected subprogram. | |
4999 | ||
5000 | * sem_eval.adb (Subtypes_Statically_Match): In case of access to | |
5001 | subprograms addition of missing check on matching convention. Required | |
5002 | to properly handle access to protected subprogram types. | |
5003 | ||
5004 | * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on | |
5005 | null excluding access types. | |
5006 | ||
09c3973f | 5007 | 2008-08-04 Ed Schonberg <schonberg@adacore.com> |
5008 | ||
5009 | * sem_ch12.adb: Add comments | |
5010 | ||
5011 | * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null | |
5012 | access type and the allocator is not initialized, warn rather than | |
5013 | reporting an error. | |
5014 | ||
5015 | 2008-08-04 Robert Dewar <dewar@adacore.com> | |
5016 | ||
5017 | * exp_ch4.adb: Minor reformatting | |
5018 | ||
5019 | * exp_dist.adb: Minor reformatting | |
5020 | ||
5021 | * g-comlin.adb: Minor reformatting | |
5022 | ||
5023 | 2008-08-04 Gary Dismukes <dismukes@adacore.com> | |
5024 | ||
5025 | * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the | |
5026 | target to the type of the aggregate in the case where the target object | |
5027 | is class-wide. | |
5028 | ||
5029 | * exp_ch5.adb (Expand_Simple_Function_Return): When the function's | |
5030 | result type is class-wide and inherently limited, and the expression | |
5031 | has a specific type, create a return object of the specific type, for | |
5032 | more efficient handling of returns of build-in-place aggregates (avoids | |
5033 | conversions of the class-wide return object to the specific type on | |
5034 | component assignments). | |
5035 | ||
5036 | * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error | |
5037 | about a type mismatch for a class-wide function with a return object | |
5038 | having a specific type when the object declaration doesn't come from | |
5039 | source. Such an object can result from the expansion of a simple return. | |
5040 | ||
5041 | 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com> | |
5042 | ||
5043 | * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files. | |
5044 | ||
5045 | * gcc-interface/Makefile.in: Use 64bit-specific system files when | |
5046 | compiling for 64bit windows. | |
5047 | ||
5690e662 | 5048 | 2008-08-04 Jerome Lambourg <lambourg@adacore.com> |
5049 | ||
5050 | * g-comlin.adb (Group_Switches): Preserve the switch order when | |
5051 | grouping and allow switch grouping of switches with more than one | |
5052 | character extension (e.g. gnatw.x). | |
5053 | (Args_From_Expanded): Remove this now obsolete method. | |
5054 | ||
5055 | 2008-08-04 Ed Schonberg <schonberg@adacore.com> | |
5056 | ||
5057 | * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for | |
5058 | chain at once, to ensure that type is properly decorated for back-end, | |
5059 | when allocator appears within a loop. | |
5060 | ||
5061 | 2008-08-04 Kevin Pouget <pouget@adacore.com> | |
5062 | ||
5063 | * snames.h, snames.adb, snames.ads: | |
5064 | Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines. | |
5065 | ||
5066 | * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call, | |
5067 | Build_To_Any_Call and Build_TypeCode_Call procedures. | |
5068 | ||
5069 | * exp_attr.adb, sem_attr.adb: Add corresponding cases. | |
5070 | ||
5071 | * rtsfind.ads: Add corresponding names. | |
5072 | ||
5073 | * tbuild.adb: Update prefix restrictions to allow '_' character. | |
5074 | ||
271af9e1 | 5075 | 2008-08-04 Doug Rupp <rupp@adacore.com> |
5076 | ||
5077 | * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual | |
5078 | * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter. | |
5079 | * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and | |
5080 | use it. Calculate pointer range overflow using 64bit types. | |
5081 | ||
5082 | 2008-08-04 Ed Schonberg <schonberg@adacore.com> | |
5083 | ||
5084 | * sem_ch3.adb (Access_Definition): A formal object declaration is a | |
5085 | legal context for an anonymous access to subprogram. | |
5086 | ||
5087 | * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an | |
5088 | indirect call, report success to the caller to include possible | |
5089 | interpretation. | |
5090 | ||
5091 | * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance | |
5092 | check when the type | |
5093 | of the extended return is an anonymous access_to_subprogram type. | |
5094 | ||
5095 | * sem_res.adb: | |
5096 | (Resolve_Call): Insert a dereference if the type of the subprogram is an | |
5097 | access_to_subprogram and the context requires its return type, and a | |
5098 | dereference has not been introduced previously. | |
5099 | ||
5100 | 2008-08-04 Arnaud Charlet <charlet@adacore.com> | |
5101 | ||
5102 | * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve | |
5103 | gnatcheck support in GPS. | |
5104 | ||
5105 | 2008-08-04 Vincent Celier <celier@adacore.com> | |
5106 | ||
5107 | * mlib.adb (Create_Sym_Links): Create relative symbolic links when | |
5108 | requested | |
5109 | ||
938d8e9f | 5110 | 2008-08-04 Vincent Celier <celier@adacore.com> |
5111 | ||
5112 | * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean | |
5113 | variable, but don't check the resulting value as it has no impact on | |
5114 | the processing. | |
7c066666 | 5115 | |
938d8e9f | 5116 | * opt.ads: |
5117 | (Generate_Processed_File): New Boolean flag, set to True in the compiler | |
5118 | when switch -gnateG is used. | |
7c066666 | 5119 | |
938d8e9f | 5120 | * prep.adb: |
5121 | (Preprocess): new Boolean out parameter Source_Modified. Set it to True | |
5122 | when the source is modified by the preprocessor and there is no | |
5123 | preprocessing errors. | |
7c066666 | 5124 | |
938d8e9f | 5125 | * prep.ads (Preprocess): new Boolean out parameter Source_Modified |
7c066666 | 5126 | |
938d8e9f | 5127 | * sinput-l.adb: |
5128 | (Load_File): Output the result of preprocessing if the source text was | |
5129 | modified. | |
7c066666 | 5130 | |
938d8e9f | 5131 | * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG |
7c066666 | 5132 | |
938d8e9f | 5133 | * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG |
7c066666 | 5134 | |
938d8e9f | 5135 | * ug_words: Add VMS equivalent for -gnateG |
7c066666 | 5136 | |
938d8e9f | 5137 | * vms_data.ads: |
5138 | Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG | |
5139 | ||
178f9565 | 5140 | 2008-08-04 Doug Rupp <rupp@adacore.com> |
5141 | ||
5142 | * gcc-interface/utils2.c: | |
5143 | (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer | |
5144 | in 32bit descriptor. | |
5145 | ||
5146 | 2008-08-04 Robert Dewar <dewar@adacore.com> | |
5147 | ||
5148 | * par-ch10.adb: Minor reformatting | |
5149 | ||
5150 | * i-cobol.adb: Minor reformatting. | |
5151 | ||
5152 | 2008-08-04 Ed Schonberg <schonberg@adacore.com> | |
5153 | ||
5154 | * sem_ch3.adb (Access_Definition): Create an itype reference for an | |
5155 | anonymous access return type of a regular function that is not a | |
5156 | compilation unit. | |
5157 | ||
5158 | 2008-08-04 Vincent Celier <celier@adacore.com> | |
5159 | ||
5160 | * prj-attr.adb: New Builder attribute Global_Compilation_Switches | |
7c066666 | 5161 | |
178f9565 | 5162 | * snames.adb: New standard name Global_Compilation_Switches |
7c066666 | 5163 | |
178f9565 | 5164 | * snames.ads: New standard name Global_Compilation_Switches |
5165 | ||
5166 | * make.adb: Correct spelling error in comment | |
5167 | ||
5168 | 2008-08-04 Arnaud Charlet <charlet@adacore.com> | |
5169 | ||
5170 | * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI | |
5171 | target. | |
5172 | ||
5173 | 2008-08-04 Thomas Quinot <quinot@adacore.com> | |
5174 | ||
5175 | * sem_ch10.adb: Minor comment fix. | |
5176 | ||
964d355f | 5177 | 2008-08-04 Robert Dewar <dewar@adacore.com> |
5178 | ||
5179 | * restrict.adb: Improved messages for restriction warnings | |
5180 | ||
5181 | * restrict.ads: Improved messages for restriction messages | |
5182 | ||
5183 | * s-rident.ads (Profile_Name): Add No_Profile | |
5184 | ||
5185 | 2008-08-04 Robert Dewar <dewar@adacore.com> | |
5186 | ||
5187 | * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus | |
5188 | ||
5189 | 2008-08-04 Robert Dewar <dewar@adacore.com> | |
5190 | ||
5191 | * freeze.adb (Freeze_Entity): Check for size clause for boolean warning | |
5192 | ||
5193 | 2008-08-04 Vincent Celier <celier@adacore.com> | |
5194 | ||
5195 | * prj-proc.adb: | |
5196 | (Copy_Package_Declarations): When inheriting package Naming from a | |
5197 | project being extended, do not inherit source exception names. | |
5198 | ||
5199 | 2008-08-04 Ed Schonberg <schonberg@adacore.com> | |
5200 | ||
5201 | * sem_prag.adb (Check_Precondition_Postcondition): When scanning the | |
5202 | list of declaration to find previous subprogram, do not go to the | |
5203 | original node of a generic unit. | |
5204 | ||
7467bc9c | 5205 | 2008-08-02 Eric Botcazou <ebotcazou@adacore.com> |
5206 | ||
5207 | * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>: | |
5208 | New case. Convert BOOLEAN_TYPE operation to the default integer type. | |
5209 | ||
a16de24a | 5210 | 2008-08-01 Eric Botcazou <ebotcazou@adacore.com> |
5211 | ||
5212 | * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE. | |
5213 | * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify | |
5214 | and adjust for above renaming. | |
5215 | * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new | |
5216 | gnu_expr_alt_type parameter. Convert the expression to it instead | |
5217 | of changing its type in place. | |
5218 | (build_function_stub): Adjust call to above function. | |
5219 | ||
d47e2843 | 5220 | 2008-08-01 Eric Botcazou <ebotcazou@adacore.com> |
5221 | ||
5222 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead | |
5223 | code. Do not get full definition of deferred constants with address | |
5224 | clause for a use. Do not ignore deferred constant definitions with | |
5225 | address clause. Ignore constant definitions already marked with the | |
5226 | error node. | |
5227 | <object>: Remove obsolete comment. For a deferred constant with | |
5228 | address clause, get the initializer from the full view. | |
5229 | * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>: | |
5230 | Rework and remove obsolete comment. | |
5231 | <N_Object_Declaration>: For a deferred constant with address clause, | |
5232 | mark the full view with the error node. | |
5233 | * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix | |
5234 | formatting nits. | |
5235 | ||
b9f24e67 | 5236 | 2008-08-01 Hristian Kirtchev <kirtchev@adacore.com> |
5237 | ||
5238 | * rtsfind.ads: Add block IO versions of stream routines for Strings. | |
7c066666 | 5239 | |
b9f24e67 | 5240 | * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads, |
5241 | sem_prag.adb, snames.adb, snames.ads, snames.h, | |
5242 | par-prag.adb: Undo previous stream related changes. | |
7c066666 | 5243 | |
b9f24e67 | 5244 | * s-rident.ads: Add new restriction No_Stream_Optimizations. |
7c066666 | 5245 | |
b9f24e67 | 5246 | * s-ststop.ads, s-ststop.adb: Comment reformatting. |
5247 | Define enumeration type to designate different IO mechanisms. | |
5248 | Enchance generic package Stream_Ops_Internal to include an | |
5249 | implementation of Input and Output. | |
5250 | ||
5251 | * exp_attr.adb (Find_Stream_Subprogram): If restriction | |
5252 | No_Stream_Optimization is active, choose the default byte IO | |
5253 | implementations of stream attributes for Strings. | |
5254 | Otherwise use the corresponding block IO version. | |
5255 | ||
915e4127 | 5256 | 2008-08-01 Olivier Hainque <hainque@adacore.com> |
7c066666 | 5257 | |
b9f24e67 | 5258 | * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not |
5259 | turn Ada Pure into GCC const, now implicitely implying nothrow as well. | |
5260 | ||
5261 | 2008-08-01 Robert Dewar <dewar@adacore.com> | |
5262 | ||
5263 | * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to | |
5264 | convert plain identifier into defining identifier. | |
915e4127 | 5265 | |
3421dfb1 | 5266 | 2008-08-01 Robert Dewar <dewar@adacore.com> |
5267 | ||
5268 | * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve | |
5269 | warnings | |
5270 | ||
5271 | * lib-xref.adb: Add error defense. | |
5272 | ||
5273 | 2008-08-01 Bob Duff <duff@adacore.com> | |
5274 | ||
5275 | * ioexcept.ads, sequenio.ads, directio.ads: Correct comment. | |
5276 | ||
6643fd06 | 5277 | 2008-08-01 Gary Dismukes <dismukes@adacore.com> |
5278 | ||
5279 | * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing | |
5280 | correct accessibility levels. In the "when others" case, retrieve the | |
5281 | access level of the Etype of Prev rather than Prev_Orig, because the | |
5282 | original exression has not always been analyzed. | |
5283 | ||
5284 | 2008-08-01 Robert Dewar <dewar@adacore.com> | |
5285 | ||
5286 | * prj-nmsc.adb: Minor reformatting | |
5287 | ||
5288 | * sem_ch4.adb: Minor reformatting | |
5289 | Minor code reorganization | |
5290 | ||
5291 | * prj.ads: Minor reformatting | |
5292 | ||
5293 | * s-os_lib.adb: Minor reformatting | |
5294 | ||
5295 | * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper | |
5296 | half encodings | |
5297 | ||
5298 | * scans.ads: Minor reformatting. | |
5299 | ||
5300 | * sem_prag.adb (Analyze_Pragma): Put entries in alpha order | |
5301 | (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma | |
5302 | ||
5303 | * sem_res.adb: | |
5304 | (Resolve_Call): Check violation of No_Specific_Termination_Handlers | |
5305 | ||
5306 | * sem_ch12.adb: Minor comment reformatting | |
5307 | ||
5308 | * par-ch3.adb (P_Type_Declaration): Properly handle missing type | |
5309 | keyword | |
5310 | ||
16760d5a | 5311 | 2008-08-01 Robert Dewar <dewar@adacore.com> |
5312 | ||
5313 | * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not | |
5314 | generating code | |
5315 | ||
5316 | 2008-08-01 Ed Schonberg <schonberg@adacore.com> | |
5317 | ||
5318 | * checks.adb (Apply_Float_Conversion_Check): If the expression to be | |
5319 | converted is a real literal and the target type has static bounds, | |
5320 | perform the conversion exactly to prevent floating-point anomalies on | |
5321 | some targets. | |
5322 | ||
5323 | 2008-08-01 Vincent Celier <celier@adacore.com> | |
5324 | ||
5325 | * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>) | |
7c066666 | 5326 | |
16760d5a | 5327 | * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax |
7c066666 | 5328 | |
16760d5a | 5329 | * prj.adb (Object_Exist_For): Use Object_Generated, not |
5330 | Objects_Generated that is removed and was never modified anyway. | |
5331 | ||
5332 | * prj.ads: | |
5333 | (Path_Syntax_Kind): New enumeration type | |
5334 | (Language_Config): New component Path_Syntax, defaulted to Host. | |
5335 | Components PIC_Option and Objects_Generated removed, as they are not | |
5336 | used. | |
5337 | ||
5338 | * snames.adb: New standard name Path_Syntax | |
7c066666 | 5339 | |
16760d5a | 5340 | * snames.ads: New standard name Path_Syntax |
5341 | ||
5342 | 2008-08-01 Vincent Celier <celier@adacore.com> | |
5343 | ||
5344 | * mlib-utl.adb: | |
5345 | (Adalib_Path): New variable to store the path of the adalib directory | |
5346 | when procedure Specify_Adalib_Dir is called. | |
5347 | (Lib_Directory): If Adalib_Path is not null, return its value | |
5348 | (Specify_Adalib_Dir): New procedure | |
7c066666 | 5349 | |
16760d5a | 5350 | * mlib-utl.ads (Specify_Adalib_Dir): New procedure |
5351 | ||
5352 | 2008-08-01 Ed Schonberg <schonberg@adacore.com> | |
5353 | ||
5354 | * sem_prag.adb: | |
5355 | (Check_Precondition_Postcondition): If not generating code, analyze the | |
5356 | expression in a postcondition that appears in a subprogram body, so that | |
5357 | it is properly decorated for ASIS use. | |
5358 | ||
5359 | 2008-08-01 Gary Dismukes <dismukes@adacore.com> | |
5360 | ||
5361 | * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets | |
5362 | Orig_Prev to Prev in the case where the actual is N_Function_Call or | |
5363 | N_Identifier. This was interfering with other cases that are rewritten | |
5364 | as N_Identifier, such as allocators, resulting in passing of the wrong | |
5365 | accessibility level, and based on testing this code is apparently no | |
5366 | longer needed at all. | |
5367 | ||
5368 | 2008-08-01 Ed Schonberg <schonberg@adacore.com> | |
5369 | ||
5370 | * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a | |
5371 | procedure call whose prefix | |
5372 | is a parameterless function call that returns an access_to_procedure. | |
5373 | ||
2ae4909a | 5374 | 2008-08-01 Jose Ruiz <ruiz@adacore.com> |
5375 | ||
5376 | * adaint.c (__gnat_tmp_name): Refine the generation of temporary names | |
5377 | for RTX. Adding a suffix that is incremented at each iteration. | |
5378 | ||
5379 | 2008-08-01 Robert Dewar <dewar@adacore.com> | |
5380 | ||
5381 | * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of | |
5382 | Raise_Exception | |
5383 | ||
5384 | 2008-08-01 Jerome Lambourg <lambourg@adacore.com> | |
5385 | ||
5386 | * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in | |
5387 | paths, which are authorized by Windows but can lead to errors when used | |
5388 | elsewhere. | |
5389 | ||
cdd14238 | 5390 | 2008-08-01 Ed Schonberg <schonberg@adacore.com> |
5391 | ||
5392 | * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create | |
5393 | a pending instantiation for the body of a subprogram that is to be | |
5394 | inlined. | |
5395 | ||
5396 | * sem_ch12.adb: | |
5397 | (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body. | |
5398 | ||
5399 | * sem_prag.adb (Make_Inline): If the pragma applies to an instance, | |
5400 | create a pending instance for its body, so that calls to the subprogram | |
5401 | can be inlined by the back-end. | |
5402 | ||
5403 | 2008-08-01 Jose Ruiz <ruiz@adacore.com> | |
5404 | ||
5405 | * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and | |
5406 | rts-rtx-w32). | |
5407 | ||
7764c2d8 | 5408 | 2008-08-01 Robert Dewar <dewar@adacore.com> |
5409 | ||
5410 | * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer | |
5411 | ||
5412 | 2008-08-01 Doug Rupp <rupp@adacore.com> | |
5413 | ||
5414 | * gnat_rm.texi: Document new mechanism Short_Descriptor. | |
7c066666 | 5415 | |
7764c2d8 | 5416 | * types.ads (Mechanism_Type): Modify range for new Short_Descriptor |
5417 | mechanism values. | |
5418 | ||
5419 | * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor | |
5420 | mechanism and Short_Descriptor mechanism values. | |
5421 | ||
5422 | * snames.adb (preset_names): Add short_descriptor entry. | |
5423 | ||
5424 | * snames.ads: Add Name_Short_Descriptor. | |
5425 | ||
5426 | * types.h: Add new By_Short_Descriptor mechanism values. | |
5427 | ||
5428 | * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor | |
5429 | mechanism and Short_Descriptor mechanism values. | |
5430 | ||
5431 | * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism | |
5432 | values. | |
5433 | (Descriptor_Codes): Modify range for new mechanism values. | |
5434 | ||
5435 | * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor | |
5436 | mechanism values. | |
5437 | ||
5438 | * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor. | |
5439 | (gnat_to_gnu_param): Handle By_Short_Descriptor. | |
5440 | ||
5441 | * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype. | |
5442 | (build_vms_descriptor32): New prototype. | |
5443 | (fill_vms_descriptor): Remove unneeded gnat_actual parameter. | |
5444 | ||
5445 | * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual | |
5446 | argument in call fill_vms_descriptor. | |
5447 | ||
5448 | * gcc-interface/utils.c (build_vms_descriptor32): Renamed from | |
5449 | build_vms_descriptor and enhanced to hande Short_Descriptor mechanism. | |
7c066666 | 5450 | (build_vms_descriptor): Renamed from build_vms_descriptor64. |
7764c2d8 | 5451 | (convert_vms_descriptor32): New function. |
5452 | (convert_vms_descriptor64): New function. | |
5453 | (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit | |
5454 | descriptors. | |
5455 | ||
5456 | * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes, | |
5457 | no longer needed. | |
5458 | ||
5459 | 2008-08-01 Jose Ruiz <ruiz@adacore.com> | |
5460 | ||
5461 | * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam | |
5462 | nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary | |
5463 | name. | |
5464 | ||
9ba1d20c | 5465 | 2008-08-01 Jose Ruiz <ruiz@adacore.com> |
5466 | ||
5467 | * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the | |
5468 | current directory so only fully qualified names are allowed. | |
5469 | ||
5470 | 2008-08-01 Robert Dewar <dewar@adacore.com> | |
5471 | ||
5472 | * gnat_ugn.texi: | |
5473 | Minor editing, remove uncomfortable use of semicolon | |
5474 | ||
5475 | * s-ststop.adb: Add some ??? comments | |
5476 | ||
5477 | * sem_ch10.adb: Minor reformatting | |
5478 | ||
5479 | * snames.ads: | |
5480 | Minor comment fixes, some pragmas were not properly | |
5481 | categorized in the comments, documentation change only | |
5482 | ||
5483 | * xref_lib.adb: Minor reformatting | |
5484 | ||
5485 | * sinput.adb: Minor reformatting | |
5486 | ||
5487 | * gnatchop.adb: Minor reformatting | |
5488 | ||
5489 | * sem_util.ads: Minor reformatting. | |
5490 | ||
5491 | * opt.ads: Minor documentation fix | |
5492 | ||
5493 | * scng.adb: Minor reformatting | |
5494 | ||
5495 | * prj-part.adb: Update comments | |
5496 | ||
5497 | 2008-08-01 Ed Schonberg <schonberg@adacore.com> | |
5498 | ||
5499 | * exp_disp.adb (Expand_Interface_Conversion): If the target type is a | |
5500 | tagged synchronized type, use corresponding record type. | |
5501 | ||
5502 | 2008-08-01 Doug Rupp <rupp@adacore.com> | |
5503 | ||
5504 | * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a | |
5505 | dummy transfer address for debugging. | |
7c066666 | 5506 | |
9ba1d20c | 5507 | * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise. |
5508 | ||
5509 | * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING | |
5510 | ||
5757acea | 5511 | 2008-07-31 Eric Botcazou <ebotcazou@adacore.com> |
5512 | ||
5513 | * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting. | |
5514 | * gcc-interface/utils.c (create_field_decl): Avoid superfluous work. | |
5515 | ||
898d7810 | 5516 | 2008-07-31 Pascal Obry <obry@adacore.com> |
5517 | ||
5518 | * prj-nmsc.adb: Keep Object and Exec directory casing. | |
5519 | ||
5520 | 2008-07-31 Jose Ruiz <ruiz@adacore.com> | |
5521 | ||
5522 | * system-rtx-rtss.ads | |
5523 | Change the default stack size. It is important to set the commit part. | |
7c066666 | 5524 | |
898d7810 | 5525 | * s-taprop-rtx.adb |
5526 | (Initialize): Get the clock resolution. | |
5527 | (RT_Resolution): Return the clock resolution that is indicated by the | |
5528 | system. | |
5529 | ||
5530 | * s-parame-vxworks.adb | |
5531 | Document that this body is used for RTX in RTSS (kernel) mode. | |
5532 | ||
5533 | * gcc-interface/Makefile.in | |
5534 | (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the | |
5535 | s-parame-vxworks.adb body in order to have reasonable stack sizes in | |
5536 | RTX RTSS kernel mode. Virtual memory is not used in that case, so we | |
5537 | cannot ask for too big values. | |
5538 | ||
5539 | 2008-07-31 Robert Dewar <dewar@adacore.com> | |
5540 | ||
5541 | * exp_aggr.adb: Minor reformatting | |
5542 | ||
5543 | * makeutl.adb: Minor reformatting | |
5544 | ||
5545 | * prj-env.adb: Minor reformatting | |
5546 | ||
3830fb74 | 5547 | 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com> |
5548 | ||
5549 | * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private | |
5550 | tagged type is completed by a concurrent type. | |
5551 | ||
5552 | 2008-07-31 Gary Dismukes <dismukes@adacore.com> | |
5553 | ||
5554 | * sem_aggr.adb: | |
5555 | (Resolve_Record_Aggregate): Bypass error that a type without | |
5556 | components must have a "null record" aggregate when compiling for Ada | |
5557 | 2005, since it's legal to give an aggregate of form (others => <>) | |
5558 | for such a type. | |
5559 | ||
c63b32a3 | 5560 | 2008-07-31 Javier Miranda <miranda@adacore.com> |
5561 | ||
5562 | * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to | |
5563 | handle synchronized types. Required to handle well the object.operation | |
5564 | notation applied to synchronized types. | |
5565 | ||
5566 | 2008-07-31 Quentin Ochem <ochem@adacore.com> | |
5567 | ||
5568 | * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored | |
5569 | anymore - just used internally. | |
5570 | Added handling of very small tasks - when the theoretical size is | |
5571 | already full at the point of the call. | |
5572 | (Report_Result): Fixed result computation, Stack_Used_When_Filling does | |
5573 | not need to be added to the result. | |
5574 | ||
5575 | 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com> | |
5576 | ||
5577 | * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the | |
5578 | corresponding spec is a primitive wrapper. Update comment. | |
5579 | ||
5580 | 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com> | |
5581 | ||
5582 | * bindgen.adb Comment reformatting. Update the list of run-time globals. | |
5583 | (Gen_Adainit_Ada): Add the declaration, import and value set for | |
5584 | configuration flag Canonical_Streams. | |
5585 | (Gen_Adainit_C): Add the declaration and initial value of external | |
5586 | symbol __gl_canonical_streams. | |
7c066666 | 5587 | |
c63b32a3 | 5588 | * init.c: Update the list of global values computed by the binder. |
7c066666 | 5589 | |
c63b32a3 | 5590 | * opt.ads: Add flag Canonical_Streams. |
7c066666 | 5591 | |
c63b32a3 | 5592 | * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of |
5593 | semantically handled pragmas. | |
7c066666 | 5594 | |
c63b32a3 | 5595 | * sem_prag.adb: Add an entry into enumeration type Sig_Flags. |
5596 | (Analyze_Pragma): Add case for pragma Canonical_Streams. | |
7c066666 | 5597 | |
c63b32a3 | 5598 | * snames.adb: Add character value for name Canonical_Streams. |
7c066666 | 5599 | |
c63b32a3 | 5600 | * snames.ads: |
5601 | Add Name_Canonical_Streams to the list of configuration pragmas. | |
5602 | Add Pragma_Canonical_Streams to enumeration type Pragma_Id. | |
7c066666 | 5603 | |
c63b32a3 | 5604 | * snames.h: Add a definition for Pragma_Canonical_Streams. |
7c066666 | 5605 | |
c63b32a3 | 5606 | * s-ststop.adb: |
5607 | Add a flag and import to seize the value of external symbol | |
5608 | __gl_canonical_streams. Update comment and initial value of constant | |
5609 | Use_Block_IO. | |
7c066666 | 5610 | |
c63b32a3 | 5611 | * gnat_rm.texi: Add section of pragma Canonical_Streams. |
7c066666 | 5612 | |
c63b32a3 | 5613 | * gnat_ugn.texi: |
5614 | Add pragma Canonical_Streams to the list of configuration pragmas. | |
5615 | ||
5616 | 2008-07-31 Ed Schonberg <schonberg@adacore.com> | |
5617 | ||
5618 | * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause | |
5619 | has the form A.B.C and B is a unit renaming, analyze its compilation | |
5620 | unit and add a with_clause on A.b to the context. | |
5621 | ||
4a44e1fa | 5622 | 2008-07-31 Vincent Celier <celier@adacore.com> |
5623 | ||
5624 | * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails, | |
5625 | return the empty string, instead of raising Constraint_Error. | |
5626 | ||
5627 | 2008-07-31 Gary Dismukes <dismukes@adacore.com> | |
5628 | ||
5629 | * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node. | |
7c066666 | 5630 | |
4a44e1fa | 5631 | * checks.adb (Apply_Accessibility_Check): Insert the check on |
5632 | Insert_Node. | |
7c066666 | 5633 | |
4a44e1fa | 5634 | * exp_attr.adb: |
5635 | (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node | |
5636 | to new parameter Insert_Node on call to Apply_Accessibility_Check. | |
5637 | Necessary to distinguish the insertion node because the dereferenced | |
5638 | formal may come from a rename, but the check must be inserted in | |
5639 | front of the attribute. | |
7c066666 | 5640 | |
4a44e1fa | 5641 | * exp_ch4.adb: |
5642 | (Expand_N_Allocator): Pass actual for new Insert_Node parameter on | |
5643 | call to Apply_Accessibility_Check. | |
5644 | (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter | |
5645 | on call to Apply_Accessibility_Check. | |
5646 | Minor reformatting | |
5647 | ||
5648 | 2008-07-31 Javier Miranda <miranda@adacore.com> | |
5649 | ||
5650 | * sem_type.adb (Has_Compatible_Type): Complete support for synchronized | |
5651 | types when the candidate type is a synchronized type. | |
7c066666 | 5652 | |
4a44e1fa | 5653 | * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized |
5654 | types, and complete management of synchronized types adding missing | |
5655 | code to handle formal that is a synchronized type. | |
7c066666 | 5656 | |
4a44e1fa | 5657 | * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that |
5658 | are not available and cause the compiler to blowup. Found compiling | |
5659 | test with switch -gnatc | |
7c066666 | 5660 | |
4a44e1fa | 5661 | * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram |
5662 | Has_Correct_Formal_Mode plus code cleanup. | |
5663 | ||
397e2733 | 5664 | 2008-07-31 Bob Duff <duff@adacore.com> |
5665 | ||
5666 | * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was | |
5667 | recognized as two end-of-lines, but it should be just one. | |
5668 | ||
5669 | 2008-07-31 Thomas Quinot <quinot@adacore.com> | |
5670 | ||
5671 | * exp_ch9.adb: Minor reformatting | |
5672 | ||
5673 | * tbuild.ads: Fix several occurrences of incorrectly referring to | |
5674 | Name_Find as Find_Name. | |
5675 | ||
5676 | 2008-07-31 Ed Schonberg <schonberg@adacore.com> | |
5677 | ||
5678 | * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component | |
5679 | and the context is an object declaration with non-static bounds, treat | |
5680 | the aggregate as non-static. | |
5681 | ||
5682 | 2008-07-31 Vincent Celier <celier@adacore.com> | |
5683 | ||
5684 | * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb: | |
5685 | Move back spec of Parse_Single_Project to body, as it is not called | |
5686 | outside of package Prj.Part. | |
5687 | (Project_Data): Remove components Linker_Name, Linker_Path and | |
5688 | Minimum_Linker_Options as they are no longer set. | |
5689 | Remove function There_Are_Ada_Sources from package Prj and move code | |
5690 | in the only place it was used, in Prj.Env.Set_Ada_Paths. | |
5691 | ||
3bba7b0c | 5692 | 2008-07-31 Arnaud Charlet <charlet@adacore.com> |
5693 | ||
5694 | * mlib-utl.ads: Fix typo. | |
5695 | ||
5696 | 2008-07-31 Robert Dewar <dewar@adacore.com> | |
5697 | ||
5698 | * sem_ch12.adb: Minor reformatting | |
5699 | ||
5700 | 2008-07-31 Sergey Rybin <rybin@adacore.com> | |
5701 | ||
5702 | * gnat_ugn.texi: Change the description of the | |
5703 | Overly_Nested_Control_Structures: now the rule always requires a | |
5704 | positive parameter for '+R' option | |
5705 | ||
5706 | 2008-07-31 Thomas Quinot <quinot@adacore.com> | |
5707 | ||
5708 | * g-pehage.adb: Minor reformatting | |
5709 | ||
5710 | 2008-07-31 Pascal Obry <obry@adacore.com> | |
5711 | ||
5712 | * s-finimp.ads: Minor reformatting. | |
5713 | ||
5714 | 2008-07-31 Vincent Celier <celier@adacore.com> | |
5715 | ||
5716 | * s-regexp.ads: Minor comment fix | |
5717 | ||
5718 | 2008-07-31 Arnaud Charlet <charlet@adacore.com> | |
5719 | ||
5720 | * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off), | |
5721 | so that we can compile this file successfully with -gnatc. | |
5722 | ||
5723 | 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com> | |
5724 | ||
5725 | * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead | |
5726 | of the type when looking for stream subprograms for type String, | |
5727 | Wide_String and Wide_Wide_String. | |
7c066666 | 5728 | |
3bba7b0c | 5729 | * s-ststop.adb: Change the initialization expression of constant |
5730 | Use_Block_IO. | |
5731 | ||
5732 | 2008-07-31 Geert Bosch <bosch@adacore.com> | |
5733 | ||
5734 | * arit64.c: | |
5735 | New file implementing __gnat_mulv64 signed integer multiplication with | |
5736 | overflow checking | |
5737 | ||
5738 | * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi | |
5739 | ||
5740 | * gcc-interface/gigi.h: | |
5741 | (standard_types): Add ADT_mulv64_decl | |
5742 | (mulv64_decl): Define subprogram declaration for __gnat_mulv64 | |
5743 | ||
5744 | * gcc-interface/utils.c: | |
5745 | (init_gigi_decls): Add initialization of mulv64_decl | |
5746 | ||
5747 | * gcc-interface/trans.c: | |
5748 | (build_unary_op_trapv): New function | |
5749 | (build_binary_op_trapv): New function | |
5750 | (gnat_to_gnu): Use the above functions instead of | |
5751 | build_{unary,binary}_op | |
5752 | ||
5753 | * gcc-interface/Makefile.in | |
5754 | (LIBGNAT_SRCS): Add arit64.c | |
5755 | (LIBGNAT_OBJS): Add arit64.o | |
5756 | ||
5757 | 2008-07-31 Vincent Celier <celier@adacore.com> | |
5758 | ||
5759 | * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or | |
5760 | Linker'Default_Switches are declared. Warn if they are declared. | |
5761 | ||
5762 | 2008-07-31 Ed Schonberg <schonberg@adacore.com> | |
5763 | ||
5764 | * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use | |
5765 | Insert_Actions to place the pointer declaration in the code, rather | |
5766 | than Insert_Before_And_Analyze, so that insertions of temporaries are | |
5767 | kept in the proper order when transient scopes are present. | |
5768 | ||
5769 | ||
d23965f1 | 5770 | 2008-07-31 Robert Dewar <dewar@adacore.com> |
5771 | ||
5772 | * einfo.adb (Spec_PPC): Now defined for generic subprograms | |
7c066666 | 5773 | |
d23965f1 | 5774 | * einfo.ads (Spec_PPC): Now defined for generic subprograms |
7c066666 | 5775 | |
d23965f1 | 5776 | * sem_prag.adb (Check_Precondition_Postcondition): Handle generic |
5777 | subprogram case | |
5778 | ||
5779 | 2008-07-31 Vincent Celier <celier@adacore.com> | |
5780 | ||
5781 | * s-os_lib.adb: Minor comment fix | |
5782 | ||
5783 | 2008-07-31 Ed Schonberg <schonberg@adacore.com> | |
5784 | ||
5785 | * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis, | |
5786 | transfer pre/postconditions from generic copy to original tree, so that | |
5787 | they will appear in each instance. | |
5788 | (Process_PPCs): Do not transform postconditions into a procedure in a | |
5789 | generic context, to prevent double expansion of check pragmas. | |
7c066666 | 5790 | |
d23965f1 | 5791 | * sem_attr.adb: In an instance, the prefix of the 'result attribute |
5792 | can be the renaming of the | |
5793 | current instance, so check validity of the name accordingly. | |
5794 | ||
b4042a09 | 5795 | 2008-07-31 Robert Dewar <dewar@adacore.com> |
5796 | ||
5797 | * mlib-utl.ads: Minor reformatting | |
5798 | ||
5799 | 2008-07-31 Ed Schonberg <schonberg@adacore.com> | |
5800 | ||
5801 | sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved | |
5802 | from context. This attribute must be usable in Ada95 mode. | |
5803 | The attribute can appear in the body of a function marked | |
5804 | Inline_Always, but in this case the postocondition is not enforced. | |
7c066666 | 5805 | |
b4042a09 | 5806 | sem_prag.adb (Check_Precondition_Postcondition): within the expansion |
5807 | of an inlined call pre- and postconditions are legal | |
5808 | ||
5809 | 2008-07-31 Vincent Celier <celier@adacore.com> | |
5810 | ||
5811 | * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that | |
5812 | were for gprmake only | |
5813 | ||
5814 | 2008-07-31 Robert Dewar <dewar@adacore.com> | |
5815 | ||
5816 | * gnat_ugn.texi: Update -gnatN documentation. | |
5817 | ||
5818 | * gnat_rm.texi: Add note about pre/postcondition | |
5819 | pragmas not checked in conjunction with front-end inlining. | |
5820 | ||
a1a6e480 | 5821 | 2008-07-31 Robert Dewar <dewar@adacore.com> |
5822 | ||
5823 | * g-pehage.adb, g-pehage.ads: Minor reformatting | |
5824 | ||
5825 | 2008-07-31 Arnaud Charlet <charlet@adacore.com> | |
5826 | ||
5827 | * mlib-utl.ads, prj-makr.ads: Add comments. | |
5828 | ||
d74bb6f8 | 5829 | 2008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com> |
5830 | ||
7c066666 | 5831 | * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) |
d74bb6f8 | 5832 | [WINDOWS]: Add s-winext.o. |
5833 | ||
69c2baa9 | 5834 | 2008-07-30 Eric Botcazou <ebotcazou@adacore.com> |
5835 | ||
5836 | PR ada/36554 | |
5837 | * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi. | |
5838 | * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter. | |
5839 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>: | |
5840 | Set precision to 1 for subtype of BOOLEAN_TYPE. | |
5841 | (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE. | |
5842 | (make_type_from_size): Deal with BOOLEAN_TYPE. | |
5843 | * gcc-interface/misc.c (gnat_print_type): Likewise. | |
5844 | * gcc-interface/trans.c (gigi): Take new standard_boolean parameter. | |
5845 | Set boolean_type_node as its translation in the table, as well | |
5846 | as boolean_false_node for False and boolean_true_node for True. | |
5847 | * gcc-interface/utils.c (gnat_init_decl_processing): Create custom | |
5848 | 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM. | |
5849 | (create_param_decl): Deal with BOOLEAN_TYPE. | |
5850 | (build_vms_descriptor): Likewise. | |
5851 | (build_vms_descriptor64): Likewise. | |
5852 | (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE. | |
5853 | ||
44350a22 | 5854 | 2008-07-30 Robert Dewar <dewar@adacore.com> |
5855 | ||
5856 | * exp_ch9.adb: Minor reformatting | |
5857 | ||
5858 | * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised | |
5859 | if no primitive operation is found. | |
5860 | ||
5861 | * exp_util.adb: (Find_Prim_Op): Add comments for previous change | |
5862 | ||
5863 | * sem_ch8.adb: Minor reformatting | |
5864 | ||
5865 | 2008-07-30 Laurent Pautet <pautet@adacore.com> | |
5866 | ||
5867 | * g-pehage.adb: | |
5868 | Remove a limitation on the length of the words handled by the minimal | |
5869 | perfect hash function generator. | |
5870 | ||
5871 | * g-pehage.ads: | |
5872 | Detail the use of subprograms Insert, Initialize, Compute and Finalize. | |
5873 | Fix some typos. | |
5874 | ||
649307a2 | 5875 | 2008-07-30 Robert Dewar <dewar@adacore.com> |
5876 | ||
5877 | * gnatlink.adb: Minor reformatting | |
5878 | ||
5879 | 2008-07-30 Thomas Quinot <quinot@adacore.com> | |
5880 | ||
5881 | * rtsfind.adb (Check_RPC): Check version consistency even when not | |
5882 | generating RCI stubs. Provide more detailed error message in case of | |
5883 | mismatch. | |
5884 | ||
5885 | 2008-07-30 Ed Schonberg <schonberg@adacore.com> | |
5886 | ||
5887 | * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute | |
5888 | as a actual in an instance, check for a missing attribute to prevent | |
5889 | program_error on an illegal program. | |
7c066666 | 5890 | |
649307a2 | 5891 | * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program |
5892 | error if primitive is not found, so that exception can be handled | |
5893 | elsewhere on illegal programs. | |
5894 | ||
5895 | 2008-07-30 Robert Dewar <dewar@adacore.com> | |
5896 | ||
5897 | * uintp.adb (UI_GCD): Fix potential overflow | |
5898 | ||
5899 | 2008-07-30 Hristian Kirtchev <kirtchev@adacore.com> | |
5900 | ||
5901 | * einfo.adb: Flag245 is now used. | |
5902 | (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion | |
5903 | check to include functions. | |
5904 | (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms. | |
5905 | (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to | |
5906 | include functions. | |
5907 | (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive | |
5908 | to the list of displayed flags. | |
5909 | ||
5910 | * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and | |
5911 | Wrapped_Entity. These two flags are now present in functions. | |
5912 | New flag Is_Private_Primitive. | |
5913 | (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms. | |
5914 | ||
5915 | * exp_ch9.adb: | |
5916 | (Build_Wrapper_Bodies): New subprogram. | |
5917 | (Build_Wrapper_Body): The spec and body have been moved to in | |
5918 | Build_Wrapper_ Bodies. Code cleanup. | |
5919 | (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup. | |
5920 | Wrappers are now generated for primitives declared between the private | |
5921 | and full view of a concurrent type that implements an interface. | |
5922 | (Build_Wrapper_Specs): New subprogram. | |
5923 | (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body | |
5924 | creation mechanism with a call to Build_Wrapper_Bodies. | |
5925 | (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the | |
5926 | wrapper spec creation mechanism with a call to Build_Wrapper_Specs. | |
5927 | (Expand_N_Task_Body): Replace the wrapper body creation | |
5928 | mechanism with a call to Build_Wrapper_Bodies. | |
5929 | (Expand_N_Task_Type_Declaration): Replace the wrapper spec | |
5930 | creation mechanism with a call to Build_Wrapper_Specs. | |
5931 | (Is_Private_Primitive_Subprogram): New subprogram. | |
5932 | (Overriding_Possible): Code cleanup. | |
5933 | (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup. | |
5934 | ||
5935 | * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9. | |
5936 | ||
5937 | * sem_ch3.adb: Add with and use clause for Exp_Ch9. | |
5938 | (Process_Full_View): Build wrapper specs for all primitives | |
5939 | that belong to a private view completed by a concurrent type | |
5940 | implementing an interface. | |
7c066666 | 5941 | |
649307a2 | 5942 | * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram |
5943 | is a primitive of a | |
5944 | concurrent type with a private view that implements an interface, try to | |
5945 | find the proper spec. | |
5946 | (Analyze_Subprogram_Declaration): Mark a subprogram as a private | |
5947 | primitive if the type of its first parameter is a non-generic tagged | |
5948 | private type. | |
5949 | (Analyze_Subprogram_Specification): Code reformatting. | |
5950 | (Disambiguate_Spec): New routine. | |
5951 | (Find_Corresponding_Spec): Add a flag to controll the output of errors. | |
5952 | (Is_Private_Concurrent_Primitive): New routine. | |
5953 | ||
5954 | * sem_ch6.ads: | |
5955 | (Find_Corresponding_Spec): Add a formal to control the output of errors. | |
5956 | ||
dc3276a2 | 5957 | 2008-07-30 Doug Rupp <rupp@adacore.com> |
5958 | ||
5959 | * gigi.h (build_vms_descriptor64): New function prototype. | |
5960 | (fill_vms_descriptor): Modified function prototype. | |
5961 | ||
5962 | * utils.c (build_vms_descriptor64): New function. | |
5963 | ||
5964 | * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems. | |
5965 | ||
5966 | * trans.c (call_to_gnu): Call fill_vms_descriptor with new third | |
5967 | argument. | |
5968 | ||
5969 | * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a | |
5970 | 64bit and 32bit descriptor and save the 64bit version as an alternate | |
5971 | TREE_TYPE in the parameter. | |
5972 | (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the | |
5973 | thin pointer. | |
5974 | ||
5975 | * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros. | |
5976 | ||
c93a3651 | 5977 | 2008-07-30 Robert Dewar <dewar@adacore.com> |
5978 | ||
5979 | * make.adb: Minor reformatting | |
5980 | ||
5981 | * mlib-utl.adb: Minor reformatting | |
5982 | ||
5983 | * osint.ads: Minor reformatting | |
5984 | ||
5985 | 2008-07-30 Jose Ruiz <ruiz@adacore.com> | |
5986 | ||
5987 | * adaint.c | |
5988 | (__gnat_file_exists): Do not use __gnat_stat for RTX. | |
5989 | (__main for RTX in RTSS mode): Create this dummy procedure symbol to | |
5990 | avoid the use of this symbol from libgcc.a in RTX kernel mode. | |
5991 | ||
5992 | * cio.c | |
5993 | (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call | |
5994 | the function RtPrintf for console output. | |
7c066666 | 5995 | |
c93a3651 | 5996 | * argv.c Do not use the environ variable for RTX. |
7c066666 | 5997 | |
c93a3651 | 5998 | * gnatlink.adb (gnatlink): The part that handles the --RTS option has |
5999 | been moved before the call to Osint.Add_Default_Search_Dirs in order | |
6000 | to take into account the flags in system.ads (RTX_RTSS_Kernel_Module) | |
6001 | from the appropriate run time. | |
7c066666 | 6002 | |
c93a3651 | 6003 | * targparm.ads |
6004 | (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if | |
6005 | target is a RTSS module for RTX. | |
7c066666 | 6006 | |
c93a3651 | 6007 | * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for |
6008 | RTX_RTSS_Kernel_Module | |
6009 | (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag. | |
6010 | ||
6011 | * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc | |
6012 | exception handling mechanism for Windows and RTX in Win32 mode, but | |
6013 | not for RTX in kernel mode (RTSS). | |
6014 | (LIBGNAT_SRCS): Remove ada.h | |
6015 | ||
3bed0958 | 6016 | 2008-07-30 Paolo Bonzini <bonzini@gnu.org> |
6017 | ||
6018 | * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and | |
6019 | T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS. | |
6020 | (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS. | |
6021 | * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS, | |
6022 | X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS, | |
6023 | ALL_ADA_CFLAGS): Remove. | |
6024 | (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS, | |
6025 | replace ALL_ADA_CFLAGS with ADA_CFLAGS. | |
6026 | (GCC_CFLAGS): Remove X_CFLAGS. | |
6027 | (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS. | |
6028 | (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS. | |
6029 | (ADA_CFLAGS): Substitute. | |
6030 | ||
dd53aa4f | 6031 | 2008-07-30 Laurent Guerby <laurent@guerby.net> |
6032 | ||
7c066666 | 6033 | PR ada/5911 |
6034 | * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables. | |
6035 | Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts. | |
6036 | Replace stamp-gnatlib* by stamp-gnatlib*-rts. | |
6037 | * gcc-interface/Make-lang.in: Replace stamp-gnatlib2 | |
6038 | by stamp-gnatlib2-rts. | |
6039 | ||
a4cb9727 | 6040 | 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
6041 | ||
6042 | PR documentation/15479 | |
6043 | * gnat-style.texi: Remove AdaCore copyright statement and GPL | |
6044 | statement for GNAT. Add @copying stanza, use it. Update to | |
6045 | GFDL 1.2. Do not list GFDL as Invariant Section, do not list | |
6046 | title as Front-Cover Text. | |
6047 | * gnat_rm.texi: Likewise. | |
6048 | * gnat_ugn.texi: Likewise. | |
6049 | ||
6491e64d | 6050 | 2008-07-29 Jan Hubicka <jh@suse.cz> |
6051 | ||
6052 | * trans.c (process_inlined_subprograms): Remove tree_really_inline | |
6053 | check. | |
6054 | ||
804ac390 | 6055 | 2008-07-29 Arnaud Charlet <charlet@adacore.com> |
6056 | ||
6057 | * gcc-interface: New directory. | |
6058 | ||
6059 | * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h, | |
6060 | utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c, | |
6061 | config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved | |
6062 | to gcc-interface subdirectory. | |
6063 | ||
2e096124 | 6064 | 2008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com> |
6065 | ||
6066 | * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o. | |
6067 | ||
1c2f0012 | 6068 | 2008-07-28 Jan Hubicka <jh@suse.cz> |
6069 | ||
6070 | * misc.c (gnat_post_options): Do not set flag_no_inline. | |
6071 | ||
75a70cf9 | 6072 | 2008-07-28 Richard Guenther <rguenther@suse.de> |
6073 | ||
6074 | Merge from gimple-tuples-branch. | |
6075 | ||
6076 | 2008-07-22 Olivier Hainque <hainque@adacore.com> | |
6077 | ||
6078 | * gigi.h (end_subprog_body): New ELAB_P argument, saying if | |
6079 | this is called for an elab proc to be discarded if empty. | |
6080 | * utils.c (end_subprog_body): Honor ELAB_P. | |
6081 | (build_function_stub): Adjust call to end_subprog_body. | |
6082 | * trans.c (Subprogram_Body_to_gnu): Likewise. | |
6083 | (gigi): Reorganize processing of elab procs to prevent | |
6084 | gimplifying twice, using the new end_subprog_body argument. | |
6085 | ||
6086 | 2008-07-19 Richard Guenther <rguenther@suse.de> | |
6087 | ||
6088 | * Make-lang.in (trans.o): Add tree-iterator.h dependency. | |
6089 | (utils.o): Likewise. | |
6090 | * trans.c: Include tree-iterator.h. | |
6091 | (gnat_gimplify_expr): Adjust prototype. Fix typo. | |
6092 | (gnat_gimplify_stmt): Use SET_EXPR_LOCATION. | |
6093 | (set_expr_location_from_node): Likewise. | |
6094 | (gigi): Tuplify. | |
6095 | * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead | |
6096 | of GENERIC_NEXT. | |
6097 | * utils.c: Include tree-iterator.h. | |
6098 | * gigi.h (gnat_gimplify_expr): Adjust prototype. | |
6099 | ||
6100 | 2008-07-18 Aldy Hernandez <aldyh@redhat.com> | |
6101 | ||
6102 | * trans.c: Include gimple.h instead of tree-gimple.h. | |
6103 | * utils.c: Same. | |
6104 | ||
6105 | 2008-07-14 Aldy Hernandez <aldyh@redhat.com> | |
6106 | ||
6107 | * trans.c (gnat_gimplify_expr): Use gimplify_assign. | |
6108 | ||
289a5bce | 6109 | 2008-07-25 Jan Hubicka <jh@suse.cz> |
6329636b | 6110 | |
289a5bce | 6111 | * utils.c (end_subprog_body): Remove inline trees check. |
6112 | * misc.c (gnat_post_options): Do not set flag_inline_trees. | |
6329636b | 6113 | |
12ffdafd | 6114 | 2008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
6115 | ||
6116 | * raise-gcc.c: Move tsystem.h before tm.h. | |
6117 | ||
0c026899 | 6118 | 2008-07-20 Arnaud Charlet <charlet@adacore.com> |
6119 | ||
6120 | * gnathtml.pl: New file. | |
6121 | ||
65c05dfd | 6122 | 2008-07-19 Olivier Hainque <hainque@adacore.com> |
289a5bce | 6123 | |
65c05dfd | 6124 | * targtyps.c (get_target_default_allocator_alignment): Use |
6125 | MALLOC_ABI_ALIGNMENT. | |
6126 | ||
a4f295eb | 6127 | 2008-07-17 Olivier Hainque <hainque@adacore.com> |
6128 | ||
6129 | * adaint.c (__MINGW32__ section): Include ctype.h and define | |
6130 | a fallback ISALPHA if IN_RTS. | |
7c066666 | 6131 | (__gnat_is_absolute_path): Use ISALPHA instead of isalpha. |
a4f295eb | 6132 | |
3b4d2ae2 | 6133 | 2008-07-17 Olivier Hainque <hainque@adacore.com> |
6134 | ||
6135 | * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG | |
6136 | argument, to apply to references in addition to definitions. Prevent | |
6137 | setting TREE_STATIC on externals. | |
6138 | (gnat_pushdecl): Always clear DECL_CONTEXT on public externals. | |
6139 | ||
7bb50e42 | 6140 | 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
6141 | ||
6142 | PR documentation/15479 | |
6143 | * gnat_ugn.texi (@ovar): New macro, from autoconf.texi. | |
6144 | Replace backets around optional parameters with @ovar | |
6145 | where possible, use @r{[}, @r{]} otherwise. | |
6146 | Replace some @r, @i, and @emph with @var where appropriate. | |
6147 | ||
07a98ebd | 6148 | 2008-07-02 Eric Botcazou <ebotcazou@adacore.com> |
6149 | ||
6150 | * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up. | |
6151 | ||
5703e222 | 6152 | 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
6153 | ||
6154 | * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix | |
6155 | -Wc++-compat warnings. | |
6156 | * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec, | |
6157 | __gnat_locate_exec_on_path): Likewise. | |
6158 | * decl.c (annotate_value): Likewise. | |
6159 | * misc.c (gnat_handle_option): Likewise. | |
6160 | * trans.c (gnat_to_gnu, extract_encoding, decode_name, | |
6161 | post_error_ne_tree): Likewise. | |
6162 | ||
deb74db2 | 6163 | 2008-06-27 Eric Botcazou <ebotcazou@adacore.com> |
6164 | ||
6165 | * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable | |
6166 | version of its type, attempt to first convert its elements. | |
6167 | ||
e92dcf50 | 6168 | 2008-06-26 Chris Proctor <chrisp_42@bigpond.com> |
6169 | ||
6170 | * Makefile.in: Fix *86 kfreebsd target specific pairs. | |
6171 | ||
e461aaea | 6172 | 2008-06-25 Samuel Tardieu <sam@rfc1149.net> |
6173 | ||
6174 | * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well. | |
6175 | ||
b2c48b27 | 6176 | 2008-06-24 Eric Botcazou <ebotcazou@adacore.com> |
6177 | ||
6178 | * utils2.c (known_alignment): Derive the alignment from pointed-to | |
6179 | types only if it is otherwise unknown. | |
6180 | <INTEGER_CST>: Tidy. | |
6181 | <MULT_EXPR>: Likewise. | |
6182 | <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use | |
6183 | that of the base. | |
6184 | ||
a4970f2b | 6185 | 2008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
6186 | ||
6187 | PR ada/36573 | |
6188 | * s-osinte-hpux-dce.ads (SA_ONSTACK): Define. | |
6189 | ||
c24c5fac | 6190 | 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
6191 | ||
6192 | * gnat_rm.texi (Implementation Defined Characteristics) | |
6193 | (Standard Library Routines): Use @smallexample for indented | |
6194 | text. Drop Indentation outside examples. | |
6195 | * gnat_ugn.texi: Likewise. | |
6196 | ||
37e67769 | 6197 | 2008-06-13 Olivier Hainque <hainque@adacore.com> |
6198 | ||
6199 | * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0 | |
6200 | if undefined. | |
6201 | (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack | |
6202 | realignment with force_align_arg_pointer attribute on foreign | |
6203 | convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN. | |
7c066666 | 6204 | |
77b4865c | 6205 | 2008-06-13 Olivier Hainque <hainque@adacore.com> |
6206 | ||
6207 | * utils.c (rest_of_record_type_compilation): When computing | |
6208 | encodings for the components of a variable size type, early | |
6209 | strip conversions on the current position expression to make | |
6210 | sure it's shape is visible. Use remove_conversions for this | |
6211 | purpose. | |
6212 | ||
94108d47 | 6213 | 2008-06-12 Eric Botcazou <ebotcazou@adacore.com> |
6214 | ||
6215 | * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a | |
6216 | constrained subtype of a discriminated type, discard the fields that | |
6217 | are beyond its limits according to its size. | |
6218 | ||
67c16e14 | 6219 | 2008-06-10 Olivier Hainque <hainque@adacore.com> |
6220 | ||
6221 | * utils.c (create_subprog_decl): If this is for the 'main' entry | |
6222 | point according to the asm name, redirect main_identifier_node. | |
6223 | ||
e197d74a | 6224 | 2008-06-09 Eric Botcazou <ebotcazou@adacore.com> |
6225 | ||
6226 | * decl.c (components_to_record): Adjust the packedness for the | |
6227 | qualified union as well. | |
6228 | ||
5dea02aa | 6229 | 2008-06-09 Arnaud Charlet <charlet@adacore.com> |
6230 | ||
6231 | * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle | |
6232 | checks non fatal. | |
6233 | ||
09066160 | 6234 | 2008-06-07 Samuel Tardieu <sam@rfc1149.net> |
6235 | ||
6236 | * sem_res.adb (Large_Storage_Type): A type is large if it | |
6237 | requires as many bits as Positive to store its values and its | |
6238 | bounds are known at compile time. | |
6239 | * sem_ch13.adb (Minimum_Size): Note that this function returns | |
6240 | 0 if the size is not known at compile time. | |
6241 | ||
40371af0 | 6242 | 2008-06-06 Nicolas Setton <setton@adacore.com> |
6243 | Olivier Hainque <hainque@adacore.com> | |
6244 | ||
6245 | * ada-tree.h (DECL_PARALLEL_TYPE): New language specific | |
6246 | attribute, parallel descriptive type attached to another | |
6247 | type for debug info generation purposes. | |
6248 | * utils.c (add_parallel_type): New function, register | |
6249 | parallel type to be attached to a type. | |
6250 | (get_parallel_type): New function, fetch a registered | |
6251 | parallel type, if any. | |
6252 | (rest_of_record_type_compilation): Register the parallel | |
6253 | type we make for variable size records. | |
6254 | * gigi.h (add_parallel_type, get_parallel_type): Declare. | |
6255 | * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the | |
6256 | parallel debug types we make. | |
6257 | * trans.c (extract_encoding, decode_name): New functions. | |
6258 | (gigi): If the DWARF attribute extensions are available, setup | |
6259 | to use them. | |
6260 | * lang.opt: Register language specific processing request | |
6261 | for -gdwarf+. | |
6262 | * misc.c (gnat_dwarf_extensions): New global variable. How much | |
6263 | do we want of our DWARF extensions. 0 by default. | |
6264 | (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions. | |
6265 | (gnat_post_options): Map gnat_dwarf_extensions to the | |
6266 | commonuse_gnu_debug_info_extensions for later processing. | |
7c066666 | 6267 | |
ef9af382 | 6268 | 2008-06-04 Samuel Tardieu <sam@rfc1149.net> |
6269 | ||
6270 | * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP. | |
6271 | ||
15c4d81d | 6272 | 2008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
6273 | ||
6274 | * Makefile.in (common_tools): Fix typos in $(exeext) extension. | |
6275 | * gnat_ugn.texi (Style Checking) | |
6276 | (Adding the Results of Compiler Checks to gnatcheck Output) | |
6277 | (Example of Binder Output File): Fix typos. | |
6278 | * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb, | |
6279 | exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads, | |
6280 | s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb, | |
6281 | s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb, | |
6282 | sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads, | |
6283 | sinfo.ads, utils.c: Fix typos in comments. | |
6284 | * sem_ch6.adb, vms_data.ads: Fix typos in strings. | |
6285 | ||
0572c71b | 6286 | 2008-05-29 Thomas Quinot <quinot@adacore.com> |
6287 | ||
6288 | * sem_eval.adb: Minor reformatting | |
6289 | ||
6290 | 2008-05-29 Ed Schonberg <schonberg@adacore.com> | |
6291 | ||
6292 | * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type | |
6293 | is abstract, do not apply abstractness check on subprogram if this is | |
6294 | a renaming declaration. | |
6295 | ||
6296 | 2008-05-29 Arnaud Charlet <charlet@adacore.com> | |
6297 | ||
6298 | PR ada/864 | |
6299 | * osint.ads, osint.adb (Program_Name): New parameter "Prog" to | |
6300 | allow recognition of program suffix in addition to prefix. | |
7c066666 | 6301 | |
0572c71b | 6302 | * gnatchop.adb (Locate_Executable): Add support for prefix. |
7c066666 | 6303 | |
0572c71b | 6304 | * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb, |
6305 | mlib-utl.adb: Adjust calls to Program_Name. | |
6306 | ||
30529b7e | 6307 | 2008-05-29 Robert Dewar <dewar@adacore.com> |
6308 | ||
6309 | * sem_ch3.adb: Minor reformatting | |
6310 | * sem_prag.adb: Minor reformatting | |
6311 | * sem_res.adb: Minor reformatting | |
6312 | * sinput-p.ads: Minor reformatting | |
6313 | ||
6314 | 2008-05-29 Javier Miranda <miranda@adacore.com> | |
6315 | ||
6316 | * sem_util.adb: | |
6317 | (Abstract_Interface_List): Add missing support for full type-declaration | |
6318 | associated with synchronized types. | |
6319 | ||
6320 | 2008-05-29 Robert Dewar <dewar@adacore.com> | |
6321 | ||
6322 | * sem_eval.adb (Is_Same_Value): Take care of several more cases | |
6323 | ||
eb45f664 | 6324 | 2008-05-28 Ed Schonberg <schonberg@adacore.com> |
6325 | ||
6326 | * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous | |
6327 | access type, wrap the expression in a conversion to force an | |
6328 | accessibility check. | |
6329 | ||
6330 | * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force | |
6331 | accessibility checks even when expansion is disabled in order to | |
6332 | generate messages in the presence of previous errors or in | |
6333 | semantics-only mode. | |
6334 | ||
6335 | 2008-05-28 Eric Botcazou <ebotcazou@adacore.com> | |
6336 | ||
6337 | * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False. | |
6338 | * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False. | |
6339 | ||
6340 | 2008-05-28 Vincent Celier <celier@adacore.com> | |
6341 | ||
6342 | PR ada/34446 | |
6343 | * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in | |
6344 | preprocessing expressions | |
6345 | ||
6346 | 2008-05-28 Vincent Celier <celier@adacore.com> | |
6347 | ||
6348 | * sinput-p.adb (Source_File_Is_Subunit): Allow special character used | |
6349 | for preprocessing | |
7c066666 | 6350 | |
eb45f664 | 6351 | * sinput-p.ads: Minor comment update and reformatting |
6352 | ||
6353 | 2008-05-28 Ed Schonberg <schonberg@adacore.com> | |
6354 | ||
6355 | * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram | |
6356 | type has a deeper level than any master only when it is the type of an | |
6357 | access parameter. | |
6358 | ||
69eed9a6 | 6359 | 2008-05-28 Javier Miranda <miranda@adacore.com> |
6360 | ||
6361 | * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation. | |
6362 | ||
6363 | 2008-05-28 Javier Miranda <miranda@adacore.com> | |
6364 | ||
6365 | * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed. | |
6366 | * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed. | |
6367 | * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal. | |
6368 | Add code that was previously located in | |
6369 | Find_Overridden_Synchronized_Primitive because it is only used here. | |
6370 | ||
6371 | 2008-05-28 Sergey Rybin <rybin@adacore.com> | |
6372 | ||
6373 | * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set | |
6374 | Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION. | |
6375 | ||
ebf83584 | 6376 | 2008-05-28 Robert Dewar <dewar@adacore.com> |
6377 | ||
6378 | * restrict.ads: | |
6379 | Add missing restrictions, and properly label all GNAT defined ones | |
7c066666 | 6380 | |
ebf83584 | 6381 | * rtsfind.ads: |
6382 | Add entry for Ada_Real_Time.Timing_Events.Timing_Event | |
6383 | Add entry for Ada.Task_Termination.Set_Specific_Handler | |
6384 | Add entry for Ada.Task_Termination.Specific_Handler | |
7c066666 | 6385 | |
ebf83584 | 6386 | * s-rident.ads: |
6387 | Add missing restrictions and properly mark all gnat defined ones | |
7c066666 | 6388 | |
ebf83584 | 6389 | * sem_ch3.adb: |
6390 | (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction | |
7c066666 | 6391 | |
ebf83584 | 6392 | * sem_res.adb: |
6393 | (Resolve_Call): Check violation of No_Specific_Termination_Handlers | |
6394 | ||
6395 | * gnat_rm.texi: Add missing restrictions, and properly label all | |
6396 | GNAT defined ones | |
6397 | ||
6398 | 2008-05-28 Robert Dewar <dewar@adacore.com> | |
6399 | ||
6400 | * restrict.adb: | |
6401 | (Check_Restriction): violation of restriction No_Finalization is | |
6402 | treated as a serious error to stop expansion | |
6403 | ||
6404 | 2008-05-28 Robert Dewar <dewar@adacore.com> | |
6405 | ||
6406 | * exp_util.adb: Minor reformatting | |
6407 | * exp_util.ads: Minor reformatting. | |
6408 | ||
319c03ea | 6409 | 2008-05-28 Arnaud Charlet <charlet@adacore.com> |
6410 | ||
6411 | * Make-lang.in: Remove gprmake. | |
6412 | ||
6413 | * gprmake.adb, makegpr.ads, makegpr.adb: Removed. | |
6414 | ||
6b00644e | 6415 | 2008-05-28 Ed Schonberg <schonberg@adacore.com> |
6416 | ||
6417 | * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving | |
6418 | improper progenitor names, and avoid cascaded errors. | |
6419 | ||
6420 | 2008-05-28 Robert Dewar <dewar@adacore.com> | |
6421 | ||
6422 | * gnat_rm.texi: Add note on Old giving warning when applied to constant | |
6423 | ||
6424 | * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is | |
6425 | a constant | |
6426 | ||
6427 | 2008-05-28 Robert Dewar <dewar@adacore.com> | |
6428 | ||
6429 | * exp_fixd.adb (Build_Multiply): Correct one-off error in computing | |
6430 | size | |
6431 | ||
6432 | 2008-05-28 Robert Dewar <dewar@adacore.com> | |
6433 | ||
6434 | * exp_ch5.adb: | |
6435 | (Expand_Simple_Function_Return): Copy unaligned result into temporary | |
6436 | ||
eeb500e3 | 6437 | 2008-05-28 Javier Miranda <miranda@adacore.com> |
6438 | ||
6439 | * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support | |
6440 | for user-defined predefined primitives. | |
7c066666 | 6441 | |
eeb500e3 | 6442 | * sem_util.adb (Matches_Prefixed_View_Profile): Ditto. |
6443 | (Find_Overridden_Synchronized_Primitive): Ditto. | |
6444 | ||
6445 | * sem_ch6.adb (Check_Synchronized_Overriding): Ditto. | |
6446 | ||
3e169095 | 6447 | 2008-05-27 Arnaud Charlet <charlet@adacore.com> |
6448 | ||
6449 | * a-ststio.adb, s-direio.adb: | |
6450 | Further code clean up of previous change. | |
6451 | Update comments. | |
6452 | ||
6453 | 2008-05-27 Vincent Celier <celier@adacore.com> | |
6454 | ||
6455 | * prj-nmsc.adb: Minor reformatting | |
6456 | ||
6457 | 2008-05-27 Bob Duff <duff@adacore.com> | |
6458 | ||
6459 | * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an | |
6460 | untagged private type with a tagged full type, where the full type has | |
6461 | a self reference, create the corresponding class-wide type early, in | |
6462 | case the self reference is "access T'Class". | |
6463 | ||
6464 | 2008-05-27 Ed Schonberg <schonberg@adacore.com> | |
6465 | ||
6466 | * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes | |
6467 | tasks and context is an object declaration. create master entity before | |
6468 | expansion. | |
6469 | ||
6470 | 2008-05-27 Robert Dewar <dewar@adacore.com> | |
6471 | ||
6472 | * mlib-prj.adb: Minor reformatting | |
6473 | ||
6474 | * prj-part.adb: Minor reformatting | |
6475 | ||
6476 | * prj.ads: Minor reformatting | |
6477 | ||
6478 | * exp_ch3.adb: Minor reformatting. | |
6479 | ||
6480 | * sem_ch3.ads: Minor reformatting | |
6481 | ||
6482 | * sem_eval.adb: Minor reformatting | |
6483 | ||
5f595a02 | 6484 | 2008-05-27 Vincent Celier <celier@adacore.com> |
6485 | ||
6486 | * gnatcmd.adb: | |
6487 | <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack | |
6488 | ||
6489 | 2008-05-27 Ed Schonberg <schonberg@adacore.com> | |
6490 | ||
6491 | * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains | |
6492 | tasks, create an activation chain now, before the expansion into | |
6493 | assignments and build-in-place calls that require the presence of an | |
6494 | activation chain. | |
6495 | (Backend_Processing_Possible): If the component type is inherently | |
6496 | limited, the aggregate must be expanded into individual built-in-place | |
6497 | assignments. | |
6498 | ||
6499 | * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to | |
6500 | determine whether an allocation extra parameter must be built, to | |
6501 | handle case of a private type whose full type is a discriminated type | |
6502 | with defaults. | |
6503 | ||
6504 | 2008-05-27 Bob Duff <duff@adacore.com> | |
6505 | ||
6506 | * gnat_rm.texi: | |
6507 | Document the new behavior regarding trampolines. | |
6508 | ||
6509 | 2008-05-27 Arnaud Charlet <charlet@adacore.com> | |
6510 | ||
6511 | * a-direio.adb, a-sequio.adb: Replace address clause by | |
6512 | unrestricted_access, simpler and compatible with .NET. | |
6513 | ||
6514 | 2008-05-27 Vincent Celier <celier@adacore.com> | |
6515 | ||
6516 | * prj-part.adb: | |
6517 | (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find | |
6518 | a project file, so that symbolic links are not resolved. | |
6519 | ||
6520 | 2008-05-27 Arnaud Charlet <charlet@adacore.com> | |
6521 | ||
6522 | * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb: | |
6523 | Replace heavy address clause by 'Unrestricted_Access, cleaner and more | |
6524 | portable across GNAT targets, since this kind of address clause is not | |
6525 | supported by VM back-ends (.NET/JGNAT). | |
6526 | ||
a0bf40b6 | 6527 | 2008-05-27 Arnaud Charlet <charlet@adacore.com> |
6528 | ||
6529 | * bindgen.adb: Update comments. | |
7c066666 | 6530 | |
a0bf40b6 | 6531 | * s-tasinf-mingw.adb: Add "with" of System.OS_Interface |
6532 | ||
6533 | 2008-05-27 Vincent Celier <celier@adacore.com> | |
6534 | ||
6535 | * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, | |
6536 | prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb, | |
6537 | mlib-tgt.adb, prj-env.adb, prj-env.ads: | |
6538 | (Path_Information): New record type | |
6539 | Use component of type Path_Information when there are two paths, one in | |
6540 | canonical format and one in display format. | |
6541 | Update the project manager to these new components. | |
6542 | ||
3d32477f | 6543 | 2008-05-27 Robert Dewar <dewar@adacore.com> |
6544 | ||
6545 | * makeutl.adb: Minor reformatting | |
6546 | * prj-nmsc.adb: Minor reformatting | |
6547 | * s-stausa.adb: Minor reformatting | |
6548 | * s-stausa.ads: Minor reformatting | |
6549 | * sem_ch6.adb: Minor reformatting | |
6550 | ||
6551 | 2008-05-27 Thomas Quinot <quinot@adacore.com> | |
6552 | ||
6553 | * sem_res.adb: Minor comment fixes | |
6554 | ||
7961742b | 6555 | 2008-05-27 Thomas Quinot <quinot@adacore.com> |
6556 | ||
6557 | * makeutl.adb: Minor code reorganization | |
6558 | ||
6559 | * exp_aggr.adb: Add ??? comment | |
6560 | Fix typo | |
6561 | ||
6562 | * exp_ch6.adb: Minor reformatting | |
6563 | ||
6564 | 2008-05-27 Quentin Ochem <ochem@adacore.com> | |
6565 | ||
6566 | * s-stausa.adb (Initialize): Updated result initialization, and | |
6567 | initialization of environment stack. | |
6568 | (Fill_Stack): Improved computation of the pattern zone, taking into | |
6569 | account already filled at the calling point. | |
6570 | (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of | |
6571 | Measure and Overflow_Guard. | |
6572 | (Report_Result): Fixed computation of the result using new fields of | |
6573 | Stack_Analyzer. | |
7c066666 | 6574 | |
7961742b | 6575 | * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard |
6576 | params by more explicit Stack_Size / Max_Pattern_Size params. | |
6577 | (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields. | |
6578 | Added Stack_Used_When_Filling field. | |
6579 | (Task_Result): Replaced Measure / Overflow_Guard by more explicit | |
6580 | Min_Measure and Max_Measure fields. | |
7c066666 | 6581 | |
7961742b | 6582 | * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer. |
6583 | ||
6584 | 2008-05-27 Vincent Celier <celier@adacore.com> | |
6585 | ||
6586 | * prj-nmsc.adb: | |
6587 | (Check_File): Make sure that a unit that replaces the same unit in a | |
6588 | project being extended is properly processed. | |
6589 | ||
6590 | 2008-05-27 Ed Schonberg <schonberg@adacore.com> | |
6591 | ||
6592 | * sem_ch3.adb: | |
6593 | (Get_Discr_Value): Remove obsolete code that failed to find the value | |
6594 | of a discriminant for an inherited task component appearing in a type | |
6595 | extension. | |
6596 | ||
6597 | 2008-05-27 Thomas Quinot <quinot@adacore.com> | |
6598 | ||
6599 | (System.File_IO.{Close, Delete, Reset}): | |
6600 | Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr". | |
7c066666 | 6601 | |
7961742b | 6602 | (Ada.*_IO.{Close, Delete, Reset, Set_Mode}): |
6603 | Pass File parameter by reference. | |
6604 | ||
f9336fdf | 6605 | 2008-05-27 Vincent Celier <celier@adacore.com> |
6606 | ||
6607 | * prj-nmsc.adb: | |
6608 | (Process_Sources_In_Multi_Language_Mode): Check that there are not two | |
6609 | sources of the same project that have the same object file name. | |
6610 | (Find_Explicit_Sources): Always remove a source exception that was not | |
6611 | found. | |
6612 | ||
6613 | 2008-05-27 Thomas Quinot <quinot@adacore.com> | |
6614 | ||
6615 | * sem_ch3.adb: Minor reformatting | |
6616 | ||
6617 | 2008-05-27 Ed Schonberg <schonberg@adacore.com> | |
6618 | ||
6619 | * sem_ch6.adb: | |
6620 | (Is_Interface_Conformant): Handle properly a primitive operation that | |
6621 | overrides an interface function with a controlling access result. | |
6622 | (Type_Conformance): If Skip_Controlling_Formals is true, when matching | |
6623 | inherited and overriding operations, omit as well the conformance check | |
6624 | on result types, to prevent spurious errors. | |
6625 | ||
6626 | 2008-05-27 Vincent Celier <celier@adacore.com> | |
6627 | ||
6628 | * makeutl.ads, makeutl.adb: | |
6629 | (Set_Location): New procedure | |
6630 | (Get_Location): New function | |
6631 | (Update_Main): New procedure | |
6632 | ||
7db8ef38 | 6633 | 2008-05-27 Vincent Celier <celier@adacore.com> |
6634 | ||
6635 | * prj-nmsc.adb: | |
6636 | (Check_Library): Allow standard project to be extended as a static | |
6637 | library project. | |
6638 | (Get_Mains): Do not inherit attribute Main in an extending library | |
6639 | project. | |
6640 | ||
6641 | 2008-05-27 Eric Botcazou <ebotcazou@adacore.com> | |
6642 | ||
6643 | * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False. | |
6644 | * system-darwin-x86.ads (Always_Compatible_Rep): Likewise. | |
6645 | * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise. | |
6646 | * system-linux-ppc.ads (Always_Compatible_Rep): Likewise. | |
6647 | * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise. | |
6648 | * system-linux-x86.ads (Always_Compatible_Rep): Likewise. | |
6649 | * system-mingw.ads (Always_Compatible_Rep): Likewise. | |
6650 | * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise. | |
6651 | * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise. | |
6652 | * system-solaris-x86.ads (Always_Compatible_Rep): Likewise. | |
7c066666 | 6653 | |
774b4b01 | 6654 | 2008-05-27 Ed Schonberg <schonberg@adacore.com> |
6655 | ||
6656 | * sem_attr.adb: add guard to previous patch. | |
6657 | ||
6658 | 2008-05-27 Ed Schonberg <schonberg@adacore.com> | |
6659 | ||
6660 | * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by | |
6661 | a synchronized tagged type, do not attempt to build dispatch table for | |
6662 | full view. The table is built for the corresponding record type, which | |
6663 | has its own declaration. | |
6664 | ||
6665 | 2008-05-27 Gary Dismukes <dismukes@adacore.com> | |
6666 | ||
6667 | * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype | |
6668 | to the known type entity E, rather than setting it to Any_Type. Fixes | |
6669 | possible blowup in function Base_Init_Proc, as called from Freeze_Entity | |
6670 | for objects whose type had an illegal constraint. | |
6671 | ||
6672 | 2008-05-27 Vincent Celier <celier@adacore.com> | |
6673 | ||
6674 | * gnat_ugn.texi: | |
6675 | Add succinct documentation for attribute Excluded_Source_List_File | |
6676 | ||
6677 | 2008-05-27 Vincent Celier <celier@adacore.com> | |
6678 | ||
6679 | * prj-attr.adb: Add new project level attribute Map_File_Option | |
7c066666 | 6680 | |
774b4b01 | 6681 | * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option |
7c066666 | 6682 | |
774b4b01 | 6683 | * prj.ads: Minor reformatting and comment update |
6684 | (Project_Configuration): New component Map_File_Option | |
7c066666 | 6685 | |
774b4b01 | 6686 | * snames.adb: New standard name Map_File_Option |
7c066666 | 6687 | |
774b4b01 | 6688 | * snames.ads: New standard name Map_File_Option |
6689 | ||
6690 | 2008-05-27 Vincent Celier <celier@adacore.com> | |
6691 | ||
6692 | * xsnames.adb: Remove unused variable Oname | |
6693 | ||
6694 | 2008-05-27 Doug Rupp <rupp@adacore.com> | |
6695 | ||
6696 | * exp_ch6.adb: | |
6697 | (Expand_N_Function_Call): Fix comments. Minor reformatting. | |
6698 | ||
6699 | * exp_vfpt.ads: | |
6700 | (Expand_Vax_Foreign_Return): Fix comments. | |
6701 | ||
6702 | 2008-05-27 Thomas Quinot <quinot@adacore.com> | |
6703 | ||
6704 | * exp_dist.adb: Minor reformating | |
6705 | ||
6d7c1782 | 6706 | 2008-05-26 Gary Dismukes <dismukes@adacore.com> |
6707 | ||
6708 | * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for | |
6709 | No_Default_Initialization, which is now delayed until the freeze point | |
6710 | of the object. Add a comment about deferral of the check. | |
7c066666 | 6711 | |
6d7c1782 | 6712 | * freeze.adb (Freeze_Entity): The check for No_Default_Initialization |
6713 | on objects is moved here. | |
6714 | ||
6715 | 2008-05-26 Eric Botcazou <ebotcazou@adacore.com> | |
6716 | ||
6717 | * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment. | |
6718 | (Compare_Array_S16): Adjust for above change. | |
6719 | * s-casi32.adb (Uword): Likewise. | |
6720 | (Compare_Array_S32): Likewise. | |
6721 | * s-casi64.adb (Uword): Likewise. | |
6722 | (Compare_Array_S64): Likewise. | |
6723 | * s-caun16.adb (Uhalf): Likewise. | |
6724 | (Compare_Array_U16): Likewise. | |
6725 | * s-caun32.adb (Uword): Likewise. | |
6726 | (Compare_Array_U32): Likewise. | |
6727 | * s-caun64.adb (Uword): Likewise. | |
6728 | (Compare_Array_U64): Likewise. | |
7c066666 | 6729 | |
6d7c1782 | 6730 | 2008-05-26 Robert Dewar <dewar@adacore.com> |
6731 | ||
6732 | * exp_ch6.adb: Add ??? comment for previous change | |
6733 | ||
6734 | * exp_vfpt.adb: Minor reformatting | |
6735 | ||
6736 | * exp_vfpt.ads: Add ??? comment for last change | |
6737 | ||
6738 | * sem_attr.adb: Add some ??? comments for previous change | |
6739 | ||
6740 | * s-vaflop.ads: Add comments for previous change | |
6741 | ||
6742 | 2008-05-26 Doug Rupp <rupp@adacore.com> | |
6743 | ||
6744 | * s-vaflop-vms-alpha.adb: | |
6745 | Remove System.IO use clause, to prevent spurious ambiguities when | |
6746 | package is access through rtsfind. | |
6747 | ||
6748 | 2008-05-26 Sergey Rybin <rybin@adacore.com> | |
6749 | ||
6750 | * tree_io.ads (ASIS_Version_Number): Update because of the changes | |
6751 | made in front-end | |
6752 | ||
e837acdf | 6753 | 2008-05-26 Ed Schonberg <schonberg@adacore.com> |
6754 | ||
6755 | * sem_attr.adb: | |
6756 | (Resolve_Attribute, case 'address): S (A .. B)' address can be safely | |
6757 | converted to S (A)'address only if A .. B is known to be a non-null | |
6758 | range. | |
6759 | ||
6760 | 2008-05-26 Doug Rupp <rupp@adacore.com> | |
6761 | ||
6762 | * s-vaflop.adb: | |
6763 | (Return_D, Return_F, Return_G): New functions. | |
6764 | ||
6765 | * s-vaflop.ads: | |
6766 | (Return_D, Return_F, Return_G): New functions. | |
6767 | ||
6768 | * exp_vfpt.adb: | |
6769 | (Expand_Vax_Foreign_Return): New procedure | |
6770 | ||
6771 | * exp_vfpt.ads: | |
6772 | (Expand_Vax_Foreign_Return): New procedure | |
6773 | ||
6774 | * rtsfind.ads: | |
6775 | (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids | |
6776 | (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements | |
6777 | ||
6778 | * exp_ch6.adb: | |
6779 | Import Exp_Vfpt | |
6780 | (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return. | |
6781 | ||
6782 | * s-vaflop-vms-alpha.adb: | |
6783 | (Return_D, Return_F, Return_G): New functions. | |
6784 | ||
6785 | 2008-05-26 Gary Dismukes <dismukes@adacore.com> | |
6786 | ||
6787 | * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy | |
6788 | init proc entity when there is actual default initialization associated | |
6789 | with the component type, to avoid spurious errors on objects of scalar | |
6790 | array types that are marked Is_Public when No_Default_Initialization | |
6791 | applies. | |
6792 | ||
4f9eef1d | 6793 | 2008-05-26 Thomas Quinot <quinot@adacore.com> |
6794 | ||
6795 | * rtsfind.ads, rtsfind.adb: | |
6796 | (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint. | |
6797 | (Check_RPC): Support per-PCS-kind API versioning. | |
7c066666 | 6798 | |
4f9eef1d | 6799 | exp_dist.ads, exp_dist.adb: |
6800 | (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms. | |
6801 | (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime | |
6802 | library function Get_RACW. | |
6803 | (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime | |
6804 | library function Get_Reference. | |
6805 | (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going | |
6806 | through an intermediate Any. | |
6807 | (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of | |
6808 | going through an intermediate Any. | |
7c066666 | 6809 | |
4f9eef1d | 6810 | * sem_dist.adb: Minor reformatting. |
6811 | ||
114baaa4 | 6812 | 2008-05-26 Javier Miranda <miranda@adacore.com> |
6813 | ||
6814 | * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias. | |
6815 | (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias. | |
6816 | (Is_Internal): Adding documentation on internal entities that have | |
6817 | attribute Interface_Alias (old attribute Abstract_Interface_Alias) | |
6818 | ||
6819 | * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias. | |
6820 | (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias. | |
6821 | Added assertion to force entities with this attribute to have | |
6822 | attribute Is_Internal set to True. | |
6823 | (Next_Tag_Component): Simplify assertion using attribute Is_Tag. | |
6824 | ||
6825 | * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been | |
6826 | renamed as Derive_Progenitor_Subprograms. In addition, its code is | |
6827 | a new implementation. | |
6828 | (Add_Interface_Tag_Components): Remove special management of | |
6829 | synchronized interfaces. | |
6830 | (Analyze_Interface_Declaration): Minor reformating | |
6831 | (Build_Derived_Record_Type): Minor reformating | |
6832 | (Check_Abstract_Overriding): Avoid reporting error in case of abstract | |
6833 | predefined primitive inherited from interface type because the body of | |
6834 | internally generated predefined primitives of tagged types are generated | |
6835 | later by Freeze_Type | |
6836 | (Derive_Subprogram): Avoid generating an internal name if the parent | |
6837 | subprogram overrides an interface primitive. | |
6838 | (Derive_Subprograms): New implementation that keeps separate the | |
6839 | management of tagged types not implementing interfaces, from tagged | |
6840 | types that implement interfaces. | |
6841 | (Is_Progenitor): New implementation. | |
6842 | (Process_Full_View): Add documentation | |
6843 | (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms | |
6844 | by call to Derive_Progenitor_Subprograms. | |
6845 | ||
6846 | * sem_ch6.ads (Is_Interface_Conformant): New subprogram. | |
6847 | (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument | |
6848 | Skip_Controlling_Formals. | |
6849 | ||
6850 | * sem_ch6.adb (Is_Interface_Conformant): New subprogram. | |
6851 | (Check_Conventions): New implementation. Remove local subprogram | |
6852 | Skip_Check. Remove formal Search_From of routine Check_Convention. | |
6853 | (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument | |
6854 | Skip_Controlling_Formals. | |
6855 | (New_Overloaded_Entity): Enable addition of predefined dispatching | |
6856 | operations. | |
6857 | ||
6858 | * sem_disp.ads | |
6859 | (Find_Primitive_Covering_Interface): New subprogram. | |
6860 | ||
6861 | * sem_disp.adb (Check_Dispatching_Operation): Disable registering | |
6862 | the task body procedure as a primitive of the corresponding tagged | |
6863 | type. | |
6864 | (Check_Operation_From_Private_Type): Avoid adding twice an entity | |
6865 | to the list of primitives. | |
6866 | (Find_Primitive_Covering_Interface): New subprogram. | |
6867 | (Override_Dispatching_Operation): Add documentation. | |
6868 | ||
6869 | * sem_type.adb (Covers): Minor reformatings | |
6870 | ||
6871 | * sem_util.ads (Collect_Abstract_Interfaces): Renamed as | |
6872 | Collect_Interfaces. | |
6873 | Rename formal. | |
6874 | (Has_Abstract_Interfaces): Renamed as Has_Interfaces. | |
6875 | (Implements_Interface): New subprogram. | |
6876 | (Is_Parent): Removed. | |
6877 | (Primitive_Names_Match): New subprogram. | |
6878 | (Remove_Homonym): Moved here from Derive_Interface_Subprograms. | |
6879 | (Ultimate_Alias): New subprogram. | |
6880 | ||
6881 | * sem_util.adb (Collect_Abstract_Interfaces): Renamed as | |
6882 | Collect_Interfaces. | |
6883 | Remove special management for synchronized types. Rename formal. Remove | |
6884 | internal subprograms Interface_Present_In_Parent and Add_Interface. | |
6885 | (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion | |
6886 | on non-record types by code to return false in such case. | |
6887 | (Implements_Interface): New subprogram. | |
6888 | (Is_Parent): Removed. No special management is now required for | |
6889 | synchronized types covering interfaces. | |
6890 | (Primitive_Names_Match): New subprogram. | |
6891 | (Remove_Homonym): Moved here from Derive_Interface_Subprograms. | |
6892 | (Ultimate_Alias): New subprogram. | |
6893 | ||
6894 | * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram. | |
6895 | Add internal entities associated with secondary dispatch tables to | |
6896 | the list of tagged type primitives that are not interfaces. | |
6897 | (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities | |
6898 | (Make_Predefined_Primitive_Specs): Code reorganization to improve | |
6899 | the management of predefined equality operator. In addition, if | |
6900 | the type has an equality function corresponding with a primitive | |
6901 | defined in an interface type, the inherited equality is abstract | |
6902 | as well, and no body can be created for it. | |
6903 | ||
6904 | * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from | |
6905 | exp_util to exp_disp. | |
6906 | (Is_Predefined_Interface_Primitive): New subprogram. Returns True if | |
6907 | an entity corresponds with one of the predefined primitives required | |
6908 | to implement interfaces. | |
6909 | Update copyright notice. | |
6910 | ||
6911 | * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the | |
6912 | final check on abstract subprograms all the primitives associated with | |
6913 | interface primitives because they must be visible in the public and | |
6914 | private part. | |
6915 | (Write_DT): Use Find_Dispatching_Type to locate the name of the | |
6916 | interface type. This allows the use of this routine, for debugging | |
6917 | purposes, when the tagged type is not fully decorated. | |
6918 | (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp. | |
6919 | Factorize code calling new subprogram Is_Predefined_Interface_Primitive. | |
6920 | (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an | |
6921 | entity corresponds with one of the predefined primitives required to | |
6922 | implement interfaces. | |
6923 | ||
6924 | * exp_util.adb (Find_Interface_ADT): New implementation | |
6925 | (Find_Interface): Removed. | |
6926 | ||
6927 | * sprint.adb (Sprint_Node_Actual): Generate missing output for the | |
6928 | list of interfaces associated with nodes | |
6929 | N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration. | |
6930 | ||
6931 | 2008-05-26 Thomas Quinot <quinot@adacore.com> | |
6932 | ||
6933 | * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on | |
6934 | condition for assignment to temporary. | |
6935 | ||
439789d1 | 6936 | 2008-05-26 Ed Schonberg <schonberg@adacore.com> |
6937 | ||
6938 | * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint | |
6939 | checks on the upper bound if the index type is a modular type, to | |
6940 | prevent wrap-around computations when size is close to upper bound of | |
6941 | type. | |
6942 | ||
6943 | 2008-05-26 Robert Dewar <dewar@adacore.com> | |
6944 | ||
6945 | * sem_ch3.adb: Minor reformatting | |
6946 | ||
e7721248 | 6947 | 2008-05-26 Ed Schonberg <schonberg@adacore.com> |
6948 | ||
6949 | * sem_ch12.adb (Remove_Parent): Use specification of instance | |
6950 | to retrieve generic parent, | |
6951 | to handle properly the case where the instance is a child unit. | |
6952 | Add guard to handle properly wrapper packages. | |
6953 | Minor reformatting | |
6954 | ||
6955 | 2008-05-26 Thomas Quinot <quinot@adacore.com> | |
6956 | ||
6957 | * sinfo.ads: Minor reformatting | |
6958 | ||
6959 | 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com> | |
6960 | ||
6961 | * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting. | |
6962 | Generate a tag check when the result subtype of a function, defined by | |
6963 | an access definition, designates a specific tagged type. | |
6964 | (Make_Tag_Check): New routine. | |
6965 | ||
91303f2d | 6966 | 2008-05-26 Arnaud Charlet <charlet@adacore.com> |
6967 | ||
6968 | * ceinfo.adb, csinfo.adb: Remove warnings. Update headers. | |
6969 | ||
e6429c45 | 6970 | 2008-05-26 Eric Botcazou <ebotcazou@adacore.com> |
6971 | ||
6972 | * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker. | |
6973 | (builtin_decl_for): Likewise. | |
6974 | * trans.c (gigi): Likewise. | |
6975 | * utils.c (def_builtin_1): Fix formatting. | |
6976 | ||
50e8d904 | 6977 | 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com> |
6978 | ||
6979 | * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables. | |
6980 | Create the statements which map a string name to protected or task | |
6981 | entry indix. | |
6982 | ||
6983 | * exp_ch9.adb: Add with and use clause for Stringt. | |
6984 | Minor code reformatting. | |
6985 | (Build_Entry_Names): New routine. | |
6986 | (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value | |
6987 | for flag Build_Entry_Names which controls the allocation of the data | |
6988 | structure for the string names of entries. | |
6989 | ||
6990 | * exp_ch9.ads (Build_Entry_Names): New subprogram. | |
6991 | ||
6992 | * exp_util.adb (Entry_Names_OK): New function. | |
6993 | ||
6994 | * exp_util.ads (Entry_Names_OK): New function. | |
6995 | ||
6996 | * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to | |
6997 | enumerations RE_Id and RE_Unit_Table. | |
6998 | ||
6999 | * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation. | |
7000 | (Free_Entry_Names_Array): New routine. | |
7001 | ||
7002 | * s-taskin.ads: Comment reformatting. | |
7003 | Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access. | |
7004 | Add component Entry_Names to record Ada_Task_Control_Block. | |
7005 | (Free_Entry_Names_Array): New routine. | |
7006 | ||
7007 | * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set, | |
7008 | dynamically allocate an array | |
7009 | of string pointers. This structure holds string entry names. | |
7010 | (Free_Entry_Names): New routine. | |
7011 | (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array. | |
7012 | (Set_Entry_Names): New routine. | |
7013 | ||
7014 | * s-tassta.ads: | |
7015 | (Create_Task): Add formal Build_Entry_Names. The flag is used to | |
7016 | control the allocation of the data structure which stores entry names. | |
7017 | (Set_Entry_Name): New routine. | |
7018 | ||
7019 | * s-tpoben.adb: | |
7020 | Add with and use clause for Ada.Unchecked_Conversion. | |
7021 | (Finalize): Deallocate the entry names array. | |
7022 | (Free_Entry_Names): New routine. | |
7023 | (Initialize_Protection_Entries): When flag Build_Entry_Names is set, | |
7024 | create an array of string pointers to hold the entry names. | |
7025 | (Set_Entry_Name): New routine. | |
7026 | ||
7027 | * s-tpoben.ads: | |
7028 | Add field Entry_Names to record Protection_Entries. | |
7029 | (Initialize_Protection_Entries): Add formal Build_Entry_Names. | |
7030 | (Set_Entry_Name): New routine. | |
7031 | ||
7032 | 2008-05-26 Vincent Celier <celier@adacore.com> | |
7033 | ||
7034 | * prj-nmsc.adb: | |
7035 | (Process_Project_Level_Simple_Attributes): process attribute Library_GCC | |
7036 | ||
7037 | * prj.ads: | |
7038 | (Project_Configuration): New component Shared_Lib_Driver | |
7039 | ||
7040 | 2008-05-26 Ed Schonberg <schonberg@adacore.com> | |
7041 | ||
7042 | * inline.adb: | |
7043 | (Cleanup_Scopes): For a protected operation, transfer finalization list | |
7044 | to protected body subprogram, to force cleanup actions when needed. | |
7045 | ||
7046 | 2008-05-26 Robert Dewar <dewar@adacore.com> | |
7047 | ||
7048 | * sem_cat.adb: Minor reformatting | |
7049 | ||
7050 | * gnatname.adb: Minor reformatting | |
7051 | ||
7052 | * osint.ads: Minor reformatting | |
7053 | ||
7054 | * s-carun8.ads: Minor reformatting | |
7055 | ||
7056 | * g-heasor.ads: Minor comment fix (unit is now pure) | |
7057 | ||
7058 | 2008-05-26 Robert Dewar <dewar@adacore.com> | |
7059 | ||
7060 | * exp_ch2.adb: | |
7061 | (Expand_Current_Value): Properly type generated integer literal | |
7062 | ||
7063 | 2008-05-26 Sergey Rybin <rybin@adacore.com> | |
7064 | ||
7065 | * gnat_ugn.texi: Add description for the new gnatcheck rule - | |
7066 | Separate_Numeric_Error_Handlers. | |
7067 | ||
7068 | 2008-05-26 Pascal Obry <obry@adacore.com> | |
7069 | ||
7070 | * sem_aggr.adb: Minor reformatting. | |
7071 | ||
7072 | 2008-05-26 Jose Ruiz <ruiz@adacore.com> | |
7073 | ||
7074 | * s-osinte-aix.adb: | |
7075 | (To_Target_Priority): Setting the time slice value to 0 or greater sets | |
7076 | the scheduling policy to FIFO within priorities or round-robin | |
7077 | respectively. | |
7078 | Hence, the priority must be set in this case to the one selected by the | |
7079 | user. | |
7c066666 | 7080 | |
50e8d904 | 7081 | 2008-05-26 Ed Schonberg <schonberg@adacore.com> |
7082 | ||
7083 | * sem_ch12.adb: | |
7084 | (Remove_Parent): If the enclosing scope is an instance whose generic | |
7085 | parent is declared within some parent scope of the just completed | |
7086 | instance, make full views of the entities in that parent visible, when | |
7087 | applicable. | |
7c066666 | 7088 | |
4e888ff7 | 7089 | 2008-05-26 Kai Tietz <kai.tietz@onevision.com> |
7090 | ||
7091 | * mingw32.h (STD_MINGW): Set to true for target w64. | |
7092 | ||
939e9bf1 | 7093 | 2008-05-25 Eric Botcazou <ebotcazou@adacore.com> |
7094 | ||
7095 | * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE | |
7096 | instead of TREE_STATIC on the ADDR_EXPR. | |
7097 | ||
b3dd8cfd | 7098 | 2008-05-24 Eric Botcazou <ebotcazou@adacore.com> |
7099 | ||
7100 | * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs. | |
7101 | (Sloc_to_locus): Do not overwrite known GCC locations when translating | |
7102 | GNAT standard locations. | |
7103 | ||
b02c47b3 | 7104 | 2008-05-23 Eric Botcazou <ebotcazou@adacore.com> |
7105 | ||
7106 | * gigi.h (mark_visited): Declare. | |
7107 | * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking | |
7108 | only the topmost node of expressions. | |
0ac9b10f | 7109 | (elaborate_expression_1): Look deeper for read-only variables. |
b02c47b3 | 7110 | * trans.c (add_decl_expr): Use mark_visited instead of marking by hand. |
7111 | (mark_visited): Move logic to mark_visited_r. Invoke walk_tree. | |
7112 | (mark_visited_r): New function. | |
7113 | ||
ce32e92b | 7114 | 2008-05-23 Vincent Celier <celier@adacore.com> |
7115 | ||
0ac9b10f | 7116 | * snames.adb: New standard name Excluded_Source_List_File. |
ce32e92b | 7117 | |
0ac9b10f | 7118 | * snames.ads: New standard name Excluded_Source_List_File. |
ce32e92b | 7119 | |
0ac9b10f | 7120 | * prj-attr.adb: New project level attribute Excluded_Source_List_File. |
ce32e92b | 7121 | |
0ac9b10f | 7122 | * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project. |
ce32e92b | 7123 | Get excluded sources from |
7124 | file indicated by attribute Excluded_Source_List_File, when present and | |
7125 | neither Excluded_Source_Files nor Locally_Removed_Files are declared. | |
7126 | ||
7127 | 2008-05-23 Robert Dewar <dewar@adacore.com> | |
7128 | ||
7129 | * exp_dist.adb: Minor reformatting | |
7130 | ||
7131 | 2008-05-23 Ed Schonberg <schonberg@adacore.com> | |
7132 | ||
7133 | * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a | |
7134 | slice, convert it to an indexed component, which is equivalent, more | |
7135 | efficient, and usable even if the slice itself is not addressable. | |
7136 | ||
7137 | 2008-05-23 Olivier Hainque <hainque@adacore.com> | |
7138 | ||
7139 | * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic | |
7140 | convention also allows access to named compiler built-in subprograms | |
7141 | such as the GCC __builtin family. | |
7142 | ||
050d0bf4 | 7143 | 2008-05-23 Vincent Celier <celier@adacore.com> |
7144 | ||
7145 | * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and | |
7146 | sep. If there are several possibilities, choose the one with the | |
7147 | longer prefix. | |
7148 | ||
7149 | 2008-05-23 Vincent Celier <celier@adacore.com> | |
7150 | ||
7151 | * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for | |
7152 | back end switches when executable specified with --GCC= is same as | |
7153 | default, even if there are additional options. | |
7154 | ||
7155 | * gnat_ugn.texi: | |
7156 | Document when the back end switches from the ALI file are taken into | |
7157 | account when gnatlink is invoked with --GCC= | |
7158 | ||
7159 | 2008-05-23 Thomas Quinot <quinot@adacore.com> | |
7160 | ||
7161 | * s-os_lib.adb: | |
7162 | (copy_File): Do not open destination file if source file is unreadable. | |
7163 | ||
01fd9277 | 7164 | 2008-05-23 Eric Botcazou <ebotcazou@adacore.com> |
7165 | ||
7166 | * utils.c (handle_type_generic_attribute): Adjust to accept | |
7167 | fixed arguments before an elipsis. | |
7168 | ||
a839da8d | 7169 | 2008-05-21 Thomas Quinot <quinot@adacore.com> |
7170 | ||
7171 | * g-sothco.ads, g-sothco.adb: New files. | |
7172 | ||
82522e95 | 7173 | 2008-05-20 Thomas Quinot <quinot@adacore.com> |
7174 | ||
7175 | * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit. | |
7176 | ||
7177 | * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants. | |
7178 | Add missing "with" of Ada.Unchecked_Conversion | |
7179 | ||
7c066666 | 7180 | * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads, |
7181 | g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads, | |
7182 | g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads, | |
7183 | g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads, | |
7184 | g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads, | |
7185 | g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads: | |
82522e95 | 7186 | Move common code out of GNAT.Sockets.Thin implementations and into |
7187 | Thin_Common. | |
7188 | New constant SIZEOF_fd_set | |
7189 | New flag Has_Sockaddr_Len | |
7190 | New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6 | |
7191 | ||
7192 | * g-stsifd-sockets.adb | |
7193 | (Create): Remove call to Set_Length; use Set_Family to set the family | |
7194 | and (on appropriate platforms) length fields in struct sockaddr. | |
7195 | ||
7c066666 | 7196 | * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb, |
7197 | g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb, | |
82522e95 | 7198 | g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set |
7199 | Move common code out of GNAT.Sockets.Thin implementations and into | |
7200 | Thin_Common. | |
7201 | ||
7c066666 | 7202 | * g-socket.ads, g-socket.adb: |
82522e95 | 7203 | Move common code out of GNAT.Sockets.Thin implementations and into |
7204 | Thin_Common. | |
7205 | (Connect_Socket, Accept_Socket): Provide new versions of these two | |
7206 | routines that operate with a user specified timeout. | |
7207 | (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length, | |
7208 | this is now handled automatically by Set_Family on platforms that | |
7209 | require it. | |
7210 | ||
7c066666 | 7211 | * gen-soccon.c: |
82522e95 | 7212 | Move common code out of GNAT.Sockets.Thin implementations and into |
7213 | Thin_Common. | |
7214 | (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define | |
7215 | this constant to 0 (not -1) because we use it to initialize an | |
7216 | unsigned_char value. | |
7217 | Align values for numeric constants only. | |
7218 | Handle the case of systems that do not support AF_INET6. | |
7219 | New constant SIZEOF_fd_set | |
7220 | New flag Has_Sockaddr_Len | |
7221 | New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6 | |
7222 | ||
7223 | * gsocket.h: New flag Has_Sockaddr_Len | |
7224 | New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6 | |
7225 | ||
7226 | 2008-05-20 Santiago Uruena <uruena@adacore.com> | |
7227 | ||
7228 | * i-cobol.ads: Interfaces.COBOL should be preelaborate. | |
7229 | ||
7230 | 2008-05-20 Arnaud Charlet <charlet@adacore.com> | |
7231 | ||
7232 | * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that | |
7233 | the underlying issue with malloc/free has been fixed. Remove associated | |
7234 | comments. | |
7235 | Minor reformatting. | |
7236 | Related to PR ada/24533 | |
7237 | ||
7238 | 2008-05-20 Robert Dewar <dewar@adacore.com> | |
7239 | ||
7240 | * ali.adb: Correct casing of ASCII.NUL | |
7241 | ||
7242 | * styleg-c.adb (Check_Identifier): Handle case of names in ASCII | |
7243 | properly. | |
7244 | ||
7245 | 2008-05-20 Robert Dewar <dewar@adacore.com> | |
7246 | Gary Dismukes <dismukes@adacore.com> | |
7247 | ||
7248 | * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate | |
7249 | overflow if result converted to wider integer type. | |
7250 | (Apply_Type_Conversion_Checks): Don't emit checks on conversions to | |
7251 | discriminated types when discriminant checks are suppressed. | |
7252 | ||
7253 | 2008-05-20 Vincent Celier <celier@adacore.com> | |
7254 | ||
7255 | * cstand.adb (Print_Standard): Issue the correct Size clause for type | |
7256 | Wide_Wide_Character. | |
7257 | ||
7258 | 2008-05-20 Tristan Gingold <gingold@adacore.com> | |
7259 | ||
7260 | * decl.c: Do not emit a variable for a object that has an address | |
7261 | representation clause whose value is known at compile time. | |
7262 | When a variable has an address clause whose value is known at compile | |
7263 | time, refer to this variable by using directly the address instead of | |
7264 | dereferencing a pointer. | |
7265 | ||
7266 | 2008-05-20 Robert Dewar <dewar@adacore.com> | |
7267 | ||
7268 | PR ada/30740 | |
7269 | * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and | |
7270 | subtypes, always False for non-modular types. | |
7271 | Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15) | |
7272 | entry nodes have been replaced by Shared_Var_Procs_Instance (node22) | |
7273 | for Shared_Storage package. | |
7274 | (Is_RACW_Stub_Type): New entity flag. | |
7275 | ||
7276 | * exp_ch4.adb | |
7277 | (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the | |
7278 | case where we have a modular type with a non-binary modules. | |
7279 | Comments reformattings. | |
7280 | ||
7281 | * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to | |
7282 | all types. | |
7283 | ||
7284 | 2008-05-20 Javier Miranda <miranda@adacore.com> | |
7285 | ||
7286 | * exp_aggr.adb | |
7287 | (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous | |
7288 | tests did not covered the case in which the type of the aggregate has | |
7289 | no progenitors but some its parents has progenitors. | |
7290 | ||
7291 | 2008-05-20 Gary Dismukes <dismukes@adacore.com> | |
7292 | Hristian Kirtchev <kirtchev@adacore.com> | |
7293 | ||
7294 | * exp_ch3.adb | |
7295 | (Expand_N_Object_Declaration): Correct the condition which triggers the | |
7296 | generation of a call to Displace when initializing a class-wide object. | |
7297 | (Build_Dcheck_Functions): Build discriminant-checking for null variants | |
7298 | when Frontend_Layout_On_Target is true to ensure that they're available | |
7299 | for calling when a record variant size function is built in Layout. | |
7300 | ||
7301 | 2008-05-20 Ed Schonberg <schonberg@adacore.com> | |
7302 | ||
7303 | * exp_ch5.adb (Expand_Assign_Record): Within an initialization | |
7304 | procedure for a derived type retrieve the discriminant values from the | |
7305 | parent using the corresponding discriminant. | |
7306 | (Expand_N_Assignment_Statement): Skip generation of implicit | |
7307 | if-statement associated with controlled types if we are | |
7308 | compiling with restriction No_Finalization. | |
7309 | ||
7310 | 2008-05-20 Vincent Celier <celier@adacore.com> | |
7311 | ||
7312 | * prj.adb (Hash (Project_Id)): New function | |
7313 | (Project_Empty): Add new component Interfaces_Defined | |
7314 | ||
7315 | * prj.ads (Source_Data): New component Object_Linked | |
7316 | (Language_Config): New components Object_Generated and Objects_Linked | |
7317 | (Hash (Project_Id)): New function | |
7318 | (Source_Data): New Boolean components In_Interfaces and | |
7319 | Declared_In_Interfaces. | |
7320 | (Project_Data): New Boolean component Interfaces_Defined | |
7321 | ||
7c066666 | 7322 | * prj-attr.adb: |
82522e95 | 7323 | New project level attribute Object_Generated and Objects_Linked |
7324 | Add new project level attribute Interfaces | |
7325 | ||
7326 | * prj-dect.adb: Use functions Present and No throughout | |
7327 | (Parse_Variable_Declaration): If a string type is specified as a simple | |
7328 | name and is not found in the current project, look for it also in the | |
7329 | ancestors of the project. | |
7330 | ||
7c066666 | 7331 | * prj-makr.adb: |
82522e95 | 7332 | Replace procedure Make with procedures Initialize, Process and Finalize |
7333 | to implement H414-023: process different directories with different | |
7334 | patterns. | |
7335 | Use functions Present and No throughout | |
7336 | ||
7c066666 | 7337 | * prj-makr.ads: |
82522e95 | 7338 | Replace procedure Make with procedures Initialize, Process and Finalize |
7339 | ||
7340 | * prj-nmsc.adb | |
7341 | (Add_Source): Set component Object_Exists and Object_Linked accordnig to | |
7342 | the language configuration. | |
7343 | (Process_Project_Level_Array_Attributes): Process new attributes | |
7344 | Object_Generated and Object_Linked. | |
7345 | (Report_No_Sources): New Boolean parameter Continuation, defaulted to | |
7346 | False, to indicate that the erreor/warning is a continuation. | |
7347 | (Check): Call Report_No_Sources with Contnuation = True after the first | |
7348 | call. | |
7349 | (Error_Msg): Process successively contnuation character and warning | |
7350 | character. | |
7351 | (Find_Explicit_Sources): Check that all declared sources have been found | |
7352 | (Check_File): Indicate in hash table Source_Names when a declared source | |
7353 | is found. | |
7354 | (Check_File): Set Other_Part when found | |
7355 | (Find_Explicit_Sources): In multi language mode, check if all exceptions | |
7356 | to the naming scheme have been found. For Ada, report an error if an | |
7357 | exception has not been found. Otherwise, disregard the exception. | |
7358 | (Check_Interfaces): New procedure | |
7359 | (Add_Source): When Other_Part is defined, set mutual pointers in spec | |
7360 | and body. | |
7361 | (Check): In multi-language mode, call Check_Interfaces | |
7362 | (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False | |
7363 | for an excluded source. | |
7364 | (Remove_Source): A source replacing a source in the interfaces is also | |
7365 | in the interfaces. | |
7366 | ||
7367 | * prj-pars.adb: Use function Present | |
7368 | ||
7369 | * prj-part.adb: Use functions Present and No throughout | |
7370 | (Parse_Single_Project): Set the parent project for child projects | |
7371 | (Create_Virtual_Extending_Project): Register project with no qualifier | |
7372 | (Parse_Single_Project): Allow an abstract project to be extend several | |
7373 | times. Do not allow an abstract project to extend a non abstract | |
7374 | project. | |
7375 | ||
7376 | * prj-pp.adb: Use functions Present and No throughout | |
7377 | (Print): Take into account the full associative array attribute | |
7378 | declarations. | |
7379 | ||
7380 | * prj-proc.adb: Use functions Present and No throughout | |
7381 | (Expression): Call itself with the same From_Project_Node for the | |
7382 | default value of an external reference. | |
7383 | ||
7384 | * prj-strt.adb: Use functions Present and No throughout | |
7385 | (Parse_Variable_Reference): If a variable is specified as a simple name | |
7386 | and is not found in the current project, look for it also in the | |
7387 | ancestors of the project. | |
7388 | ||
7389 | * prj-tree.ads, prj-tree.adb (Present): New function | |
7390 | (No): New function | |
7391 | Use functions Present and No throughout | |
7392 | (Parent_Project_Of): New function | |
7393 | (Set_Parent_Project_Of): New procedure | |
7394 | ||
7c066666 | 7395 | * snames.ads, snames.adb: |
82522e95 | 7396 | Add new standard names Object_Generated and Objects_Linked |
7397 | ||
7398 | 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com> | |
7399 | ||
7400 | * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent | |
7401 | and the derived type are of the same kind. | |
7402 | (Expand_Call): Generate type conversions for actuals of | |
7403 | record or array types when the parent and the derived types differ in | |
7404 | size and/or packed status. | |
7405 | ||
7406 | 2008-05-20 Javier Miranda <miranda@adacore.com> | |
7407 | Ed Schonberg <schonberg@adacore.com> | |
7408 | ||
7409 | * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid | |
7410 | generating dispatch tables of locally defined tagged types statically. | |
7411 | Remove implicit if-statement that is no longer required. | |
7412 | (Expand_Dispatching_Call): If this is a call to an instance of the | |
7413 | generic dispatching constructor, the type of the first argument may be | |
7414 | a subtype of Tag, so always use the base type to recognize this case. | |
7415 | ||
7416 | 2008-05-20 Thomas Quinot <quinot@adacore.com> | |
7417 | ||
7418 | * exp_dist.adb | |
7419 | (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received, | |
7420 | and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of | |
7421 | assigning NULL into the result, to avoid a spurious warning. | |
7422 | (Add_RACW_Features, case Same_Scope): Add assertion that designated type | |
7423 | is not frozen. | |
7424 | (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub | |
7425 | type. | |
7426 | (Build_From_Any_Function, Build_To_Any_Function, | |
7427 | Build_TypeCode_Function): For a type that has user-specified stream | |
7428 | attributes, use an opaque sequence of octets as the representation. | |
7429 | ||
7430 | 2008-05-20 Kevin Pouget <pouget@adacore.com> | |
7431 | ||
7432 | * exp_smem.ads, exp_smem.adb: Construction of access and assign | |
7433 | routines has been replaced by an instantiation of | |
7434 | System.Shared_Storage.Shared_Var_Procs generic package, while expanding | |
7435 | shared variable declaration. | |
7436 | Calls to access and assign routines have been replaced by calls to | |
7437 | Read/Write routines of System.Shared_Storage.Shared_Var_Procs | |
7438 | instantiated package. | |
7c066666 | 7439 | |
82522e95 | 7440 | * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table |
7441 | It identifies the new generic package added in s-shasto. | |
7442 | ||
7443 | * s-shasto.adb, s-shasto.ads: A new generic package has been added, it | |
7444 | is instantiated for each shared passive variable. It provides | |
7445 | supporting procedures called upon each read or write access by the | |
7446 | expanded code. | |
7447 | ||
7448 | * sem_attr.adb: | |
7449 | For this runtime unit (always compiled in GNAT mode), we allow | |
7450 | stream attributes references for limited types for the case where | |
7451 | shared passive objects are implemented using stream attributes, | |
7452 | which is the default in GNAT's persistent storage implementation. | |
7453 | ||
7454 | 2008-05-20 Ed Schonberg <schonberg@adacore.com> | |
7455 | ||
7456 | * freeze.adb | |
7457 | (Freeze_Enumeration_Type): For a subtype that inherits a foreign | |
7458 | convention from its base type, do not set the type to that of integer, | |
7459 | because it may inherit a size clause. | |
7460 | Warn on a size clause with a size different | |
7461 | from that of Integer, if the type has convention C. | |
7462 | ||
7463 | 2008-05-20 Vincent Celier <celier@adacore.com> | |
7464 | ||
7465 | * gnatname.adb | |
7466 | (Scan_Args): Rewrite to take into account new switch --and to separate | |
7467 | arguments into sections. | |
7468 | (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each | |
7469 | section, then Finalize. | |
7470 | ||
7471 | 2008-05-20 Tristan Gingold <gingold@adacore.com> | |
7472 | ||
7473 | * init.c: Enable stack probing on ppc-linux. | |
7474 | ||
7475 | * tracebak.c: Add symbolic traceback for ppc-linux. | |
7476 | ||
7477 | * system-linux-ppc.ads: Enable stack probing on ppc-linux. | |
7478 | ||
7479 | 2008-05-20 Arnaud Charlet <charlet@adacore.com> | |
7480 | ||
7481 | * Makefile.in | |
7482 | (common-tools): New rule, to avoid parallel build failure on gnat tools. | |
7483 | Reenable parallel builds on this Makefile. | |
7484 | ||
7485 | * Make-lang.in: Update dependencies. | |
7486 | ||
7487 | 2008-05-20 Robert Dewar <dewar@adacore.com> | |
7488 | ||
7489 | * opt.ads (Treat_Restrictions_As_Warnings): New switch | |
7490 | ||
7491 | * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag | |
7492 | Treat_Restrictions_As_Warnings. | |
7493 | ||
7494 | * switch-c.adb: Recognize new switch -gnatr | |
7495 | ||
7496 | * usage.adb: Add line for -gnatr | |
7497 | ||
7498 | 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com> | |
7499 | ||
7500 | * par-ch3.adb | |
7501 | (P_Access_Definition): Change the error message when parsing "access | |
7502 | all" in Ada 95 mode. The message no longer forces the user to recompile | |
7503 | in 05 mode only to discover that anonymous access types are not allowed | |
7504 | to have "all". | |
7505 | ||
7506 | 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com> | |
7507 | ||
7508 | * par-ch9.adb | |
7509 | (P_Protected): Update the error message on missing "-gnat05" switch when | |
7510 | using interfaces in conjunction with protected types. Remove the | |
7511 | incorrect error message associated with the presence of "private" after | |
7512 | a "with". | |
7513 | ||
7514 | 2008-05-20 Ed Schonberg <schonberg@adacore.com> | |
7515 | ||
7516 | * sem_aggr.adb: Update comments. | |
7517 | Improve previous change for PR ada/17985 | |
7518 | ||
7519 | 2008-05-20 Thomas Quinot <quinot@adacore.com> | |
7520 | ||
7521 | * sem_cat.adb | |
7522 | (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in | |
7523 | the visible part of the spec of a remote types unit. | |
7524 | (Validate_Remote_Access_Object_Type_Declaration): | |
7525 | New local subprogram Is_Valid_Remote_Object_Type, replaces | |
7526 | Is_Recursively_Limited_Private. | |
7527 | (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all | |
7528 | non-controlling formals (and the return type, even though this is not | |
7529 | explicit in the standard) must support external streaming. | |
7530 | (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same | |
7531 | as above for of RAS types and RCI subprograms. (The return type is not | |
7532 | checked yet). | |
7533 | Update comments related to RACWs designating limited interfaces per | |
7534 | ARG ruling on AI05-060. | |
7535 | ||
7536 | * sem_util.ads, sem_util.adb | |
7537 | (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and | |
7538 | Is_Remote_Call_Interface to identify RACW types in a stable and | |
7539 | consistent way. We used to rely in this predicate on the privateness of | |
7540 | the designated type and its ancestors, but depending on the currently | |
7541 | visible private parts, this caused false negatives. We now uniformly | |
7542 | rely on checks made at the point where the RACW type is declared. | |
7543 | (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7. | |
7544 | ||
7545 | 2008-05-20 Javier Miranda <miranda@adacore.com> | |
7546 | Ed Schonberg <schonberg@adacore.com> | |
7547 | Hristian Kirtchev <kirtchev@adacore.com> | |
7548 | ||
7549 | * sem_ch3.adb | |
7550 | (Analyze_Object_Declaration): Fix over-conservative condition | |
7551 | restricting use of predefined assignment with tagged types that have | |
7552 | convention CPP. | |
7553 | (Analyze_Object_Declaration): Relax the check regarding deferred | |
7554 | constants declared in scopes other than packages since they can be | |
7555 | completed with pragma Import. | |
7556 | Add missing escaping of all-caps word 'CPP' in error messages. | |
7557 | (Build_Discriminated_Subtype): Do not inherit representation clauses | |
7558 | from parent type if subtype already carries them, because they are | |
7559 | inherited earlier during derivation and already include those that may | |
7560 | come from a partial view. | |
7561 | ||
7562 | * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body): | |
7563 | Check the declarations of a subprogram body for proper deferred | |
7564 | constant completion. | |
7565 | ||
7566 | * sem_ch7.ads, sem_ch7.adb | |
7567 | (Inspect_Deferred_Constant_Completion): Moved to sem_util. | |
7568 | ||
7569 | 2008-05-20 Ed Schonberg <schonberg@adacore.com> | |
7570 | Thomas Quinot <quinot@adacore.com> | |
7571 | ||
7572 | * sem_ch4.adb | |
7573 | (Try_Indexed_Call): Handle properly a construct of the form F(S) where | |
7574 | F is a parameterless function that returns an array, and S is a subtype | |
7575 | mark. | |
7576 | (Analyze_Call): Insert dereference when the prefix is a parameterless | |
7577 | function that returns an access to subprogram and the call has | |
7578 | parameters. | |
7579 | Reject a non-overloaded call whose name resolves to denote | |
7580 | a primitive operation of the stub type generated to support a remote | |
7581 | access-to-class-wide type. | |
7582 | ||
7583 | 2008-05-20 Ed Schonberg <schonberg@adacore.com> | |
7584 | ||
7585 | * sem_ch8.adb | |
7586 | (Note_Redundant_Use): Diagnose a redundant use within a subprogram body | |
7587 | when there is a use clause for the same entity in the context. | |
7588 | (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is | |
7589 | created for a stream attribute of an abstract type or interface type. | |
7590 | ||
7591 | 2008-05-20 Thomas Quinot <quinot@adacore.com> | |
7592 | ||
7593 | * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New | |
7594 | subprogram. | |
7595 | ||
7596 | * sem_type.adb | |
7597 | (Add_One_Interp): Ignore any interpretation that is a primitive | |
7598 | operation of an RACW stub type (these primitives are only executed | |
7599 | through dispatching, never through static calls). | |
7600 | (Collect_Interps): When only one interpretation has been found, set N's | |
7601 | Entity and Etype to that interpretation, otherwise Entity and Etype may | |
7602 | still refer to an interpretation that was ignored by Add_One_Interp, | |
7603 | in which case would end up with being marked as not overloaded but with | |
7604 | an Entity attribute not pointing to its (unique) correct interpretation. | |
7605 | ||
7606 | 2008-05-20 Ed Schonberg <schonberg@adacore.com> | |
7607 | ||
7608 | * sem_eval.adb | |
7609 | (Eval_Slice): Warn when a slice whose discrete range is a subtype name | |
7610 | denotes the whole array of its prefix. | |
7611 | ||
7612 | 2008-05-20 Robert Dewar <dewar@adacore.com> | |
7613 | ||
7614 | * sem_res.adb (Resolve_Op_Not): Warn on double negation | |
7615 | ||
7616 | 2008-05-20 Ed Schonberg <schonberg@adacore.com> | |
7617 | ||
7618 | * sprint.adb | |
7619 | (Print_Itype): Do not modify the sloc of the component type of a | |
7620 | (packed) array itype, because it is an unrelated type whose source | |
7621 | location is independent of the point of creation of the itype itself. | |
7622 | ||
7623 | 2008-05-20 Thomas Quinot <quinot@adacore.com> | |
7624 | ||
7625 | * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with | |
7626 | Append. | |
7627 | ||
7628 | 2008-05-20 Robert Dewar <dewar@adacore.com> | |
7629 | Vincent Celier <celier@adacore.com> | |
7630 | ||
7631 | * vms_data.ads: Add entry for -gnatr | |
7632 | Put GNAT SYNC section in proper alpha order | |
7633 | Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d | |
7634 | ||
7635 | * gnat_ugn.texi: Add documentation for new gnatname switch --and | |
7636 | Update the style checks section | |
7637 | Add documentation of -gnatr | |
7638 | Add to the "Adding the Results of Compiler Checks to gnatcheck Output" | |
7639 | subsection the explanation how compiler checks should be disabled for | |
7640 | gnatcheck. | |
7641 | Update the list of Ada 95 reserved words used by in the project language | |
7642 | Add documentation for project qualifiers. | |
7643 | Document that abstract projects may be extended by different projects in | |
7644 | the same project tree. | |
7645 | Add documentation for gnatmake switch -d | |
7646 | ||
7647 | * ug_words: Add -gnatyy VMS equivalence string. | |
7648 | Add entry for -gnatr | |
7649 | ||
7650 | 2008-05-20 Bob Duff <duff@adacore.com> | |
7651 | ||
7652 | * a-rttiev.adb | |
7653 | (Set_Handler): Remove code from both of these that implements | |
7654 | RM-D.15(15/2), because it causes a race condition and potential | |
7655 | deadlock. | |
7656 | (Process_Queued_Events): Add comment explaining "exception when others | |
7657 | => null". Add clarifying ".all", even though implicit .all is legal | |
7658 | here. | |
7659 | ||
7660 | 2008-05-20 Arnaud Charlet <charlet@adacore.com> | |
7661 | ||
7662 | * s-winext.ads: Replace representation clause by pragma Pack. Gives | |
7663 | equivalent representation, but has the advantage of allowing | |
7664 | compilation of this file under 64 bits platforms. | |
7665 | ||
7666 | * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant. | |
7667 | ||
7668 | * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration. | |
7669 | ||
7c066666 | 7670 | * adaint.c: |
82522e95 | 7671 | Don't define dummy implementation of convert_addresses on ppc-linux. |
7672 | ||
7673 | 2008-05-20 Ed Schonberg <schonberg@adacore.com> | |
7674 | ||
7675 | * exp_ch7.adb | |
7676 | (Expand_Ctrl_Function_Call): Do not attach result to finalization list | |
7677 | if expression is aggregate component. | |
7678 | ||
7679 | 2008-05-20 Robert Dewar <dewar@adacore.com> | |
7680 | ||
7681 | * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads, | |
7682 | sem_ch12.adb: Update comments. Minor reformatting. | |
7683 | ||
7684 | * exp_ch2.adb: Typo | |
7685 | ||
7686 | * s-unstyp.ads: Fixed some typos in comments. | |
7687 | ||
93ca8030 | 7688 | 2008-05-20 Arnaud Charlet <charlet@adacore.com> |
7689 | ||
7690 | * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New | |
7691 | type/constant. | |
7692 | ||
7693 | * g-socthi-vxworks.ads: Update to latest socket changes. | |
7694 | ||
7695 | * a-caldel-vms.adb: Resync with a-caldel spec. | |
7696 | ||
e075b3c2 | 7697 | * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting. |
7698 | Update comments. | |
7699 | ||
e9ee81a7 | 7700 | 2008-05-17 Eric Botcazou <ebotcazou@adacore.com> |
7701 | ||
7702 | * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account | |
7703 | for dummy types pointed to by the converted pointer types. | |
7704 | ||
b51f4775 | 7705 | 2008-05-15 Eric Botcazou <ebotcazou@adacore.com> |
7706 | ||
7707 | * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field | |
7708 | of records and unions. | |
7709 | (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting. | |
7710 | ||
c83b1633 | 7711 | 2008-05-14 Samuel Tardieu <sam@rfc1149.net> |
7c066666 | 7712 | Robert Dewar <dewar@adacore.com> |
c83b1633 | 7713 | |
7714 | * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add | |
7715 | restrictions to the prefix of 'Old. | |
7716 | * sem_util.ads, sem_util.adb (In_Parameter_Specification): New. | |
7717 | * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local | |
7718 | variables. | |
7719 | ||
c93f4567 | 7720 | 2008-05-13 Eric Botcazou <ebotcazou@adacore.com> |
7721 | ||
7722 | PR ada/24880 | |
7723 | PR ada/26635 | |
7724 | * utils.c (convert) <INTEGER_TYPE>: When converting an additive | |
7725 | expression to an integral type with lower precision, use NOP_EXPR | |
7726 | directly in a couple of special cases. | |
7727 | ||
cb8ca27d | 7728 | 2008-05-12 Samuel Tardieu <sam@rfc1149.net> |
7c066666 | 7729 | Ed Schonberg <schonberg@adacore.com> |
cb8ca27d | 7730 | |
7731 | * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching | |
7732 | constraint expressions. | |
7733 | ||
080357ad | 7734 | 2008-05-12 Tomas Bily <tbily@suse.cz> |
7735 | ||
cb8ca27d | 7736 | * utils2.c (known_alignment, contains_save_expr_p) |
7737 | (gnat_mark_addressable): Use CASE_CONVERT. | |
7738 | * decl.c (annotate_value): Likewise. | |
7739 | * trans.c (maybe_stabilize_reference): Likewise. | |
7740 | * utils2.c (build_binary_op): Use CONVERT_EXPR_P. | |
7741 | * utils.c (rest_of_record_type_compilation): Likewise. | |
7742 | * trans.c (protect_multiple_eval, Attribute_to_gnu) | |
7743 | (protect_multiple_eval): Likewise. | |
080357ad | 7744 | |
26558add | 7745 | 2008-05-08 Andreas Schwab <schwab@suse.de> |
7746 | ||
7747 | * utils.c (handle_pure_attribute, init_gigi_decls): Rename | |
7748 | DECL_IS_PURE to DECL_PURE_P. | |
7749 | ||
24d619b7 | 7750 | 2008-05-05 Eric Botcazou <ebotcazou@adacore.com> |
7751 | ||
7752 | * decl.c (maybe_pad_type): Add ??? comment. | |
7753 | ||
153a0ba1 | 7754 | 2008-05-03 Eric Botcazou <ebotcazou@adacore.com> |
7755 | ||
7756 | * decl.c (components_to_record): Zero the alignment of the qualified | |
7757 | union built for the variant part upon creating it. | |
7758 | ||
32958faa | 7759 | 2008-05-03 Eric Botcazou <ebotcazou@adacore.com> |
7760 | ||
7761 | * decl.c (maybe_pad_type): Try to get a form of the type with integral | |
7762 | mode even if the alignment is not a factor of the original size. But | |
7763 | make sure to create the inner field with the original size. Reorder. | |
7764 | * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding | |
7765 | record as always addressable. | |
7766 | * utils.c (convert): Deal specially with conversions between original | |
7767 | and packable versions of a record type. | |
7768 | * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when | |
7769 | recognizing an assignment between padded objects. | |
7770 | ||
ca749ee0 | 7771 | 2008-05-01 Eric Botcazou <ebotcazou@adacore.com> |
7772 | ||
7773 | * decl.c (make_packable_type): Resize the last component to its RM size | |
7774 | only if it is of an aggregate type. | |
7775 | * trans.c (call_to_gnu): Fix nit in comment. | |
7776 | (gnat_to_gnu): Likewise. | |
7777 | ||
ac751c4c | 7778 | 2008-04-30 Samuel Tardieu <sam@rfc1149.net> |
7779 | ||
7780 | * Makefile.in: Adapt sh4-linux target. | |
7781 | ||
33e01db4 | 7782 | 2008-04-29 Ed Schonberg <schonberg@adacore.com> |
7783 | ||
7784 | PR ada/35792 | |
7785 | * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete | |
7786 | tagged type by an untagged protected or task type. | |
7787 | ||
c12e7556 | 7788 | 2008-04-28 Eric Botcazou <ebotcazou@adacore.com> |
7c066666 | 7789 | Tristan Gingold <gingold@adacore.com> |
c12e7556 | 7790 | |
7791 | PR ada/36007 | |
7792 | * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment | |
7793 | of aliased objects with an unconstrained nominal subtype. | |
7794 | Cap the promotion to the effective alignment of the word mode. | |
7795 | ||
215f7c71 | 7796 | 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
7797 | ||
7798 | * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads) | |
7799 | (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads): | |
7800 | Use '&&' instead of ';'. | |
7801 | ||
8a663e44 | 7802 | 2008-04-24 Olivier Hainque <hainque@adacore.com> |
7803 | ||
7804 | * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation | |
7805 | doesn't require signed arithmetic anymore. | |
7806 | ||
c7d4e749 | 7807 | 2008-04-23 Paolo Bonzini <bonzini@gnu.org> |
7808 | ||
7809 | * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT. | |
7810 | (call_to_gnu): Don't set TREE_INVARIANT. | |
7811 | * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT. | |
7812 | ||
40f0d741 | 7813 | 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com> |
7814 | ||
7815 | * s-osinte-rtems.adb: Add sigalstack function. | |
7816 | * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack | |
7817 | function. Add Alternate_Stack and Alternate_Stack_Size. | |
7818 | Add missing process_shared field to pthread_condattr_t | |
7819 | and change ss_low_priority to int from timespec. | |
7820 | ||
c1b05a88 | 7821 | 2008-04-22 Samuel Tardieu <sam@rfc1149.net> |
7822 | ||
7823 | * i-forbla.adb: Link against -llapack and -lblas by default | |
7824 | instead of the private -lgnalasup. | |
7825 | ||
7f0c1cb2 | 7826 | 2008-04-21 Olivier Hainque <hainque@adacore.com> |
7827 | ||
7828 | Access to most C builtins from Ada | |
7829 | * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE. | |
7830 | (handle_pure_attribute, handle_novops_attribute, | |
7831 | handle_nonnull_attribute, handle_sentinel_attribute, | |
7832 | handle_noreturn_attribute, handle_malloc_attribute, | |
7833 | handle_type_generic_attribute): New attribute handlers, from C fe. | |
7834 | (gnat_internal_attribute_table): Map the new handlers. | |
7835 | (gnat_init_decl_processing): Move call to gnat_install_builtins to ... | |
7836 | (init_gigi_decls): ... here. | |
7837 | (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for): | |
7838 | Move to a section dedicated to builtins processing. | |
7839 | (build_void_list_node, builtin_type_for_size): New functions. | |
7840 | (def_fn_type, get_nonnull_operand): Likewise. | |
7841 | (install_builtin_elementary_type, install_builtin_function_types, | |
7842 | install_builtin_attributes): Likewise. | |
7843 | (fake_attribute_handler): Fake handler for attributes we don't | |
7844 | support in Ada. | |
7845 | (def_builtin_1): New function, worker for DEF_BUILTIN. | |
7846 | (install_builtin_functions): New function. | |
7847 | (gnat_install_builtins): Move to the builtins processing section. | |
7848 | Now calling the newly introduced installers. | |
7849 | ||
588e293a | 7850 | 2008-04-20 Eric Botcazou <ebotcazou@adacore.com> |
7851 | ||
7852 | * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of | |
7853 | constant objects, but not exceptions. | |
7854 | * trans.c (add_decl_expr): Use gnat_types_compatible_p for type | |
7855 | compatibility test. | |
7856 | * utils.c (create_var_decl_1): Likewise. | |
7857 | * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of | |
7858 | the type when copying to padded object and the source is a constructor. | |
7859 | ||
b75631ec | 7860 | 2008-04-18 Eric Botcazou <ebotcazou@adacore.com> |
7861 | ||
7862 | * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the | |
7863 | alignment, reset it to zero if it would end up not being greater | |
7864 | than that of the type. | |
7865 | ||
9e2d2e27 | 7866 | 2008-04-18 Eric Botcazou <ebotcazou@adacore.com> |
7867 | ||
7868 | * decl.c (maybe_pad_type): Only generate the XVS parallel type if | |
7869 | the padded type has a variable size. | |
7870 | ||
f6d714a3 | 7871 | 2008-04-18 Eric Botcazou <ebotcazou@adacore.com> |
7872 | ||
7873 | * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by | |
7874 | target pointer mechanism as soon as the size is not constant. | |
7875 | ||
5010877e | 7876 | 2008-04-18 Eric Botcazou <ebotcazou@adacore.com> |
7877 | ||
7878 | * gigi.h (create_var_decl_1): Declare. | |
7879 | (create_var_decl): Turn into a macro invoking create_var_decl_1. | |
7880 | (create_true_var_decl): Likewise. | |
7881 | * utils.c (create_var_decl_1): Make global and reorder parameters. | |
7882 | (create_var_decl): Delete. | |
7883 | (create_true_var_decl): Likewise. | |
7884 | ||
6bd31f4f | 7885 | 2008-04-17 Eric Botcazou <ebotcazou@adacore.com> |
7886 | ||
7887 | * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of | |
7888 | objects by default. | |
7889 | * fe.h (Debug_Flag_Dot_A): Delete. | |
7890 | * debug.adb (-gnatd.a): Update documentation. | |
7891 | ||
b7676b65 | 7892 | 2008-04-17 Samuel Tardieu <sam@rfc1149.net> |
7893 | ||
7894 | * g-socket.ads, g-socket.adb (Get_Address): Make Stream a | |
7895 | "not null" parameter. | |
7896 | ||
c69bd769 | 7897 | 2008-04-17 Samuel Tardieu <sam@rfc1149.net> |
7898 | ||
7899 | * g-socket.adb: Add a message "IPv6 not supported" to the | |
7900 | Socket_Error exception. | |
7901 | ||
81012a4c | 7902 | 2008-04-16 Samuel Tardieu <sam@rfc1149.net> |
7903 | ||
7904 | PR ada/29015 | |
7905 | * sem_ch12.adb (Instantiate_Type): Check whether the full view of | |
7906 | the type is known instead of the underlying type. | |
7907 | ||
0318d457 | 7908 | 2008-04-15 Ed Schonberg <schonberg@adacore.com> |
7909 | ||
7910 | PR ada/22387 | |
7911 | * exp_ch5.adb (Expand_Assign_Record): Within an initialization | |
7912 | procedure for a derived type retrieve the discriminant values from | |
7913 | the parent using the corresponding discriminant. | |
7914 | ||
dc543af1 | 7915 | 2008-04-15 Samuel Tardieu <sam@rfc1149.net> |
7c066666 | 7916 | Gary Dismukes <dismukes@adacore.com> |
dc543af1 | 7917 | |
7918 | PR ada/28733 | |
7919 | * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something | |
7920 | which is not an entity (and hence not a package). | |
7921 | (End_Use_Package): Ditto. | |
7922 | ||
8da93656 | 7923 | 2008-04-15 Ed Schonberg <schonberg@adacore.com> |
7924 | ||
7925 | PR ada/16086 | |
7926 | * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any | |
7927 | protected operation that matches the signature, not only an entry, a | |
7928 | regular subprogram or a literal. | |
7929 | ||
b9cf6a42 | 7930 | 2008-04-15 Eric Botcazou <ebotcazou@adacore.com> |
7931 | ||
7932 | * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3. | |
7933 | * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only | |
7934 | if a size or alignment is specified. Do not take into account | |
7935 | alignment promotions for the computation of the object's size. | |
7936 | <type>: Call maybe_pad_type only if a size or alignment is specified. | |
7937 | (maybe_pad_type): Really reuse the RM_Size of the original type if | |
7938 | requested. | |
7939 | * trans.c (Attribute_to_gnu): Fix a couple of nits. | |
7940 | * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional | |
7941 | statements. Use the padded view of the type when copying between | |
7942 | padded objects of the same underlying type. | |
7943 | ||
2c145f84 | 7944 | 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
7945 | ||
7946 | * vms_data.ads: Fix typo in constant. | |
7947 | * gen-soccon.c: Fix typo in error string. | |
7948 | * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition): | |
7949 | Fix typos. | |
7950 | * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads, | |
7951 | bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb, | |
7952 | erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb, | |
7953 | exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb, | |
7954 | exp_util.adb, fmap.adb, g-soccon-linux-mips.ads, | |
7955 | g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads, | |
7956 | mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb, | |
7957 | s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads, | |
7958 | s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads, | |
7959 | sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads, | |
7960 | sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, | |
7961 | sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads, | |
7962 | sinfo.ads: Fix typos in comments. | |
7963 | ||
1ce767d9 | 7964 | 2008-04-14 Robert Dewar <dewar@adacore.com> |
7965 | ||
7966 | * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error | |
7967 | to every non-object and change error message. | |
7968 | ||
3f12b0c9 | 7969 | 2008-04-14 Robert Dewar <dewar@adacore.com> |
7970 | ||
7971 | * sem_util.ads, sem_util.adb (In_Subprogram): Remove. | |
7972 | * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram | |
7973 | directly. | |
7974 | ||
cebe3a8b | 7975 | 2008-04-14 Samuel Tardieu <sam@rfc1149.net> |
7976 | ||
7977 | PR ada/18680 | |
7978 | * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to | |
7979 | apply pragma Linker_Section on type. | |
7980 | ||
c2b7e7c4 | 7981 | 2008-04-14 Samuel Tardieu <sam@rfc1149.net> |
7982 | ||
7983 | PR ada/16098 | |
7984 | * sem_prag.adb (Error_Pragma_Ref): New. | |
7985 | (Process_Convention): Specialized message for non-local | |
7986 | subprogram renaming. Detect the problem in homonyms as well. | |
7987 | ||
8c5c7277 | 7988 | 2008-04-14 Samuel Tardieu <sam@rfc1149.net> |
7989 | ||
7990 | PR ada/15915 | |
7991 | * sem_util.ads, sem_util.adb (Denotes_Variable): New function. | |
7992 | * sem_ch12.adb (Instantiate_Object): Use it. | |
7993 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that | |
7994 | storage pool denotes a variable as per RM 13.11(15). | |
7995 | ||
7fc6189b | 7996 | 2008-04-14 Samuel Tardieu <sam@rfc1149.net> |
7997 | ||
7998 | * sem_util.ads, sem_util.adb (In_Subprogram): New function. | |
7999 | * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it. | |
8000 | ||
23fed36d | 8001 | 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de> |
8002 | ||
8003 | PR ada/20822 | |
8004 | * xgnatugn.adb (Put_Line): New procedure, ensuring Unix | |
8005 | line endings even on non-Unix platforms. | |
8006 | ||
1c8d2ca7 | 8007 | 2008-04-14 Samuel Tardieu <sam@rfc1149.net> |
8008 | ||
8009 | PR ada/35050 | |
8010 | * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the | |
8011 | renaming information. | |
8012 | ||
7c066666 | 8013 | 2008-04-13 Samuel Tardieu <sam@rfc1149.net> |
5207e719 | 8014 | |
8015 | PR ada/17985 | |
8016 | * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of | |
8017 | itself. | |
8018 | ||
febb409f | 8019 | 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
8020 | ||
c2f03270 | 8021 | * sfn_scan.adb, sfn_scan.ads, sinfo.ads, |
8022 | sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads, | |
8023 | snames.ads, sprint.adb, stand.ads, stringt.ads, | |
8024 | styleg.adb, styleg.ads, stylesw.adb, stylesw.ads, | |
8025 | switch.ads, sysdep.c, table.adb, table.ads, | |
8026 | targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c, | |
8027 | trans.c, tree_io.adb, treepr.adb, types.adb, types.ads, | |
8028 | uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads, | |
8029 | vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb, | |
8030 | widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb, | |
8031 | xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb: | |
8032 | Fix comment typos. | |
8033 | ||
1a34e48c | 8034 | * sem_ch10.adb, sem_ch10.ads, |
8035 | sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads, | |
8036 | sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, | |
8037 | sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, | |
8038 | sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb, | |
8039 | sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads, | |
8040 | sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads, | |
8041 | sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb, | |
8042 | sem_warn.ads: Fix comment typos. | |
8043 | ||
febb409f | 8044 | * s-secsta.adb, s-sequio.ads, s-shasto.ads, |
8045 | s-soflin.ads, s-stalib.ads, s-stausa.adb, | |
8046 | s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads, | |
8047 | s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb, | |
8048 | s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb, | |
8049 | s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb, | |
8050 | s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb, | |
8051 | s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads, | |
8052 | s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads, | |
8053 | s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, | |
8054 | s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb, | |
8055 | s-tposen.ads, s-traceb-hpux.adb, s-traces.ads, | |
8056 | s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads, | |
8057 | s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb, | |
8058 | s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads, | |
8059 | scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb, | |
8060 | sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads, | |
8061 | sem_cat.adb, sem_cat.ads: Fix comment typos. | |
8062 | ||
e08506a5 | 8063 | 2008-04-12 Joel Sherrill <joel@oarcorp.com> |
8064 | ||
8065 | PR ada/35825 | |
8066 | * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported. | |
8067 | ||
5f059376 | 8068 | 2008-04-12 Arnaud Charlet <charlet@adacore.com> |
8069 | ||
8070 | * s-linux-hppa.ads: Fix syntax errors. | |
8071 | ||
71dec080 | 8072 | 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
8073 | ||
8074 | * gnat_ugn.texi: Fix typos. | |
8075 | * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb, | |
8076 | restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads, | |
8077 | s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads, | |
8078 | s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads, | |
8079 | s-fatllf.ads, s-fatsfl.ads, s-filofl.ads, | |
8080 | s-finimp.adb, s-finroo.ads, s-fishfl.ads, | |
8081 | s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads, | |
8082 | s-hibaen.ads, s-htable.ads, s-imgcha.adb, | |
8083 | s-imgenu.ads, s-imgint.adb, s-imgrea.adb, | |
8084 | s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb, | |
8085 | s-interr-vxworks.adb, s-interr.adb, s-interr.ads, | |
8086 | s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb, | |
8087 | s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads, | |
8088 | s-osinte-darwin.ads, s-osinte-freebsd.ads, | |
8089 | s-osinte-hpux.ads, s-osinte-lynxos-3.adb, | |
8090 | s-osinte-lynxos-3.ads, s-osinte-lynxos.ads, | |
8091 | s-osinte-rtems.ads, s-osinte-solaris-posix.ads, | |
8092 | s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads, | |
8093 | s-parame-hpux.ads, s-parame-vms-alpha.ads, | |
8094 | s-parame-vms-ia64.ads, s-parame-vms-restrict.ads, | |
8095 | s-parame-vxworks.ads, s-parame.ads, s-parint.adb, | |
8096 | s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads, | |
8097 | s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads, | |
8098 | s-rident.ads: Fix comment typos. | |
8099 | ||
bb66f6b8 | 8100 | 2008-04-09 Samuel Tardieu <sam@rfc1149.net> |
8101 | ||
8102 | PR ada/28305 | |
8103 | * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore | |
8104 | environment if generic instance is a top-level one. | |
8105 | ||
649d7732 | 8106 | 2008-04-09 Doug Rupp <rupp@adacore.com> |
8107 | ||
8108 | * decl.c (validate_size): Set minimum size for fat pointers same as | |
8109 | access types. Code clean ups. | |
8110 | ||
8111 | * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise | |
8112 | (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS | |
8113 | ||
8114 | * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant | |
8115 | ||
8116 | * s-crtl.ads (malloc32) New function, alias for malloc | |
8117 | (realloc32) New function, alias for realloc | |
8118 | ||
8119 | * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS | |
8120 | ||
8121 | * utils2.c (build_call_alloc_dealloc): Return call to short malloc if | |
8122 | allocator size is 32 and default pointer size is 64. | |
8123 | (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of | |
8124 | lhs type if smaller, whatever the modes. | |
8125 | ||
8126 | * gigi.h (malloc32_decl): New macro definition | |
8127 | ||
8128 | * utils.c (init_gigi_decls): New malloc32_decl | |
8129 | Various code clean ups. | |
8130 | ||
8131 | * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to | |
8132 | Task_Address vice System.Address. | |
8133 | ||
8134 | * s-taspri-vms.ads: Import System.Aux_DEC | |
8135 | (Task_Address): New subtype of System.Aux_DEC.Short_Address | |
8136 | (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address | |
8137 | ||
8138 | * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to | |
8139 | Task_Address vice System.Address. | |
8140 | ||
8141 | * s-inmaop-vms.adb: Import System.Task_Primitives | |
8142 | (To_Address): Unchecked convert to Task_Address vice System.Address | |
8143 | ||
8144 | * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay | |
8145 | expires now. | |
8146 | (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address | |
8147 | (To_Address) Unchecked convert to Task_Address vice System.Address | |
8148 | ||
8149 | * s-tpopde-vms.adb: Remove unnecessary warning pragmas | |
8150 | ||
8151 | * g-socthi-vms.ads: Add 32bit size clauses on socket access types. | |
8152 | ||
1edcfc94 | 8153 | 2008-04-08 Eric Botcazou <ebotcazou@adacore.com> |
8154 | ||
8155 | * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc. | |
8156 | (fdesc_type_node): Define. | |
8157 | (null_fdesc_node): Likewise. | |
8158 | * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target | |
8159 | uses descriptors for vtables and the type comes from a dispatch table, | |
8160 | return the descriptor type. | |
8161 | * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target | |
8162 | uses descriptors for vtables and the type comes from a dispatch table, | |
8163 | build a descriptor in the static case and copy the existing one in the | |
8164 | non-static case. | |
8165 | (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and | |
8166 | the type is a pointer-to-subprogram coming from a dispatch table, | |
8167 | return the null descriptor. | |
8168 | <N_Unchecked_Type_Conversion>: If the target uses descriptors for | |
8169 | vtables, the source type is the descriptor type and the target type | |
8170 | is a pointer type, first build the pointer. | |
8171 | * utils.c (init_gigi_decls): If the target uses descriptors for vtables | |
8172 | build the descriptor type and the null descriptor. | |
8173 | ||
be71e0ec | 8174 | 2008-04-08 Eric Botcazou <ebotcazou@adacore.com> |
8175 | ||
8176 | * decl.c (prepend_attributes): Fix typo. | |
8177 | * trans.c (Pragma_to_gnu): Likewise. | |
8178 | * utils.c (gnat_genericize): Likewise. | |
8179 | ||
4308cfb3 | 8180 | 2008-04-08 Eric Botcazou <ebotcazou@adacore.com> |
7c066666 | 8181 | Richard Kenner <kenner@adacore.com> |
4308cfb3 | 8182 | |
8183 | * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed. | |
8184 | * decl.c (gnat_to_gnu_entity): Adjust for above change. | |
8185 | <E_Record_Type>: Try to get a better form of the component for | |
8186 | packing, even if it has an integral mode. | |
8187 | <E_Record_Subtype>: Likewise. | |
8188 | * trans.c (gnat_to_gnu): Do not require BLKmode for the special | |
8189 | exception suppressing the final conversion between record types. | |
8190 | ||
ff62539a | 8191 | 2008-04-08 Eric Botcazou <ebotcazou@adacore.com> |
8192 | ||
8193 | * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing | |
8194 | alignment for space, promote the alignment of non-scalar variables with | |
8195 | no size and alignment. | |
8196 | * gigi.h (gnat_types_compatible_p): Declare. | |
8197 | * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate. | |
8198 | * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup. | |
8199 | * utils.c (gnat_types_compatible_p) : New predicate. | |
8200 | (convert): Use it throughout to test for cases where a mere view | |
8201 | conversion is sufficient. | |
8202 | * utils2.c (build_binary_op): Minor tweaks. | |
8203 | (build_unary_op): Likewise. | |
8204 | ||
b840e60d | 8205 | 2008-04-08 Eric Botcazou <ebotcazou@adacore.com> |
8206 | ||
8207 | * decl.c (adjust_packed): Expand comment. | |
8208 | ||
94e37259 | 8209 | 2008-04-08 Arnaud Charlet <charlet@adacore.com> |
8210 | ||
8211 | * s-tasuti.ads: Use Task_Address instead of System.Address. | |
8212 | ||
8213 | * makeutl.adb (Path_Or_File_Name): New function | |
8214 | ||
8215 | * nlists.ads, itypes.ads: Update comments. | |
8216 | ||
8217 | * s-crtl.ads (malloc32, realloc32): New functions. | |
8218 | ||
8219 | * s-auxdec.ads (Short_Address_Size): New constant. | |
8220 | ||
8221 | * a-taside.adb, s-tasdeb.adb: Use Task_Address. | |
8222 | ||
8223 | * s-ststop.ads, s-ststop.adb: New file. | |
8224 | ||
8225 | * exp_tss.ads, s-taprop-lynxos.adb: Update comments. | |
8226 | Minor reformatting. | |
8227 | ||
9dbc444f | 8228 | 2008-04-08 Pascal Obry <obry@adacore.com> |
8229 | ||
8230 | * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200. | |
8231 | (Stop_Bits_Number): New type. | |
8232 | (Parity_Check): Likewise. | |
8233 | (Set): Add parameter to set the number of stop bits and | |
8234 | the parity. Parameter timeout is now a duration instead | |
8235 | of a plain integer. | |
8236 | ||
8237 | * g-sercom-linux.adb: | |
8238 | Implement the stop bits and parity support for GNU/Linux. | |
8239 | Fix handling of timeout, it must be given in tenth of seconds. | |
7c066666 | 8240 | |
9dbc444f | 8241 | * g-sercom-mingw.adb: |
8242 | Implement the stop bits and parity support for Windows. | |
8243 | Use new s-win32.ads unit instead of declaring Win32 services | |
8244 | directly into this body. | |
8245 | Update handling of timeout as now a duration. | |
8246 | ||
8247 | * s-win32.ads, s-winext.ads: New files. | |
8248 | ||
8249 | 2008-04-08 Eric Botcazou <ebotcazou@adacore.com> | |
8250 | Arnaud Charlet <charlet@adacore.com> | |
8251 | ||
8252 | * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed. | |
8253 | ||
8254 | s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads, | |
8255 | s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux. | |
8256 | ||
8257 | * s-osinte-lynxos-3.ads, | |
8258 | (Alternate_Stack): Remove when not needed. Simplify declaration | |
8259 | otherwise. | |
8260 | (Alternate_Stack_Size): New constant. | |
8261 | ||
8262 | s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of | |
8263 | 'Unrestricted_Access. | |
8264 | ||
8265 | * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads, | |
8266 | s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads, | |
8267 | s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads, | |
8268 | s-osinte-solaris.ads, s-osinte-vms.ads | |
8269 | (SA_ONSTACK): New constant. | |
8270 | (stack_t): New record type. | |
8271 | (sigaltstack): New imported function. | |
8272 | (Alternate_Stack): New imported variable. | |
8273 | (Alternate_Stack_Size): New constant. | |
8274 | ||
8275 | * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True. | |
8276 | ||
8277 | * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads, | |
94e37259 | 8278 | s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads, |
8279 | s-taspri-vms.ads (Task_Address): New subtype of System.Address | |
9dbc444f | 8280 | (Task_Address_Size): New constant size of System.Address |
8281 | (Alternate_Stack_Size): New constant. | |
8282 | ||
8283 | * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete. | |
8284 | (Enter_Task): Do not notify stack to System.Stack_Checking.Operations. | |
8285 | Establish the alternate stack if the platform makes use of n alternate | |
8286 | signal stack for stack overflows. | |
8287 | (Create_Task): Take into account the alternate stack in the stack size. | |
8288 | (Initialize): Save the address of the alternate stack into the ATCB for | |
8289 | the environment task. | |
8290 | (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads). | |
8291 | ||
94e37259 | 8292 | * s-parame.adb (Minimum_Stack_Size): Increase value to 16K |
9dbc444f | 8293 | |
8294 | * system-linux-x86.ads: (Stack_Check_Probes): Set to True. | |
8295 | ||
7c066666 | 8296 | * s-intman-posix.adb: |
9dbc444f | 8297 | (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an |
8298 | alternate signal stack for stack overflows. | |
8299 | ||
8300 | * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and | |
8301 | x86-64, adjust the saved value of the stack pointer if the signal was | |
8302 | raised by a stack checking probe. | |
8303 | (HP-UX section): Use global __gnat_alternate_stack as signal handler | |
8304 | stack and only for SIGSEGV. | |
8305 | (Linux section): Likewise on x86 and x86-64. | |
8306 | [VxWorks section] | |
8307 | (__gnat_map_signal): Now static. | |
8308 | (__gnat_error_handler): Not static any more. | |
8309 | (__gnat_adjust_context_for_raise): New function. Signal context | |
8310 | adjustment for PPC && !VTHREADS && !RTP, as required by the zcx | |
8311 | propagation circuitry. | |
8312 | (__gnat_error_handler): Second argument of a sigaction handler is a | |
8313 | pointer, not an int, and is unused. | |
8314 | Adjust signal context before mapping to exception. | |
8315 | Install signal handlers for LynxOS case. | |
8316 | ||
8317 | * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack. | |
8318 | (Task_Id): Set size to Task_Address_Size | |
8319 | (To_Task_id): Unchecked convert from Task_Address vice System.Address | |
8320 | (To_Address): Unchecked convert to Task_Address vice System.Address | |
8321 | ||
8322 | * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its | |
8323 | address into the ATCB if the platform makes use of an alternate signal | |
8324 | stack for stack overflows. | |
8325 | (Free_Task): Add call to Finalize_Attributes_Link. | |
8326 | Add argument Relative_Deadline to pass the value specified for | |
8327 | the task. This is not yet used for any target. | |
8328 | ||
8329 | * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass | |
8330 | the value specified for the task. | |
8331 | ||
8332 | 2008-04-08 Arnaud Charlet <charlet@adacore.com> | |
8333 | ||
8334 | (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb | |
8335 | (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads, | |
8336 | s-vxwext-rtp.adb): New files. | |
8337 | ||
7c066666 | 8338 | * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb: |
9dbc444f | 8339 | Minor updates to accomodate changes above. |
8340 | ||
8341 | 2008-04-08 Pascal Obry <obry@adacore.com> | |
8342 | ||
8343 | * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb, | |
8344 | s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads: | |
8345 | Use new s-win32.ads unit instead of declaration | |
8346 | from s-osinte-mingw.ads. | |
7c066666 | 8347 | |
9dbc444f | 8348 | * s-osinte-mingw.ads: |
8349 | Move all non tasking based interface to s-win32.ads. | |
7c066666 | 8350 | |
9dbc444f | 8351 | * s-osprim-mingw.adb: |
8352 | Remove duplicated declarations and use s-win32.ads | |
8353 | unit instead. | |
8354 | ||
8355 | 2008-04-08 Vincent Celier <celier@adacore.com> | |
8356 | Arnaud Charlet <charlet@adacore.com> | |
8357 | ||
8358 | * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb, | |
8359 | mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb, | |
8360 | mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb, | |
8361 | mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, | |
8362 | mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into... | |
8363 | ||
8364 | * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb, | |
8365 | mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb, | |
8366 | mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb, | |
8367 | mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb, | |
8368 | mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads, | |
8369 | mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb, | |
8370 | mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb, | |
8371 | mlib-tgt-specific-mingw.adb: New names. | |
8372 | ||
7c066666 | 8373 | * Makefile.in: |
9dbc444f | 8374 | On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads |
8375 | Get rid of gnatbl. | |
8376 | (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o | |
8377 | Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb | |
8378 | Minor updates for VMS | |
8379 | ||
94e37259 | 8380 | * gnatbl.c: Removed. |
8381 | ||
9dbc444f | 8382 | 2008-04-08 Thomas Quinot <quinot@adacore.com> |
8383 | ||
8384 | * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb, | |
8385 | g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb, | |
8386 | gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads, | |
8387 | a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb, | |
8388 | s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of | |
8389 | ASCII.NUL throughout. | |
8390 | ||
8391 | 2008-04-08 Arnaud Charlet <charlet@adacore.com> | |
8392 | Matthew Heaney <heaney@adacore.com> | |
8393 | ||
8394 | * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex | |
8395 | renaming. | |
8396 | ||
7c066666 | 8397 | * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, |
9dbc444f | 8398 | a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform |
8399 | to convention for non-RM specs. | |
8400 | Add descriptive header, and documented each operation | |
8401 | document each operation | |
8402 | ||
8403 | 2008-04-08 Robert Dewar <dewar@adacore.com> | |
8404 | Bob Duff <duff@adacore.com> | |
8405 | Gary Dismukes <dismukes@adacore.com> | |
8406 | Ed Schonberg <schonberg@adacore.com> | |
8407 | ||
8408 | * alloc.ads: Add entries for Obsolescent_Warnings table | |
8409 | ||
8410 | * einfo.ads, einfo.adb: Minor reformatting. | |
8411 | (Is_Discriminal): New subprogram. | |
8412 | (Is_Prival): New subprogram. | |
8413 | (Is_Protected_Component): New subprogram. | |
8414 | (Is_Protected_Private): Removed. | |
8415 | (Object_Ref, Set_Object_Ref): Removed. | |
8416 | (Prival, Set_Prival): Change assertion. | |
8417 | (Privals_Chain, Set_Privals_Chain): Removed. | |
8418 | (Prival_Link, Set_Prival_Link): New subprogram. | |
8419 | (Protected_Operation, Set_Protected_Operation): Removed. | |
8420 | (Protection_Object, Set_Protection_Object): New subprogram. | |
8421 | (Write_Field17_Name): Remove case for Object_Ref. | |
8422 | (Write_Field20_Name): Add case for Prival_Link. | |
8423 | (Write_Field22_Name): Remove case for Protected_Operation, | |
8424 | Privals_Chain. | |
8425 | Add case for Protection_Object. | |
8426 | (Can_Use_Internal_Rep): Make this into a [base type only] attribute, | |
8427 | so clients | |
8428 | (Overlays_Constant): New flag | |
8429 | (Is_Constant_Object): New predicate | |
8430 | (Is_Standard_Character_Type): New predicate | |
8431 | (Optimize_Alignment_Space): New flag | |
8432 | (Optimize_Alignment_Time): New flag | |
8433 | (Has_Postconditions): New flag | |
8434 | (Obsolescent_Warrning): Field removed | |
8435 | (Spec_PPC_List): New field | |
8436 | (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add | |
8437 | subprograms to get and set the relative deadline associated to a task. | |
8438 | ||
8439 | * exp_attr.adb (May_Be_External_Call): Account for the case where the | |
8440 | Access attribute is part of a named parameter association. | |
8441 | (Expand_Access_To_Protected_Op): Test for the attribute occurring | |
8442 | within an init proc and use that directly as the scope rather than | |
8443 | traversing up to the protected operation's enclosing scope. Only apply | |
8444 | assertion on Is_Open_Scopes in the case the scope traversal is done. | |
8445 | For the init proc case use the address of the first formal (_init) as | |
8446 | the protected object reference. | |
8447 | Implement Invalid_Value attribute | |
8448 | (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access. | |
8449 | contents of the dispatch table there is no need to duplicate the | |
8450 | itypes associated with record types (i.e. the implicit full view | |
8451 | of private types). | |
8452 | Implement Enum_Val attribute | |
8453 | (Expand_N_Attribute_Reference, case Old): Properly handle appearence | |
8454 | within _Postconditions procedure | |
8455 | (Expand_N_Attribute_Reference, case Result): Implement new attribute | |
8456 | ||
8457 | * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which | |
8458 | a return statement calls a function that is not available in | |
8459 | configurable runtime. | |
8460 | (Analyze_If_Statement): don't optimize simple True/False cases in -O0 | |
8461 | (Expand_Non_Function_Return): Generate call to _Postconditions proc | |
8462 | (Expand_Simple_Function_Return): Ditto | |
8463 | ||
8464 | * frontend.adb: Add call to Sem_Aux.Initialize | |
8465 | ||
8466 | * sem_aux.ads, sem_aux.adb: New file. | |
8467 | ||
8468 | * par-prag.adb: Add entries for pragmas Precondition/Postcondition | |
8469 | Add new Pragma_Relative_Deadline. | |
8470 | Add support for pragmas Check and Check_Policy | |
8471 | ||
8472 | * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram. | |
8473 | (Check_Stream_Attribute): Add missing check (not allowed in CPP types) | |
8474 | (Analyze_Attribute): In case of attributes 'Alignment and 'size add | |
8475 | missing check because they are not allowed in CPP tagged types. | |
8476 | Add Sure parameter to Note_Possible_Modification calls | |
8477 | Add implementation of Invalid_Value attribute | |
8478 | Implement new attribute Has_Tagged_Values | |
8479 | Implement Enum_Val attribute | |
8480 | (Analyze_Attribute, case Range): Set Name_Req True for prefix of | |
8481 | generated attributes. | |
8482 | (Analyze_Attribute, case Result): If prefix of the attribute is | |
8483 | overloaded, it always resolves to the enclosing function. | |
8484 | (Analyze_Attribute, case Result): Properly deal with analysis when | |
8485 | Postconditions are not active. | |
8486 | (Resolve_Attribute, case Result): Properly deal with appearence during | |
8487 | preanalysis in spec. | |
8488 | Add processing for attribute Result | |
8489 | ||
8490 | * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup | |
8491 | for operators. | |
8492 | (Analyze_Subprogram_Body): Install private_with_clauses when the body | |
8493 | acts as a spec. | |
8494 | (Check_Inline_Pragma): recognize an inline pragma that appears within | |
8495 | the subprogram body to which it applies. | |
8496 | (Analyze_Function_Return): Check that type of the expression of a return | |
8497 | statement in a function with a class-wide result is not declared at a | |
8498 | deeper level than the function. | |
8499 | (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag | |
8500 | (Verify_Overriding_Indicator): Handle properly subprogram bodies for | |
8501 | user- defined operators. | |
8502 | (Install_Formals): Moved to spec to allow use from Sem_Prag for | |
8503 | analysis of precondition/postcondition pragmas. | |
8504 | (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for | |
8505 | Last_Formal, along with lots of comments on what this is about | |
8506 | (Analyze_Subprogram_Body): Fix case where we move entities from the | |
8507 | spec to the body when there are no body entities (now possible with | |
8508 | precondition and postcondition pragmas). | |
8509 | (Process_PPCs): New procedure | |
8510 | (Analyze_Subprogram_Body): Add call to Process_PPCs | |
8511 | ||
8512 | * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type | |
8513 | clause. | |
8514 | (Pop_Scope): Restore Check_Policy_List on scope exit | |
8515 | (Push_Scope): Save Check_Policy_List on scope entry | |
8516 | Change name In_Default_Expression => In_Spec_Expression | |
8517 | Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression | |
8518 | Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve | |
8519 | (Analyze_Object_Renaming): Allow 'Reference as object | |
8520 | (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma | |
8521 | (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling | |
8522 | of restriction identifier. | |
8523 | Add Sure parameter to Note_Possible_Modication calls | |
8524 | ||
8525 | * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert): | |
8526 | Don't check for primitive operations when calling Rep_Item_Too_Late. | |
8527 | (Process_Import_Or_Interface): Do not place flag on formal | |
8528 | subprograms. | |
8529 | (Analyze_Pragma, case Export): If the entity is a deferred constant, | |
8530 | propagate information to full view, which is the one elaborated by the | |
8531 | back-end. | |
8532 | (Make_Inline): the pragma is effective if it applies to an internally | |
8533 | generated subprogram declaration for a body that carries the pragma. | |
8534 | (Analyze_Pragma, case Optimize_Alignment): Set new flag | |
8535 | Optimize_Alignment_Local. | |
8536 | (Analyze_PPC_In_Decl_Part): New procedure | |
8537 | (Get_Pragma_Arg): Moved to outer level | |
8538 | (Check_Precondition_Postcondition): Change to allow new visibility | |
8539 | rules for package spec | |
8540 | (Analyze_Pragma, case Check_Policy): Change placement rules to be | |
8541 | same as pragma Suppress/Unsuppress. | |
8542 | Change name In_Default_Expression => In_Spec_Expression | |
8543 | Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression | |
8544 | Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve | |
8545 | (Check_Precondition_Postcondition): Do proper visibility preanalysis | |
8546 | for the case of these pragmas appearing in the spec. | |
8547 | (Check_Enabled): New function | |
8548 | (Initialize): New procedure | |
8549 | (Tree_Read): New procedure | |
8550 | (Tree_Write): New procedure | |
8551 | (Check_Precondition_Postcondition): New procedure | |
8552 | Implement pragmas Check and Check_Policy | |
8553 | Merge Assert processing with Check | |
8554 | ||
8555 | * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check | |
8556 | New warning flag -gnatw.e | |
8557 | ||
8558 | * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function | |
8559 | returning whether a task (or main procedure) has a pragma | |
8560 | Relative_Deadline. | |
8561 | (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task | |
8562 | (or main procedure) has a pragma Relative_Deadline. | |
8563 | Add Next_Pragma field to N_Pragma node | |
8564 | (PPC_Enabled): New flag | |
8565 | (Next_Pragma): Now used for Pre/Postcondition processing | |
8566 | ||
8567 | * snames.h, snames.ads, snames.adb: New standard name | |
8568 | Inherit_Source_Path | |
8569 | Add entry for 'Invalid_Value attribute | |
8570 | Add entry for new attribute Has_Tagged_Values | |
8571 | Add entry for Enum_Val attribute | |
8572 | Add new standard names Aggregate, Configuration and Library. | |
8573 | Add _Postconditions | |
8574 | Add _Result | |
8575 | Add Pragma_Precondition | |
8576 | Add Pragma_Postcondition | |
8577 | Add Attribute_Result | |
8578 | New standard name Archive_Builder_Append_Option | |
8579 | (Preset_Names): Add _relative_deadline and relative_deadline definitions | |
8580 | There was also a missing non_preemptive_within_priorities. | |
8581 | (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma | |
8582 | Relative_Deadline. | |
8583 | Add support for pragmas Check and Check_Policy | |
8584 | ||
8585 | * tree_gen.adb: Call Sem_Aux.Tree_Write | |
8586 | ||
8587 | * tree_in.adb: Call Sem_Aux.Tree_Read | |
8588 | ||
8589 | * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling | |
8590 | sequence | |
8591 | ||
8592 | * exp_intr.adb (Expand_Source_Info): New Build_Location calling | |
8593 | sequence | |
8594 | ||
8595 | * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure. | |
8596 | (Expand_N_Pragma): Call the appropriate procedure for expanding pragma | |
8597 | Relative_Deadline. | |
8598 | (Expand_Pragma_Check): New procedure | |
8599 | ||
8600 | * sinput.ads, sinput.adb (Build_Location_String): Now appends to name | |
8601 | buffer. | |
8602 | ||
8603 | * sinfo.adb (PPC_Enabled): New flag | |
8604 | ||
8605 | 2008-04-08 Robert Dewar <dewar@adacore.com> | |
8606 | Gary Dismukes <dismukes@adacore.com> | |
8607 | Javier Miranda <miranda@adacore.com> | |
8608 | Ed Schonberg <schonberg@adacore.com> | |
8609 | ||
8610 | * fe.h: Remove global Optimize_Alignment flag, no longer used | |
8611 | ||
8612 | * layout.adb: Test Optimize_Alignment flags rather than global switch | |
8613 | ||
8614 | * lib.ads, lib.adb: New OA_Setting field in library record | |
8615 | ||
8616 | * lib-load.adb: New OA_Setting field in library record | |
8617 | ||
8618 | * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place | |
8619 | units mentioned in limited_with_ clauses in the ali file, with an | |
8620 | 'Y' marker. | |
8621 | New Ox fields in U line | |
8622 | ||
8623 | * opt.adb: New flag Optimize_Alignment_Local | |
8624 | (Check_Policy_List[_Config]): New flags | |
8625 | ||
8626 | * opt.ads (Invalid_Value_Used): New flag | |
8627 | New switch Optimize_Alignment_Local | |
8628 | (Warn_On_Parameter_Order): New flag | |
8629 | (Check_Policy_List[_Config]): New flags | |
8630 | ||
8631 | * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of | |
8632 | limited_with clauses. | |
8633 | New data structures for Optimize_Alignment | |
8634 | ||
8635 | * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization): | |
8636 | New procedure | |
8637 | (Check_Consistent_Optimize_Alignment): Rework for new structure | |
8638 | (Check_Consistent_Restrictions): Fix incorrect error message | |
8639 | ||
8640 | sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly | |
8641 | created class-wide type (to the Parent field of the specific type). | |
8642 | (Install_Siblings): Handle properly private_with_clauses on subprogram | |
8643 | bodies and on generic units. | |
8644 | (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an | |
8645 | illegal limited_with_clause that names a non-existent package. | |
8646 | (Check_Body_Required): Determine whether a unit named a limited_with | |
8647 | clause needs a body. | |
8648 | (Analyze_Context): A limited_with_clause is illegal on a unit_renaming. | |
8649 | Capture Optimize_Alignment settings to set new OA_Setting field in | |
8650 | library record. | |
8651 | (Build_Limited_Views): Include task and protected type declarations. | |
8652 | ||
8653 | * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the | |
8654 | case of a possible constant redeclaration where the current object is | |
8655 | an entry index constant. | |
8656 | (Analyze_Object_Declaration): Generate an error in case of CPP | |
8657 | class-wide object initialization. | |
8658 | (Analyze_Object_Declaration): Add extra information on warnings for | |
8659 | declaration of unconstrained objects. | |
8660 | (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid | |
8661 | conflicts with the setting of Stored_Constraint in the case where the | |
8662 | access type entity has already been created as an E_Incomplete_Type due | |
8663 | to a limited with clause. | |
8664 | Use new Is_Standard_Character_Type predicate | |
8665 | (Analyze_Object_Declaration): Apply access_constant check only after | |
8666 | expression has been resolved, given that it may be overloaded with | |
8667 | several access types. | |
8668 | (Constant_Redeclaration): Additional legality checks for deferred | |
8669 | constant declarations tha involve anonymous access types and/or null | |
8670 | exclusion indicators. | |
8671 | (Analyze_Type_Declaration): Set Optimize_Alignment flags | |
8672 | (Analyze_Subtype_Declaration): Ditto | |
8673 | (Analyze_Object_Declaration): Ditto | |
8674 | (Analyze_Object_Declaration): Don't count tasks in generics | |
8675 | Change name In_Default_Expression => In_Spec_Expression | |
8676 | Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression | |
8677 | Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve | |
8678 | (Process_Discriminants): Additional check for illegal use of default | |
8679 | expressions in access discriminant specifications in a type that is not | |
8680 | explicitly limited. | |
8681 | (Check_Abstract_Overriding): If an inherited function dispaches on an | |
8682 | access result, it must be overridden, even if the type is a null | |
8683 | extension. | |
8684 | (Derive_Subprogram): The formals of the derived subprogram have the | |
8685 | names and defaults of the parent subprogram, even if the type is | |
8686 | obtained from the actual subprogram. | |
8687 | (Derive_Subprogram): In the presence of interfaces, a formal of an | |
8688 | inherited operation has the derived type not only if it descends from | |
8689 | the type of the formal of the parent operation, but also if it | |
8690 | implements it. This is relevant for the renamings created for the | |
8691 | primitive operations of the actual for a formal derived type. | |
8692 | (Is_Progenitor): New predicate, to determine whether the type of a | |
8693 | formal in the parent operation must be replaced by the derived type. | |
8694 | ||
8695 | * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make | |
8696 | predicate recursive to handle components that have a user-defined | |
8697 | Initialize procedure. Handle controlled derived types whose ancestor | |
8698 | has a user-defined Initialize procedured. | |
8699 | (Note_Possible_Modification): Add Sure parameter, generate warning if | |
8700 | sure modification of constant | |
8701 | Use new Is_Standard_Character_Type predicate | |
8702 | (Find_Parameter_Type): when determining whether a protected operation | |
8703 | implements an interface operation, retrieve the type of the formal from | |
8704 | the entity when the formal is an access parameter or an | |
8705 | anonymous-access-to-subprogram. | |
8706 | Move Copy_Parameter_List to sem_util, for use when building stubbed | |
8707 | subprogram bodies. | |
8708 | (Has_Access_Values): Tagged types now return False | |
8709 | (Within_HSS_Or_If): New procedure | |
8710 | (Set_Optimize_Alignment_Flags): New procedure | |
8711 | Change name In_Default_Expression => In_Spec_Expression | |
8712 | Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression | |
8713 | Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve | |
8714 | ||
8715 | 2008-04-08 Tristan Gingold <gingold@adacore.com> | |
8716 | ||
8717 | * s-fileio.adb: Name_Error shouldn't be raised for a tempory file. | |
8718 | ||
8719 | 2008-04-08 Tristan Gingold <gingold@adacore.com> | |
8720 | ||
8721 | PR ada/10768 | |
8722 | ||
8723 | * cuintp.c: Fix 16 bits issue for AVR. | |
8724 | On AVR, integer is 16 bits, so it can't be used to do math with | |
8725 | Base (=32768). | |
8726 | So use long_integer instead. | |
8727 | ||
8728 | 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com> | |
8729 | ||
8730 | * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for | |
8731 | System.OS_Primitives. | |
8732 | Change type of various constants, parameters and local variables from | |
8733 | Time to representation type OS_Time. | |
8734 | (To_Ada_Time, To_Unix_Time): Correct sign of origin shift. | |
8735 | Remove the declaration of constant Mili_F from several routines. New | |
8736 | body for internal package Conversions_Operations. | |
8737 | (Time_Of): Add default parameters for several formals. | |
8738 | ||
8739 | * a-caldel.adb: Minor reformatting | |
8740 | ||
8741 | * a-calend.ads, a-calend.adb: New body for internal package | |
8742 | Conversions_Operations. | |
8743 | (Time_Of): Add default parameters for several formals. | |
8744 | ||
8745 | * Makefile.rtl: Add a-ststop | |
8746 | Add Ada.Calendar.Conversions to the list of runtime files. | |
8747 | Add g-timsta | |
8748 | ||
8749 | * a-calcon.adb, a-calcon.ads: New files. | |
8750 | ||
8751 | 2008-04-08 Jose Ruiz <ruiz@adacore.com> | |
8752 | Tristan Gingold <gingold@adacore.com> | |
8753 | ||
8754 | * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb | |
8755 | (Install_Restricted_Handlers): New procedure | |
8756 | which is a simplified version of Install_Handlers that does not store | |
8757 | previously installed. | |
8758 | ||
8759 | * s-interr-vxworks.adb: Fix ACATS cxc3001 | |
8760 | On VxWorks interrupts can't be detached. | |
8761 | (Install_Restricted_Handlers): New procedure. | |
8762 | ||
8763 | * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New | |
8764 | procedure. | |
8765 | ||
8766 | 2008-04-08 Olivier Hainque <hainque@adacore.com> | |
8767 | ||
8768 | * s-intman-vxworks.ads, s-intman-vxworks.adb | |
8769 | (Map_And_Raise_Exception): Remove. Was an import of only part of the | |
8770 | required services already implemented elsewhere. | |
8771 | (Notify_Exception): Delete body, import __gnat_error_handler instead. | |
8772 | (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext | |
8773 | argument passed to the handler, which we need for ZCX propagation | |
8774 | purposes. | |
8775 | ||
8776 | 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com> | |
8777 | ||
8778 | * adaint.h, adaint.c (__gnat_current_time_string): New routine. | |
8779 | ||
8780 | * g-timsta.adb, g-timsta.ads: New files. | |
8781 | ||
8782 | 2008-04-08 Robert Dewar <dewar@adacore.com> | |
8783 | ||
8784 | * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb | |
8785 | (Raise_Exception): In accordance with AI-446, raise CE for Null_Id | |
8786 | (Raise_Exception_Always): Fix documentation accordingly | |
8787 | ||
8788 | 2008-04-08 Robert Dewar <dewar@adacore.com> | |
8789 | ||
8790 | * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by | |
8791 | Stream_Convert) | |
8792 | ||
8793 | * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets | |
8794 | FOnly | |
8795 | ||
8796 | 2008-04-08 Javier Miranda <miranda@adacore.com> | |
8797 | Robert Dewar <dewar@adacore.com> | |
8798 | Ed Schonberg <schonberg@adacore.com> | |
8799 | ||
8800 | * a-tags.adb (Register_Interface_Offset): New subprogram. | |
8801 | (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment). | |
8802 | (To_Predef_Prims_Table_Ptr): Removed. | |
8803 | (Acc_Size): Removed. | |
8804 | (To_Acc_Size): Removed. | |
8805 | (Parent_Size): Modified to the call the subprogram returning the size of | |
8806 | the parent by means of the new TSD component Size_Func. | |
8807 | ||
8808 | * a-tags.ads (Offset_To_Top_Ptr): New access type declaration. | |
8809 | (DT_Offset_To_Top_Offset): New constant value that is used to generate | |
8810 | code referencing the Offset_To_Top component of the dispatch table's | |
8811 | prologue. | |
8812 | (Prim_Ptr): New declaration of access to procedure. Used to avoid the | |
8813 | use of 'address to initialize dispatch table slots. | |
8814 | (Size_Func): New component of the TSD. Used by the run-time to call the | |
8815 | size primitive of the tagged type. | |
8816 | ||
8817 | * checks.adb (Apply_Access_Check): Avoid check when accessing the | |
8818 | Offset_To_Top component of a dispatch table. | |
8819 | (Null_Exclusion_Static_Checks): If the non-null access type appears in a | |
8820 | deferred constant declaration. do not add a null expression, to prevent | |
8821 | spurious errors when full declaration is analyzed. | |
8822 | (Apply_Discriminant_Check): If both discriminant constraints share a | |
8823 | node which is not static but has no side effects, do not generate a | |
8824 | check for that discriminant. | |
8825 | (Generate_Index_Checks): Set Name_Req to true in call to duplicate | |
8826 | subexpr, since the prefix of an attribute is a name. | |
8827 | ||
8828 | * checks.ads: Fix nit in comment. | |
8829 | ||
8830 | * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec | |
8831 | and body of predefined primitives in case of CPP tagged type | |
8832 | derivations. | |
8833 | (Freeze_Type): Deal properly with no storage pool case | |
8834 | (Make_Predefined_Primitive_Specs): Generate specification of abstract | |
8835 | primitive Deep_Adjust if a nonlimited interface is derived from a | |
8836 | limited interface. | |
8837 | (Build_Dcheck_Functions): Create discriminant-checking functions only | |
8838 | for variants that have some component(s). | |
8839 | (Build_Slice_Assignment): In expanded code for slice assignment, handle | |
8840 | properly the case where the slice bounds extend to the last value of the | |
8841 | underlying representation. | |
8842 | (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value | |
8843 | (Is_Variable_Size_Record): An array component has a static size if | |
8844 | index bounds are enumeration literals. | |
8845 | ||
8846 | * exp_disp.adb (Make_DT): Use the first subtype to determine whether | |
8847 | an external tag has been specified for the type. | |
8848 | (Building_Static_DT): Add missing support for private types. | |
8849 | (Make_DT): Add declaration of Parent_Typ to ensure consistent access | |
8850 | to the entity associated with the parent of Typ. This is done to | |
8851 | avoid wrong access when the parent is a private type. | |
8852 | (Expand_Interface_Conversion): Improve error message when the | |
8853 | configurable runtime has no support for dynamic interface conversion. | |
8854 | (Expand_Interface_Thunk): Add missing support to interface types in | |
8855 | configurable runtime. | |
8856 | (Expand_Dispatching_Call): remove obsolete code. | |
8857 | (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and | |
8858 | ensure that all subtypes and aggregates associated with dispatch | |
8859 | tables have the attribute Is_Dispatch_Table_Entity set to true. | |
8860 | (Register_Primitive): Rename one variable to improve code reading. | |
8861 | Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o | |
8862 | of the pointer to the 'size primitive in the TSD. | |
8863 | ||
8864 | * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity. | |
8865 | (RE_Offset_To_Top_Ptr): New entity. | |
8866 | (RE_Register_Interface_Offset): New entity. | |
8867 | (RE_Set_Dynamic_Offset_To_Top): New entity. | |
8868 | (RE_Set_Offset_To_Top): Removed entity. | |
8869 | (RE_Prim_Ptr): New entity | |
8870 | (RE_Size_Func): New entity | |
8871 | (RE_Size_Ptr): New entity | |
8872 | (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF. | |
8873 | (Ada_Dispatching_Child): Define this new subrange. | |
8874 | (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock, | |
8875 | RE_Time_Span, and RE_Time_Span_Zero). | |
8876 | (RE_Unit_Table): Add new required run-time calls | |
8877 | ||
8878 | * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching | |
8879 | children. | |
8880 | ||
8881 | * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram. | |
8882 | (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that | |
8883 | initializes the Offset_To_Top component of a dispatch table. | |
8884 | (Build_Predef_Prims): Removed. | |
8885 | (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by | |
8886 | its actual code. | |
8887 | (Build_Set_Size_Function): New subprogram. | |
8888 | ||
8889 | * exp_ch13.adb: Do not generate storage variable for storage_size zero | |
8890 | (Expand): Handle setting/restoring flag Inside_Freezing_Actions | |
8891 | ||
8892 | 2008-04-08 Robert Dewar <dewar@adacore.com> | |
8893 | ||
8894 | * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in | |
8895 | computing Fore when Exp > 0 | |
8896 | ||
8897 | 2008-04-08 Robert Dewar <dewar@adacore.com> | |
8898 | ||
8899 | * back_end.adb: Remove Big_String_Ptr declarations (now in Types) | |
8900 | ||
8901 | * errout.adb: Remove Big_String_Ptr declarations (now in Types) | |
8902 | Change name Is_Style_Msg to Is_Style_Or_Info_Msg | |
8903 | ||
8904 | * fmap.adb: Remove Big_String declarations (now in Types) | |
8905 | (No_Mapping_File): New Boolean global variable | |
8906 | (Initialize): When mapping file cannot be read, set No_Mapping_File to | |
8907 | False. | |
8908 | (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the | |
8909 | tables were empty before adding entries, open the mapping file | |
8910 | with Truncate = True, instead of delete/re-create. | |
8911 | ||
8912 | * fname-sf.adb: Remove Big_String declarations (now in Types) | |
8913 | ||
8914 | * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb, | |
7c066666 | 8915 | s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for |
9dbc444f | 8916 | big pointer types |
8917 | ||
8918 | * table.ads: Add for Table_Ptr'Storage_Size use 0 | |
8919 | ||
8920 | * types.ads: Add Big_String declarations | |
8921 | Add Size_Clause of zero for big pointer types | |
8922 | ||
8923 | 2008-04-08 Vincent Celier <celier@adacore.com> | |
8924 | ||
8925 | * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs= | |
8926 | (Usage): Add line for switch --subdirs= | |
8927 | Add new switch -eL, to follow symbolic links when processing project | |
8928 | files. | |
8929 | ||
8930 | * gnatcmd.adb: Process switches -eL and --subdirs= | |
8931 | (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call | |
8932 | Program_Name to get proper tool names when AAMP_On_Target is set. | |
8933 | (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get | |
8934 | AAMP_On_Target set properly for use of GNAAMP tools (this is needed by | |
8935 | Osint.Program_Name). | |
8936 | ||
8937 | * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs= | |
8938 | (Usage): Add lines for switches -eL and --subdirs= | |
8939 | ||
8940 | * makeusg.adb: Add line for switch --subdirs= | |
8941 | ||
7c066666 | 8942 | * prj.ads: |
9dbc444f | 8943 | (Source_Data): New Boolean component Compiled, defaulted to True |
8944 | (Empty_File_Name: New global variable in private part, initialized in | |
8945 | procedure Initialize. | |
8946 | (Subdirs_Option): New constant string | |
8947 | (Subdirs): New String_Ptr global variable | |
8948 | (Language_Config): New component Include_Compatible_Languages | |
8949 | (Project_Qualifier): New type for project qualifiers | |
8950 | (Project_Data): New component Qualifier | |
8951 | (Project_Configuration): New component Archive_Builder_Append_Option | |
8952 | ||
8953 | * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in | |
8954 | another imported project indicate the name of this imported project. | |
8955 | (Check_File): When a unit is in two project files, indicate the project | |
8956 | names and the paths of the source files for each project. | |
8957 | (Add_Source): Set Compiled to False if compiler driver is empty. Only | |
8958 | set object, dependency and switches file names if Compiled is True. | |
8959 | (Process_Compiler): Allow the empty string for value of attribute Driver | |
8960 | (Get_Directories): When Subdirs is not null and Object_Dir is not | |
8961 | specified, locate and create if necessary the actual object dir. | |
8962 | (Locate_Directory): When Subdirs is not empty and Create is not the | |
8963 | empty string, locate and create if necessary the actual directory | |
8964 | as a subdirectory of directory Name. | |
8965 | (Check_Library_Attributes.Check_Library): Allow a project where the only | |
8966 | "sources" are header files of file based languages to be imported by | |
8967 | library projects, in multi-language mode (gprbuild). | |
8968 | (Check_Library_Attributes.Check_Library): In multi-language mode | |
8969 | (gprbuild), allow a library project to import a project with no | |
8970 | sources, even when this is not declared explicitly. | |
8971 | (Check_If_Externally_Built): A virtual project extending an externally | |
8972 | built project is also externally built. | |
8973 | (Check_Library_Attributes): For a virtual project extending a library | |
8974 | project, inherit the library directory. | |
8975 | (Process_Project_Level_Array_Attributes): Process new attribute | |
8976 | Inherit_Source_Path. | |
8977 | For projects with specified qualifiers "standard", "library" or | |
8978 | "abstract", check that the project conforms to the qualifier. | |
8979 | (Process_Project_Level_Simple_Attributes): Process new attribute | |
8980 | Archive_Builder_Append_Option. | |
8981 | ||
8982 | * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs= | |
8983 | (Normalize_Compiler_Switches): Only keep compiler switches that are | |
8984 | passed to gnat1 by the gcc driver and that are stored in the ALI file | |
8985 | by gnat1. | |
8986 | Do not take into account switc -save-temps | |
8987 | ||
8988 | * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if | |
8989 | gprmake is called with -eL. | |
8990 | (Scan_Arg): Recognize switch -eL | |
8991 | (Usage): Add line for switch -eL | |
8992 | ||
8993 | * prj.adb (Initialize): Initialize Empty_File_Name | |
8994 | (Project_Empty): New component Qualifier | |
8995 | ||
8996 | * prj-attr.ads, prj-attr.adb: New project level attribute | |
8997 | Inherit_Source_Path. | |
8998 | New project level attribute Archive_Builder_Append_Option | |
8999 | ||
9000 | * prj-dect.adb: Replace System.Strings by GNAT.Strings. | |
9001 | ||
9002 | * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add | |
9003 | <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for | |
9004 | upward compatibility. | |
9005 | ||
9006 | * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put | |
9007 | each Trying ..." on different lines. | |
9008 | (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier | |
9009 | is "configuration" when not in configuration. Fail when in configuration | |
9010 | when a specified qualifier is other than "configuration". | |
9011 | ||
9012 | * prj-proc.adb (Process_Declarative_Items): Link new elements of copied | |
9013 | full associative array together. | |
9014 | (Recursive_Process): Put the project qualifier in the project data | |
7c066666 | 9015 | |
9dbc444f | 9016 | * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function |
9017 | (Set_Project_Qualifier_Of): New procedure | |
9018 | ||
9019 | 2008-04-08 Robert Dewar <dewar@adacore.com> | |
9020 | ||
9021 | * errout.ads: Update comments for new handling of info: messages | |
9022 | ||
9023 | * erroutc.adb (Matches): New procedure | |
9024 | (Warning_Specifically_Suppressed): Modified to handle multiple * chars | |
9025 | (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for | |
9026 | info messages as well as style messages. | |
9027 | ||
9028 | * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry | |
9029 | ||
9030 | * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed | |
9031 | subprograms. | |
9032 | (Check_A_Call): Special "info: " warnings now have ? in the text | |
9033 | (Elab_Warning): Use info message in static case | |
9034 | ||
9035 | 2008-04-08 Ed Schonberg <schonberg@adacore.com> | |
9036 | ||
9037 | * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine | |
9038 | whether an array aggregate with static bounds and scalar components | |
9039 | should be expanded into a static constant. | |
9040 | ||
9041 | 2008-04-08 Gary Dismukes <dismukes@adacore.com> | |
9042 | Ed Schonberg <schonberg@adacore.com> | |
9043 | Robert Dewar <dewar@adacore.com> | |
9044 | ||
9045 | * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of | |
9046 | Has_Stream_Attribute_ Definition when checking for available stream | |
9047 | attributes on parameters of a limited type in Ada 2005. Necessary for | |
9048 | proper recognition of visible stream attribute clauses. | |
9049 | (Has_Stream_Attribute_Definition): If the type is derived from a | |
9050 | private type, then use the derived type's underlying type for checking | |
9051 | whether it has stream attributes. | |
9052 | (Validate_Object_Declaration): The check for a user-defined Initialize | |
9053 | procedure applies also to types with controlled components or a | |
9054 | controlled ancestor. | |
9055 | Reject an object declaration in a preelaborated unit if the type is a | |
9056 | controlled type with an overriding Initialize procedure. | |
9057 | (Validate_Remote_Access_To_Class_Wide_Type): Return without further | |
9058 | checking when the parent of a dereference is a selected component and | |
9059 | the name has not been analyzed. | |
9060 | ||
9061 | * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected | |
9062 | prefixes that are invalid explicit dereferences of remote | |
9063 | access-to-class-wide values, first checking whether the selected | |
9064 | component is a prefixed form of call to a tagged operation. | |
9065 | (Analyze_Call): Remove code that issues an error for limited function | |
9066 | calls in illegal contexts, as we now support all of the contexts that | |
9067 | were forbidden here. | |
9068 | Allow a function call that returns a task.and appears as the | |
9069 | prefix of a selected component. | |
9070 | (Analyze_Reference): Give error message if we try to make a 'Reference | |
9071 | for an object that is atomic/aliased without its type having the | |
9072 | corresponding attribute. | |
9073 | (Analyze_Call): Remove condition checking for attributes to allow | |
9074 | calls to functions with inherently limited results as prefixes of | |
9075 | attributes. Remove related comment about Class attributes. | |
9076 | (Analyze_Selected_Component): If the prefix is a remote type, check | |
9077 | whether this is a prefixed call before reporting an error. | |
9078 | (Complete_Object_Operation): If the controlling formal is an access to | |
9079 | variable reject an actual that is a constant or an access to one. | |
9080 | (Try_Object_Operation): If prefix is a tagged protected object,retrieve | |
9081 | primitive operations from base type. | |
9082 | ||
9083 | * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a | |
9084 | build-in-place | |
9085 | function call and call Make_Build_In_Place_Call_In_Anonymous_Context. | |
9086 | (Expand_N_Selected_Component): Test for prefix that is a build-in-place | |
9087 | function call and call Make_Build_In_Place_Call_In_Anonymous_Context. | |
9088 | (Expand_N_Slice): Test for prefix that is a build-in-place function call | |
9089 | and call Make_Build_In_Place_Call_In_Anonymous_Context. | |
9090 | (Analyze_Call): Remove code that issues an error for limited function | |
9091 | calls in illegal contexts, as we now support all of the contexts that | |
9092 | were forbidden here. | |
9093 | New calling sequence for Get_Simple_Init_Val | |
9094 | (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test | |
9095 | (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test | |
9096 | ||
9097 | 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com> | |
9098 | Ed Schonberg <schonberg@adacore.com> | |
9099 | Robert Dewar <dewar@adacore.com> | |
9100 | ||
9101 | * exp_ch2.adb: Minor reformatting. | |
9102 | (Expand_Entry_Index_Parameter): Set the type of the identifier. | |
9103 | (Expand_Entry_Reference): Add call to Expand_Protected_Component. | |
9104 | (Expand_Protected_Component): New routine. | |
9105 | (Expand_Protected_Private): Removed. | |
9106 | Add Sure parameter to Note_Possible_Modification calls | |
9107 | ||
9108 | * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The | |
9109 | generated subprogram declaration must inherit the overriding indicator | |
9110 | from the instantiation node. | |
9111 | (Validate_Access_Type_Instance): If the designated type of the actual is | |
9112 | a limited view, use the available view in all cases, not only if the | |
9113 | type is an incomplete type. | |
9114 | (Instantiate_Object): Actual is illegal if the formal is null-excluding | |
9115 | and the actual subtype does not exclude null. | |
9116 | (Process_Default): Handle properly abstract formal subprograms. | |
9117 | (Check_Formal_Package_Instance): Handle properly defaulted formal | |
9118 | subprograms in a partially parameterized formal package. | |
9119 | Add Sure parameter to Note_Possible_Modification calls | |
9120 | (Validate_Derived_Type_Instance): if the formal is non-limited, the | |
9121 | actual cannot be limited. | |
9122 | (Collect_Previous_Instances): Generate instance bodies for subprograms | |
9123 | as well. | |
9124 | ||
9125 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't | |
9126 | try to set RM_Size. | |
9127 | Add Sure parameter to Note_Possible_Modification calls | |
9128 | (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call | |
9129 | (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for | |
9130 | constant overlaid by variable and issue warning. | |
9131 | Use new Is_Standard_Character_Type predicate | |
9132 | (Analyze_Record_Representation_Clause): Check that the specified | |
9133 | Last_Bit is not less than First_Bit - 1. | |
9134 | (Analyze_Attribute_Definition_Clause, case Address): Check for | |
9135 | self-referential address clause | |
9136 | ||
9137 | * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the | |
9138 | detection mechanism when the lhs is a prival. | |
9139 | (Analyze_Assignment): Call Check_Unprotected_Access to detect | |
9140 | assignment of a pointer to protected data, to an object declared | |
9141 | outside of the protected object. | |
9142 | (Analyze_Loop_Statement): Check for unreachable code after loop | |
9143 | Add Sure parameter to Note_Possible_Modication calls | |
9144 | Protect analysis from previous syntax error such as a scope mismatch | |
9145 | or a missing begin. | |
9146 | (Analyze_Assignment_Statement): The assignment is illegal if the | |
9147 | left-hand is an interface. | |
9148 | ||
94e37259 | 9149 | * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check |
9150 | violation of restriction No_Implicit_Conditionals | |
9dbc444f | 9151 | Add Sure parameter to Note_Possible_Modication calls |
9152 | Use new Is_Standard_Character_Type predicate | |
9153 | (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting | |
9154 | call as operator. Fixes problems (e.g. validity checking) which | |
9155 | come from the result looking as though it does not come from source). | |
9156 | (Resolve_Call): Check case of name in named parameter if style checks | |
9157 | are enabled. | |
9158 | (Resolve_Call): Exclude calls to Current_Task as entry formal defaults | |
9159 | from the checking that such calls should not occur from an entry body. | |
9160 | (Resolve_Call): If the return type of an Inline_Always function | |
9161 | requires the secondary stack, create a transient scope for the call | |
9162 | if the body of the function is not available for inlining. | |
9163 | (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays | |
9164 | that are actuals for in-out formals. | |
9165 | (Try_Object_Operation): If prefix is a tagged protected object,retrieve | |
9166 | primitive operations from base type. | |
9167 | (Analyze_Selected_Component): If the context is a call to a protected | |
9168 | operation the parent may be an indexed component prior to expansion. | |
9169 | (Resolve_Actuals): If an actual is of a protected subtype, use its | |
9170 | base type to determine whether a conversion to the corresponding record | |
9171 | is needed. | |
9172 | (Resolve_Short_Circuit): Handle pragma Check | |
9173 | ||
9174 | * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object) | |
9175 | Use new Is_Standard_Character_Type predicate | |
9176 | (Eval_Relational_Op): Catch more cases of string comparison | |
9177 | ||
9178 | 2008-04-08 Robert Dewar <dewar@adacore.com> | |
9179 | Gary Dismukes <dismukes@adacore.com> | |
9180 | ||
9181 | * s-rident.ads: Add No_Default_Initialization restriction | |
9182 | ||
7c066666 | 9183 | * exp_tss.adb: |
9dbc444f | 9184 | (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case |
9185 | (Set_TSS): Handle No_Default_Initialization case | |
9186 | ||
9187 | * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction | |
9188 | No_Default_Initialization | |
9189 | (Expand_N_Subprogram_Body): Remove redundant initialization of out | |
9190 | parameters when Normalize_Scalars is active. | |
9191 | (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp | |
9192 | Fix casing error in formal parameter name in call | |
9193 | (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by | |
9194 | (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a | |
9195 | dispatching call on VM targets. | |
9196 | ||
9197 | 2008-04-08 Gary Dismukes <dismukes@adacore.com> | |
9198 | Thomas Quinot <quinot@adacore.com> | |
9199 | ||
9200 | * exp_ch7.adb (Find_Final_List): Change the test for generating a | |
9201 | selected component from an access type's Associated_Final_Chain to | |
9202 | check for the presence of that field, rather than assuming it exists | |
9203 | for all named access types. | |
9204 | (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a | |
9205 | procedure to call at the end of the generated cleanup procedure. | |
9206 | (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and | |
9207 | and an At_End_Proc already exists in the handled sequence of statements | |
9208 | for which cleanup actions are being expanded, the original cleanup | |
9209 | action must be preserved. | |
9210 | ||
9211 | 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com> | |
9212 | Ed Schonberg <schonberg@adacore.com> | |
9213 | Robert Dewar <dewar@adacore.com> | |
9214 | Gary Dismukes <dismukes@adacore.com> | |
9215 | ||
9216 | * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry, | |
9217 | Build_Unprotected_Subprogram_Body): Generate debug info for | |
9218 | declarations related to the handling of private data in task and | |
9219 | protected types. | |
9220 | (Debug_Private_Data_Declarations): New subprogram. | |
9221 | (Install_Private_Data_Declarations): Remove all debug info flagging. | |
9222 | This is now done by Debug_Private_Data_Declarations at the correct | |
9223 | stage of expansion. | |
9224 | (Build_Simple_Entry_Call): If the task name is a function call, expand | |
9225 | the prefix into an object declaration, and make the surrounding block a | |
9226 | task master. | |
9227 | (Build_Master_Entity): An internal block is a master if it wraps a call. | |
9228 | Code reformatting, update comments. Code clean up. | |
9229 | (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address. | |
9230 | (Replicate_Entry_Formals): If the formal is an access parameter or | |
9231 | anonymous access to subprogram, copy the original tree to create new | |
9232 | entities for the formals of the subprogram. | |
9233 | (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable | |
9234 | for tasks to store the value passed using pragma Relative_Deadline. | |
9235 | (Make_Task_Create_Call): Add the Relative_Deadline argument to the | |
9236 | run-time call to create a task. | |
9237 | (Build_Wrapper_Spec): If the controlling argument of the interface | |
9238 | operation is an access parameter with a non-null indicator, use the | |
9239 | non-null indicator on the wrapper. | |
9240 | ||
9241 | * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when | |
9242 | present, which it may not be in the case where the type entity is an | |
9243 | incomplete view brought in by a limited with. | |
9244 | (Analyze_Task_Type): Only retrieve the full view when present, which it | |
9245 | may not be in the case where the type entity is an incomplete view brought | |
9246 | in by a limited with. | |
9247 | (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for | |
9248 | private components of a protected type, to prevent the generation of freeze | |
9249 | nodes for which there is no proper scope of elaboration. | |
9250 | ||
9251 | * exp_util.ads, exp_util.adb | |
9252 | (Remove_Side_Effects): If the expression is a function call that returns a | |
9253 | task, expand into a declaration to invoke the build_in_place machinery. | |
9254 | (Find_Protection_Object): New routine. | |
9255 | (Remove_Side_Effects): Also make a copy of the value | |
9256 | for attributes whose result is of an elementary type. | |
9257 | (Silly_Boolean_Array_Not_Test): New procedure | |
9258 | (Silly_Boolean_Array_Xor_Test): New procedure | |
9259 | (Is_Volatile_Reference): New function | |
9260 | (Remove_Side_Effects): Use Is_Volatile_Reference | |
9261 | (Possible_Bit_Aligned_Component): Handle slice case properly | |
9262 | ||
9263 | * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false | |
9264 | case test to Exp_Util | |
9265 | (Expand_Packed_Xor): Move silly true/true case test to Exp_Util | |
9266 | ||
9267 | 2008-04-08 Thomas Quinot <quinot@adacore.com> | |
9268 | ||
9269 | * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name | |
9270 | in call | |
9271 | (Add_RACW_Features): When processing an RACW in another unit than the | |
9272 | main unit, set Body_Decls to No_List to indicate that the bodies of | |
9273 | the type's TSS must not be generated. | |
9274 | (GARLIC_Support.Add_RACW_Read_Attribute, | |
9275 | GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if | |
9276 | Body_Decls is No_List. | |
9277 | (PolyORB_Support.Add_RACW_Read_Attribute, | |
9278 | PolyORB_Support.Add_RACW_Write_Attribute, | |
9279 | PolyORB_Support.Add_RACW_From_Any, | |
9280 | PolyORB_Support.Add_RACW_To_Any, | |
9281 | PolyORB_Support.Add_RACW_TypeCode): Same. | |
9282 | (Transmit_As_Unconstrained): New function. | |
9283 | (Build_Ordered_Parameters_List): Use the above to order parameters. | |
9284 | (GARLIC_Support.Build_General_Calling_Stubs): | |
9285 | Use the above to determine which parameters to unmarshall using 'Input | |
9286 | at the point where their temporary is declared (as opposed to later on | |
9287 | with a 'Read call). | |
9288 | (PolyORB_Support.Build_General_Calling_Stubs): | |
9289 | Use the above to determine which parameters to unmarshall using From_Any | |
9290 | at the point where their temporary is declared (as opposed to later on | |
9291 | with an assignment). | |
9292 | ||
9293 | 2008-04-08 Ed Schonberg <schonberg@adacore.com> | |
9294 | ||
9295 | * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is | |
9296 | an Input function for an access type, do not perform default | |
9297 | initialization on the local variable that receives the value, to | |
9298 | prevent spurious warnings when the type is null-excluding. | |
9299 | ||
9300 | 2008-04-08 Robert Dewar <dewar@adacore.com> | |
9301 | Ed Schonberg <schonberg@adacore.com> | |
9302 | ||
9303 | * freeze.adb (Freeze_Entity): Improve warnings on access types in pure | |
9304 | units. | |
9305 | (Size_Known): Generic formal scalar types have known at compile | |
9306 | time size, so remove check. | |
9307 | Fix casing error in formal parameter name in call | |
9308 | (Freeze_Subprogram): If the subprogram is a user-defined operator, | |
9309 | recheck its overriding indication. | |
9310 | ||
9311 | 2008-04-08 Vincent Celier <celier@adacore.com> | |
9312 | ||
9313 | * gnat1drv.adb: Send all messages indicating an error to standard error | |
9314 | ||
9315 | 2008-04-08 Robert Dewar <dewar@adacore.com> | |
9316 | ||
9317 | * gnatbind.adb (Restriction_Could_Be_Set): New procedure | |
9318 | (List_Applicable_Restrictions): Do not list existing restrictions | |
9319 | ||
9320 | 2008-04-08 Thomas Quinot <quinot@adacore.com> | |
9321 | ||
9322 | * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets: | |
9323 | add a pointer to generic sockets literature | |
9324 | do not mention that the given example is "typical" usage. | |
9325 | Remove obsolete comment about multicast not being supported on Windows. | |
9326 | (Connect_Socket): Make Server mode IN rather than IN OUT | |
9327 | since this formal is never modified. | |
9328 | ||
9329 | 2008-04-08 Robert Dewar <dewar@adacore.com> | |
9330 | ||
9331 | * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to | |
9332 | the declaration for some different entity. | |
9333 | (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface | |
9334 | list is precent (following the parent subtype indication), display | |
9335 | appropriate "and" keyword. | |
9336 | ||
9337 | * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize | |
9338 | Remove unnecessary calls to Init_Size_Align and Init_Esize. | |
9339 | Add notes on use of Parent field of an Itype | |
9340 | ||
9341 | 2008-04-08 Ed Schonberg <schonberg@adacore.com> | |
9342 | Robert Dewar <dewar@adacore.com> | |
9343 | Gary Dismukes <dismukes@adacore.com> | |
9344 | ||
9345 | * lib-xref.adb (Is_On_LHS): Remove dead code | |
9346 | (Output_Overriden_Op): If the overridden operation is itself inherited, | |
9347 | list the ancestor operation, which is the one whose body or absstract | |
9348 | specification is actually being overridden. For source navigation | |
9349 | purposes. | |
9350 | ||
9351 | * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether | |
9352 | operation is primitive for the type. | |
9353 | (Declare_Inherited_Private_Subprograms): If the new operation overrides | |
9354 | an inherited private subprogram, set properly the Overridden_Operation | |
9355 | attribute, for better cross-reference information. | |
9356 | (Analyze_Package_Specification): Do late analysis of spec PPCs | |
9357 | (Install_Private_Declaration, Uninstall_Declarations): Save/restore | |
9358 | properly the full view and underlying full views of a private type in a | |
9359 | child unit, whose full view is derived from a private type in a parent | |
9360 | unit, and whose own full view becomes visible in the child body. | |
9361 | ||
9362 | * sem_disp.adb (Check_Dispatching_Operation): When a body declares a | |
9363 | primitive operation after the type has been frozen, add an explicit | |
9364 | reference to the type and the operation, because other primitive | |
9365 | references have been emitted already. | |
9366 | (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a | |
9367 | dispatching call on VM targets. | |
9368 | ||
9369 | 2008-04-08 Vincent Celier <celier@adacore.com> | |
9370 | Thomas Quinot <quinot@adacore.com> | |
9371 | ||
9372 | * make.adb: (Gnatmake_Called): Remove, no longer necessary | |
9373 | (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called | |
9374 | is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files". | |
9375 | (Insert_Project_Sources): Take into account index in multi-unit source | |
9376 | files. | |
9377 | After building a library project, delete all temporary files. | |
9378 | (Initialize): Reset current output after parsing project file. | |
9379 | (Collect_Arguments_And_Compile): Never insert in the queue the sources | |
9380 | of library projects that are externally built. | |
9381 | Put file name in error and inform messages if -df is used | |
9382 | (Display): If invoked with -d7, do not display path names, but only | |
9383 | file names. | |
9384 | ||
9385 | * makeutl.ads (Path_Or_File_Name): New function | |
9386 | (Path_Or_File_Name): New function | |
9387 | ||
9388 | 2008-04-08 Arnaud Charlet <charlet@adacore.com> | |
9389 | ||
9390 | * Make-lang.in: Disable warnings during first stage of bootstrap | |
9391 | Get rid of gnatbl. | |
9392 | Update dependencies. | |
9393 | ||
9394 | 2008-04-08 Vincent Celier <celier@adacore.com> | |
9395 | ||
9396 | * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical | |
9397 | case to decide if ALI object file is included in library. | |
9398 | (Build_Library): Never attempt to build a library if the project is | |
9399 | externally built. | |
9400 | ||
9401 | 2008-04-08 Thomas Quinot <quinot@adacore.com> | |
9402 | ||
9403 | * nlists.adb (Is_Non_Empty_List): Remove redundant test. First | |
9404 | (No_List) is defined to return Empty. | |
9405 | ||
9406 | 2008-04-08 Jose Ruiz <ruiz@adacore.com> | |
9407 | ||
9408 | * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve | |
9409 | documentation. | |
9410 | Update comments. | |
9411 | (Read_Default_Search_Dirs): Do not consider spaces as path separators | |
9412 | because spaces may be part of legal paths. | |
9413 | ||
9414 | 2008-04-08 Robert Dewar <dewar@adacore.com> | |
9415 | ||
9416 | * par-ch11.adb (P_Exception_Handler): Check indentation level for | |
9417 | handler | |
9418 | ||
9419 | 2008-04-08 Ed Schonberg <schonberg@adacore.com> | |
9420 | ||
9421 | * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized" | |
9422 | in a type declaration, if this is not an interface declaration or | |
9423 | private type extension. | |
9424 | ||
9425 | 2008-04-08 Vincent Celier <celier@adacore.com> | |
9426 | ||
9427 | * prj-util.adb (Executable_Of): New String parameter Language. When | |
9428 | Ada_Main is False and Language is not empty, attempt to remove the body | |
9429 | suffix or the spec suffix of the language to get the base of the | |
9430 | executable file name. | |
9431 | (Put): New Boolean parameter Lower_Case, defauilted to False. When | |
9432 | Lower_Case is True, put the value in lower case in the name list. | |
9433 | (Executable_Of): If there is no executable suffix in the configuration, | |
9434 | then do not modify Executable_Extension_On_Target. | |
9435 | ||
9436 | * prj-util.ads (Executable_Of): New String parameter Language, | |
9437 | defaulted to the empty string. | |
9438 | (Put): New Boolean parameter Lower_Case, defauilted to False | |
9439 | ||
9440 | 2008-04-08 Robert Dewar <dewar@adacore.com> | |
9441 | ||
9442 | * scng.adb (Scan_Identifier): Handle case of identifier starting with | |
9443 | wide character using UTF-8 encoding. | |
9444 | ||
9445 | 2008-04-08 Javier Miranda <miranda@adacore.com> | |
9446 | ||
9447 | * sem.adb (Analyze): Consider case in which we analyze an empty node | |
9448 | that was generated by a call to a runtime function that is not | |
9449 | available under the configurable runtime. | |
9450 | ||
9451 | * sem.ads (Inside_Freezing_Actions): New flag. | |
9452 | (Save_Check_Policy_List): New field in scope stack entry | |
9453 | ||
9454 | 2008-04-08 Ed Schonberg <schonberg@adacore.com> | |
9455 | Robert Dewar <dewar@adacore.com> | |
9456 | ||
9457 | * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for | |
9458 | the ancestor part of an extension aggregate for a limited type. | |
9459 | (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with | |
9460 | enumeration index bounds. | |
9461 | (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices | |
9462 | when array is too short. | |
9463 | (Check_Expr_OK_In_Limited_Aggregate): Move function | |
9464 | Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and | |
9465 | change name). | |
9466 | (Resolve_Array_Aggregate.Resolve_Aggr_Expr): | |
9467 | Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited | |
9468 | component associations. | |
9469 | (Check_Non_Limited_Type): Moved to outer level and renamed. | |
9470 | (Resolve_Record_Aggregate): In an extension aggregate, an association | |
9471 | with a box initialization can only designate a component of the | |
9472 | extension, not a component inherited from the given ancestor | |
9473 | ||
9474 | * sem_case.adb: Use new Is_Standard_Character_Type predicate | |
9475 | ||
9476 | 2008-04-08 Robert Dewar <dewar@adacore.com> | |
9477 | ||
9478 | * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with | |
9479 | negative scale | |
9480 | (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1) | |
9481 | Properly handle case where Aft > Scale and input number is less than | |
9482 | one. | |
9483 | ||
9484 | 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com> | |
9485 | ||
9486 | * s-stoele.ads, s-soflin.ads: Move the location of | |
9487 | Dummy_Communication_Block from System.Storage_Elements to | |
9488 | System.Soft_Links. | |
9489 | ||
9490 | * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to | |
9491 | emulate Communication_Block in certain scenarios. | |
9492 | ||
9493 | 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com> | |
9494 | ||
9495 | * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New | |
9496 | subprogram. | |
9497 | Add new subtype S_WWC, unchecked conversion routines From_WWC and | |
9498 | To_WWC. | |
9499 | (I_WWC, O_WWC): New routines for input and output of | |
9500 | Wide_Wide_Character. | |
9501 | ||
9502 | 2008-04-08 Robert Dewar <dewar@adacore.com> | |
9503 | ||
9504 | * stringt.adb (Write_String_Table_Entry): Handle wide characters | |
9505 | properly | |
9506 | ||
9507 | 2008-04-08 Robert Dewar <dewar@adacore.com> | |
9508 | ||
9509 | * styleg.adb (Check_Comment): Allow special char after -- in | |
9510 | non-end-of-line case | |
9511 | ||
9512 | 2008-04-08 Robert Dewar <dewar@adacore.com> | |
9513 | ||
9514 | * stylesw.adb: Implement -gnaty + - y options | |
9515 | (Set_GNAT_Style_Check_Options): Includ I in style check string | |
9516 | ||
9517 | * stylesw.ads: Add comments for new style switch options | |
9518 | ||
9519 | 2008-04-08 Sergey Rybin <rybin@adacore.com> | |
9520 | ||
9521 | * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux | |
9522 | to the set of the GNAT components needed by ASIS. | |
9523 | ||
9524 | 2008-04-08 Bob Duff <duff@adacore.com> | |
9525 | ||
9526 | * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9). | |
9527 | ||
9528 | 2008-04-08 Tristan Gingold <gingold@adacore.com> | |
9529 | ||
9530 | * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type. | |
9531 | Improve error message generation. | |
9532 | ||
9533 | 2008-04-08 Vincent Celier <celier@adacore.com> | |
9534 | ||
9535 | * a-direct.adb (Start_Search): Check for Name_Error before checking for | |
9536 | Use_Error, as specified in the RM. Check if directory is open and raise | |
9537 | Use_Error if it is not. | |
9538 | ||
9539 | 2008-04-08 Vincent Celier <celier@adacore.com> | |
9540 | Robert Dewar <dewar@adacore.com> | |
9541 | ||
9542 | * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when | |
9543 | AAMP_On_Target is set. | |
9544 | ||
9545 | * vms_data.ads: Add NOxxx to style check switch list | |
9546 | Add entry COMPONENTS for -gnatVe | |
9547 | Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs= | |
9548 | (/SUBDIRS=). | |
9549 | (GCC_Switches): Add /ALL_BACK_END_WARNINGS. | |
9550 | Add qualifiers for gnatmetric coupling options | |
9551 | Add note that -gnata enables all checks | |
9552 | Add entries [NO]PARAMETER_ORDER for -gnatw.p[P] | |
9553 | Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option | |
9554 | New warning flag -gnatw.e | |
9555 | ||
9556 | * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy | |
9557 | Add entry for -gnatyN (forgotten before) | |
9558 | Line for new warning switch -gnatw.p | |
9559 | New warning flag -gnatw.e | |
9560 | ||
9561 | * gnat_ugn.texi: Add documentation fpr project file switch -aP | |
9562 | Document -gnaty - + y | |
9563 | Replace occurences of "package specification" with "package spec" | |
9564 | Define preprocessing symbols in documentation of gnatprep | |
9565 | Clarify reason for distinguishing overflow checking | |
9566 | Add documentation for project-aware tool switches -eL and --subdirs= | |
9567 | Complete list of configuration pragmas | |
9568 | Specify that, even when gnatmake switch -x is used, mains on the command | |
9569 | line need to be sources of project files. | |
9570 | Editing of gnatcheck/gnatmetric doc. | |
9571 | Add documentation for -gnatw.p/-gnatw.P | |
9572 | Add missing documentation for -fno-inline-functions. | |
9573 | Add documentation for -gnatw.e | |
9574 | ||
9575 | * gnat_rm.texi: Add documentation for No_Default_Initialization | |
9576 | Replace occurences of "package specification" with "package spec" | |
9577 | Document use of * in Warnings Off string | |
9578 | Update documentation of alignment/component clauses. | |
9579 | Add documentation for Invalid_Value | |
9580 | Document new consistency rule for Optimize_Alignment | |
9581 | Add documentation for Precondition and Postcondition pragmas | |
9582 | Add documentation for Check and Check_Policy pragmas | |
9583 | Document new Enum_Val attribute | |
9584 | Remove requirement for static string in pragma Assert | |
9585 | Add documentation on GNAT.Time_Stamp | |
9586 | ||
9587 | * ug_words: add entry for -gnatVe | |
9588 | Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER | |
9589 | Add entry for -gnatw.e | |
9590 | ||
9591 | * debug.adb: Add missing documentation for d.a flag | |
9592 | Document new -gnatd.a switch. | |
9593 | Add documentation for new gnatmake debug switch -df | |
9594 | ||
9595 | 2008-04-08 Thomas Quinot <quinot@adacore.com> | |
9596 | ||
9597 | * gen-soccon.c: Bump year in copyright notices. | |
9598 | ||
9599 | * g-soccon-vxworks.ads: Add new constant IP_PKTINFO | |
9600 | ||
9601 | 2008-04-08 Eric Botcazou <ebotcazou@adacore.com> | |
9602 | ||
9603 | * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows. | |
9604 | Minor reformatting. | |
9605 | ||
9606 | 2008-04-08 Robert Dewar <dewar@adacore.com> | |
9607 | Bob Duff <duff@adacore.com> | |
9608 | ||
9609 | * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops, | |
9610 | Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp | |
9611 | ||
9612 | * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly | |
9613 | ||
9614 | * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly | |
9615 | ||
9616 | * g-trasym.ads: Minor comment improvements | |
9617 | ||
9618 | * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly | |
9619 | ||
9620 | * a-sequio.ads, a-direio.ads: improve message for tagged type | |
9621 | ||
9622 | * a-strunb.ads: Minor reformatting | |
9623 | ||
9624 | * a-tifiio.adb: Minor reformatting | |
9625 | ||
9626 | * atree.adb (Fix_Parents): Use clearer names for formals | |
9627 | Cleanup and simplify code | |
9628 | Use named notation in calls | |
9629 | ||
9630 | * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in | |
9631 | confusing calls | |
9632 | ||
9633 | * uintp.adb: Used named notation for some confusing calls | |
9634 | ||
9635 | * bindusg.adb: Minor change in one line of output | |
9636 | ||
9637 | * cstand.adb: Minor reformatting of src representation of Standard | |
9638 | ||
9639 | * a-assert.ads: Add comment. | |
9640 | ||
9641 | * g-decstr.adb: Fix bad indentation | |
9642 | ||
9643 | * expander.ads, expander.adb: Code clean up. | |
9644 | ||
9645 | * sem_dist.ads: Minor comment improvement | |
9646 | ||
9647 | * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb, | |
9648 | s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting | |
9649 | ||
9650 | * i-cstrin.adb: Fix casing error in formal parameter name in call | |
9651 | ||
9652 | 2008-04-08 Ed Schonberg <schonberg@adacore.com> | |
9653 | ||
9654 | * binde.adb (Gather_All_Links, Gather_Dependencies): units that are | |
9655 | mentioned in limited_with_clauses to do create semantic dependencies | |
9656 | even though they appear in the ali file. | |
9657 | ||
9658 | 2008-04-08 Emmanuel Briot <briot@adacore.com> | |
9659 | ||
9660 | * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return | |
9661 | statement. | |
9662 | (Get_Configuration): New subprogram. | |
9663 | ||
9664 | * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree | |
9665 | These optional parameters help preserve the casing of the project's name | |
9666 | when pretty-printing. | |
9667 | ||
9668 | 2008-04-08 Jerome Lambourg <lambourg@adacore.com> | |
9669 | Arnaud Charlet <charlet@adacore.com> | |
9670 | ||
9671 | * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function, | |
9672 | then use __gnat_set_exit_status to report the returned status code. | |
9673 | ||
9674 | * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error | |
9675 | messages on .NET, since some constructs of the language are not | |
9676 | properly supported. | |
9677 | ||
9678 | * gnatlink.adb (Gnatlink): In case the command line is too long for the | |
9679 | .NET linker, gnatlink now concatenate all .il files and pass this to | |
9680 | ilasm. | |
9681 | ||
d922ad9b | 9682 | 2008-04-07 Aurelien Jarno <aurelien@aurel32.net> |
7c066666 | 9683 | Xavier Grave <grave@ipno.in2p3.fr> |
d922ad9b | 9684 | |
9685 | * Makefile.in: Add make ifeq define for mips/mipsel support. | |
7c066666 | 9686 | * g-soccon-linux-mips.ads, system-linux-mipsel.ads, |
d922ad9b | 9687 | system-linux-mips.ads: New files. |
9688 | ||
9d093602 | 9689 | 2008-04-07 Aurelien Jarno <aurelien@aurel32.net> |
9690 | ||
7c066666 | 9691 | * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to |
9d093602 | 9692 | detect systems using GNU libc. |
9693 | * gsocket.h: ditto. | |
9694 | * socket.c: ditto. | |
9695 | * adaint.c: ditto. | |
9696 | * link.c: ditto. | |
9697 | ||
1ac4dadb | 9698 | 2008-04-07 Aurelien Jarno <aurelien@aurel32.net> |
9699 | ||
7c066666 | 9700 | * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New |
1ac4dadb | 9701 | constant constant for sysconf call. |
9702 | (bit_field): New packed boolean type used by cpu_set_t. | |
9703 | (cpu_set_t): New type corresponding to the C type with | |
9704 | the same name. Note that on the Ada side we use a bit | |
9705 | field array for the affinity mask. There is not need | |
9706 | for the C macro for setting individual bit. | |
9707 | (pthread_setaffinity_np): New imported routine. | |
9708 | * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb | |
9709 | on GNU/kFreeBSD. | |
9710 | ||
27e9f331 | 9711 | 2008-04-07 Eric Botcazou <ebotcazou@adacore.com> |
9712 | ||
9713 | * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too. | |
9714 | ||
ff3ae375 | 9715 | 2008-04-07 Eric Botcazou <ebotcazou@adacore.com> |
9716 | ||
9717 | * gigi.h (create_subprog_type): Remove returns_with_dsp parameter. | |
9718 | * decl.c (gnat_to_gnu_entity): Adjust for above new prototype. | |
9719 | * utils.c (create_subprog_type): Remove returns_with_dsp parameter. | |
9720 | * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with | |
9721 | Return by Depressed Stack Pointer. | |
9722 | ||
0115f410 | 9723 | 2008-04-06 Eric Botcazou <ebotcazou@adacore.com> |
9724 | ||
9725 | * decl.c (is_variable_size): Do not unconditionally return false | |
9726 | on non-strict alignment platforms. | |
9727 | ||
eefb83e3 | 9728 | 2008-04-06 Eric Botcazou <ebotcazou@adacore.com> |
9729 | ||
9730 | * decl.c (rest_of_type_decl_compilation_no_defer): New local function | |
9731 | used to process all the variants of the specified type. | |
9732 | (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral | |
9733 | types too. Call rest_of_type_decl_compilation_no_defer if undeferring. | |
9734 | (rest_of_type_decl_compilation): Likewise. | |
9735 | * utils.c (gnat_pushdecl): Propagate the name to all variants of type. | |
9736 | ||
32020b10 | 9737 | 2008-04-03 Paolo Bonzini <bonzini@gnu.org> |
9738 | ||
eefb83e3 | 9739 | * gigi.h (insert_block): Kill. |
9740 | * utils.c (insert_block): Kill. | |
32020b10 | 9741 | |
6d529d27 | 9742 | 2008-04-02 Eric Botcazou <ebotcazou@adacore.com> |
9743 | ||
9744 | * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose | |
9745 | type has self-referential size, get the size from the initializing | |
9746 | expression directly if it is also a constant whose nominal type | |
9747 | has self-referential size. | |
9748 | ||
2be44f9a | 9749 | 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
9750 | ||
8f613e77 | 9751 | PR ada/33688 |
9752 | * g-soccon-darwin.ads: Define new constant IP_PKTINFO. | |
9753 | ||
2be44f9a | 9754 | PR ada/33857 |
9755 | * env.c: Always include crt_externs.h if __APPLE__ is defined. | |
9756 | (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined. | |
9757 | ||
c8805921 | 9758 | 2008-04-01 Andreas Jaeger <aj@suse.de> |
9759 | ||
9760 | * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and | |
9761 | IP_PKTINFO. | |
9762 | ||
27f48659 | 9763 | 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
9764 | ||
9765 | * g-table.adb, g-tasloc.adb, g-traceb.ads, | |
9766 | g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c, | |
9767 | gnatbind.adb, gnatchop.adb, gnatcmd.adb, | |
9768 | gnatcmd.ads, gnatdll.adb, gnatfind.adb, | |
9769 | gnatlink.adb, gnatmem.adb, gprep.adb, | |
9770 | i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads, | |
9771 | i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb, | |
9772 | layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb, | |
9773 | lib-xref.ads, lib.adb, link.c, live.ads, | |
9774 | make.adb, makegpr.adb, makeutl.adb, math_lib.adb, | |
9775 | mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads, | |
9776 | misc.c, mlib-prj.adb, mlib-tgt-hpux.adb, | |
9777 | mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads, | |
9778 | namet.adb, namet.h, nlists.adb, nlists.ads, | |
9779 | nlists.h, opt.ads, osint-b.ads, osint-c.adb, | |
9780 | osint-c.ads, osint.adb, osint.ads, output.ads, | |
9781 | par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb, | |
9782 | par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb, | |
9783 | par-endh.adb, par-labl.adb, par-prag.adb, | |
9784 | par-sync.adb, par-tchk.adb, par-util.adb, | |
9785 | par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads, | |
9786 | prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb, | |
9787 | prj-nmsc.ads, prj-pp.adb, prj-proc.adb, | |
9788 | prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos. | |
9789 | ||
7866ca04 | 9790 | 2008-03-31 Eric Botcazou <ebotcazou@adacore.com> |
9791 | ||
9792 | * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null | |
9793 | size if it has overflowed. | |
9794 | ||
b0399e1b | 9795 | 2008-03-31 Olivier Hainque <hainque@adacore.com> |
7c066666 | 9796 | Eric Botcazou <ebotcazou@adacore.com> |
b0399e1b | 9797 | |
9798 | * utils2.c (find_common_type): Document assumption on t1/t2 vs | |
9799 | lhs/rhs. Force use of lhs type if smaller, whatever the modes. | |
9800 | ||
526aedbb | 9801 | 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
9802 | ||
9803 | * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads, | |
9804 | einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb, | |
9805 | exp_imgv.adb, exp_intr.adb, exp_pakd.adb, | |
9806 | exp_pakd.ads, exp_prag.adb, exp_smem.adb, | |
9807 | exp_tss.ads, exp_util.adb, exp_util.ads, | |
9808 | exp_vfpt.adb, freeze.adb, freeze.ads, | |
9809 | frontend.adb, g-alleve.adb, g-altcon.adb, | |
9810 | g-altive.ads, g-alveop.ads, g-alvevi.ads, | |
9811 | g-arrspl.adb, g-busorg.ads, g-calend.adb, | |
9812 | g-calend.ads, g-casuti.ads, g-cgideb.adb, | |
9813 | g-comlin.adb, g-comlin.ads, g-curexc.ads, | |
9814 | g-debpoo.adb, g-debpoo.ads, g-decstr.adb, | |
9815 | g-dirope.adb, g-dirope.ads, g-dynhta.ads, | |
9816 | g-dyntab.adb, g-encstr.ads, g-excact.ads, | |
9817 | g-except.ads, g-expect.ads, g-heasor.adb, | |
9818 | g-hesora.adb, g-hesorg.adb, g-htable.ads, | |
9819 | g-locfil.ads, g-md5.adb, g-md5.ads, | |
9820 | g-memdum.ads, g-moreex.ads, g-os_lib.adb, | |
9821 | g-pehage.adb, g-pehage.ads, g-regexp.adb, | |
9822 | g-regexp.ads, g-regpat.adb, g-regpat.ads, | |
9823 | g-soccon-aix.ads, g-soccon-darwin.ads, | |
9824 | g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads, | |
9825 | g-soccon-hpux.ads, g-soccon-irix.ads, | |
9826 | g-soccon-linux-64.ads, g-soccon-linux-ppc.ads, | |
9827 | g-soccon-linux-x86.ads, g-soccon-lynxos.ads, | |
9828 | g-soccon-mingw.ads, g-soccon-solaris-64.ads, | |
9829 | g-soccon-solaris.ads, g-soccon-tru64.ads, | |
9830 | g-soccon-vms.ads, g-soccon-vxworks.ads, | |
9831 | g-soccon.ads, g-socket.adb, g-socket.ads, | |
9832 | g-socthi-mingw.adb, g-socthi-vms.adb, | |
9833 | g-socthi-vxworks.adb, g-soliop-mingw.ads, | |
9834 | g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb, | |
9835 | g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment | |
9836 | typos. | |
9837 | ||
39943585 | 9838 | 2008-03-27 Eric Botcazou <ebotcazou@adacore.com> |
9839 | ||
9840 | * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag | |
9841 | if the procedure is imported. | |
9842 | ||
c62e34a4 | 9843 | 2008-03-26 Arnaud Charlet <charlet@adacore.com> |
9844 | ||
9845 | * adaint.c: Fix warnings. | |
9846 | ||
f215f679 | 9847 | 2008-03-26 Arnaud Charlet <charlet@adacore.com> |
9848 | ||
9849 | * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec. | |
9850 | ||
912b6e79 | 9851 | 2008-03-26 Arnaud Charlet <charlet@adacore.com> |
9852 | ||
9853 | * a-witeio.adb: Fix problem with Current_Output (introduce Self). | |
9854 | Fix problem of status check for null file | |
9855 | ||
10f9d4c1 | 9856 | 2008-03-26 Arnaud Charlet <charlet@adacore.com> |
9857 | ||
9858 | * s-proinf-irix-athread.ads, s-vxwork-mips.ads, | |
9859 | s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, | |
9860 | s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads, | |
9861 | i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads, | |
9862 | s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update | |
9863 | comments. | |
9864 | ||
47d6e23c | 9865 | 2008-03-26 Thomas Quinot <quinot@adacore.com> |
9866 | ||
39943585 | 9867 | PR ada/33688 |
47d6e23c | 9868 | * g-socket.ads, g-socket.adb (Options, Set_Socket_Option, |
9869 | Get_Socket_Option): Add support for Receive_Packet_Info. | |
9870 | ||
9871 | * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads, | |
9872 | g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads, | |
9873 | g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads, | |
9874 | g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads, | |
9875 | g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add | |
9876 | new constants SO_REUSEPORT and IP_PKTINFO | |
9877 | ||
9878 | 2008-03-26 Robert Dewar <dewar@adacore.com> | |
9879 | ||
9880 | * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb, | |
9881 | a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb, | |
9882 | a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads, | |
9883 | a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads, | |
9884 | a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads, | |
9885 | a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads, | |
9886 | s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads, | |
9887 | s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads, | |
9888 | a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads, | |
9889 | s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads, | |
9890 | s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads, | |
9891 | s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads, | |
9892 | s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb, | |
9893 | s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads, | |
9894 | s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads, | |
9895 | s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads, | |
9896 | s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads, | |
9897 | s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb, | |
9898 | s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb, | |
9899 | s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb, | |
9900 | a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads, | |
9901 | a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads, | |
9902 | s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads, | |
9903 | s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads, | |
9904 | s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads, | |
9905 | s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb, | |
9906 | s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb, | |
9907 | a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb, | |
9908 | a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb, | |
9909 | s-tasloc.adb: Minor reformatting. | |
9910 | Update comments. | |
9911 | Remove "used for" sections from comments. | |
9912 | ||
9913 | 2008-03-26 Robert Dewar <dewar@adacore.com> | |
9914 | ||
9915 | * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb, | |
9916 | s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb, | |
9917 | s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads, | |
9918 | s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb, | |
9919 | s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, | |
9920 | a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb, | |
9921 | a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, | |
9922 | a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads, | |
9923 | a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads, | |
9924 | a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads, | |
9925 | a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb, | |
9926 | i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads, | |
9927 | a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb, | |
9928 | s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads, | |
9929 | s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads, | |
9930 | double spaced if it fits on one line and otherwise single spaced. | |
9931 | ||
9932 | 2008-03-26 Arnaud Charlet <charlet@adacore.com> | |
9933 | ||
7c066666 | 9934 | * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb, |
9935 | s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb, | |
47d6e23c | 9936 | s-taprop-posix.adb (Create_Task): Do not attempt to set task priority |
9937 | or task info if the thread could not be created. | |
9938 | ||
9939 | 2008-03-26 Arnaud Charlet <charlet@adacore.com> | |
9940 | ||
9941 | * gnatvsn.ads (Library_Version): Bump to 4.4. | |
9942 | (Current_Year): Bump to 2008. | |
9943 | ||
9944 | 2008-03-26 Robert Dewar <dewar@adacore.com> | |
9945 | ||
9946 | * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record | |
9947 | ||
9948 | * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure | |
9949 | ||
9950 | * debug.adb: Add debug flags d.r and d.v | |
9951 | Add debug flag .T (Optimize_Alignment (Time)) | |
9952 | Add debug flag .S (Optimize_Alignment (Space)) | |
9953 | ||
9954 | * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components | |
9955 | depending on setting of relevant debug flags. | |
9956 | Replace use of Warnings_Off by Has_Warnings_Off | |
9957 | (Freeze_Entity): In circuit for warning on suspicious convention | |
9958 | actuals, do not give warning if subprogram has same entity as formal | |
9959 | type, or if subprogram does not come from source. | |
9960 | (Freeze_Entity): Don't reset Is_Packed for fully rep speced record | |
9961 | if Optimize_Alignment set to Space. | |
9962 | ||
9963 | * frontend.adb: Add call to Sem_Warn.Initialize | |
9964 | Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings | |
9965 | Reset Optimize_Alignment mode from debug switches .S and .T | |
9966 | ||
9967 | * layout.adb (Layout_Composite_Object): Rewritten for | |
9968 | Optimize_Aligment pragma. | |
9969 | ||
9970 | * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment | |
9971 | mode. | |
9972 | ||
9973 | * opt.ads, opt.adb: (Optimize_Alignment): New global switch | |
9974 | ||
9975 | * par-prag.adb (N_Pragma): Chars field removed, use Chars | |
9976 | (Pragma_Identifier (.. instead, adjustments throughout to accomodate | |
9977 | this change. Add entry for pragma Optimize_Alignment | |
9978 | ||
9979 | * sem_prag.adb (N_Pragma): Chars field removed, use Chars | |
9980 | (Pragma_Identifier (.. | |
9981 | instead, adjustments throughout to accomodate this change. | |
9982 | (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg | |
9983 | (Favor_Top_Level): Use new function Is_Access_Subprogram_Type | |
9984 | Add implementation of pragma Optimize_Alignment | |
9985 | ||
9986 | 2008-03-26 Vincent Celier <celier@adacore.com> | |
9987 | ||
9988 | * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line): | |
9989 | Improve memory usage to avoid use of stack. | |
9990 | ||
9991 | 2008-03-26 Robert Dewar <dewar@adacore.com> | |
9992 | ||
9993 | * a-teioed.ads: Correct value of Default_Fill | |
9994 | ||
9995 | * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill | |
9996 | ||
9997 | 2008-03-26 Robert Dewar <dewar@adacore.com> | |
9998 | ||
9999 | * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem | |
10000 | with Current_Output (introduce Self). | |
10001 | ||
10002 | 2008-03-26 Robert Dewar <dewar@adacore.com> | |
10003 | ||
10004 | * checks.adb (Ensure_Valid): Capture valid status if possible | |
10005 | (eliminate checks) | |
10006 | ||
10007 | 2008-03-26 Robert Dewar <dewar@adacore.com> | |
10008 | ||
10009 | * stand.ads: Deal with reordering of package standard declarations | |
10010 | ||
10011 | * cstand.adb: Put package Standard declarations in proper order | |
10012 | ||
10013 | 2008-03-26 Robert Dewar <dewar@adacore.com> | |
10014 | ||
10015 | * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars | |
10016 | (Pragma_Identifier (.. instead. | |
10017 | (OK_To_Reorder_Components): New flag | |
10018 | (Has_Entries): Code cleanup. | |
10019 | (Warnings_Off_Used): New flag | |
10020 | (Warnings_Off_Used_Unmodified): New flag | |
10021 | (Warnings_Off_Used_Unreferenced): New flag | |
10022 | (Has_Warnings_Off): New function | |
10023 | (Has_Unmodified): New function | |
10024 | (Has_Unreferenced): New function | |
10025 | (Is_Trivial_Subprogram): New flag | |
10026 | (Is_Static_Dispatch_Table_Entity): New attribute. | |
10027 | Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind | |
10028 | (more consistent with other similar names) | |
10029 | (Access_Subprogram_Type): New classification function | |
10030 | ||
10031 | 2008-03-26 Robert Dewar <dewar@adacore.com> | |
10032 | ||
10033 | * errout.ads: Document new !! insertion sequence | |
10034 | ||
10035 | * errout.adb (N_Pragma): Chars field removed, use Chars | |
10036 | (Pragma_Identifier (.. instead. | |
10037 | Replace use of Warnings_Off by Has_Warnings_Off | |
10038 | (Error_Msg_Internal): Don't delete warning ending in !! | |
10039 | ||
10040 | 2008-03-26 Robert Dewar <dewar@adacore.com> | |
10041 | ||
10042 | * par.adb (Check_No_Right_Paren): Removed no longer used | |
10043 | ||
10044 | * par-ch10.adb (N_Pragma): Chars field removed, use Chars | |
10045 | (Pragma_Identifier (.. instead. | |
10046 | ||
10047 | * par-ch10.adb (P_Subunit): Improvement in error recovery and message | |
10048 | ||
10049 | * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb, | |
10050 | par-ch4.adb: Minor improvements in error recovery and messages. | |
10051 | ||
10052 | * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as | |
10053 | non-serious | |
10054 | ||
10055 | * par-ch9.adb: Minor improvements in error recovery and messages | |
10056 | (P_Protected): Better error recovery for "protected type x;" | |
10057 | ||
10058 | * par-util.adb: Minor improvements in error recovery and messages | |
10059 | (Check_No_Right_Paren): Removed no longer used | |
10060 | ||
10061 | 2008-03-26 Ed Schonberg <schonberg@adacore.com> | |
10062 | ||
10063 | * exp_aggr.adb (Replace_Type): When checking for self-reference, verify | |
10064 | that the prefix of an attribute is the type of the aggregate being | |
10065 | expanded. | |
10066 | ||
10067 | 2008-03-26 Javier Miranda <miranda@adacore.com> | |
10068 | Robert Dewar <dewar@adacore.com> | |
10069 | ||
10070 | * exp_attr.adb (N_Pragma): Chars field removed. | |
10071 | (Expand_N_Attribute_Reference): If the designated type associated with | |
10072 | attribute 'Unrestricted_Access is a subprogram entity then replace it | |
10073 | by an E_Subprogram_Type itype. | |
10074 | Implement attribute Old | |
10075 | ||
10076 | * sem_attr.ads (Attribute_Class_Array): Move to snames.ads | |
10077 | ||
10078 | * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation. | |
10079 | Replace call to | |
10080 | New_Internal_Entity by call to Create_Itype to centralize calls | |
10081 | building itypes, ad propagate the convention of the designated | |
10082 | subprogram. In addition, disable the machinery cleaning constant | |
10083 | indications from all entities in current scope when 'Unrestricted_Access | |
10084 | corresponds with a node initializing a dispatch table slot. | |
10085 | (Analyze_Attribute): Parameterless attributes returning a string or a | |
10086 | type will not be called with improper arguments, so we can remove junk | |
10087 | code that was dealing with this case. | |
10088 | Implement attribute Old | |
10089 | ||
10090 | * snames.ads, snames.h, snames.adb: Add entries for attribute Old | |
10091 | Add entry for pragma Optimize_Alignment | |
10092 | New standard names Sync and Synchronize | |
10093 | ||
10094 | 2008-03-26 Robert Dewar <dewar@adacore.com> | |
10095 | Arnaud Charlet <charlet@adacore.com> | |
10096 | ||
10097 | * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise | |
10098 | stmt. | |
10099 | (No_Exception_Propagation_Active): New function. | |
10100 | (Expand_Exception_Handlers): Use No_Exception_Propagation_Active. | |
10101 | Update comments, and review all uses of No_Exception_Propagation, which | |
10102 | are now correct and in sync with what gigi expects. | |
10103 | ||
10104 | * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New | |
10105 | function. | |
10106 | (Expand_Exception_Handlers): Use No_Exception_Propagation_Active. | |
10107 | Update comments, and review all uses of No_Exception_Propagation, which | |
10108 | are now correct and in sync with what gigi expects. | |
10109 | ||
10110 | 2008-03-26 Ed Schonberg <schonberg@adacore.com> | |
10111 | ||
10112 | * sem_ch3.adb (Access_Definition): If the access type is the return | |
10113 | result of a protected function, create an itype reference for it | |
10114 | because usage will be in an inner scope from the point of declaration. | |
10115 | (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and | |
10116 | OK_To_Reorder_Components. | |
10117 | (Make_Index): If an overloaded range includes a universal integer | |
10118 | interpretation, resolve to Standard.Integer. | |
10119 | (Analyze_Subtype_Indication): Copy Convention to subtype | |
10120 | (Check_Abstract_Interfaces): Complete semantic checks on the legality of | |
10121 | limited an synchronized progenitors in type declaration and private | |
10122 | extension declarations. | |
10123 | ||
10124 | * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a | |
10125 | protected subprogram body, determine proper scope from subprogram | |
10126 | declaration. | |
10127 | ||
10128 | 2008-03-26 Robert Dewar <dewar@adacore.com> | |
10129 | ||
10130 | * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for | |
10131 | No_Run_Time_Mode | |
10132 | ||
10133 | 2008-03-26 Gary Dismukes <dismukes@adacore.com> | |
10134 | ||
10135 | * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation | |
10136 | of a heap allocator for a limited unconstrained function return when | |
10137 | resstriction No_Allocators is active. | |
10138 | (Analyze_Allocator): The restriction No_Allocators is now only checked | |
10139 | on allocators that have Comes_From_Source set, as per RM-H.4(7). | |
10140 | ||
10141 | * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation | |
10142 | of a heap allocator for a limited unconstrained function return when | |
10143 | resstriction No_Allocators is active. | |
10144 | (Analyze_Allocator): The restriction No_Allocators is now only checked | |
10145 | on allocators that have Comes_From_Source set, as per RM-H.4(7). | |
10146 | (Has_Fixed_Op): If the name in a function call is Standard."*" and the | |
10147 | operands are fixed-point types, the universal_fixed predefined operation | |
10148 | is used, regardless of whether the operand type (s) have a primitive | |
10149 | operation of the same name. | |
10150 | ||
10151 | 2008-03-26 Javier Miranda <miranda@adacore.com> | |
10152 | ||
10153 | * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute | |
10154 | Is_Static_Dispatch_Table | |
10155 | (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls | |
10156 | to Exchange_Declarations to exchange the private and full-view. Bug | |
10157 | found working in this issue. | |
10158 | (Expand_Dispatching_Call): Propagate the convention of the subprogram | |
10159 | to the subprogram pointer type. | |
10160 | (Make_Secondary_DT): Replace generation of Prim'Address by | |
10161 | Address (Prim'Unrestricted_Access) | |
10162 | (Make_DT): Replace generation of Prim'Address by | |
10163 | Address (Prim'Unrestricted_Access) | |
10164 | (Make_Disp_*_Bodies): When compiling for a restricted profile, use | |
10165 | simple call form for single entry. | |
10166 | (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch | |
10167 | tables of predefined primitives). | |
10168 | (Make_Secondary_DT): Add support to handle access to dispatch tables of | |
10169 | predefined primitives. | |
10170 | (Make_Tags): Add entities to Access_Dispatch_Table associated with | |
10171 | access to dispatch tables containing predefined primitives. | |
10172 | ||
10173 | * exp_ch6.adb (N_Pragma): Chars field removed, use Chars | |
10174 | (Pragma_Identifier (.. instead, adjustments throughout to accomodate | |
10175 | this change. | |
10176 | (Register_Predefined_DT_Entry): Updated to handle the new contents | |
10177 | of attribute Access_Disp_Table (pointers to dispatch tables containing | |
10178 | predefined primitives). | |
10179 | ||
10180 | * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New | |
10181 | subprogram. | |
10182 | (Find_Interface_ADT): Updated to skip the new contents of attribute | |
10183 | Access_Dispatch_Table (pointers to dispatch tables containing predefined | |
10184 | primitives). | |
10185 | ||
10186 | * sem_util.adb (Has_Abstract_Interfaces): Add missing support for | |
10187 | concurrent types. | |
10188 | (Set_Convention): Use new function Is_Access_Subprogram_Type | |
10189 | (Collect_Interfaces_Info): Updated to skip the new contents of attribute | |
10190 | Access_Dispatch_Table (pointers to dispatch tables containing predefined | |
10191 | primitives). | |
10192 | ||
10193 | * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve | |
10194 | expanded code avoiding calls to Build_Predef_Prims. | |
10195 | (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding | |
10196 | call to Build_Get_Predefined_Prim_Op_Address. | |
10197 | ||
10198 | 2008-03-26 Javier Miranda <miranda@adacore.com> | |
10199 | ||
10200 | * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized | |
10201 | subprogram Corresponding_Runtime_Package to know the runtime package | |
10202 | that will provide support to a given protected type. | |
10203 | ||
10204 | * exp_ch9.adb (Add_Private_Declarations, | |
10205 | Build_Protected_Subprogram_Call, | |
10206 | Build_Protected_Entry, Build_Simple_Entry_Call, | |
10207 | Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration, | |
10208 | Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code | |
10209 | cleanup using the new centralized subprogram Corresponding_Runtime | |
10210 | Package to know the runtime package that provides support to | |
10211 | a given protected type. | |
10212 | ||
10213 | 2008-03-26 Ed Schonberg <schonberg@adacore.com> | |
10214 | ||
10215 | * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component | |
10216 | assignment is within the initialization procedure for a packed array, | |
10217 | and Initialize_Scalars is enabled, compile right-hand side with checks | |
10218 | off, because the value is purposely out of range. | |
10219 | ||
10220 | 2008-03-26 Vincent Celier <celier@adacore.com> | |
10221 | ||
10222 | * gnatcmd.adb: Add processing for GNAT SYNC | |
10223 | ||
10224 | * vms_conv.ads: (Command_Type): Add command Sync | |
10225 | ||
10226 | * vms_conv.adb (Initialize): Add Command_List data for new command Sync | |
10227 | ||
10228 | * vms_data.ads: Add entries for -gnatw.w | |
10229 | Add qualifier for gnatstub --header-file option | |
10230 | Add switches for GNAT SYNC | |
10231 | ||
10232 | * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC | |
10233 | (Add_Package_Name): New procedure | |
10234 | (Package_Name_List): New function | |
10235 | (Initialize): Add known package names to the list | |
10236 | (Register_New_Package): Add the new package name to the list | |
10237 | ||
10238 | 2008-03-26 Robert Dewar <dewar@adacore.com> | |
10239 | ||
10240 | * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb, | |
10241 | s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace | |
10242 | Raise_Exception by "raise with" construct. | |
10243 | ||
10244 | 2008-03-26 Pascal Obry <obry@adacore.com> | |
10245 | ||
10246 | * Makefile.in: Add proper GNAT.Serial_Communications implementation on | |
10247 | supported platforms. | |
7c066666 | 10248 | |
47d6e23c | 10249 | * Makefile.rtl: Add g-sercom.o. |
7c066666 | 10250 | |
47d6e23c | 10251 | * impunit.adb: Add g-sercom.adb. |
7c066666 | 10252 | |
47d6e23c | 10253 | * s-crtl.ads (open): New routine. |
10254 | (close): Likewise. | |
10255 | (write): Likewise. | |
7c066666 | 10256 | |
47d6e23c | 10257 | * s-osinte-mingw.ads (BYTE): New type. |
10258 | (CHAR): Likewise. | |
10259 | (OVERLAPPED): Likewise. | |
10260 | (GENERIC_READ): New constant. | |
10261 | (GENERIC_WRITE): Likewise. | |
10262 | (OPEN_EXISTING): Likewise. | |
10263 | (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access | |
10264 | type instead. | |
10265 | (CreateFile): New routine. | |
10266 | (WriteFile): Likewise. | |
10267 | (ReadFile): Likewise. | |
10268 | (CloseHandle): Move next to the other file oriented routines. | |
10269 | ||
10270 | * g-sercom.ads: New unit. | |
10271 | ||
10272 | * g-sercom.adb: Default implementation, calls to this unit will raise | |
10273 | a program error exception. | |
7c066666 | 10274 | |
47d6e23c | 10275 | * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and |
10276 | GNU/Linux implementations. | |
10277 | ||
10278 | 2008-03-26 Robert Dewar <dewar@adacore.com> | |
10279 | ||
10280 | * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind | |
10281 | ||
10282 | * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for | |
10283 | unchecked conversion for different conventions only for subprogram | |
10284 | pointers or on VMS. | |
10285 | ||
10286 | 2008-03-26 Vincent Celier <celier@adacore.com> | |
10287 | ||
10288 | * osint-c.adb (Set_Library_Info_Name): Use canonical case file names | |
10289 | to check if the specified object file is correct. | |
10290 | ||
10291 | 2008-03-26 Thomas Quinot <quinot@adacore.com> | |
10292 | ||
10293 | * sem_cat.adb (Validate_RACW_Primitives): Do not rely on | |
10294 | Comes_From_Source to exclude primitives from being checked. We want to | |
10295 | exclude predefined primitives only, so use the appropriate specific | |
10296 | predicate. Also, flag a formal parameter of an anonymous | |
10297 | access-to-subprogram type as illegal for a primitive operation of a | |
10298 | remote access to class-wide type. | |
10299 | ||
10300 | 2008-03-26 Vincent Celier <celier@adacore.com> | |
10301 | ||
10302 | * prj-dect.adb (Parse_Package_Declaration): When a package name is not | |
10303 | known, check if it may be a missspelling of a known package name. In | |
10304 | not verbose, not mode, issue warnings only if the package name is a | |
10305 | possible misspelling. | |
10306 | In verbose mode, always issue a warning for a not known package name, | |
10307 | plus a warning if the name is a misspelling of a known package name. | |
10308 | ||
10309 | * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non | |
10310 | limited withs or limited withs are parse during one call. | |
10311 | (Parse_Single_Project): Post parse context clause in two passes: non | |
10312 | limited withs before current project and limited withs after current | |
10313 | project. | |
10314 | ||
10315 | * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended | |
10316 | project with the name With_Name, even if it is only extended indirectly. | |
10317 | (Recursive_Process): Process projects in order: first single withs, then | |
10318 | current project, then limited withs. | |
10319 | ||
10320 | * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended | |
10321 | project with the name With_Name, even if it is only extended indirectly. | |
10322 | ||
10323 | 2008-03-26 Robert Dewar <dewar@adacore.com> | |
10324 | ||
10325 | * scn.adb (Initialize_Scanner): Format messages belong on standard error | |
10326 | ||
10327 | 2008-03-26 Ed Schonberg <schonberg@adacore.com> | |
10328 | ||
10329 | * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is | |
10330 | a generic subprogram that is imported, do not attempt to compile | |
10331 | non-existent body. | |
10332 | ||
10333 | * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is | |
10334 | imported, do not generate a raise_program_error for the non-existent | |
10335 | body. | |
10336 | (Pre_Analyze_Actuals): If an error is detected during pre-analysis, | |
10337 | perform minimal name resolution on the generic to avoid spurious | |
10338 | warnings. | |
10339 | (Find_Actual_Type): the designated type of the actual in a child unit | |
10340 | may be declared in a parent unit without being an actual. | |
10341 | ||
10342 | 2008-03-26 Robert Dewar <dewar@adacore.com> | |
10343 | ||
10344 | * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ | |
10345 | * sinfo.ads, sinfo.adb (From_At_End): New flag | |
10346 | ||
10347 | 2008-03-26 Ed Schonberg <schonberg@adacore.com> | |
10348 | ||
10349 | * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on | |
10350 | operations that have an interface parameter. | |
10351 | (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag | |
10352 | Don't treat No_Return call as raise. | |
10353 | ||
10354 | * sem_disp.adb (Check_Dispatching_Operations): apply check for | |
10355 | non-primitive interface primitives to access parameters, not to all | |
10356 | parameters of an access type. | |
10357 | ||
10358 | 2008-03-26 Ed Schonberg <schonberg@adacore.com> | |
10359 | ||
10360 | * sem_ch7.adb (Install_Parent_Private_Declarations): If the private | |
10361 | declarations of a parent unit are made visible when compiling a child | |
10362 | instance, the parent is not a hidden open scope, even though it may | |
10363 | contain other pending instance. | |
7c066666 | 10364 | |
47d6e23c | 10365 | * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a |
10366 | hidden open scope for some child instance, it does affect the | |
10367 | visibility status of other stach entries. | |
10368 | (Analyze_Object_Renaming): Check that a class-wide object cannot be | |
10369 | renamed as an object of a specific type. | |
10370 | ||
10371 | 2008-03-26 Robert Dewar <dewar@adacore.com> | |
10372 | ||
10373 | * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite | |
10374 | recursion and raise SE directly. | |
10375 | (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is | |
10376 | set for formal type for IN mode parameter. | |
10377 | ||
10378 | 2008-03-26 Robert Dewar <dewar@adacore.com> | |
10379 | ||
10380 | * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table | |
10381 | (Initialize): New procedure | |
10382 | (Output_Warnings_Off_Warnings): New procedure | |
10383 | (Check_References): Suppress certain msgs if Is_Trivial_Subprogram | |
10384 | (Output_Non_Modifed_In_Out_Warnings): Ditto | |
10385 | (Warn_On_Unreferenced_Entity): Ditto | |
10386 | ||
10387 | 2008-03-26 Vincent Celier <celier@adacore.com> | |
10388 | ||
10389 | * a-direct.adb (Start_Search): Raise Use_Error if the directory is not | |
10390 | readable. | |
10391 | ||
10392 | 2008-03-26 Matthew Heaney <heaney@adacore.com> | |
10393 | ||
7c066666 | 10394 | * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads, |
47d6e23c | 10395 | a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads: |
10396 | Marked with clauses as private, and controlled operations as overriding | |
10397 | ||
10398 | 2008-03-26 Robert Dewar <dewar@adacore.com> | |
10399 | ||
10400 | * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized | |
10401 | ||
10402 | 2008-03-26 Robert Dewar <dewar@adacore.com> | |
10403 | ||
10404 | * back_end.adb, back_end.ads: Minor reformatting | |
10405 | ||
10406 | * bindgen.adb: Minor clarification of comments | |
10407 | ||
10408 | * fname.ads: Minor comment fixes | |
10409 | ||
10410 | * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads, | |
10411 | prj-nmsc.adb, sem_aggr.adb: Minor reformatting | |
10412 | ||
10413 | * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb, | |
10414 | xsnames.adb: Remove warnings off pragma no longer needed | |
10415 | ||
10416 | * a-catizo.ads, a-calari.ads, a-calfor.adb, | |
10417 | a-calfor.ads: Fix header. | |
10418 | ||
10419 | 2008-03-26 Tristan Gingold <gingold@adacore.com> | |
10420 | ||
10421 | * init.c: Do not adjust pc for HPARITH on alpha/vms. | |
10422 | ||
10423 | 2008-03-26 Robert Dewar <dewar@adacore.com> | |
10424 | ||
10425 | * lib-xref.adb: (OK_To_Set_Reference): New function | |
10426 | (Generate_Reference): Don't set referenced from occurrence in Warnings, | |
10427 | Unmodified, or Unreferenced pragma | |
10428 | ||
10429 | 2008-03-26 Robert Dewar <dewar@adacore.com> | |
10430 | ||
10431 | * alloc.ads: Add entries for Warnings_Off_Pragmas table | |
10432 | ||
10433 | 2008-03-26 GNAT Script <nobody@adacore.com> | |
10434 | ||
10435 | * Make-lang.in: Makefile automatically updated | |
10436 | ||
10437 | 2008-03-26 Robert Dewar <dewar@adacore.com> | |
10438 | ||
10439 | * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c, | |
10440 | par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field | |
10441 | removed, use Chars (Pragma_Identifier (.. instead, adjustments | |
10442 | throughout to accomodate this change. | |
10443 | ||
10444 | * s-pooglo.ads, s-pooloc.ads: Minor comment updates | |
10445 | ||
10446 | * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not | |
10447 | Einfo.Set_Needs_Debug_Info) | |
10448 | ||
10449 | 2008-03-26 Robert Dewar <dewar@adacore.com> | |
10450 | ||
10451 | * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W | |
10452 | Add description for the new gnatstub option '--header-file' | |
10453 | clarification of -gnatwz/-gnatwZ | |
10454 | Add a "Irix-Specific Considerations" section to document the need to | |
10455 | set LD_LIBRARY_PATH when using the default shared runtime library. | |
10456 | Added documentation for both gcov and gprof. | |
10457 | ||
10458 | * gnat_rm.texi: Document that pragma Compile_Time_Warning generates | |
10459 | messages that are not suppressed when clients are compiled. | |
10460 | Add documentation of s-pooglo s-pooloc | |
10461 | Document the new GNAT.Serial_Communications API. | |
10462 | Add documentation for 'Old attribute | |
10463 | Add description of pragma Optimize_Alignment | |
10464 | ||
10465 | * ug_words: Add entries for -gnatw.w -gnatw.W | |
10466 | ||
10467 | * usage.adb: Add line for -gnatw.w (warn on warnings off) | |
10468 | ||
bec00cbb | 10469 | 2008-03-25 Eric Botcazou <ebotcazou@adacore.com> |
10470 | ||
10471 | Revert | |
10472 | 2008-03-05 Eric Botcazou <ebotcazou@adacore.com> | |
10473 | PR ada/35186 | |
10474 | * decl.c (maybe_pad_type): Avoid padding an integral type when | |
10475 | bumping its alignment is sufficient. | |
10476 | ||
9ced80be | 10477 | 2008-03-25 Arnaud Charlet <charlet@adacore.com> |
10478 | ||
10479 | * exp_ch6.adb, exp_disp.adb: Update copyright notice. | |
10480 | Fix wrong formatting (lines too long) | |
10481 | ||
36b938a3 | 10482 | 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
10483 | ||
10484 | * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb, | |
10485 | a-calend-vms.adb, a-calend.adb, a-calend.ads, | |
10486 | a-calfor.adb, a-chahan.ads, a-chtgke.adb, | |
10487 | a-cihama.ads, a-ciorse.adb, a-clrefi.ads, | |
10488 | a-cohama.ads, a-comlin.ads, a-coorse.adb, | |
10489 | a-crbtgk.adb, a-direct.adb, a-except-2005.adb, | |
10490 | a-except-2005.ads, a-except.adb, a-except.ads, | |
10491 | a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb, | |
10492 | a-exextr.adb, a-filico.ads, a-finali.ads, | |
10493 | a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb, | |
10494 | a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads, | |
10495 | a-sequio.ads, a-strbou.ads, a-strfix.adb, | |
10496 | checks.adb, exp_ch3.adb, exp_ch4.adb, | |
10497 | exp_ch4.ads, exp_ch5.adb, exp_ch6.adb, | |
10498 | exp_ch6.ads, exp_ch7.adb, exp_ch7.ads, | |
10499 | exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, | |
10500 | exp_dbug.ads, exp_disp.adb, exp_dist.adb, | |
10501 | exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos. | |
10502 | ||
2ada93f3 | 10503 | 2008-03-24 Robert Dewar <dewar@adacore.com> |
10504 | ||
10505 | * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb, | |
10506 | s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb, | |
10507 | s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads, | |
10508 | s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb, | |
10509 | s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, | |
10510 | a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb, | |
10511 | a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, | |
10512 | a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads, | |
10513 | a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads, | |
10514 | a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads, | |
10515 | a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb, | |
10516 | i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads, | |
10517 | a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb, | |
10518 | s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads, | |
10519 | s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads, | |
10520 | double spaced if it fits on one line and otherwise single spaced. | |
10521 | ||
85986e7b | 10522 | 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
10523 | ||
10524 | PR documentation/15479 | |
10525 | * Make-lang.in (doc/gnat_ugn.texi) Renamed from ... | |
10526 | (doc/gnat_ugn_unw.texi): ... this, and adjusted. | |
10527 | (doc/gnat_ugn.info): Renamed from ... | |
10528 | (doc/gnat_ugn_unw.info): ... this. | |
10529 | (doc/gnat_ugn.dvi): Renamed from ... | |
10530 | (doc/gnat_ugn_unw.dvi): ... this. | |
10531 | (doc/gnat_ugn.pdf): Renamed from ... | |
10532 | (doc/gnat_ugn_unw.pdf): ... this. | |
10533 | (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi): | |
10534 | Adjusted. | |
10535 | * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename | |
10536 | unconditionally to gnat_ugn.info. Fix cross references to the | |
10537 | GNAT Reference Manual. Convert links to the GCC, GDB, Emacs, | |
10538 | and GNU make manuals to be proper texinfo links. | |
10539 | * gnat_rm.texi: Fix cross references to the GNAT User's Guide. | |
10540 | ||
46c2380f | 10541 | 2008-03-21 Olivier Hainque <hainque@adacore.com> |
10542 | ||
10543 | * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb) | |
10544 | ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0). | |
10545 | ||
e53aac54 | 10546 | 2008-03-21 Eric Botcazou <ebotcazou@adacore.com> |
10547 | ||
10548 | * trans.c (addressable_p): Add notes on addressability issues. | |
10549 | ||
c0b36f9c | 10550 | 2008-03-21 Olivier Hainque <hainque@adacore.com> |
7c066666 | 10551 | Ed Schonberg <schonberg@adacore.com> |
c0b36f9c | 10552 | |
10553 | * trans.c (addressable_p): Accept COND_EXPR when both arms | |
10554 | are addressable. | |
10555 | (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR. | |
10556 | (call_to_gnu): Do not use name reference in the error message | |
10557 | for a misaligned by_reference_parameter. The actual may be a | |
10558 | general expression. | |
10559 | ||
dcfc697f | 10560 | 2008-03-18 Paolo Bonzini <bonzini@gnu.org> |
10561 | ||
be71e0ec | 10562 | * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete. |
10563 | ||
57708057 | 10564 | 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
10565 | ||
10566 | * gnat_rm.texi (Implementation Defined Characteristics) | |
10567 | (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where | |
10568 | appropriate. | |
10569 | * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind) | |
10570 | (Switches for gnatchop, Installing a library): Likewise. | |
10571 | ||
29797a97 | 10572 | 2008-03-10 Eric Botcazou <ebotcazou@adacore.com> |
10573 | ||
10574 | * trans.c (emit_range_check): Do not emit the check if the base type | |
10575 | of the expression is the type against which its range must be checked. | |
10576 | ||
5840094d | 10577 | 2008-03-08 Eric Botcazou <ebotcazou@adacore.com> |
10578 | ||
10579 | * decl.c (maybe_pad_type): Use value_factor_p. | |
10580 | ||
8c886d8c | 10581 | 2008-03-08 Eric Botcazou <ebotcazou@adacore.com> |
10582 | ||
10583 | * lang.opt (nostdlib): Move around. | |
10584 | * misc.c (gnat_handle_option): Fix formatting. | |
10585 | (gnat_dwarf_name): Move around. | |
10586 | * trans.c (Case_Statement_to_gnu): Fix formatting. | |
10587 | (gnat_to_gnu): Likewise. | |
10588 | * utils.c (aggregate_type_contains_array_p): Likewise. | |
10589 | (create_subprog_decl): Likewise. | |
10590 | ||
362e4f6b | 10591 | 2008-03-08 Eric Botcazou <ebotcazou@adacore.com> |
10592 | ||
10593 | * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not | |
10594 | bother propagating the TYPE_USER_ALIGN flag when creating a JM type. | |
10595 | ||
c4626553 | 10596 | 2008-03-08 Eric Botcazou <ebotcazou@adacore.com> |
10597 | ||
10598 | * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force | |
10599 | BIGGEST_ALIGNMENT when capping the alignment of records with | |
10600 | strict alignment and size clause. | |
10601 | ||
a72510a7 | 10602 | 2008-03-08 Eric Botcazou <ebotcazou@adacore.com> |
10603 | ||
10604 | * lang-specs.h: Pass -gnatwa if -Wall is passed. | |
10605 | * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused | |
10606 | and -Wuninitialized. | |
10607 | (gnat_post_options): Clear warn_unused_parameter. | |
10608 | ||
1cd6241e | 10609 | 2008-03-08 Eric Botcazou <ebotcazou@adacore.com> |
10610 | ||
10611 | * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently | |
10612 | aligned bit-fields, bumping the alignment of the record type if deemed | |
10613 | profitable. | |
10614 | (value_factor_p): Return false instead of 0. | |
10615 | ||
18bbee17 | 10616 | 2008-03-08 Eric Botcazou <ebotcazou@adacore.com> |
10617 | ||
10618 | * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support | |
10619 | for scalar types with small alignment. | |
10620 | ||
a22275a9 | 10621 | 2008-03-08 Eric Botcazou <ebotcazou@adacore.com> |
10622 | ||
10623 | * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label | |
10624 | from that of the front-end's end label. | |
10625 | (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto | |
10626 | from that of the loop label. | |
10627 | ||
2b5fb6fb | 10628 | 2008-03-07 Eric Botcazou <ebotcazou@adacore.com> |
10629 | ||
10630 | * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add | |
10631 | comment for the packed array type case. | |
10632 | * utils.c (build_template): Use a loop to strip padding or | |
10633 | containing records for justified modular types. | |
10634 | ||
5caf3a52 | 10635 | 2008-03-07 Eric Botcazou <ebotcazou@adacore.com> |
10636 | ||
10637 | * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously | |
10638 | large alignments specified for types. | |
10639 | (validate_alignment): Minor cleanup. | |
10640 | ||
784535af | 10641 | 2008-03-07 Eric Botcazou <ebotcazou@adacore.com> |
10642 | ||
10643 | * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined. | |
10644 | (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of | |
10645 | the component for packing, if possible, as well as if a component | |
10646 | size clause is specified. | |
10647 | <E_Record_Subtype>: For an array type used to implement a packed | |
10648 | array, get the component type from the original array type. | |
10649 | Try to get a smaller form of the component for packing, if possible, | |
10650 | as well as if a component size clause is specified. | |
10651 | (round_up_to_align): New function. | |
10652 | (make_packable_type): Add in_record parameter. | |
10653 | For a padding record, preserve the size. If not in_record and the | |
10654 | size is too large for an integral mode, attempt to shrink the size | |
10655 | by lowering the alignment. | |
10656 | Ditch the padding bits of the last component. | |
10657 | Compute sizes and mode manually, and propagate the RM size. | |
10658 | Return a BLKmode record type if its size has shrunk. | |
10659 | (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT. | |
10660 | Use Original_Array_Type to retrieve the type in case of an error. | |
10661 | Adjust call to make_packable_type. | |
10662 | (gnat_to_gnu_field): Likewise. | |
10663 | (concat_id_with_name): Minor tweak. | |
10664 | * trans.c (larger_record_type_p): New predicate. | |
10665 | (call_to_gnu): Compute the nominal type of the object only if the | |
10666 | parameter is by-reference. Do the conversion actual type -> nominal | |
10667 | type if the nominal type is a larger record. | |
10668 | (gnat_to_gnu): Do not require integral modes on the source type to | |
10669 | avoid the conversion for types with identical names. | |
10670 | (addressable_p): Add gnu_type parameter. If it is specified, do not | |
10671 | return true if the expression is not addressable in gnu_type. | |
10672 | Adjust recursive calls. | |
10673 | * utils.c (finish_record_type): Remove dead code. | |
10674 | ||
c91b33b9 | 10675 | 2008-03-05 Eric Botcazou <ebotcazou@adacore.com> |
10676 | ||
10677 | PR ada/35186 | |
10678 | * decl.c (maybe_pad_type): Avoid padding an integral type when | |
10679 | bumping its alignment is sufficient. | |
10680 | ||
aab16dc4 | 10681 | 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
10682 | ||
26545963 | 10683 | * gnatfind.adb, gnatxref.adb: Fix argument parsing typos. |
10684 | * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright | |
10685 | statement. | |
10686 | * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb, | |
10687 | gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb, | |
10688 | sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source | |
10689 | code output strings. | |
10690 | * sem_type.adb, system-vms-ia64.ads, system-vms.ads, | |
10691 | system-vms_64.ads: Fix typos in ada source code comments. | |
10692 | * sinfo-cn.adb: Remove incomplete sentence. | |
10693 | ||
aab16dc4 | 10694 | PR documentation/15479 |
10695 | * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word. | |
10696 | ||
04b1f6d3 | 10697 | 2008-02-27 Samuel Tardieu <sam@rfc1149.net> |
10698 | ||
10699 | PR ada/22255 | |
10700 | * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed. | |
10701 | ||
87f9eef5 | 10702 | 2008-02-27 Samuel Tardieu <sam@rfc1149.net> |
10703 | ||
10704 | PR ada/34799 | |
10705 | * sem_ch13.adb (Analyze_Record_Representation_Clause): Check | |
10706 | that underlying type is present. | |
10707 | ||
9c85a98a | 10708 | 2008-02-26 Tom Tromey <tromey@redhat.com> |
10709 | ||
10710 | * misc.c (internal_error_function): Remove test of | |
10711 | USE_MAPPED_LOCATION. | |
10712 | * trans.c (gigi): Remove test of USE_MAPPED_LOCATION. | |
10713 | (Sloc_to_locus): Remove old location code. | |
10714 | ||
d4c95637 | 10715 | 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
10716 | ||
e4107e95 | 10717 | * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and |
10718 | `i.e.' by adding comma or `@:' as appropriate. | |
10719 | * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of | |
10720 | plain characters `C', use `@samp{C}'. | |
10721 | * gnat_ugn.texi (File Naming Rules, About gnatkr) | |
10722 | (Krunching Method): Likewise. | |
10723 | ||
d4c95637 | 10724 | * gnat_ugn.texi (Conventions): List environment variables and |
10725 | metasyntactic variables. | |
10726 | (Compiling Programs): Fix notation of metasyntactic variables. | |
10727 | Add @file where appropriate. Use @file for file extensions, | |
10728 | @samp for strings. | |
10729 | * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp | |
10730 | instead of @file, @env instead of @code. | |
10731 | ||
53c09fa6 | 10732 | 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
10733 | ||
664851ef | 10734 | PR documentation/15479 |
10735 | * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..' | |
10736 | and `...' with `@dots{}' or `@enddots{}'. | |
10737 | ||
c80fc8f7 | 10738 | PR documentation/15479 |
10739 | * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command, | |
10740 | use @command instead of @code, @option instead of @samp or @code, | |
10741 | @code instead of @var, @samp instead of @file. | |
10742 | ||
53c09fa6 | 10743 | PR documentation/15479 |
10744 | * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors | |
10745 | in Makefile rules, by using `&&' rather than `;'. | |
10746 | ||
0d5d4dc7 | 10747 | 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
10748 | ||
10749 | PR documentation/15479 | |
10750 | * gnat_ugn.texi: In non-code, avoid space before colon. | |
10751 | (Regular Expressions in gnatfind and gnatxref): Fix indentation. | |
10752 | (Examples of gnatxref Usage): Use @command{vi} instead of | |
10753 | @file{vi}. | |
10754 | (Character Set Control): Do not use @code for UTF-8. | |
10755 | (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not | |
10756 | use @code for IEEE. | |
10757 | * gnat_rm.texi (Aggregates with static bounds): Fix typo in code | |
10758 | sample. | |
10759 | * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years. | |
10760 | ||
8a67bb47 | 10761 | 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com> |
dc99166a | 10762 | |
10763 | PR ada/35143 | |
10764 | * env.c: Add __rtems__ to if defined. | |
10765 | * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting. | |
10766 | * s-osinte-rtems.ads: Add To_Target_Priority prototype and | |
10767 | PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add | |
10768 | pragma Convention as required. | |
10769 | * gsocket.h: Make compile in and out of RTS. | |
10770 | * Makefile.in: Add system-rtems.ads. Build DEC extensions. | |
10771 | Use g-soccon-rtems.ads. | |
10772 | * g-soccon-rtems.ads, system-rtems.ads: New files. | |
10773 | ||
6ca01c3b | 10774 | 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
10775 | ||
10776 | PR other/35107 | |
10777 | * Make-lang.in (gnat1): Add $(GMPLIBS). | |
10778 | ||
8587136f | 10779 | 2008-01-26 Eric Botcazou <ebotcazou@adacore.com> |
10780 | ||
10781 | * decl.c (components_to_record): Improve comment. | |
10782 | ||
15bb3971 | 10783 | 2008-01-22 Eric Botcazou <ebotcazou@adacore.com> |
10784 | ||
10785 | * decl.c (components_to_record): Do not reuse the empty union type | |
10786 | if there is a representation clause on the record. | |
10787 | * trans.c (addressable_p): Return true for INTEGER_CST. | |
10788 | ||
fc3206bf | 10789 | 2008-01-21 Eric Botcazou <ebotcazou@adacore.com> |
10790 | ||
10791 | * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR | |
10792 | in pointer arithmetics. | |
10793 | * utils2.c (build_allocator): Likewise. | |
10794 | ||
a13ff590 | 10795 | 2008-01-17 Eric Botcazou <ebotcazou@adacore.com> |
10796 | ||
10797 | * utils.c (build_function_stub): Properly build the call expression. | |
10798 | ||
d6c61a86 | 10799 | 2008-01-14 Eric Botcazou <ebotcazou@adacore.com> |
10800 | ||
10801 | * decl.c (gnat_to_gnu_entity) <object>: Process renamings | |
10802 | before converting the expression to the type of the object. | |
10803 | * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case. | |
10804 | Stabilize constructors for special wrapping types. | |
10805 | ||
23d3aa75 | 10806 | 2008-01-13 Eric Botcazou <ebotcazou@adacore.com> |
10807 | ||
8a67bb47 | 10808 | * trans.c (call_to_gnu): Invoke the addressable_p predicate only |
6828157e | 10809 | when necessary. Merge some conditional statements. Update comments. |
23d3aa75 | 10810 | Rename unchecked_convert_p local variable to suppress_type_conversion. |
10811 | Do not suppress conversions in the In case. | |
10812 | (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues | |
10813 | into account on non strict-alignment platforms. | |
10814 | ||
e0c9c00f | 10815 | 2008-01-12 Eric Botcazou <ebotcazou@adacore.com> |
10816 | ||
10817 | * utils.c (aggregate_type_contains_array_p): New predicate. | |
10818 | (create_field_decl): In a packed record, force byte alignment | |
10819 | for fields without specified position that contain an array. | |
10820 | ||
134ae613 | 10821 | 2008-01-12 Eric Botcazou <ebotcazou@adacore.com> |
10822 | ||
10823 | * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression. | |
10824 | ||
8fbaeb05 | 10825 | 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca> |
10826 | ||
10827 | PR ada/34466 | |
10828 | * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for | |
10829 | sysconf call. | |
10830 | (bit_field): New packed boolean type used by cpu_set_t. | |
10831 | (cpu_set_t): New type corresponding to the C type with | |
10832 | the same name. Note that on the Ada side we use a bit | |
10833 | field array for the affinity mask. There is not need | |
10834 | for the C macro for setting individual bit. | |
10835 | (pthread_setaffinity_np): New imported routine. | |
10836 | ||
8a67bb47 | 10837 | 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi> |
e0324ff5 | 10838 | |
10839 | PR ada/34647 | |
10840 | * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp() | |
10841 | on OpenBSD as is done on other BSD systems. | |
10842 | ||
10843 | PR ada/34645 | |
10844 | * sysdep.c (__gnat_ttyname, getc_immediate_nowait, | |
10845 | getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate | |
10846 | I/O. | |
10847 | ||
10848 | PR ada/34644 | |
10849 | * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing | |
10850 | clearenv(). | |
10851 | ||
10852 | PR ada/34646 | |
10853 | * init.c (__gnat_error_handler, __gnat_install_handler, | |
10854 | __gnat_init_float): Define for OpenBSD. | |
10855 | ||
10856 | * initialize.c (__gnat_initialize): Define for OpenBSD. | |
10857 | ||
5b7a9c2e | 10858 | 2007-12-27 Samuel Tardieu <sam@rfc1149.net> |
10859 | ||
10860 | PR ada/34553 | |
10861 | * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp() | |
10862 | instead of mktemp() or tmpnam() on NetBSD. | |
10863 | ||
8840e12f | 10864 | 2007-12-23 Eric Botcazou <ebotcazou@adacore.com> |
10865 | ||
10866 | * trans.c (call_to_gnu): Make the temporary for non-addressable | |
10867 | In parameters passed by reference. | |
10868 | (addressable_p): Return true for STRING_CST and CALL_EXPR. | |
10869 | ||
ff6e35f7 | 10870 | 2007-12-19 Robert Dewar <dewar@adacore.com> |
10871 | ||
7c066666 | 10872 | * g-expect-vms.adb, g-expect.adb, s-poosiz.adb: |
ff6e35f7 | 10873 | Add pragma Warnings (Off) for unassigned IN OUT arguments |
10874 | ||
10875 | * sem_warn.adb (Output_Reference): Suppress messages for internal names | |
10876 | (Check_References): Extensive changes to tune up warnings | |
10877 | (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings | |
10878 | (Has_Pragma_Unmodifed_Check_Spec): New function | |
10879 | (Check_References): Implement pragma Unmodified | |
10880 | (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified | |
10881 | ||
10882 | * par-prag.adb: Dummy entry for pragma Unmodified | |
10883 | ||
10884 | * sem_prag.adb: Implement pragma Unmodified | |
10885 | ||
10886 | * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag | |
10887 | (Proc_Next_Component_Or_Discriminant): Fix typo. | |
10888 | Update comments. | |
10889 | ||
10890 | * sem_util.adb (Note_Possible_Modification): Add processinng for pragma | |
10891 | Unmodified. | |
10892 | (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func, | |
10893 | because the former already takes care of discarding the result. | |
10894 | (Mark_Coextensions): Remove ununused initial value from Is_Dynamic. | |
10895 | Add comment. | |
10896 | ||
10897 | * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified | |
10898 | ||
10899 | 2007-12-19 Eric Botcazou <ebotcazou@adacore.com> | |
10900 | ||
10901 | * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads, | |
10902 | system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads, | |
10903 | system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads, | |
10904 | system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads, | |
10905 | system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads, | |
10906 | system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads, | |
10907 | system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, | |
10908 | system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads, | |
10909 | system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, | |
10910 | system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads | |
10911 | (Dynamic_Trampolines_Used): Delete. | |
10912 | ||
10913 | * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto. | |
10914 | Turn on stack probing mechanism on LynxOS. | |
10915 | ||
10916 | 2007-12-19 Bob Duff <duff@adacore.com> | |
10917 | ||
10918 | * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate | |
10919 | the resulting tail recursion by hand. This prevents running out of | |
10920 | memory on deeply nested concatenations, since Field2 is where the left | |
10921 | operand of concatenations is stored. | |
10922 | Fix bug (was returning OK_Orig in some cases). Fix return subtype to | |
10923 | clarify that it can only return OK or Abandon. | |
10924 | ||
10925 | * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left | |
10926 | operand by iteration, in order to avoid running out of memory on | |
10927 | deeply-nested concatenations. Use the Parent pointer to get back up the | |
10928 | tree. | |
10929 | (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First, | |
10930 | Resolve_Op_Concat_Rest): New procedures split out of | |
10931 | Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is | |
10932 | clearer. | |
10933 | ||
10934 | * checks.adb (Remove_Checks): Use Traverse_Proc instead of | |
10935 | Traverse_Func, because the former already takes care of discarding the | |
10936 | result. | |
10937 | ||
10938 | * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func, | |
10939 | because the former already takes care of discarding the result. | |
10940 | (Remove_Warning_Messages): Use appropriate subtype for Status and | |
7c066666 | 10941 | Discard |
ff6e35f7 | 10942 | |
10943 | 2007-12-19 Ed Schonberg <schonberg@adacore.com> | |
10944 | ||
10945 | * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with | |
10946 | discriminants forces expansion of the aggregate into assignments. | |
10947 | (Init_Record_Controller): If the type of the aggregate is untagged and | |
10948 | is not inherently limited, the record controller is not limited either. | |
10949 | ||
10950 | 2007-12-19 Robert Dewar <dewar@adacore.com> | |
10951 | ||
10952 | * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in | |
10953 | handling compile time known size of record or array (case of front end | |
10954 | layout active, e.g. in GNAAMP). | |
10955 | ||
10956 | 2007-12-19 Javier Miranda <miranda@adacore.com> | |
10957 | ||
10958 | * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry | |
10959 | that forces the construction of static dispatch tables in case of | |
10960 | record subtypes. | |
10961 | ||
10962 | 2007-12-19 Robert Dewar <dewar@adacore.com> | |
10963 | ||
10964 | * exp_ch9.adb (Null_Statements): Moved to library level | |
10965 | (Trivial_Accept_OK): New function | |
10966 | (Expand_Accept_Declaration): Use Trivial_Accept_OK | |
10967 | (Expand_N_Accept_Statement): Use Trivial_Accept_OK | |
10968 | ||
10969 | 2007-12-19 Robert Dewar <dewar@adacore.com> | |
10970 | ||
10971 | * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type | |
10972 | in complex case where array is Volatile. | |
10973 | ||
10974 | 2007-12-19 Ed Schonberg <schonberg@adacore.com> | |
10975 | ||
10976 | * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement | |
10977 | properly the Ada2005 rules concerning when the current instance of a | |
10978 | record type is aliased. | |
10979 | ||
10980 | 2007-12-19 Ed Schonberg <schonberg@adacore.com> | |
10981 | ||
10982 | * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in | |
10983 | mangled declaration | |
10984 | (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record | |
10985 | declarations. | |
10986 | (P_Variant_Part): Cleaner patch for parenthesized discriminant | |
10987 | ||
10988 | 2007-12-19 Vincent Celier <celier@adacore.com> | |
10989 | ||
10990 | * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when | |
10991 | package is not known | |
10992 | ||
10993 | * prj-attr.ads (Unknown_Package): New constant | |
10994 | Do not crash when an unknown package is in several projects | |
10995 | ||
10996 | * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as | |
10997 | ignored | |
10998 | ||
10999 | * prj-nmsc.adb (Check): Remove obsolete code related to no longer | |
11000 | existing package Language_Processing. | |
11001 | ||
11002 | 2007-12-19 Ed Schonberg <schonberg@adacore.com> | |
11003 | Gary Dismukes <dismukes@adacore.com> | |
47ff515f | 11004 | Samuel Tardieu <sam@rfc1149.net> |
ff6e35f7 | 11005 | |
11006 | PR ada/15803, ada/15805 | |
11007 | * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose | |
11008 | illegal access subtypes when there is a constrained partial view. | |
11009 | (Check_For_Premature_Usage): New procedure inside | |
11010 | Access_Subprogram_Declaration for checking that an access-to-subprogram | |
11011 | type doesn't reference its own name within any formal parameters or | |
11012 | result type (including within nested anonymous access types). | |
11013 | (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage. | |
11014 | (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the | |
11015 | context is an access_to_variable, the expression cannot be an | |
11016 | access_to_constant. | |
11017 | ||
11018 | 2007-12-19 Bob Duff <duff@adacore.com> | |
11019 | ||
11020 | * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure. | |
11021 | (Analyze_Concatenation): Use iteration instead of recursion in order | |
11022 | to avoid running out of stack space for deeply nested concatenations. | |
11023 | ||
11024 | 2007-12-19 Ed Schonberg <schonberg@adacore.com> | |
11025 | Gary Dismukes <dismukes@adacore.com> | |
11026 | ||
11027 | * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings | |
11028 | whose renamed entity is a subprogram that requires overriding. | |
11029 | (Premature_Usage): Test for the case of N_Full_Type_Declaration when | |
11030 | issuing an error for premature usage and issue a message that says | |
11031 | 'type' rather than 'object'. | |
11032 | ||
11033 | 2007-12-19 Gary Dismukes <dismukes@adacore.com> | |
11034 | ||
11035 | PR ada/34149 | |
11036 | * sem_disp.adb (Check_Dispatching_Call): Augment existing test for | |
11037 | presence of a statically tagged operand (Present (Static_Tag)) with | |
11038 | test for Indeterm_Ancestor_Call when determining whether to propagate | |
11039 | the static tag to tag-indeterminate operands (which forces dispatching | |
11040 | on such calls). | |
11041 | (Check_Controlling_Formals): Ada2005, access parameters can have | |
11042 | defaults. | |
11043 | (Add_Dispatching_Operation, Check_Operation_From_Private_View): do | |
11044 | not insert subprogram in list of primitive operations if already there. | |
11045 | ||
11046 | 2007-12-19 Tristan Gingold <gingold@adacore.com> | |
11047 | ||
11048 | * utils.c (create_var_decl_1): call rest_of_decl_compilation only for | |
11049 | global variable. | |
11050 | ||
11051 | 2007-12-19 Thomas Quinot <quinot@adacore.com> | |
11052 | ||
11053 | Part of PR ada/33688 | |
11054 | * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary | |
11055 | datagram info on Linux. | |
11056 | ||
11057 | 2007-12-19 Vincent Celier <celier@adacore.com> | |
11058 | ||
11059 | * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so | |
11060 | that the source path name is always found in the dependencies. | |
11061 | ||
11062 | 2007-12-19 Robert Dewar <dewar@adacore.com> | |
11063 | ||
11064 | * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o | |
11065 | Fix name of Wide_Wide_Latin_1/9 file names | |
11066 | Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads) | |
11067 | Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode | |
11068 | Add missing documentation for Ada.Command_Line.Response_File | |
11069 | Update list of warning letters for Warnings pragma | |
11070 | Add documentation for pragma Unmodified | |
11071 | ||
12991cf2 | 11072 | 2007-12-19 Samuel Tardieu <sam@rfc1149.net> |
11073 | ||
11074 | * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target. | |
11075 | ||
8e5e99b5 | 11076 | 2007-12-17 Arnaud Charlet <charlet@adacore.com> |
11077 | ||
11078 | * s-vxwork-alpha.ads: Removed, no longer used. | |
11079 | ||
b0bd922a | 11080 | 2007-12-15 Jakub Jelinek <jakub@redhat.com> |
11081 | ||
11082 | * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line. | |
11083 | ||
a6342987 | 11084 | 2007-12-13 Samuel Tardieu <sam@rfc1149.net> |
11085 | ||
11086 | PR ada/34360 | |
11087 | * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name | |
11088 | mlib-tgt-specific.adb. | |
11089 | ||
5eb3be75 | 11090 | 2007-12-13 Bob Duff <duff@adacore.com> |
11091 | ||
11092 | * trans.c (Attribute_to_gnu): Check for violations of the | |
11093 | No_Implicit_Dynamic_Code restriction. This checking used to be done in | |
11094 | the front end, but is moved here so we can make it more accurate. | |
11095 | ||
b8f96623 | 11096 | 2007-12-13 Pascal Obry <obry@adacore.com> |
11097 | ||
11098 | * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy | |
11099 | version is provided for older GNU/Linux distribution not | |
11100 | supporting thread affinity sets. | |
7c066666 | 11101 | |
b8f96623 | 11102 | * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf |
11103 | call. | |
11104 | (bit_field): New packed boolean type used by cpu_set_t. | |
11105 | (cpu_set_t): New type corresponding to the C type with | |
11106 | the same name. Note that on the Ada side we use a bit | |
11107 | field array for the affinity mask. There is not need | |
11108 | for the C macro for setting individual bit. | |
11109 | (pthread_setaffinity_np): New imported routine. | |
7c066666 | 11110 | |
b8f96623 | 11111 | * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is |
11112 | no null. | |
11113 | (Create_Task): Set the processor affinity mask if information | |
11114 | is present. | |
7c066666 | 11115 | |
b8f96623 | 11116 | * s-tasinf-linux.ads, s-tasinf-linux.adb: New files. |
7c066666 | 11117 | |
b8f96623 | 11118 | 2007-12-13 Robert Dewar <dewar@adacore.com> |
11119 | ||
7c066666 | 11120 | * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads, |
11121 | s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads, | |
11122 | s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads, | |
b8f96623 | 11123 | s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb, |
11124 | s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads, | |
7c066666 | 11125 | s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads, |
11126 | s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads, | |
b8f96623 | 11127 | i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C |
11128 | for subprogram pointers. | |
11129 | ||
11130 | * g-ctrl_c.adb: New file. | |
11131 | ||
11132 | * g-ctrl_c.ads (Install_Handler): New body. | |
11133 | ||
11134 | * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always | |
11135 | instead of obsolete function Is_Always_Inlined. | |
11136 | (Freeze_Entity): check for tagged type in imported C subprogram | |
11137 | (Freeze_Entity): check for 8-bit boolean in imported C subprogram | |
11138 | (Freeze_Entity): check for convention Ada subprogram pointer in | |
11139 | imported C subprogram. | |
11140 | (Freeze_Fixed_Point_Type): In the case of a base type where the low | |
11141 | bound would be chopped off and go from negative to zero, force | |
11142 | Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower | |
11143 | bound) so that the size computation for the base type will take | |
11144 | negative values into account. | |
11145 | ||
11146 | 2007-12-13 Eric Botcazou <ebotcazou@adacore.com> | |
11147 | Bob Duff <duff@adacore.com> | |
11148 | Tristan Gingold <gingold@adacore.com> | |
11149 | ||
7c066666 | 11150 | * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, |
11151 | system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads, | |
11152 | system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads, | |
11153 | system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, | |
11154 | system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads, | |
11155 | system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, | |
11156 | system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, | |
b8f96623 | 11157 | system-vxworks-arm.ads, system-darwin-x86.ads, system.ads, |
7c066666 | 11158 | system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, |
b8f96623 | 11159 | system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads, |
11160 | system-vms-ia64.ads (Stack_Check_Limits): New target parameter. | |
11161 | (Always_Compatible_Rep): New flag to control trampolines globally. | |
11162 | (Dynamic_Trampolines_Used): New flag for implementing the | |
11163 | No_Implicit_Dynamic_Code restriction more correctly (not yet used, | |
11164 | and not yet set correctly for some targets). | |
11165 | ||
11166 | * s-taprop-vxworks.adb: Use stack limit method of stack checking. | |
11167 | Simply indirectly call s-stchop when a task is created. | |
11168 | ||
7c066666 | 11169 | * ali.ads: |
b8f96623 | 11170 | New flag added: Stack_Check_Switch_Set which is set when '-fstack-check' |
11171 | appears as an argument (entries A) in an ALI file. | |
11172 | ||
11173 | * fe.h (Stack_Check_Limits): Declare new target parameter. | |
11174 | (Check_Implicit_Dynamic_Code_Allowed): New procedure. | |
11175 | ||
11176 | * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS. | |
11177 | This variable is declared in C to be sure not subject to elaboration | |
11178 | code. | |
11179 | (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to | |
11180 | Storage_Error. | |
11181 | ||
11182 | * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter. | |
11183 | (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters. | |
11184 | ||
11185 | * s-stchop.ads: Add comments. | |
11186 | ||
11187 | * s-stchop-vxworks.adb: Package almost fully rewritten to use stack | |
11188 | limit method of stack checking. | |
11189 | ||
11190 | * s-stchop-limit.ads: New file. | |
11191 | ||
11192 | 2007-12-13 Robert Dewar <dewar@adacore.com> | |
11193 | ||
7c066666 | 11194 | * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb, |
11195 | a-cihama.adb, g-awk.adb, | |
b8f96623 | 11196 | s-inmaop-posix.adb: Update handling of assigned value/unreferenced |
11197 | warnings | |
11198 | ||
11199 | * exp_smem.adb: Update handling of assigned value/unreferenced warnings | |
11200 | ||
11201 | * sem.adb: Update handling of assigned value/unreferenced warnings | |
11202 | ||
11203 | * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return | |
11204 | ||
11205 | * lib-xref.ads: Improve documentation for k xref type | |
11206 | ||
7c066666 | 11207 | * lib-xref.adb: |
b8f96623 | 11208 | Update handling of assigned value/unreferenced warnings |
11209 | (Generate_Reference): Warning for reference to entity for which a | |
11210 | pragma Unreferenced has been given should be unconditional. | |
11211 | If the entity is a discriminal, mark the original | |
11212 | discriminant as referenced. | |
11213 | ||
11214 | * sem_warn.ads, sem_warn.adb | |
11215 | (Check_One_Unit): Test Renamed_In_Spec to control giving warning for | |
11216 | no entities referenced in package | |
11217 | (Check_One_Unit): Don't give message about no entities referenced in | |
11218 | a package if a pragma Unreferenced has appeared. | |
11219 | Handle new warning flag -gnatw.a/-gnatw.A | |
11220 | Update handling of assigned value/unreferenced warnings | |
11221 | ||
11222 | * atree.h: Add flags up to Flag247 | |
11223 | (Flag231): New macro. | |
11224 | ||
11225 | 2007-12-13 Jose Ruiz <ruiz@adacore.com> | |
11226 | ||
11227 | * adaint.h: (__gnat_plist_init): Not defined for RTX. | |
11228 | ||
11229 | * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for | |
11230 | RTX systems. | |
11231 | ||
11232 | * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb. | |
11233 | (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB, | |
11234 | EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS, | |
11235 | GNATLIB_SHARED for RTX run time): Use the versions required by RTX. | |
11236 | ||
7c066666 | 11237 | * mingw32.h: |
b8f96623 | 11238 | Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported. |
11239 | ||
11240 | * sysdep.c (winflush_function for RTX): Procedure that does nothing | |
11241 | since we only have problems with Windows 95/98, which are not | |
11242 | supported by RTX. | |
11243 | (__gnat_ttyname): Return the empty string on Nucleus, just as | |
11244 | done on vxworks. | |
11245 | ||
11246 | 2007-12-13 Robert Dewar <dewar@adacore.com> | |
11247 | ||
7c066666 | 11248 | * a-textio.adb, a-textio.ads: |
b8f96623 | 11249 | Extensive changes to private part for wide character encoding |
11250 | ||
11251 | * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb | |
11252 | (Look_Ahead): Fix mishandling of encoded sequences | |
11253 | Move declaration of Wch_Con to private part (should not be visible) | |
11254 | ||
11255 | * ali.adb (Scan_ALI): Set default encoding method to brackets instead of | |
11256 | UTF-8. Probably this is never used, but if it is, brackets is | |
11257 | clearly correct. | |
11258 | ||
11259 | * bindgen.adb (Get_WC_Encoding): New procedure to properly handle | |
11260 | setting wide character encoding for no main program case and when | |
11261 | encoding is specified using -W? | |
11262 | Initialize stack limit of environment task if stack limit method of | |
11263 | stack checking is enabled. | |
11264 | (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method | |
11265 | (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method | |
11266 | (Get_Main_Unit_Name): New function. | |
11267 | (Gen_Adainit_Ada): Add call to main program for .NET when needed. | |
11268 | (Gen_Output_File): Set Bind_Main_Program to True for .NET | |
11269 | ||
11270 | * bindusg.adb: Add line for -Wx switch | |
11271 | ||
11272 | * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function | |
11273 | Add comments | |
11274 | Add new useful constant WC_Longest_Sequences | |
11275 | ||
11276 | * switch-b.adb: Clean up handling of -Wx switch | |
11277 | For -gnatWx, set Wide_Character_Encoding_Method_Specified | |
11278 | ||
11279 | * switch-c.adb: -gnatg activates warning on assertion errors | |
11280 | For -gnatWx, set Wide_Character_Encoding_Method_Specified | |
11281 | ||
11282 | * s-wchcon.adb: (Is_Start_Of_Encoding): New function | |
11283 | ||
11284 | 2007-12-13 Robert Dewar <dewar@adacore.com> | |
11285 | Ed Schonberg <schonberg@adacore.com> | |
11286 | ||
11287 | * a-ngcoty.adb: New pragma Fast_Math | |
11288 | ||
11289 | * opt.adb: New pragma Fast_Math | |
11290 | ||
7c066666 | 11291 | * par-prag.adb: |
b8f96623 | 11292 | Add Implemented_By_Entry to the list of pragmas which do not require any |
11293 | special processing. | |
11294 | (Favor_Top_Level): New pragma. | |
11295 | New pragma Fast_Math | |
11296 | ||
11297 | * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv | |
11298 | (Expand_N_Attribute_Reference, Displace_Allocator_Pointer, | |
11299 | Expand_Allocator_Expression): Take into account VM_Target | |
11300 | (Expand_Attribute, case 'Identity): Handle properly the case where | |
11301 | the prefix is a task interface. | |
11302 | New pragma Fast_Math | |
11303 | ||
11304 | * par.adb (Next_Token_Is): New function | |
11305 | (P_Pragma): Add Skipping parameter | |
11306 | (U_Left_Paren): New procedure | |
11307 | (U_Right_Paren): New procedure | |
11308 | New pragma Fast_Math | |
11309 | ||
11310 | * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after | |
11311 | subunit | |
11312 | New pragma Fast_Math | |
11313 | ||
11314 | * sem_prag.adb: Add significance value to table Sig_Flag for pragma | |
11315 | Implemented_By_Entry. | |
11316 | (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry. | |
11317 | (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep | |
11318 | items, since it can apply to more than one overloadable entity. Set | |
11319 | new flag Has_Pragma_Inline_Always for Inline_Always case. | |
11320 | (Analyze_Pragma, case Complex_Representation): Improve error message. | |
11321 | (Analyze_Pragma, case Assert): When assertions are disabled build the | |
11322 | rewritten code with Sloc of expression rather than pragma, so new | |
11323 | warning about failing is not deleted. | |
11324 | (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to | |
11325 | protected types and update error message to reflect that. Test whether | |
11326 | the protected type is allowed for the pragma (an error is issued if the | |
11327 | type has any entries, or components that do not have preelaborable | |
11328 | initialization). | |
11329 | New pragma Fast_Math | |
11330 | (Analyze_Pragma, case No_Return): Handle generic instance | |
11331 | ||
7c066666 | 11332 | * snames.h, snames.ads, snames.adb: |
b8f96623 | 11333 | Add new predefined name for interface primitive _Disp_Requeue. |
11334 | New pragma Fast_Math | |
11335 | ||
11336 | * a-tags.ads, a-tags.adb: New calling sequence for | |
11337 | String_To_Wide_[Wide_]String | |
11338 | (Secondary_Tag): New subprogram. | |
11339 | ||
11340 | * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here | |
11341 | from Exp_Attr | |
11342 | New calling sequence for String_To_Wide_[Wide_]String | |
11343 | (Expand_Image_Attribute): Major rewrite. New calling sequence avoids | |
11344 | the use of the secondary stack for image routines. | |
11345 | ||
11346 | * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New | |
11347 | calling sequence for String_To_Wide_[Wide_]String | |
11348 | ||
11349 | * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in | |
11350 | Ada 95 mode | |
11351 | (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully | |
11352 | Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List | |
11353 | ||
11354 | * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode | |
11355 | (P_Formal_Part): Use Skipping parameter in P_Pragma call | |
11356 | to improve error recovery | |
11357 | ||
11358 | * par-util.adb (Next_Token_Is): New function | |
11359 | (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function | |
11360 | ||
11361 | * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to | |
11362 | semicolon if missing | |
11363 | (P_Pragma): Implement new Skipping parameter | |
11364 | Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List | |
11365 | Fix location of flag for unrecognized pragma message | |
11366 | ||
11367 | * par-tchk.adb (U_Left_Paren): New procedure | |
11368 | (U_Right_Paren): New procedure | |
11369 | ||
11370 | 2007-12-13 Geert Bosch <bosch@adacore.com> | |
11371 | ||
7c066666 | 11372 | * a-tifiio.adb: |
b8f96623 | 11373 | (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where |
11374 | the second or later Scaled_Divide would omit leading zeroes, | |
11375 | resulting in too few digits produced and a Layout_Error as result. | |
11376 | (Put): Initialize Pos. | |
11377 | ||
11378 | 2007-12-13 Robert Dewar <dewar@adacore.com> | |
11379 | ||
11380 | atree.ads, atree.adb (Flag231..Flag247): New functions | |
11381 | (Set_Flag231..Set_Flag247): New procedures | |
11382 | (Basic_Set_Convention): Rename Set_Convention to be | |
11383 | Basic_Set_Convention | |
11384 | (Nkind_In): New functions | |
11385 | Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List | |
11386 | ||
11387 | * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always | |
11388 | instead | |
11389 | of obsolete function Is_Always_Inlined | |
11390 | (Register_Predefined_DT_Entry): Initialize slots of the second | |
11391 | secondary dispatch table. | |
11392 | Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List | |
11393 | (Expand_N_Function_Call): Remove special provision for stack checking. | |
11394 | ||
11395 | * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation): | |
11396 | Include _Disp_Requeue in the list of predefined operations. | |
11397 | (Find_Interface_ADT): Modified to fulfill the new specification. | |
11398 | Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List | |
11399 | ||
7c066666 | 11400 | * par-ch4.adb, nlists.ads, nlists.adb: |
b8f96623 | 11401 | Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List |
11402 | ||
11403 | * sinfo.ads, sinfo.adb: (Nkind_In): New functions | |
11404 | Fix location of flag for unrecognized pragma message | |
11405 | ||
11406 | * sem_ch7.adb: Use Nkind_In | |
11407 | ||
11408 | 2007-12-13 Vincent Celier <celier@adacore.com> | |
11409 | ||
7c066666 | 11410 | * opt.ads: |
b8f96623 | 11411 | Indicate what flags are used by the Project Manager, gprbuild and |
11412 | gprclean. | |
11413 | (Opt.Follow_Links_For_Dirs): New flag | |
11414 | (Warn_On_Assertion_Failure): New flag | |
11415 | (Wide_Character_Encoding_Method_Specified): New flag | |
11416 | (Suppress_All_Inlining): New switch set by -fno-inline | |
11417 | (Real_VMS_Target): New flag | |
11418 | New pragma Fast_Math | |
11419 | ||
11420 | 2007-12-13 Robert Dewar <dewar@adacore.com> | |
11421 | ||
11422 | * back_end.adb: Recognize -fno-inline | |
11423 | ||
11424 | 2007-12-13 Robert Dewar <dewar@adacore.com> | |
11425 | ||
11426 | * checks.adb: Fix optimization problem with short-circuited form | |
11427 | ||
11428 | 2007-12-13 Bob Duff <duff@adacore.com> | |
11429 | ||
11430 | * clean.adb (Usage): Add line for -aP | |
11431 | (Check_Version_And_Help): Change Check_Version_And_Help to be generic, | |
11432 | with a parameter "procedure Usage", instead of passing a pointer to a | |
11433 | procedure. This is to eliminate trampolines (since the Usage procedure | |
11434 | is often nested in a main procedure, and it would be inconvenient to | |
11435 | unnest it). | |
11436 | ||
11437 | * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch | |
11438 | to be generic, with a parameter "procedure Callback (...)", instead of | |
11439 | passing a pointer to a procedure. This is to eliminate trampolines | |
11440 | (since the Callback procedure is usually nested). | |
11441 | ||
7c066666 | 11442 | * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb, |
b8f96623 | 11443 | gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb |
11444 | (Check_Version_And_Help): Change Check_Version_And_Help to be generic. | |
11445 | ||
11446 | * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets): | |
11447 | Use the generic Heap_Sort_G instead of Heap_Sort_A. | |
11448 | ||
11449 | 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com> | |
11450 | ||
11451 | * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry. | |
11452 | (Implemented_By_Entry, Set_Implemented_By_Entry): New routines. | |
11453 | (Write_Entry_Flags): Add an entry for Implemented_By_Entry. | |
11454 | (Renamed_In_Spec): New flag | |
11455 | (Has_Pragma_Inline_Always): New flag | |
11456 | Add missing doc for pragma Obsolescent_Warning | |
11457 | Add missing doc for 17 additional unused flags (230-247) | |
11458 | (Is_Derived_Type): Remove condition "not Is_Generic_Type". | |
11459 | Alphabetize with clauses. | |
11460 | Separate Is_Thunk and Has_Thunks flags | |
11461 | (Write_Entity_Flags): Add forgotten entry for Has_Thunks | |
11462 | (Related_Interface): Renamed to Related_Type. | |
11463 | (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute. | |
11464 | (Set_Is_Flag): Restrict the assertion. | |
11465 | ||
11466 | 2007-12-13 Vincent Celier <celier@adacore.com> | |
11467 | ||
11468 | * errout.adb (Output_Source_Line): Do not keep a trailing space after | |
11469 | the source line number if the source line is empty. | |
11470 | ||
11471 | 2007-12-13 Geert Bosch <bosch@adacore.com> | |
11472 | ||
11473 | * eval_fat.adb (Decompose_Int): Handle argument of zero. | |
11474 | (Compose): Remove special casing of zero. | |
11475 | (Exponent): Likewise. | |
11476 | (Fraction): Likewise. | |
11477 | (Machine): Likewise. | |
11478 | (Decompose): Update comment. | |
11479 | ||
11480 | 2007-12-13 Ed Schonberg <schonberg@adacore.com> | |
11481 | ||
11482 | * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a | |
11483 | limited ancestor part, initialize controllers of enclosing record | |
11484 | before expanding ancestor aggregate. | |
11485 | (Gen_Assign): If a component of the aggregate is box-initialized, add | |
11486 | code to call Initialize if the component is controlled, and explicit | |
11487 | assignment of null if the component is an access type. | |
11488 | ||
11489 | Handle properly aggregates for limited types that appear in object | |
11490 | declarations when the aggregate contains controlled values such as | |
11491 | protected types. | |
11492 | When expanding limited aggregates into individual components, do not | |
11493 | call Adjust on controlled components that are limited. | |
11494 | ||
11495 | 2007-12-13 Ed Schonberg <schonberg@adacore.com> | |
11496 | ||
11497 | * expander.adb: Take into account N_Subprogram_Renaming_Declaration | |
11498 | ||
11499 | 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com> | |
11500 | ||
11501 | * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of | |
11502 | predefined primitive _Disp_Requeue. | |
11503 | (Make_Predefined_Primitive_Specs): Create the spec for predefined | |
11504 | primitive _Disp_Requeue. | |
11505 | (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the | |
11506 | type of formal Renamed_Eq to Entity_Id (instead of Node_Id). | |
11507 | (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is | |
11508 | an interface type. In case of limited interfaces we now declare all the | |
11509 | predefined primitives associated with synchronized interfaces as | |
11510 | abstract. | |
11511 | (Predef_Spec_Or_Body): For interface types generate abstract subprogram | |
11512 | declarations. | |
11513 | (Predefined_Primitive_Bodies): Add body of "=" if the parent of the | |
11514 | tagged type is an interface type and there is no user-defined equality | |
11515 | function. | |
11516 | Add also bodies of predefined primitives associated with synchronized | |
11517 | interfaces. | |
11518 | (Freeze_Record_Type): Do not build bodies of predefined primitives of | |
11519 | interface types because they are now defined abstract. | |
11520 | Add missing documentation. | |
11521 | (Expand_Record_Controller): Update occurrence of Related_Interface | |
11522 | to Related_Type. | |
11523 | (Build_Offset_To_Top_Functions): Do nothing in case of VM. | |
11524 | (Expand_N_Object_Declaration): Take into account VM_Target when handling | |
11525 | class wide interface object declaration. | |
11526 | (Expand_Previous_Access_Type): Do not create a duplicate master entity | |
11527 | if the access type already has one. | |
11528 | (Expand_N_Object_Declaration): Defend against attempt to validity check | |
11529 | generic types. Noticed for -gnatVcf specified with previous errors. | |
11530 | ||
11531 | 2007-12-13 Arnaud Charlet <charlet@adacore.com> | |
11532 | ||
11533 | * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer, | |
11534 | Expand_Allocator_Expression): Take into account VM_Target | |
11535 | ||
11536 | * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use | |
11537 | secondary stack when VM_Target /= No_VM | |
11538 | ||
11539 | 2007-12-13 Javier Miranda <miranda@adacore.com> | |
11540 | Ed Schonberg <schonberg@adacore.com> | |
11541 | ||
11542 | * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute | |
11543 | Is_Complation_Unit by Is_Library_Level_Entity in the code | |
11544 | that decides if the static dispatch tables need to be built. | |
11545 | (Wrap_Transient_Declaration): Do not generate a finalization call if | |
11546 | this is a renaming declaration and the renamed object is a component | |
11547 | of a controlled type. | |
11548 | ||
11549 | 2007-12-13 Gary Dismukes <dismukes@adacore.com> | |
11550 | ||
11551 | * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration): | |
11552 | In the case where the renamed subprogram is a dereference, call | |
11553 | Force_Evaluation on the prefix. | |
11554 | ||
11555 | 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com> | |
11556 | Ed Schonberg <schonberg@adacore.com> | |
11557 | ||
11558 | * exp_ch9.adb (Expand_N_Asynchronous_Select, | |
11559 | Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and | |
11560 | comment reformatting. | |
11561 | (Set_Privals): Inherit aliased flag from formal. From code reading. | |
11562 | (Build_Simple_Entry_Call): Out parameters of an access type are passed | |
11563 | by copy and initialized from the actual. This includes entry parameters. | |
11564 | (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95 | |
11565 | and Ada 2005 models of requeue. | |
11566 | (Null_Statements): Still connsider do-end block null if it contains | |
11567 | Unreferenced and Warnings pragmas. | |
11568 | (Expand_N_Accept_Statement): Do not optimize away null do end if | |
11569 | dispatching policy is other than defaulted. | |
11570 | (Expand_N_Timed_Entry_Call): When the triggering statement is a | |
11571 | dispatching call, manually analyze the delay statement. | |
11572 | (Find_Parameter_Type): Move subprogram to Sem_Util. | |
11573 | ||
11574 | 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com> | |
11575 | Javier Miranda <miranda@adacore.com> | |
11576 | ||
11577 | * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive | |
11578 | _Disp_Requeue occupies dispatch table slot number 15. Move | |
11579 | _Disp_Timed_Select to slot 16. | |
11580 | (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which | |
11581 | generate the spec and body of _Disp_Reqeueue. | |
11582 | (Make_DT): Build and initialize the second dispatch table. | |
11583 | Handle initialization of RC_Offset when the parent | |
11584 | is a private type with variable size components. | |
11585 | (Make_Secondary_DT): Complete documentation. Add support to | |
11586 | initialize the second dispatch table. | |
11587 | (Make_Tags): Generate the tag of the second dispatch table. | |
11588 | (Register_Primitive): Add support to register primitives in the | |
11589 | second dispatch table. | |
11590 | ||
11591 | 2007-12-13 Pascal Obry <obry@adacore.com> | |
11592 | ||
11593 | * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on | |
11594 | Windows. This signal is used by gnatmake to kill child processes for | |
11595 | example. | |
11596 | ||
11597 | 2007-12-13 Javier Miranda <miranda@adacore.com> | |
11598 | ||
11599 | * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing | |
11600 | support for generic dispatching constructor calls in which we need to | |
11601 | locate the tag of a secondary dispatch table associated with an | |
11602 | interface type to properly dispatch the call. | |
11603 | (Expand_N_Attribute_Reference [case Address], | |
11604 | Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix | |
11605 | handling of VM targets. | |
11606 | ||
11607 | 2007-12-13 Robert Dewar <dewar@adacore.com> | |
11608 | Ed Schonberg <schonberg@adacore.com> | |
11609 | ||
11610 | * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for | |
11611 | assert fail | |
11612 | ||
11613 | * ug_words: Add entries for -gnatw.a -gnatw.A | |
11614 | ||
11615 | * sem_res.adb (Set_String_Literal_Subtype): If the context of the | |
11616 | literal is a subtype with non-static constraints, use the base type of | |
11617 | the context as the base of the string subtype, to prevent type | |
11618 | mismatches in gigi. | |
11619 | (Resolve_Actuals): If the actual is an entity name, generate a | |
11620 | reference before the actual is resolved and expanded, to prevent | |
11621 | spurious warnings on formals of enclosing protected operations. | |
11622 | (Analyze_Overloaded_Selected_Component): If type of prefix if | |
11623 | class-wide, use visible components of base type. | |
11624 | (Resolve_Selected_Component): Ditto. | |
11625 | (Resolve_Short_Circuit): Detect case of pragma Assert argument | |
11626 | evaluating to False, and issue warning message. | |
11627 | ||
11628 | * usage.adb: Add lines for -gnatw.a and -gnatw.A | |
11629 | ||
11630 | 2007-12-13 Emmanuel Briot <briot@adacore.com> | |
11631 | ||
11632 | * g-calend.ads (No_Time): New constant, to represent an uninitialized | |
11633 | time value | |
11634 | ||
11635 | * g-catiio.ads, g-catiio.adb (Value): Added support for more date | |
11636 | formats. | |
11637 | (Month_Name_To_Number): New subprogram | |
11638 | ||
11639 | * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive | |
11640 | letter to upper-case. | |
11641 | ||
11642 | 2007-12-13 Robert Dewar <dewar@adacore.com> | |
11643 | Ed Schonberg <schonberg@adacore.com> | |
11644 | ||
11645 | * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target | |
11646 | ||
11647 | * layout.adb (Resolve_Attribute, case 'Access): If designated type of | |
11648 | context is a limited view, use non-limited view when available. If the | |
11649 | non-limited view is an unconstrained array, this enforces consistency | |
11650 | requirements in 3.10.2 (27). | |
11651 | (Layout_Type): For an access type whose designated type is a limited | |
11652 | view, examine its declaration to determine if it is an unconstrained | |
11653 | array, and size the access type accordingly. | |
11654 | (Layout_Type): Do not force 32-bits for convention c subprogram | |
11655 | pointers in -gnatdm mode, only if real vms target. | |
11656 | ||
11657 | * sem_attr.adb (Analyze_Access_Attribute): Use new flag | |
11658 | Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined | |
11659 | (Analyze_Access_Attribute,Attribute_Address): Remove checks for | |
11660 | violations of the No_Implicit_Dynamic_Code restriction. | |
11661 | (Resolve_Attribute, case 'Access): If designated type of context is a | |
11662 | limited view, use non-limited view when available. If the non-limited | |
11663 | view is an unconstrained array, this enforces consistency requirements | |
11664 | in 3.10.2 (27). | |
11665 | (Layout_Type): For an access type whose designated type is a limited | |
11666 | view, examine its declaration to determine if it is an unconstrained | |
11667 | array, and size the access type accordingly. | |
11668 | ||
11669 | 2007-12-13 Vincent Celier <celier@adacore.com> | |
11670 | ||
11671 | * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when | |
11672 | object directory of main project does not exist. | |
11673 | On VMS, correctly set then environment variable for the source | |
11674 | directories. | |
11675 | ||
11676 | 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com> | |
11677 | ||
11678 | * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when | |
11679 | set to True this procedure will create the value of type REG_EXPAND_SZ. | |
11680 | It was only possible to create REG_SZ values before. | |
11681 | ||
11682 | 2007-12-13 Robert Dewar <dewar@adacore.com> | |
11683 | ||
11684 | * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads, | |
11685 | g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads, | |
11686 | namet-sp.adb, namet-sp.ads: New files. | |
11687 | ||
11688 | * g-speche.adb: Use generic routine in g-spchge | |
11689 | ||
7c066666 | 11690 | * s-wchcnv.ads, s-wchcnv.adb: |
b8f96623 | 11691 | Minor code cleanup (make formal type consistent with spec) |
11692 | ||
11693 | * namet.adb: Update comments. | |
11694 | ||
11695 | * par-endh.adb (Evaluate_End_Entry): Use new | |
11696 | Namet.Sp.Is_Bad_Spelling_Of function | |
11697 | ||
11698 | * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function | |
11699 | ||
11700 | * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an | |
11701 | ancestor is an access type initialized with a box, set its type | |
11702 | explicitly, for use in subsequent expansion. | |
11703 | (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of | |
11704 | function | |
11705 | ||
11706 | 2007-12-13 Robert Dewar <dewar@adacore.com> | |
11707 | ||
11708 | * g-spipat.adb (Break): Fix accessibility error (vsn taking not null | |
11709 | access Vstring) | |
11710 | ||
11711 | 2007-12-13 Robert Dewar <dewar@adacore.com> | |
11712 | ||
11713 | * inline.adb (Back_End_Cannot_Inline): Use new flag | |
11714 | Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined | |
11715 | ||
11716 | * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag | |
11717 | Has_Pragma_Inline_Always instead. | |
11718 | of obsolete function Is_Always_Inlined | |
11719 | (Build_Body_To_Inline): Same change | |
11720 | (Cannot_Inline): Same change | |
11721 | Do not give warning on exception raise in No_Return function | |
11722 | ||
11723 | * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited | |
11724 | component has two inconsistent component clauses in the same record | |
11725 | representation clause, favor the message that complains about | |
11726 | duplication rather than inconsistency. | |
11727 | Update comments. | |
11728 | (Record_Representation_Clause): Do not warn on missing component | |
11729 | clauses for inherited components of a type extension. | |
11730 | (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for | |
11731 | an overloadable item if it is a pragma that can apply to multiple | |
11732 | overloadable entities (e.g. Inline) because a pragma cannot be on | |
11733 | more than one chain at a time. | |
11734 | (Validate_Unchecked_Conversion): Add code to warn on unchecked | |
11735 | conversion where one of the operands is Ada.Calendar.Time. | |
11736 | (Analyze_Attribute_Definition_Clause): Fix typo in error message. | |
11737 | For now, ignore Component_Size clause on VM targets, as done for | |
11738 | pragma Pack. | |
11739 | ||
11740 | 2007-12-13 Emmanuel Briot <briot@adacore.com> | |
11741 | Vincent Celier <celier@adacore.com> | |
11742 | ||
11743 | * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a | |
11744 | string | |
11745 | (Must_Check_Configuration, Default_Language_Is_Ada): new flags in | |
11746 | prj.ads | |
11747 | (Hash): Move instantiation of System.HTable.Hash from spec to body | |
11748 | (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive | |
11749 | systems, since we do not need to recompute the Name_Id for the canonical | |
11750 | file name. | |
11751 | (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id | |
11752 | as a parameter. This parameter is in fact always "ada" in all calls, and | |
11753 | we were doing 160560 extra calls to Name_Find to convert it to Name_Ada | |
11754 | while loading a project with 40000 files | |
11755 | ||
11756 | * prj-attr.adb: Fix name of attribute Dependency_Driver | |
11757 | Change the kind of indexing for attribute Root | |
11758 | ||
11759 | * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of | |
11760 | variables already declared, in case constructions. | |
11761 | ||
11762 | * prj-env.adb (Initialize): Reset Current_Source_Path_File and | |
11763 | Current_Object_Path_File to No_Path. | |
11764 | ||
11765 | * prj-ext.adb (Initialize_Project_Path): In multi language mode, use | |
11766 | ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty. | |
11767 | ||
11768 | * prj-makr.adb: new parameter Current_Dir | |
11769 | ||
11770 | * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for | |
11771 | Ada sources when language is not Ada. | |
11772 | Change Opt.Follow_Links to Opt.Follow_Links_For_Files. | |
11773 | (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms | |
11774 | (Must_Check_Configuration, Default_Language_Is_Ada): new flags. | |
11775 | (Locate_Directory): Always resolve links when computing Canonical_Path | |
11776 | (Look_For_Sources): Make sure that Name_Buffer contains the file name | |
11777 | in Source_Files before checking for the presence of a directory | |
11778 | separator. | |
11779 | Optimize calls to Name_Find when on case sensitive systems. | |
11780 | (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id | |
11781 | as a parameter. | |
11782 | (Prj.Nmsc.Check): new parameter Current_Dir | |
11783 | (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They | |
11784 | cannot be empty and the spec suffix cannot be the same as the body or | |
11785 | separate suffix. | |
11786 | (Get_Unit): When a file name can be of several unit kinds (spec, body or | |
11787 | subunit), always consider the longest suffix. | |
11788 | (Check_Configuration): Do not issue an error if there is no compiler | |
11789 | for a language. Just issue a warning and ignore the sources for the | |
11790 | language. | |
11791 | (Check_Library_Attributes): Only check Library_Dir if Library_Name is | |
11792 | not empty. | |
11793 | (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity | |
11794 | (Unit_Exceptions): New hash table | |
11795 | (Check_Naming_Schemes): Check if a file that could be a unit because of | |
11796 | the naming scheme is not in fact a source because there is an exception | |
11797 | for the unit. | |
11798 | (Look_For_Sources): Put the unit exceptions in hash table | |
11799 | Unit_Exceptions | |
11800 | (Get_Unit_Exceptions): Give initial value No_Source to local variable | |
11801 | Other_Part to avoid exception when code is compiled with validity | |
11802 | checking. | |
11803 | (Get_Sources_From_File): Check that there is no directory information | |
11804 | in the file names. | |
11805 | (Look_For_Sources): Check that there is no directory information in the | |
11806 | list of file names in Source_Files. | |
11807 | (Look_For_Sources): In multi-language mode, do not allow exception file | |
11808 | names that are excluded. | |
11809 | (Excluded_Sources_Htable): New hash table | |
11810 | (Search_Directories.Check_File): New procedure to simplify | |
11811 | Search_Directories. | |
11812 | (Search_Directories): Do not consider excluded sources | |
11813 | (Look_For_Sources): Populate Excluded_Sources_Htable before calling | |
11814 | Search_Directories. | |
11815 | (Get_Exceptions): Set component Lang_Kind of Source_Data | |
11816 | (Get_Unit_Exceptions): Ditto | |
11817 | (Search_Directories): Ditto | |
11818 | ||
11819 | * prj-pars.adb: new parameter Current_Dir | |
11820 | ||
7c066666 | 11821 | * prj-part.ads, prj-part.adb: |
b8f96623 | 11822 | Change Opt.Follow_Links to Opt.Follow_Links_For_Files. |
11823 | (Opt.Follow_Links_For_Dirs): New flag | |
11824 | (Project_Path_Name_Of): Cache information returned by this routine as | |
11825 | Locate_Regular_File is a costly routine. The code to output a log | |
11826 | information and the effective call to Locate_Regular_File is now | |
11827 | factorized into a routine (code clean-up). | |
11828 | (Parse, Parse_Single_Project): new parameter Current_Dir | |
11829 | When main project file cannot be found, indicate in the error | |
11830 | message the project path that was used to do the search. | |
11831 | ||
11832 | * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag | |
11833 | (Prj.Proc.Process*): new parameter Current_Dir | |
11834 | ||
11835 | * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files | |
11836 | ||
11837 | 2007-12-13 Bob Duff <duff@adacore.com> | |
11838 | ||
11839 | * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New | |
11840 | procedure to be called from the back end to check the | |
11841 | No_Implicit_Dynamic_Code restriction. | |
11842 | ||
11843 | 2007-12-13 Arnaud Charlet <charlet@adacore.com> | |
11844 | ||
11845 | * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call | |
11846 | Fixes another case where RTE_Available_Call was ignored instead of being | |
11847 | taken into account. | |
11848 | (Load_Fail): Ditto. | |
11849 | ||
11850 | * rtsfind.ads: Add new entries. | |
11851 | ||
11852 | 2007-12-13 Robert Dewar <dewar@adacore.com> | |
11853 | ||
11854 | * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads, | |
11855 | g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files. | |
11856 | ||
11857 | * scn.adb: Implement BOM recognition | |
11858 | ||
11859 | 2007-12-13 Thomas Quinot <quinot@adacore.com> | |
11860 | Ed Schonberg <schonberg@adacore.com> | |
11861 | ||
11862 | * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level | |
11863 | subprogram body that acts as its own spec may not have a non-private | |
11864 | WITH clause on a private sibling. | |
11865 | (Build_Unit_Name): If the parent unit in the name in a with_clause on a | |
11866 | child unit is a renaming, create an implicit with_clause on that | |
11867 | parent, and not on the unit it renames, to prevent visibility errors | |
11868 | in the current unit. | |
11869 | ||
11870 | 2007-12-13 Ed Schonberg <schonberg@adacore.com> | |
11871 | ||
11872 | * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram | |
11873 | renaming declaration, use the Slocs of the formal parameters from the | |
11874 | declaration of the formal subprogram when creating the formal parameter | |
11875 | entities in the renaming declaration. | |
11876 | (Analyze_Formal_Type_Declaration): Change the placement of the error | |
11877 | message concerning illegal known discriminants. It is now posted on the | |
11878 | type rather than on the first discriminant. This change ensures early | |
11879 | error report. | |
11880 | (Freeze_Subprogram_Body): If the generic subprogram is nested within | |
11881 | the package body that contains the instance, do not generate an | |
11882 | out-of-place freeze node for the enclosing package. | |
11883 | (Collect_Previous_Instantiations): Ignore internal instantiations | |
11884 | generated for formal packages. | |
11885 | (Validate_Derived_Type_Instance): Add a check that when a formal | |
11886 | derived type is Known_To_Have_Preelab_Init then the actual type must | |
11887 | have preelaborable initialization, and issue an error when this | |
11888 | condition is violated. | |
11889 | ||
11890 | 2007-12-13 Robert Dewar <dewar@adacore.com> | |
11891 | ||
11892 | * s-imenne.adb, s-imenne.ads: New files. | |
11893 | ||
7c066666 | 11894 | * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb, |
11895 | s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb, | |
11896 | s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads, | |
11897 | s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb, | |
b8f96623 | 11898 | s-imgwch.ads: New calling sequence for Image routines to avoid sec |
11899 | stack usage. | |
11900 | ||
11901 | 2007-12-13 Javier Miranda <miranda@adacore.com> | |
11902 | Ed Schonberg <schonberg@adacore.com> | |
11903 | ||
11904 | * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid | |
11905 | generation of spurious error if parent is an interface type; caused | |
11906 | because predefined primitive bodies will be generated later by | |
11907 | Freeze_Record_Type. | |
11908 | (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init | |
11909 | flag. | |
11910 | (Derive_Subprograms): Handle derivations of predefined primitives | |
11911 | after all the user-defined primitives to ensure that they are | |
11912 | found in proper order in instantiations. | |
11913 | (Add_Interface_Tag_Components, Inherit_Components): Update occurrences | |
11914 | of Related_Interface to Related_Type. | |
11915 | (Record_Type_Declaration): Minor reordering of calls to decorate the | |
11916 | Tag component because the entity must have set its Ekind attribute | |
11917 | before setting its Is_Tag attribute. | |
11918 | (Analyze_Subtype_Declaration): In the case of subtypes with | |
11919 | Private_Kind, inherit Known_To_Have_Preelab_Init from the parent. | |
11920 | ||
11921 | 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com> | |
11922 | Ed Schonberg <schonberg@adacore.com> | |
11923 | ||
11924 | * sem_ch4.adb (Analyze_Selected_Component): Include the requeue | |
11925 | statement to the list of contexts where a selected component with a | |
11926 | concurrent tagged type prefix should yield a primitive operation. | |
11927 | (Find_Primitive_Operation): Handle case of class-wide types. | |
11928 | (Analyze_Overloaded_Selected_Component): If type of prefix is | |
11929 | class-wide, use visible components of base type. | |
11930 | (Resolve_Selected_Component): Ditto. | |
11931 | (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a | |
11932 | formal of a generic subprogram. find candidate interpretations by | |
11933 | scanning the list of generic formal declarations.: | |
11934 | (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete | |
11935 | type from a limited_with_clause, and the full view is available, use it | |
11936 | for subsequent semantic checks. | |
11937 | (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function | |
11938 | (Find_Primitive_Operation): New function. | |
11939 | (Analyze_Overloaded_Selected_Component): insert explicit dereference | |
11940 | only once if several interpretations of the prefix yield an access type. | |
11941 | (Try_Object_Operation): Code and comment cleanup. | |
11942 | (Analyze_Selected_Component): Reorder local variables. Minot comment and | |
11943 | code reformatting. When the type of the prefix is tagged concurrent, a | |
11944 | correct interpretation might be available in the primitive and | |
11945 | class-wide operations of the type. | |
11946 | ||
11947 | 2007-12-13 Robert Dewar <dewar@adacore.com> | |
11948 | Ed Schonberg <schonberg@adacore.com> | |
11949 | ||
11950 | * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for | |
11951 | renaming entry as subprogram using rename-as-body if subprogram spec | |
11952 | frozen. | |
11953 | (Use_One_Type): The clause is legal on an access type whose designated | |
11954 | type has a limited view. | |
11955 | (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function | |
11956 | (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function | |
11957 | (Analyze_Renamed_Primitive_Operation): new procedure to determine the | |
11958 | operation denoted by a selected component. | |
11959 | (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because | |
11960 | it can be an expression, possibly overloaded, that returns a task or | |
11961 | an access to one. | |
11962 | ||
11963 | 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com> | |
11964 | Gary Dismukes <dismukes@adacore.com> | |
11965 | ||
11966 | * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a | |
11967 | requeue statement is dispatching. Do not emit an error when the name is | |
11968 | not an entry and the context is a dispatching select. Add code to | |
11969 | perform subtype conformance between the formals of the current entry | |
11970 | and those of the target interface primitive. | |
11971 | (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_ | |
11972 | Timed_Entry_Call): Analyze the triggering statement as the first step of | |
11973 | the processing. If this is a dispatching select, postpone the analysis | |
11974 | of all select statements until the Expander transforms the select. This | |
11975 | approach avoids generating duplicate identifiers after the Expander has | |
11976 | replicated some of the select statements. In case the Expander is | |
11977 | disabled, perform regular analysis. | |
11978 | (Check_Triggering_Statement): New routine. | |
11979 | (Analyze_Requeue): Exclude any interpretations that are not entries when | |
11980 | checking overloaded names in a requeue. Also test type conformance for | |
11981 | matching interpretations rather than requiring subtype conformance at | |
11982 | that point to conform with the RM's resolution rule for requeues. | |
11983 | ||
11984 | 2007-12-13 Ed Schonberg <schonberg@adacore.com> | |
11985 | ||
11986 | * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an | |
11987 | inherited operation is a defaulted tag-indeterminate call, and there is | |
11988 | a statically tagged actual, use the static tag as a controlling actual | |
11989 | for the defaulted actual. | |
11990 | ||
11991 | 2007-12-13 Geert Bosch <bosch@adacore.com> | |
11992 | ||
11993 | * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static | |
11994 | context, so do not call Check_Non_Static_Context. | |
11995 | ||
11996 | 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com> | |
11997 | ||
11998 | * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check | |
11999 | whether formal E is an entity which may have parameters. | |
12000 | ||
12001 | 2007-12-13 Bob Duff <duff@adacore.com> | |
12002 | Javier Miranda <miranda@adacore.com> | |
12003 | Robert Dewar <dewar@adacore.com> | |
12004 | ||
12005 | * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine. | |
12006 | (Set_Convention): New procedure to set the Convention flag, and in | |
12007 | addition make sure the Favor_Top_Level flag is kept in sync (all | |
12008 | foreign-language conventions require Favor_Top_Level = True). | |
12009 | (Collect_Abstract_Interfaces): Update occurrences of Related_Interface | |
12010 | to Related_Type. | |
12011 | (Collect_Interfaces_Info): Minor update to handle the two secondary | |
12012 | dispatch tables. Update occurrence of Related_Interface to Related_Type. | |
12013 | (Generate_Parent_Ref): Add parameter to specify entity to check | |
12014 | (Is_Preelaborable_Expression): Allow the name of a discriminant to | |
12015 | initialize a component of a type with preelaborable initialization. | |
12016 | This includes the case of a discriminal used in such a context. | |
12017 | (Is_Dependent_Component_Of_Mutable_Object): Take into account the | |
12018 | latest Ada 2005 rules about renaming and 'Access of | |
12019 | discriminant-dependent components. | |
12020 | (Check_Nested_Access): Add handling when there are no enclosing | |
12021 | subprograms (e.g. case of a package body). | |
12022 | (Find_Parameter_Type): Factor routine from several other compiler files. | |
12023 | Remove routine from Find_Overridden_Synchronized_Primitive. | |
12024 | ||
12025 | 2007-12-13 Thomas Quinot <quinot@adacore.com> | |
12026 | ||
12027 | * sinput.adb (Get_Source_File_Index): Add assertion to guard against | |
12028 | an invalid access to an uninitialized slot in the | |
12029 | Source_File_Index_Table. | |
12030 | ||
12031 | 2007-12-13 Thomas Quinot <quinot@adacore.com> | |
12032 | ||
12033 | * sinput-l.adb (Load_File): Disable style checks when preprocessing. | |
12034 | ||
12035 | 2007-12-13 Bob Duff <duff@adacore.com> | |
12036 | ||
12037 | * s-soflin.ads: Apply new pragma Favor_Top_Level to all | |
12038 | access-to-subprogram types in this package. | |
12039 | ||
12040 | 2007-12-13 Olivier Hainque <hainque@adacore.com> | |
12041 | ||
12042 | * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant | |
12043 | with Stack_Grows_Down in System.Parameters. Rename Array_Address into | |
12044 | Stack_Overlay_Address and document that we are using an internal | |
12045 | abstraction. | |
12046 | (Byte_Size, Unsigned_32_Size): Remove, now useless. | |
12047 | (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used | |
12048 | consistently throughout the various implementation pieces. | |
12049 | ||
12050 | * s-stausa.adb (Stack_Slots): New type, abstraction for the stack | |
12051 | overlay we are using to fill the stack area with patterns. | |
12052 | (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots. | |
12053 | (Push_Index_Step_For, Pop_Index_Step_For): Likewise. | |
12054 | (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction. | |
12055 | ||
12056 | 2007-12-13 Robert Dewar <dewar@adacore.com> | |
12057 | ||
12058 | * s-stoele.adb ("mod"): mod negative value raises Constraint_Error | |
12059 | ||
12060 | 2007-12-13 Arnaud Charlet <charlet@adacore.com> | |
12061 | ||
7c066666 | 12062 | * s-tassta.adb: |
b8f96623 | 12063 | (Create_Task): Take into account tasks created by foreign threads. |
12064 | Code clean up: use constants instead of hard coded values. | |
12065 | ||
12066 | 2007-12-13 Robert Dewar <dewar@adacore.com> | |
12067 | ||
12068 | * styleg.adb (Check_Comment): More liberal rules for comment placement | |
12069 | ||
12070 | 2007-12-13 Olivier Hainque <hainque@adacore.com> | |
12071 | ||
12072 | * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use | |
12073 | of Procedure Value instead of Frame Pointer as the invocation | |
12074 | identifier associated with the instruction pointer in each traceback | |
12075 | entry. | |
12076 | ||
12077 | * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For, | |
12078 | TB_Entry_For): Revert back to use of Procedure Value instead of Frame | |
12079 | Pointer as the invocation identifier passed to tbk$symbolize. | |
12080 | ||
12081 | * s-traent-vms.ads, s-traent-vms.adb | |
12082 | (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of | |
12083 | Procedure Value instead of Frame Pointer as the invocation identifier | |
12084 | passed to tbk$symbolize. | |
12085 | ||
12086 | 2007-12-13 Robert Dewar <dewar@adacore.com> | |
12087 | ||
7c066666 | 12088 | * tbuild.ads, tbuild.adb: |
b8f96623 | 12089 | Fix location of flag for unrecognized pragma message |
12090 | ||
12091 | 2007-12-13 Robert Dewar <dewar@adacore.com> | |
12092 | ||
12093 | * treepr.ads, treepr.adb: (pl): implement use of positive value | |
12094 | shorthands | |
12095 | ||
12096 | 2007-12-13 Robert Dewar <dewar@adacore.com> | |
12097 | ||
12098 | * xeinfo.adb: Remove warnings | |
12099 | * xnmake.adb: Remove warnings | |
12100 | * xsinfo.adb: Remove warnings | |
12101 | * xtreeprs.adb: Remove warnings | |
12102 | * xsnames.adb: Remove warnings | |
12103 | ||
12104 | * a-ngcoar.adb: Fix typo. | |
12105 | * s-interr.adb: Minor reformatting | |
12106 | * env.c: Minor reformatting. | |
12107 | * g-bytswa.adb: Minor reformatting. | |
12108 | * g-rannum.ads: Minor documentation improvements | |
12109 | * s-tasinf-mingw.adb: Minor header fix | |
12110 | * a-clrefi.adb: Minor reformatting | |
12111 | * g-sttsne.ads: Minor documentation improvement | |
12112 | * g-sttsne-locking.ads: Minor documentation improvement | |
12113 | * g-soliop-solaris.ads: Minor documentation improvement | |
12114 | * g-soliop-mingw.ads: Minor documentation improvement | |
12115 | * g-soliop.ads: Minor documentation improvement | |
12116 | * exp_aggr.ads: Minor reformatting | |
12117 | * debug.adb: Add documentation for the gprbuild debug flags | |
12118 | * exp_ch2.adb: Use Nkind_In to simplify code throughout | |
12119 | * exp_pakd.adb: Minor reformatting | |
12120 | ||
12121 | * g-altive.ads, g-alleve.adb: Remove assertions. | |
12122 | Add comment about minor differences between targets regarding | |
12123 | floating-point operations. | |
12124 | ||
12125 | * g-thread.adb: Remove pragma unreferenced. | |
12126 | * lib.ads: Minor reformatting | |
12127 | * par-ch9.adb: Minor reformatting of error messages | |
12128 | * sem_case.adb: Minor reformatting | |
12129 | * s-fileio.adb: Minor reformattinng | |
12130 | * s-vmexta.ads: Minor typo | |
7c066666 | 12131 | * vxaddr2line.adb: |
b8f96623 | 12132 | Take into account 'Success' value as per new GNAT warning. |
12133 | ||
12134 | 2007-12-13 Vincent Celier <celier@adacore.com> | |
12135 | ||
12136 | * a-direct.adb (Create_Path): Always take '/' as a directory separator, | |
12137 | even on Windows | |
12138 | ||
12139 | 2007-12-13 Robert Dewar <dewar@adacore.com> | |
12140 | Bob Duff <duff@adacore.com> | |
12141 | ||
12142 | * gnat_ugn.texi: Dcoument new rules for style check comment alignment | |
12143 | Document that suffixes may be terminations of each others | |
12144 | Add doc for -gnatw.a and -gnatw.A | |
12145 | Document gnatbind -Wx switch | |
12146 | Document BOM recognition | |
12147 | Document pragma Implemented_By_Entry. | |
12148 | Document new units. | |
12149 | ||
12150 | * gnat_rm.texi: (Favor_Top_Level): Document new pragma. | |
12151 | Add doc for pragma Unreferenced suppressing no entities referenced msg | |
12152 | Add documentation of GNAT.Directory_Operations.Iteration | |
12153 | Add documentation of GNAT.Random_Numbers | |
12154 | Add documentation for pragma Shared. | |
12155 | Correct documentation for Bit_Order | |
12156 | Add documentation for the Pool_Address attribute. | |
12157 | Fix and improve documentation of pragma machine_attribute. | |
12158 | New pragma Fast_Math | |
12159 | Document BOM recognition | |
12160 | ||
12161 | * vms_data.ads: Add entries for -gnatw.a -gnatw.A | |
12162 | Add /Wide_Character_Encoding for binder | |
12163 | Add qualifier for the new gnatpp option --no-separate-loop-then | |
12164 | ||
12165 | 2007-12-13 Matthew Heaney <heaney@adacore.com> | |
12166 | ||
12167 | * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document | |
12168 | which generic formal operations are called for each operation. | |
12169 | ||
12170 | 2007-12-13 Olivier Hainque <hainque@adacore.com> | |
12171 | ||
12172 | * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh. | |
12173 | (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh. | |
12174 | ||
12175 | 2007-12-13 Emmanuel Briot <briot@adacore.com> | |
12176 | ||
12177 | * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute | |
12178 | Reference_Dir unless we actually need it. | |
12179 | ||
12180 | 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com> | |
12181 | Tristan Gingold <gingold@adacore.com> | |
12182 | ||
12183 | * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit. | |
12184 | ||
12185 | * s-osprim-vms.adb, | |
12186 | a-calend-vms.adb: Remove pragma warning off and add pragma | |
12187 | unreferenced. | |
12188 | ||
12189 | 2007-12-13 Robert Dewar <dewar@adacore.com> | |
12190 | ||
12191 | * impunit.adb: Add entries for missing units | |
12192 | ||
12193 | * Makefile.rtl: Add new run-time units. | |
12194 | ||
12195 | * Make-lang.in: Update dependencies. | |
12196 | ||
12197 | 2007-12-13 Bob Duff <duff@adacore.com> | |
12198 | ||
12199 | * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram | |
12200 | types, set Can_Use_Internal_Rep appropriately, based on | |
12201 | Always_Compatible_Rep_On_Target. | |
12202 | ||
12203 | 2007-12-13 Gary Dismukes <dismukes@adacore.com> | |
12204 | Arnaud Charlet <charlet@adacore.com> | |
12205 | ||
12206 | * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing | |
12207 | it to the front end and setting the aamp_target environment variable | |
12208 | to the switch's argument to ensure that gnaampbind and gnaamplink will | |
12209 | take the specified library into account. | |
12210 | (Make): Only set Check_Object_Consistency to False for JVM, not for CIL | |
12211 | target, since the CIL compiler supports an "object" file (.il files). | |
12212 | ||
12213 | 2007-12-13 Vincent Celier <celier@adacore.com> | |
12214 | ||
12215 | * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure | |
12216 | (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half. | |
12217 | ||
12218 | 2007-12-13 Geert Bosch <bosch@adacore.com> | |
12219 | ||
7c066666 | 12220 | * s-parame-vxworks.adb: |
b8f96623 | 12221 | Update comments to reflect usage of this package by Nucleus. |
12222 | ||
12223 | 2007-12-13 Arnaud Charlet <charlet@adacore.com> | |
12224 | ||
12225 | * i-vxwork.ads: Kill new warning on Convention C, since changing the | |
12226 | spec would break code. | |
12227 | ||
12228 | * i-forbla-unimplemented.ads, vx_stack_info.c: New files. | |
12229 | ||
12230 | * system-vxworks-alpha.ads: Removed. | |
12231 | ||
9e1c7ee1 | 12232 | 2007-12-10 Eric Botcazou <ebotcazou@adacore.com> |
12233 | ||
12234 | * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around. | |
12235 | ||
e13aa3d7 | 12236 | 2007-12-09 Samuel Tardieu <sam@rfc1149.net> |
12237 | ||
12238 | PR ada/34366 | |
12239 | * sem_ch3.adb (Designates_T): New function. | |
12240 | (Mentions_T): Factor reusable part of the logic into Designates_T. | |
12241 | Consider non-access parameters and access and non-access result. | |
12242 | (Check_Anonymous_Access_Components): Set ekind of anonymous access to | |
12243 | E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type. | |
12244 | ||
12245 | * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type. | |
12246 | ||
c987f8c4 | 12247 | 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org> |
12248 | ||
5b8319b9 | 12249 | PR ada/34361 |
c987f8c4 | 12250 | * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect |
12251 | the new implementation of target-specific calls. | |
12252 | ||
fecdce4f | 12253 | 2007-12-07 Olivier Hainque <hainque@adacore.com> |
12254 | ||
12255 | * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing | |
12256 | the designated full view, only follow a second level Full_View link | |
12257 | for Non_Limited_Views of from_limited_with references. | |
7c066666 | 12258 | |
fdaa82c9 | 12259 | 2007-12-07 Samuel Tardieu <sam@rfc1149.net> |
12260 | ||
12261 | PR ada/15805 | |
12262 | * sem_ch6.adb (Process_Formals): Prevent an access type formal | |
12263 | to be initialized with an access to constant object. | |
12264 | ||
af4565b3 | 12265 | * sem_ch3.adb (Analyze_Object_Declaration): Signal an error |
12266 | when an access to constant is used to initialize an access | |
12267 | value. | |
12268 | ||
351e4c1c | 12269 | PR ada/21346 |
12270 | * a-direct.adb (Compose): Containing_Directory can be an empty string. | |
12271 | ||
72f6e27c | 12272 | 2007-12-07 Olivier Hainque <hainque@adacore.com> |
12273 | ||
12274 | PR ada/34173 | |
12275 | * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting | |
12276 | the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if | |
12277 | this is from an alignment clause on the GNAT entity. | |
12278 | * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN | |
12279 | to distinguish the case where we set it from the type's alignment. | |
12280 | When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate | |
12281 | whether this alignment was set from an explicit alignment clause. | |
12282 | ||
ba85cfb2 | 12283 | 2007-12-06 Eric Botcazou <ebotcazou@adacore.com> |
12284 | ||
12285 | * decl.c (make_packable_type): Revert last change. | |
12286 | (gnat_to_gnu_field): Avoid setting size and position multiple times. | |
12287 | * utils.c (finish_record_type): Retrieve the real name of the type. | |
12288 | ||
97f67e83 | 12289 | 2007-12-05 Eric Botcazou <ebotcazou@adacore.com> |
12290 | ||
12291 | * trans.c (lvalue_required_p): Take base node directly instead | |
12292 | of its parent. Rename second parameter to 'gnu_type'. | |
12293 | <N_Indexed_Component>: Return 0 if the node isn't the prefix. | |
12294 | <N_Slice>: Likewise. | |
12295 | (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue. | |
12296 | Adjust calls to lvalue_required_p. | |
12297 | ||
d1662b94 | 12298 | 2007-12-05 Samuel Tardieu <sam@rfc1149.net> |
12299 | ||
12300 | PR ada/21489 | |
12301 | * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type | |
12302 | parameters of an entry call. | |
12303 | ||
8a67bb47 | 12304 | 2007-12-03 Robert Dewar <dewar@adacore.com> |
7c066666 | 12305 | Samuel Tardieu <sam@rfc1149.net> |
b2a25df5 | 12306 | |
12307 | PR ada/34287 | |
12308 | * sem_util.adb (Safe_To_Capture_Value): Do not capture values | |
12309 | of variables declared in a library-level package. | |
7c066666 | 12310 | |
9c73a450 | 12311 | 2007-12-02 Samuel Tardieu <sam@rfc1149.net> |
12312 | ||
12313 | * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead | |
12314 | of Empty_String'Unchecked_Access. | |
12315 | ||
fc1b1443 | 12316 | * Makefile.in: Add support for sh4-linux. |
12317 | ||
12318 | * system-linux-sh4.ads: New file. | |
12319 | ||
d2441011 | 12320 | 2007-12-01 Kostik Belousov <kostikbel@ukr.net> |
12321 | ||
12322 | PR ada/33722 | |
12323 | * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv() | |
12324 | and its argument must not be free()ed. | |
12325 | ||
29306904 | 12326 | 2007-11-29 Eric Botcazou <ebotcazou@adacore.com> |
12327 | ||
12328 | * decl.c (make_packable_type): Retrieve the real name of the type. | |
12329 | (maybe_pad_type): Simplify similar code. | |
12330 | ||
56cf56c9 | 12331 | 2007-11-28 Samuel Tardieu <sam@rfc1149.net> |
12332 | ||
9ee752ce | 12333 | PR ada/15804 |
56cf56c9 | 12334 | * par-ch3.adb (P_Variant_Part): Signal an error when anything other |
12335 | than an identifier is used after "case" in a variant_part. | |
12336 | ||
72464c9e | 12337 | PR ada/17318 |
dc751e41 | 12338 | * par-ch4.adb (Is_Parameterless_Attribute): New map. |
12339 | (P_Name, Scan_Apostrophe block): Parse left parenthesis following | |
12340 | attribute name or not depending on the new map. | |
12341 | ||
12342 | * sem-attr.adb (Analyze_Attribute): Parameterless attributes | |
12343 | returning a string or a type will not be called with improper | |
12344 | arguments. | |
12345 | ||
12346 | * sem-attr.ads (Attribute_Class_Array): Move to snames.ads. | |
12347 | ||
12348 | * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads. | |
12349 | ||
30364cca | 12350 | PR ada/32792 |
12351 | * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause): | |
12352 | Signal an error when attribute argument is a fixed-point value of | |
12353 | an unknown type. | |
12354 | ||
1ee27c63 | 12355 | PR ada/22559 |
12356 | * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on | |
12357 | a derived ordinary fixed point type. | |
12358 | ||
12359 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute | |
12360 | RM_Size when a Small clause is found. | |
12361 | ||
80f2ef47 | 12362 | 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com> |
12363 | ||
7c066666 | 12364 | PR 34081/C++ |
12365 | * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu): | |
12366 | Pass 'false' for the new allocate_struct_function parameter. | |
12367 | * utils.c (build_function_stub): Likewise. | |
80f2ef47 | 12368 | |
93110716 | 12369 | 2007-11-25 Richard Guenther <rguenther@suse.de> |
12370 | ||
ba85cfb2 | 12371 | * utils.c (gnat_pushlevel): Use BLOCK_CHAIN. |
93110716 | 12372 | (gnat_poplevel): Likewise. |
12373 | ||
4aafb999 | 12374 | 2007-11-25 Eric Botcazou <ebotcazou@adacore.com> |
12375 | ||
12376 | * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has | |
12377 | strict alignment, no alignment clause and a known static size, cap | |
12378 | the type alignment to the greatest power of 2 factor of the size. | |
12379 | (gnat_to_gnu_field): If the field has a component clause, is aliased | |
12380 | or of a type with strict alignment, require that its size be equal to | |
12381 | that of the type. | |
12382 | (validate_size): Use the type size as the minimum size for a type with | |
12383 | strict alignment. | |
12384 | ||
682b5967 | 12385 | 2007-11-23 Samuel Tardieu <sam@rfc1149.net> |
12386 | ||
12387 | * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb, | |
12388 | s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb, | |
12389 | s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb: | |
12390 | Use 'Access instead of 'Unchecked_Access in second and third | |
12391 | arguments of pthread_sigmask. | |
12392 | ||
7a5493c8 | 12393 | 2007-11-23 Eric Botcazou <ebotcazou@adacore.com> |
12394 | ||
12395 | * decl.c (ceil_alignment): New function. | |
12396 | (gnat_to_gnu_entity): Use it to set the alignment on atomic types. | |
12397 | (make_packable_type): Likewise. | |
12398 | ||
b476dd1b | 12399 | 2007-11-22 Olivier Hainque <hainque@adacore.com> |
12400 | ||
12401 | * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines | |
12402 | to fit in 80 columns. | |
12403 | ||
8a67bb47 | 12404 | 2007-11-21 Aurelien Jarno <aurelien@aurel32.net> |
b05f3de6 | 12405 | |
12406 | * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function. | |
12407 | * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB. | |
12408 | ||
d25f7819 | 12409 | 2007-11-19 Eric Botcazou <ebotcazou@adacore.com> |
12410 | ||
12411 | PR ada/34098 | |
12412 | * misc.c (gnat_adjust_rli): Delete. | |
12413 | (gnat_init): Do not initialize the translation code here. | |
12414 | Do not call set_lang_adjust_rli. | |
12415 | * trans.c (init_code_table): Make static. | |
12416 | (gnat_init_stmt_group): Delete. | |
12417 | (gigi): Initialize the translation code entirely here. | |
12418 | Emit debug info for the common types here instead of... | |
12419 | * utils.c (gnat_init_decl_processing): ...here. | |
12420 | * gigi.h (init_code_table): Delete. | |
12421 | (gnat_init_stmt_group): Likewise. | |
12422 | ||
e64eebab | 12423 | 2007-11-16 Olivier Hainque <hainque@adacore.com> |
12424 | ||
12425 | * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code | |
12426 | retrieving an allocator return value from a super-aligned address from | |
12427 | here to ... | |
12428 | * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't | |
12429 | expect a super-aligned address for a fat or thin pointer. | |
7c066666 | 12430 | |
e746f64d | 12431 | 2007-11-14 Eric Botcazou <ebotcazou@adacore.com> |
12432 | ||
12433 | * trans.c (call_to_gnu): Always set the source location on the call | |
12434 | expression. If the function returns-by-target, also set it on the | |
12435 | address expression. | |
12436 | ||
acc10cf1 | 12437 | 2007-11-14 Samuel Tardieu <sam@rfc1149.net> |
12438 | ||
02f47b8f | 12439 | * adaint.c, init.c, initialize.c, link.c: Remove system-specific |
acc10cf1 | 12440 | sections of non-supported Interix target. |
12441 | ||
12442 | * s-osinte-interix.ads: Removed. | |
12443 | ||
1ca2dbd8 | 12444 | * i-cstrin.ads (chars_ptr): Make it a C convention type. |
12445 | ||
62e369b3 | 12446 | 2007-11-13 Samuel Tardieu <sam@rfc1149.net> |
12447 | ||
12448 | * a-tasatt.adb: Add a comment at the beginning of the package | |
12449 | explaining why in general 'Unchecked_Access must be used instead | |
12450 | of 'Access. | |
12451 | ||
b6dbe0c0 | 12452 | * sem_prag.adb (Process_Convention): Move the test for the |
12453 | entity on which the Convention pragma applies down to also | |
12454 | forbid pragma Convention on enumeration literals reached | |
12455 | through renamings. | |
12456 | ||
55e9d3a6 | 12457 | 2007-11-10 Samuel Tardieu <sam@rfc1149.net> |
12458 | ||
12459 | * a-tasatt.adb: Revert previous change for this file as it will | |
12460 | generate an error when this package is instantiated from a | |
12461 | local context. | |
12462 | ||
f25bd204 | 12463 | 2007-11-07 Samuel Tardieu <sam@rfc1149.net> |
12464 | ||
12465 | * a-tasatt.adb: Type Wrapper should be declared in comment instead | |
12466 | of already declared type Node_Access. | |
52d407a9 | 12467 | Use 'Access instead of 'Unchecked_Access when applicable. Local |
12468 | lifetime is the one of the package. | |
12469 | (Set_Value): W is allocated on the heap. | |
12470 | ||
12471 | * g-socket.adb: Use 'Access instead of 'Unchecked_Access when | |
12472 | applicable. | |
12473 | (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous | |
12474 | access type. | |
12475 | (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous | |
12476 | access type. | |
12477 | ||
12478 | * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when | |
12479 | applicable. | |
12480 | (elaboration code): Timer_Queue lifetime is the one of the | |
12481 | package. | |
f25bd204 | 12482 | |
f9ce4996 | 12483 | * tracebak.c (i386 alternative): Remove useless comparaison |
12484 | which is always false; LOWEST_ADDRESS is 0 and is never greater | |
12485 | than an unsigned integer. | |
12486 | ||
56bac821 | 12487 | * sem_attr.adb (Analyze_Attribute): Remove duplicate identical |
12488 | embedded check for "Ada_Version >= Ada_05". | |
12489 | ||
9c464785 | 12490 | 2007-11-07 Olivier Hainque <hainque@adacore.com> |
12491 | ||
12492 | * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we | |
12493 | craft and expand comment. | |
12494 | ||
8c3d82bd | 12495 | 2007-11-01 Eric Botcazou <ebotcazou@adacore.com> |
12496 | ||
12497 | * lang-specs.h: Move translation of -fRTS= after -gnatez switch. | |
12498 | ||
7410178a | 12499 | 2007-10-23 Eric Botcazou <ebotcazou@adacore.com> |
12500 | ||
12501 | * misc.c (gnat_handle_option): Replace call to abort with | |
12502 | call to gcc_unreachable. | |
12503 | (gnat_init): Likewise. | |
12504 | (gnat_expand_expr): Likewise. | |
12505 | (fp_prec_to_size): Likewise. | |
12506 | (fp_size_to_prec): Likewise. | |
12507 | ||
ce99206b | 12508 | 2007-10-23 Richard Guenther <rguenther@suse.de> |
12509 | ||
12510 | PR bootstrap/33608 | |
12511 | * tracebak.c: #undef abort after including system.h. | |
12512 | ||
8a67bb47 | 12513 | 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net> |
25ad536e | 12514 | |
12515 | * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb, | |
12516 | s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads | |
12517 | for win32 targets. | |
12518 | (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets. | |
12519 | ||
0de0e2ea | 12520 | 2007-10-15 Eric Botcazou <ebotcazou@adacore.com> |
12521 | ||
12522 | * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter. | |
12523 | Set the protection status of the guard page based on the value of On. | |
12524 | ||
12525 | * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter. | |
12526 | ||
12527 | * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone. | |
12528 | (Exit_Task): Pass False to Hide_Yellow_Zone. | |
12529 | ||
12530 | 2007-10-15 Robert Dewar <dewar@adacore.com> | |
12531 | ||
7c066666 | 12532 | * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, |
0de0e2ea | 12533 | s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb, |
7c066666 | 12534 | a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb, |
12535 | checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb, | |
12536 | freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb, | |
12537 | gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb, | |
12538 | mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb, | |
12539 | prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb, | |
12540 | sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb, | |
0de0e2ea | 12541 | s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads, |
7c066666 | 12542 | uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb, |
12543 | a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb, | |
12544 | a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb, | |
12545 | a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb, | |
12546 | a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb, | |
0de0e2ea | 12547 | a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb: |
12548 | Minor reformatting. | |
12549 | Add Unreferenced and Warnings (Off) pragmas for cases of | |
12550 | variables modified calls where they are IN OUT or OUT parameters and | |
12551 | the resulting values are not subsequently referenced. In a few cases, | |
12552 | we also remove redundant code found by the new warnings. | |
12553 | ||
7c066666 | 12554 | * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads, |
0de0e2ea | 12555 | sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb, |
12556 | sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb, | |
12557 | sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new | |
12558 | warning controlled by -gnatw.o that warns on cases of out parameter | |
12559 | values being ignored. | |
12560 | ||
12561 | 2007-10-15 Geert Bosch <bosch@adacore.com> | |
12562 | ||
12563 | * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus. | |
12564 | ||
12565 | * expect.c: Initial port to arm-mentor-nucleus. | |
12566 | Use kill for __gnat_kill() on VMS. | |
12567 | ||
12568 | 2007-10-15 Emmanuel Briot <briot@adacore.com> | |
12569 | ||
12570 | * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default | |
12571 | value. | |
12572 | (Xref_Record): Change type for Line, since in the case of a reference to | |
12573 | a predefined entity (as happens for array index types), the line is set | |
12574 | to 0. | |
12575 | Add support for parsing multiple array index types info, or | |
12576 | multiple inherited interfaces info. This information cannot be stored | |
12577 | in Xref_Entity_Record, which only supports a single instance of Tref_*, | |
12578 | and is therefore stored in the list of references instead. It has a | |
12579 | special treatement later on in tools that use this information. | |
12580 | ||
12581 | 2007-10-15 Tristan Gingold <gingold@adacore.com> | |
12582 | ||
12583 | * debug.adb: Document use of -gnatd.a and -gnatd.I | |
12584 | ||
12585 | * layout.adb: On OpenVMS -gnatd.a disables alignment optimization. | |
12586 | ||
12587 | 2007-10-15 Javier Miranda <miranda@adacore.com> | |
12588 | ||
12589 | * exp_attr.adb (Expand_N_Attribute_Reference): Case Access, | |
12590 | Unchecked_Access, and Unrestricted_Access. Cleanup code that takes | |
12591 | care of access to class-wide interface types plus removal of bizarre | |
12592 | conversion of tagged object to access type (reported by Gary | |
12593 | Dismukes). After this patch there is no need to perform any | |
12594 | additional management on these nodes in Expand_Interface_Actuals. | |
12595 | ||
12596 | * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code | |
12597 | that handles use of 'Access and 'Unchecked_Access applied to | |
12598 | actuals covering interface types. Such code is now | |
12599 | centralized in Expand_N_Attribute_Reference. | |
12600 | ||
12601 | 2007-10-15 Ed Schonberg <schonberg@adacore.com> | |
12602 | ||
12603 | * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization | |
12604 | of tagged types whose ultimate ancestor is a CPP type. | |
12605 | (Freeze_Array_Type): For a packed array type, generate an initialization | |
12606 | procedure if the type is public, to handle properly a client that | |
12607 | specifies Normalize_Scalars. | |
12608 | ||
12609 | 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com> | |
12610 | ||
12611 | * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs | |
12612 | inside a generic body, retrieve the full view of the entry family | |
12613 | discrete subtype if available. | |
12614 | ||
12615 | 2007-10-15 Thomas Quinot <quinot@adacore.com> | |
12616 | ||
12617 | * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not | |
12618 | attempt to generate stubs for hidden primitive operations. | |
12619 | ||
12620 | 2007-10-15 Vincent Celier <celier@adacore.com> | |
12621 | ||
12622 | * mlib-tgt-specific.adb (Support_For_Libraries): New function, | |
12623 | returning None, used when there is no platform specific body for | |
12624 | MLib.Tgt.Specific. | |
12625 | ||
12626 | 2007-10-15 Bob Duff <duff@adacore.com> | |
12627 | ||
12628 | * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A | |
12629 | (passing'Unrestricted_Access of nested subprograms to Sort) with use of | |
12630 | the generic Heap_Sort_G, in order to avoid trampolines. | |
12631 | ||
12632 | 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com> | |
12633 | Jose Ruiz <ruiz@adacore.com> | |
12634 | ||
12635 | * vx_stack_info.c: New file. | |
12636 | ||
12637 | * i-forbla-unimplemented.ads: New file. | |
12638 | ||
12639 | * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads | |
12640 | for unsupported configurations; use it on VMS targets instead of the | |
12641 | real one. | |
12642 | (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include | |
12643 | vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info | |
12644 | used by VxWorks targets to have access to task-specific data and be | |
12645 | able to extract the stack boundaries for stack checking. | |
12646 | Use system-vms-ia64.ads on ivms. | |
12647 | ||
12648 | * Make-lang.in: Update dependencies. | |
12649 | ||
12650 | * sysdep.c (__gnat_get_stack_info): Move to a standalone file | |
12651 | (vx_stack_info.c). | |
12652 | ||
12653 | 2007-10-15 Vincent Celier <celier@adacore.com> | |
12654 | ||
12655 | * snames.adb, snames.ads: Add new standard name runtime_library_dir | |
12656 | ||
12657 | * prj.ads (Language_Config): Add new component Runtime_Library_Dir | |
12658 | ||
12659 | * prj-attr.adb: Add project level attribute Runtime_Library_Dir | |
12660 | ||
12661 | * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of | |
12662 | the source is unknown. | |
12663 | ||
12664 | * prj-ext.adb: Spelling error fix | |
12665 | ||
12666 | * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada | |
12667 | 95 reserved word in its name. | |
12668 | (Process_Project_Level_Array_Attributes): Process new attribute | |
12669 | Runtime_Library_Dir. | |
12670 | ||
12671 | * prj-part.adb (Parse_Single_Project): Do not check the name of the | |
12672 | config project against the user project names. | |
12673 | ||
12674 | * prj-proc.adb (Expression): In multi-language mode, indexes that do | |
12675 | not include a dot are always case insensitive. | |
12676 | (Process_Declarative_Items): Ditto | |
12677 | (Process_Project_Tree_Phase_1): Set Success to False in case an error is | |
12678 | detected. | |
12679 | ||
12680 | * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is | |
12681 | True, compare both indexes in lower case. | |
12682 | ||
12683 | 2007-10-15 Robert Dewar <dewar@adacore.com> | |
12684 | ||
12685 | * rtsfind.adb: (Load_RTU): Turn off style checks for Load call | |
12686 | ||
12687 | 2007-10-15 Gary Dismukes <dismukes@adacore.com> | |
12688 | ||
12689 | * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box | |
12690 | association for an access component, add an association with null as | |
12691 | the expression. Remove testing for array subtypes and the setting in | |
12692 | that case of Ctyp to the array component type, which prevented proper | |
12693 | inclusion of an association for null-initialized arrays. Collapse | |
12694 | condition that tests for array subtypes into just a test of | |
12695 | Is_Partially_Initialized_Type (which already covers arrays anyway). | |
12696 | ||
12697 | 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com> | |
12698 | ||
12699 | * sem_ch12.adb: Minor code reformatting. | |
12700 | (Check_Generic_Child_Unit): Iterate over the homonym chain in order to | |
12701 | find the parent package which may have been hidden by local | |
12702 | declarations. | |
12703 | ||
12704 | 2007-10-15 Gary Dismukes <dismukes@adacore.com> | |
12705 | ||
12706 | * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained | |
12707 | flag of derived concurrent types, taking into account the flag setting | |
12708 | on the parent subtype and any new set of discriminants. | |
12709 | ||
12710 | 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com> | |
12711 | ||
12712 | * sem_ch4.adb: Minor code and comment reformatting. | |
12713 | (Analyze_Allocator): When the designated type of an unconstrained | |
12714 | allocator is a record with unknown discriminants or an array with | |
12715 | unknown range bounds, emit a detailed error message depending on the | |
12716 | compilation mode and whether the designated type is limited. | |
12717 | ||
12718 | 2007-10-15 Tristan Gingold <gingold@adacore.com> | |
12719 | ||
12720 | * system-vms-ia64.ads: New file. | |
12721 | ||
12722 | * system-vms_64.ads: Minor comment fix. | |
12723 | ||
12724 | 2007-10-15 Ed Schonberg <schonberg@adacore.com> | |
12725 | ||
12726 | * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a | |
12727 | body generated for a function with a controlling result that is a null | |
12728 | extension, discard the generated body in favor of the current explicit | |
12729 | one. | |
12730 | ||
12731 | 2007-10-15 Ed Schonberg <schonberg@adacore.com> | |
12732 | ||
12733 | * sem_disp.adb (Find_Controlling_Arg): Examine the call node before | |
12734 | examining its original form, to handle properly operator calls that | |
12735 | have been rewritten. | |
12736 | ||
12737 | 2007-10-15 Olivier Hainque <hainque@adacore.com> | |
12738 | ||
12739 | * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer | |
12740 | instead of a procedure value in each traceback entry. | |
12741 | ||
12742 | * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer | |
12743 | instead of procedure value to TBK$SYMBOLIZE. | |
12744 | ||
12745 | * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper | |
12746 | field. | |
12747 | (TB_Entry_For): Account for the PV/FP renaming. | |
12748 | ||
12749 | * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and | |
12750 | add comment. | |
12751 | (Null_TB_Entry): Account for change of component name. | |
12752 | (PV_For): Rename as FP_For. | |
12753 | ||
12754 | 2007-10-15 Tristan Gingold <gingold@adacore.com> | |
12755 | ||
12756 | * trans.c (gnat_to_gnu): Remove the padding structure more often. | |
12757 | This optimize assignment to over-aligned record. | |
12758 | ||
12759 | 2007-10-15 Emmanuel Briot <briot@adacore.com> | |
12760 | ||
12761 | * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie | |
12762 | interfaces. | |
12763 | ||
12764 | * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference | |
12765 | type, for dispatching calls. | |
12766 | ||
12767 | 2007-10-15 Vincent Celier <celier@adacore.com> | |
12768 | Robert Dewar <dewar@adacore.com> | |
12769 | ||
12770 | * gnat_ugn.texi: Add documentation for switches --version and --help | |
12771 | for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname, | |
12772 | gnatxref, gnatfind, gnatls, and gnatclean. | |
12773 | Document -gnatw.o. | |
12774 | Mention attribute Excluded_Source_Dirs | |
12775 | Replace obsolescent attribute Locally_Removed_Files with attribute | |
12776 | Excluded_Source_Files. | |
12777 | Improve documentation of -u (gnatbind) | |
12778 | Document how to do reliable stack checking for the environmental task | |
12779 | on iVMS. | |
12780 | ||
12781 | * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code. | |
12782 | Document attribute Excluded_Source_Files and indicate that attribute | |
12783 | Locally_Removed_Files is obsolescent. | |
12784 | ||
12785 | 2007-10-15 Thomas Quinot <quinot@adacore.com> | |
12786 | ||
12787 | * g-soccon-vms.ads: Fix value of MSG_WAITALL. | |
12788 | ||
7c066666 | 12789 | * gen-soccon.c: |
0de0e2ea | 12790 | Update documentation to note that OpenVMS 8.3 or later must be used |
12791 | to generate g-soccon-vms.ads. | |
12792 | ||
12793 | * atree.adb: Add ??? comment | |
12794 | ||
12795 | * exp_util.adb: Minor reformatting. | |
12796 | Add ??? comment in Kill_Dead_Code. | |
12797 | ||
12798 | 2007-10-15 Robert Dewar <dewar@adacore.com> | |
12799 | ||
12800 | * errout.ads: Comment clarification | |
12801 | ||
12802 | * exp_ch4.adb (Expand_N_Allocator): Code cleanup. | |
12803 | (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa | |
12804 | ||
12805 | * lib.ads: Comment update | |
12806 | ||
12807 | * init.c: Minor reformatting. | |
12808 | ||
12809 | * sem_attr.adb: Minor formatting | |
12810 | ||
12811 | * osint-b.ads: Minor reformatting | |
12812 | ||
12813 | * sem_ch9.adb: Implement -gnatd.I switch | |
12814 | ||
12815 | * g-comlin.adb: (Start): Fix handling of empty command line. | |
12816 | ||
12817 | * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section, | |
12818 | even when -rules follows the -cargs section. | |
12819 | ||
1b49e7ef | 12820 | 2007-10-08 Ollie Wild <aaw@google.com> |
12821 | ||
12822 | * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with | |
12823 | gnat_return_tree. | |
12824 | (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with | |
12825 | gnat_return_tree. | |
12826 | (gnat_eh_runtime_type): Removed. | |
12827 | (gnat_return_tree): New function. | |
12828 | ||
87672099 | 12829 | 2007-10-08 Ben Elliston <bje@au.ibm.com> |
12830 | ||
12831 | PR ada/33454 | |
12832 | Revert: | |
12833 | 2007-08-31 Ben Elliston <bje@au.ibm.com> | |
12834 | ||
12835 | * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads | |
12836 | when compiling for powerpc64-*-linux. | |
12837 | * system-linux-ppc64.ads: New file. | |
12838 | ||
06c4be77 | 12839 | 2007-09-27 Eric Botcazou <ebotcazou@adacore.com> |
12840 | ||
12841 | Mapped location support | |
12842 | * back_end.adb (Call_Back_End): Pass information about source | |
12843 | files instead of units to gigi. | |
12844 | * gigi.h (struct File_Info_Type): New. | |
12845 | (gigi): Rename and change type of number_units parameter, change | |
12846 | type of file_info_ptr parameter. | |
12847 | * trans.c (number_files): New global variable. | |
12848 | (gigi): Rename and change type of number_units parameter, change | |
12849 | type of file_info_ptr parameter. | |
12850 | If mapped location support is enabled, create the isomorphic mapping | |
12851 | between source files and line maps. | |
12852 | (Sloc_to_locus): If mapped location support is enabled, translate | |
12853 | source location into mapped location. | |
12854 | (annotate_with_node): Rename into set_expr_location_from_node. | |
12855 | Call set_expr_location instead of annotate_with_locus. | |
12856 | (Pragma_to_gnu): Adjust for above change. | |
12857 | (Loop_Statement_to_gnu): Likewise. | |
12858 | (call_to_gnu): Likewise. | |
12859 | (Handled_Sequence_Of_Statements_to_gnu): Likewise. | |
12860 | (gnat_to_gnu): Likewise. | |
12861 | (add_stmt_with_node): Likewise. | |
12862 | (add_cleanup): Likewise. | |
12863 | * utils.c (gnat_init_decl_processing): Do not set input_line. | |
12864 | ||
4e5d22e4 | 12865 | 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com> |
12866 | ||
12867 | * sem_ch8.adb (Analyze_Use_Type): Code cleanup. | |
12868 | (Applicable_Use): Emit a warning when a package tries to use itself. | |
12869 | (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type | |
12870 | is already in use or the package where it is declared is in use or is | |
12871 | declared in the current package. | |
12872 | (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type. | |
12873 | ||
12874 | * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb, | |
12875 | s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb, | |
12876 | s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause. | |
12877 | ||
12878 | 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com> | |
12879 | ||
7c066666 | 12880 | * a-calend-vms.adb, a-calend.adb: |
4e5d22e4 | 12881 | Add a section on leap seconds control along with two entities used to |
12882 | enable and disable leap seconds support. The array Leap_Second_Times is | |
12883 | now constant and contains hard time values pre-generated. Remove | |
12884 | all elaboration code used to populate the table of leap seconds. | |
12885 | ||
7c066666 | 12886 | * bindgen.adb: |
4e5d22e4 | 12887 | Add entity Leap_Seconds_Support to the list of global run-time variables |
12888 | along with a comment on its usage and values. | |
12889 | (Gen_Adainit_Ada): Add code to generate the declaration and import of | |
12890 | Integer variable Leap_Seconds_Support. Set its value to zero (disabled) | |
12891 | or one (enabled) depending on the presence of binder switch "-y". | |
12892 | (Gen_Adainit_C): Add code to generate the declaration of external int | |
12893 | __gl_leap_seconds_support. Set is value to zero (disabled) or one | |
12894 | (enabled) depending on the presence of binder switch "-y". | |
12895 | ||
12896 | * init.c: Add __gl_leap_seconds_support to the list of global values | |
12897 | computed by the binder. | |
12898 | ||
12899 | 2007-09-26 Jerome Guitton <guitton@adacore.com> | |
12900 | ||
12901 | * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb, | |
12902 | s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb, | |
12903 | s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, | |
12904 | s-taprop-posix.adb (Stop_Task): New function, dummy implementation. | |
12905 | ||
12906 | * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function. | |
12907 | ||
12908 | * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time | |
12909 | function which can be called by the debugger to interrupt the tasks of | |
12910 | an Ada application asynchronously, as needed on VxWorks. | |
12911 | (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks. | |
12912 | ||
12913 | * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration, | |
12914 | renamed from Stop_All_Tasks. Update comments. | |
12915 | (Stop_All_tasks): New function declaration. | |
12916 | ||
12917 | 2007-09-26 Olivier Hainque <hainque@adacore.com> | |
12918 | ||
12919 | * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around | |
12920 | #include <utime.h> and #define GCC_RESOURCE_H before | |
12921 | #include <sys/wait.h>. | |
12922 | Add more protections in __gnat_translate_vms. | |
12923 | ||
12924 | * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before | |
12925 | #include <sys/wait.h>. | |
12926 | ||
12927 | 2007-09-26 Thomas Quinot <quinot@adacore.com> | |
12928 | Sergey Rybin <rybin@adacore.com> | |
12929 | ||
12930 | * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed. | |
12931 | ||
12932 | * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist, | |
12933 | where it belongs. | |
12934 | ||
12935 | * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO. | |
12936 | ||
12937 | * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist, | |
12938 | where it belongs. | |
12939 | ||
12940 | * sem_dist.ads: Minor comment fix | |
12941 | ||
12942 | * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO. | |
12943 | ||
12944 | 2007-09-26 Javier Miranda <miranda@adacore.com> | |
12945 | Eric Botcazou <ebotcazou@adacore.com> | |
12946 | ||
7c066666 | 12947 | * a-tags.adb: |
4e5d22e4 | 12948 | (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of |
12949 | indirection added to the HT_Link component of the TSD. This is required | |
12950 | to statically allocate the TSD. | |
12951 | ||
7c066666 | 12952 | * a-tags.ads: |
4e5d22e4 | 12953 | Minor reordering of the declarations in the private part. Required to |
12954 | add a level of indirection to the contents of the TSD component HT_Link. | |
12955 | This is required to statically allocate the TSD. | |
12956 | ||
12957 | * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with | |
12958 | Is_Statically_Allocated set from constant objects. | |
12959 | Do not make exported constants created by the compiler volatile. | |
12960 | (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken | |
12961 | as read-only. | |
12962 | ||
12963 | * trans.c (Identifier_to_gnu): For constants, unshare initializers | |
12964 | before returning them. | |
12965 | ||
12966 | * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the | |
12967 | public part of the package. | |
12968 | (Make_DT): Move HT_Link component out of the TSD record. For this | |
12969 | purpose Make_DT now declares a separate object that stores the | |
12970 | HT_Link value, and initializes the TSD component with the address | |
12971 | of this new object. The addition of this level of indirection is | |
12972 | required to statically allocate the TSD because the TSD cannot | |
12973 | have variable components. | |
12974 | (Expand_Interface_Conversion): Improve the expanded code. | |
12975 | (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity. | |
12976 | ||
12977 | * sem_disp.adb (Check_Dispatching_Operation): In case of a body | |
12978 | declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---, | |
12979 | if we are building static dispatch tables then we must not generate | |
12980 | extra code to register the primitive because the dispatch table will | |
12981 | be built at the end of the library package; otherwise we notify that | |
12982 | we cannot build the static dispatch table. | |
12983 | ||
12984 | 2007-09-26 Robert Dewar <dewar@adacore.com> | |
12985 | ||
12986 | * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address | |
12987 | overlays. | |
12988 | ||
12989 | * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays | |
12990 | (Analyze_Record_Representation_Clause): Suppress junk warning for | |
12991 | missing component clause. | |
12992 | (Analyze_Attribute_Definition_Clause, case Address): Apply the special | |
12993 | tests for controlled type overlay to composites with controlled | |
12994 | components. | |
12995 | (Analyze_Record_Representation_Clause): Add reference for component name | |
12996 | ||
12997 | 2007-09-26 Javier Miranda <miranda@adacore.com> | |
12998 | Gary Dismukes <dismukes@adacore.com> | |
12999 | ||
13000 | * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True | |
13001 | for thunks associated with interface types. | |
13002 | ||
13003 | * einfo.ads: Improve documentatation of Is_Internal | |
13004 | (Is_Thunk): New attribute applicable to subprograms. True for thunks | |
13005 | associated with interface types. | |
13006 | Extensive comment fixes regarding flags that appear in all entities. The | |
13007 | documentation is now consistent for all such flags (there were a number | |
13008 | of errors in the documentation in this regard). | |
13009 | ||
13010 | * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup. | |
13011 | ||
13012 | * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any | |
13013 | of these procedures are passed a function call that already has | |
13014 | build-in-place actuals (testing new flag | |
13015 | Is_Expanded_Build_In_Place_Call). Set the flag on the function call in | |
13016 | the case where processing continues. | |
13017 | (Expand_Call): If the call is generated from a thunk body then we | |
13018 | propagate the extra actuals associated with the accessibility | |
13019 | level of the access type actuals. | |
13020 | ||
13021 | * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field | |
13022 | of each extra formal of a protected operation to reference the | |
13023 | corresponding extra formal of the subprogram denoted by the | |
13024 | operation's Protected_Body_Subprogram. | |
7c066666 | 13025 | |
4e5d22e4 | 13026 | * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on |
13027 | N_Function_Call nodes. | |
13028 | ||
13029 | 2007-09-26 Robert Dewar <dewar@adacore.com> | |
13030 | ||
13031 | * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set | |
13032 | ||
13033 | * debug.adb: Add d.s flag. | |
13034 | ||
13035 | 2007-09-26 Gary Dismukes <dismukes@adacore.com> | |
13036 | ||
13037 | * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the | |
13038 | debug variable so that it won't be initialized when pragma | |
13039 | Initialize_Scalars is in effect. | |
13040 | ||
13041 | 2007-09-26 Gary Dismukes <dismukes@adacore.com> | |
13042 | ||
13043 | * freeze.adb (Freeze_Entity): Remove check for preelaborable | |
13044 | initialization of a full view. This is moved to | |
13045 | Analyze_Package_Specification. | |
13046 | ||
13047 | * sem_ch7.adb (Analyze_Package_Specification): Add check for | |
13048 | preelaborable initialization of a full view in entity loop. | |
13049 | (Uninstall_Declarations): If entity is a use-visible compilation unit, | |
13050 | its child units are use-visible only if they are visible child units. | |
13051 | ||
13052 | * sem_util.adb (Is_Preelaborable_Expression): New function to determine | |
13053 | whether an expression can be used within a type declaration that | |
13054 | requires preelaborable init. | |
13055 | (Check_Components): Replace inline code that does partial checking for | |
13056 | preelaborable default expressions with call to | |
13057 | Is_Preelaborable_Expression. | |
13058 | (Has_Preelaborable_Initialization): In the case of a generic actual | |
13059 | subtype, (that is, Is_Generic_Actual is True), return the result of | |
13060 | applying Has_Preelaborable_Initialization to the generic actual's base | |
13061 | type. | |
13062 | ||
13063 | 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com> | |
13064 | ||
13065 | * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a | |
13066 | call to Jan_1_Day _Of_Week to optimize its performance. | |
13067 | (Is_Leap): Move the routine to the scope of Week_In_Year. | |
13068 | (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the | |
13069 | weekday on which January 1 falls of Year - 1 and Year + 1. This function | |
13070 | avoids calling Time_Of and Split, thus making it more efficent. | |
13071 | (Week_In_Year): Reimplemented in oder to follow ISO 8601. | |
13072 | ||
13073 | * g-calend.ads (Week_In_Year): Change comment to reflect new | |
13074 | implementation. | |
13075 | ||
13076 | 2007-09-26 Emmanuel Briot <briot@adacore.com> | |
13077 | ||
13078 | * g-comlin.ads, g-comlin.adb (Command_Line_Configuration, | |
13079 | Command_Line): New types | |
13080 | (Define_Alias, Define_Prefix, Free): New subprograms. These provide | |
13081 | support for defining how switches can be grouped on a command line (as | |
13082 | is the case for -gnatw... for GNAT), and how simple switches can be | |
13083 | used as aliases for more complex switches (-gnatwa is same as | |
13084 | -gnatwbcef...) | |
13085 | (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram | |
13086 | (Start, Current_*): New subprograms | |
13087 | Added support for parsing an array of strings in addition to the real | |
13088 | command line. | |
13089 | (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to | |
13090 | be moved from the body to the private part of the spec. | |
13091 | (*): All subprograms now have an extra parameter with default value to | |
13092 | specify which parser should be used. For backward compatibility, it | |
13093 | defaults to parsing the command line of the application. They were also | |
13094 | modified to properly handle cases where each of the argument does not | |
13095 | start at index 1 (which is always true for Ada.Command_Line, but not | |
13096 | when processing any Argument_List). | |
13097 | (Free): New subprogram | |
13098 | (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch, | |
13099 | Argument): New subprograms | |
13100 | (Switch_Parameter_Type): New enum, which clarifies the code. The extra | |
13101 | special characters like ':', '=',... are now handled in a single place, | |
13102 | which makes the code more extensible eventually. | |
13103 | (Getopt, Full_Switch): When the switch was returned as part of the | |
13104 | special character '*', make sure it is prepended by the switch character | |
13105 | ('-' in general), so that the application knows whether "foo" or "-foo" | |
13106 | was specified on the command line. | |
13107 | ||
13108 | 2007-09-26 Florian Villoing <villoing@adacore.com> | |
13109 | ||
13110 | * g-dirope.adb (Remove_Dir): In case we are removing directories | |
13111 | recursively, make sure that if an exception is raised during the | |
13112 | processing, the current working directory is reset to its initial | |
13113 | value before propagating the exception. | |
13114 | ||
13115 | 2007-09-26 Vincent Celier <celier@adacore.com> | |
13116 | ||
13117 | * gnatbind.adb: If there are several ALI files specified and there is | |
13118 | a main program to bind, the first ALI is expected to contain the main | |
13119 | subprogram and the names of the binder generated files will be derived | |
13120 | from the first ALI file name. | |
13121 | (Gnatbind): Fix insertion character in invocation of Error_Msg | |
13122 | ||
13123 | 2007-09-26 Vincent Celier <celier@adacore.com> | |
13124 | ||
13125 | * gnatcmd.adb (Check_Files): Do not include sources that have been | |
13126 | removed by attributes Exclude_Source_Files or Locally_Removed_Files. | |
13127 | ||
13128 | 2007-09-26 Ed Schonberg <schonberg@adacore.com> | |
13129 | ||
13130 | * lib-xref.ads, lib-xref.adb: The entry for array types now carries | |
13131 | information about each of its index types, following the type | |
13132 | reference for its component type. | |
13133 | ||
13134 | 2007-09-26 Vincent Celier <celier@adacore.com> | |
13135 | ||
13136 | * make.adb: (Kill): New procedure (__gnat_kill imported) | |
13137 | (Running_Compile, Outstanding_Compiles): Global variables that | |
13138 | were previously local to procedure Compile_Sources. | |
13139 | (Sigint_Intercepted): Send signal SIGINT to all outstanding | |
13140 | compilation processes. | |
13141 | ||
13142 | (Gnatmake): If project files are used, create the mapping of all the | |
13143 | sources, so that the correct paths will be found. | |
13144 | ||
13145 | * prj-env.ads, prj-env.adb (Create_Mapping): New procedure | |
13146 | ||
13147 | 2007-09-26 Vincent Celier <celier@adacore.com> | |
13148 | ||
13149 | * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads | |
13150 | ||
13151 | * prj.ads, prj.adb (Default_Language): Remove function, no longer used | |
13152 | Replace components Compiler_Min_Options and Binder_Min_Options with | |
13153 | Compiler_Required_Switches and Binder_Required_Switches in record | |
13154 | Language_Config. | |
13155 | Remove components Default_Language and Config in Project_Tree_Data, | |
13156 | no longer used. | |
13157 | ||
13158 | * prj-attr.adb: New attributes Required_Switches (<language>) in | |
13159 | packages Compiler and Binder. | |
13160 | ||
13161 | * prj-nmsc.adb: Major rewrite of the processing of configuration | |
13162 | attributes for gprbuild. No impact on GNAT tools. | |
13163 | ||
13164 | * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer | |
13165 | process configuration attributes: this is done in Prj.Nmsc.Check. | |
13166 | (Recursive_Process): Make a full copy of packages inherited from project | |
13167 | being extended, instead of a shallow copy. | |
13168 | (Process_Project_Tree_Phase_1): New procedure | |
13169 | (Process_Project_Tree_Phase_1): New procedure | |
13170 | (Process): Implementation now uses the two new procedures | |
13171 | ||
13172 | * prj-util.adb (Executable_Of): Get the suffix and the default suffix | |
13173 | from the project config, not the tree config that no longer exists. | |
13174 | ||
13175 | 2007-09-26 Vincent Celier <celier@adacore.com> | |
13176 | ||
13177 | * Make-lang.in: Update dependencies.. | |
13178 | ||
13179 | 2007-09-26 Vincent Celier <celier@adacore.com> | |
13180 | ||
13181 | * osint.adb, osint.ads: Minor reformatting | |
13182 | ||
13183 | * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure | |
13184 | ||
13185 | 2007-09-26 Gary Dismukes <dismukes@adacore.com> | |
13186 | ||
13187 | * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95 | |
13188 | message to cite use of <> in aggregate component associations rather | |
13189 | than wrongly indicating use of limited aggregates. | |
13190 | ||
13191 | 2007-09-26 Robert Dewar <dewar@adacore.com> | |
13192 | ||
13193 | * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of | |
13194 | Address_Taken. | |
13195 | ||
13196 | 2007-09-26 Ed Schonberg <schonberg@adacore.com> | |
13197 | ||
13198 | * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct | |
13199 | ancestor of the derived type, the operations are inherited from the | |
13200 | primary dispatch table of the parent. | |
13201 | (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls | |
13202 | when the context is an explicit type conversion. | |
13203 | ||
13204 | 2007-09-26 Ed Schonberg <schonberg@adacore.com> | |
13205 | ||
13206 | * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution | |
13207 | rule for qualified expressions properly, to detect improper conversions | |
13208 | and resolve some cases of overloading. | |
13209 | ||
13210 | 2007-09-26 Ed Schonberg <schonberg@adacore.com> | |
13211 | ||
13212 | * sem_res.adb (Resolve_Call): If the call is dispatching, generate the | |
13213 | proper kind of reference to the primitive operation, for better source | |
13214 | navigation. | |
13215 | (Valid_Conversion): A tagged conversion is legal if both operands are | |
13216 | tagged. | |
13217 | ||
13218 | 2007-09-26 Robert Dewar <dewar@adacore.com> | |
13219 | ||
13220 | * sem_warn.adb (Check_References): Catch more cases of unreferenced | |
13221 | packages. | |
13222 | ||
13223 | 2007-09-26 Vincent Celier <celier@adacore.com> | |
13224 | ||
13225 | * snames.adb, snames.ads: Change Include_Option to Include_Switches | |
13226 | ||
13227 | 2007-09-26 Robert Dewar <dewar@adacore.com> | |
13228 | ||
13229 | * s-wchstw.adb: provide messages for run time unit exceptions | |
13230 | ||
13231 | * a-witeio.adb: Minor reformatting | |
13232 | ||
13233 | * exp_ch13.adb: Minor reformatting | |
13234 | ||
13235 | 2007-09-26 Sergey Rybin <rybin@adacore.com> | |
13236 | ||
13237 | * vms_data.ads: Revise gnatmetric qualifiers. | |
13238 | Add qualified for the new gnatbind option '-y' | |
13239 | ||
13240 | * gnat_ugn.texi: Revise the gnatmetric section. | |
13241 | Add entry for new gnatbind option '-y'. | |
13242 | ||
13243 | * gnat_rm.texi: Minor spelling correction. | |
13244 | Document restriction on overlaying controlled types | |
13245 | ||
13246 | 2007-09-26 Vincent Celier <celier@adacore.com> | |
13247 | ||
13248 | * makegpr.adb (Link_Executables): Do not fail when the root project has | |
13249 | no sources, but is an extending project. | |
13250 | ||
1bf8ce45 | 13251 | 2007-09-25 Eric Botcazou <ebotcazou@adacore.com> |
13252 | ||
13253 | * trans.c: Fix misplaced #define. | |
13254 | ||
c26dea60 | 13255 | 2007-09-22 Eric Botcazou <ebotcazou@adacore.com> |
13256 | ||
13257 | * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate | |
13258 | the TYPE_REF_CAN_ALIAS_ALL flag to the result. | |
13259 | ||
a5ea09f3 | 13260 | 2007-09-21 Olivier Hainque <hainque@adacore.com> |
13261 | ||
13262 | * utils.c (type_for_nonaliased_component_p): Return false for | |
13263 | all AGGREGATE_TYPEs. | |
13264 | ||
eb7beb64 | 13265 | 2007-09-17 Eric Botcazou <ebotcazou@adacore.com> |
13266 | ||
13267 | * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an | |
13268 | object covered by 13.3(19) volatile. | |
13269 | ||
ba2722dc | 13270 | 2007-09-12 Eric Botcazou <ebotcazou@adacore.com> |
13271 | ||
13272 | PR ada/26797 | |
13273 | PR ada/32407 | |
13274 | * utils.c (unchecked_convert): Use a subtype as the intermediate type | |
13275 | in the special VIEW_CONVERT_EXPR case. | |
13276 | ||
fa704b57 | 13277 | 2007-09-12 Robert Dewar <dewar@adacore.com> |
13278 | ||
13279 | * types.ads, a-charac.ads, freeze.adb: Minor reformatting. | |
13280 | ||
13281 | * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads, | |
13282 | lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb, | |
13283 | s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb, | |
13284 | s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb, | |
13285 | s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb, | |
13286 | s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb, | |
13287 | s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb, | |
d814b0fa | 13288 | s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb, |
7c066666 | 13289 | a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads, |
13290 | g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads, | |
13291 | s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb, | |
13292 | s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb, | |
13293 | snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads, | |
13294 | s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads, | |
13295 | s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads, | |
13296 | s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads, | |
fa704b57 | 13297 | s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement |
13298 | pragma Compiler_Unit and adds it to relevant library units. | |
13299 | ||
13300 | 2007-09-12 Ed Schonberg <schonberg@adacore.com> | |
13301 | ||
13302 | * sem_aggr.adb (Resolve_Record_Aggregate): An others association with | |
13303 | a box need not correspond to any component. | |
13304 | ||
13305 | 2007-09-12 Robert Dewar <dewar@adacore.com> | |
13306 | ||
13307 | * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading | |
13308 | the tasking version of the Ada run time when foreign threads are | |
13309 | present and there are no explicit Ada tasks or tasking constructs. | |
13310 | ||
13311 | * gnat_rm.texi: Clarify documentation of GNAT.Threads. | |
13312 | ||
13313 | 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com> | |
13314 | ||
13315 | * bindusg.adb (Display): Correct comment for switch -X. Add a line for | |
13316 | the usage of switch -y. | |
13317 | ||
13318 | * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support | |
13319 | when switch -y is present. | |
13320 | ||
13321 | * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable | |
13322 | leap seconds in Ada.Calendar and its children. | |
13323 | ||
13324 | 2007-09-12 Jose Ruiz <ruiz@adacore.com> | |
13325 | ||
13326 | * a-extiti.ads (Timer): The discriminant is a "not null access | |
13327 | constant" in the Reference Manual. | |
13328 | (Cancel_Handler): Cancelled is an out parameter in the Reference Manual. | |
13329 | ||
13330 | 2007-09-12 Robert Dewar <dewar@adacore.com> | |
13331 | ||
13332 | * a-swuwha.adb: Remove junk RM header | |
13333 | ||
13334 | 2007-09-12 Vincent Celier <celier@adacore.com> | |
13335 | ||
13336 | * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode | |
13337 | indicator | |
13338 | ||
13339 | * g-bytswa.ads: Minor reformatting | |
13340 | ||
13341 | 2007-09-12 Thomas Quinot <quinot@adacore.com> | |
13342 | ||
7c066666 | 13343 | * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads: |
fa704b57 | 13344 | Add new constant Thread_Blocking_IO, always True by default, set False |
13345 | on a per-runtime basis. | |
13346 | (Need_Netdb_Buffer): New constant. | |
13347 | ||
13348 | 2007-09-12 Arnaud Charlet <charlet@adacore.com> | |
13349 | ||
13350 | * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id): | |
13351 | Added renames for corresponding functions in System.Partition_Interface. | |
13352 | ||
13353 | 2007-09-12 Doug Rupp <rupp@adacore.com> | |
13354 | ||
13355 | * Makefile.in: Remove VMS specific System.CRTL packages which are no | |
13356 | longer needed. | |
13357 | ||
13358 | * s-crtl-vms64.ads: Removed. | |
13359 | ||
fe507ab1 | 13360 | 2007-09-12 Olivier Hainque <hainque@adacore.com> |
13361 | ||
13362 | * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype | |
13363 | with discriminant constraints, generalize the code for BIT_FIELDs | |
13364 | to PACKED fields of constant size and propagate DECL_PACKED. | |
13365 | ||
9ba1ed5a | 13366 | 2007-09-11 Eric Botcazou <ebotcazou@adacore.com> |
13367 | ||
13368 | * decl.c (array_type_has_nonaliased_component): New predicate. | |
13369 | (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to | |
13370 | set the TYPE_NONALIASED_COMPONENT flag on the type. | |
13371 | <E_Array_Subtype>: Likewise. | |
13372 | * gigi.h (type_for_nonaliased_component_p): Declare. | |
13373 | * utils.c (type_for_nonaliased_component_p): New predicate. | |
13374 | (create_field_decl): Invoke the above predicate to set the | |
13375 | DECL_NONADDRESSABLE_P flag on the field. | |
13376 | ||
24971415 | 13377 | 2007-09-11 Javier Miranda <miranda@adacore.com> |
13378 | ||
13379 | * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present | |
13380 | in library level record type entities if we are generating statically | |
13381 | allocated dispatch tables. | |
13382 | ||
13383 | * exp_disp.adb (Make_Tags/Make_DT): Replace previous code | |
13384 | importing/exporting the _tag declaration by new code | |
13385 | importing/exporting the dispatch table wrapper. This change allows us | |
13386 | to statically allocate of the TSD. | |
13387 | (Make_DT.Export_DT): New procedure. | |
13388 | (Build_Static_DT): New function. | |
13389 | (Has_DT): New function. | |
13390 | ||
13391 | * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags | |
13392 | True_Constant and Current_Value. Required to statically | |
13393 | allocate the dispatch tables. | |
13394 | (Check_Allocator): Make function iterative instead of recursive. | |
13395 | Also return inner allocator node, when present, so that we do not have | |
13396 | to look for that node again in the caller. | |
13397 | ||
8a67bb47 | 13398 | 2007-09-11 Jan Hubicka <jh@suse.cz> |
84e10000 | 13399 | |
13400 | * misc.c (gnat_expand_body): Kill. | |
13401 | (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill. | |
13402 | ||
d0cd0d10 | 13403 | 2007-09-10 Robert Dewar <dewar@adacore.com> |
13404 | ||
13405 | * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb, | |
13406 | mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb, | |
13407 | mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, | |
13408 | mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads, | |
13409 | ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads, | |
13410 | bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads, | |
13411 | bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb, | |
13412 | butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb, | |
13413 | comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads, | |
13414 | elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads, | |
13415 | err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb, | |
13416 | exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads, | |
13417 | exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb, | |
13418 | exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb, | |
13419 | exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads, | |
13420 | exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb, | |
13421 | exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads, | |
13422 | exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads, | |
13423 | exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb, | |
13424 | exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb, | |
13425 | exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads, | |
13426 | exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb, | |
13427 | fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads, | |
13428 | get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb, | |
13429 | gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb, | |
13430 | gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads, | |
13431 | gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads, | |
13432 | gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads, | |
13433 | gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, | |
13434 | gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads, | |
13435 | inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads, | |
13436 | lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb, | |
13437 | lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads, | |
13438 | make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads, | |
13439 | mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, | |
13440 | mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads, | |
13441 | mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb, | |
13442 | mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt, | |
13443 | osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb, | |
13444 | osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads, | |
13445 | par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb, | |
13446 | par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb, | |
13447 | par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb, | |
13448 | par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb, | |
13449 | par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads, | |
13450 | prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads, | |
13451 | prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb, | |
13452 | prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads, | |
13453 | prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads, | |
13454 | prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads, | |
13455 | prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads, | |
13456 | prj-util.adb, prj-util.ads, restrict.adb, restrict.ads, | |
13457 | rtsfind.adb, rtsfind.ads, scn.adb, scn.ads, | |
13458 | scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb, | |
13459 | sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb, | |
13460 | sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb, | |
13461 | sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads, | |
13462 | sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads, | |
13463 | sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, | |
13464 | sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads, | |
13465 | sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb, | |
13466 | sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads, | |
13467 | sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb, | |
13468 | sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads, | |
13469 | sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, | |
13470 | sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb, | |
13471 | sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads, | |
13472 | sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads, | |
13473 | stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb, | |
13474 | styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads, | |
13475 | switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb, | |
13476 | switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb, | |
13477 | tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads, | |
13478 | treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads, | |
13479 | types.h, uintp.h, urealp.h, usage.adb, usage.ads, | |
13480 | validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb, | |
13481 | xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb, | |
13482 | xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb, | |
13483 | gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb, | |
13484 | mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb, | |
13485 | symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb, | |
13486 | mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb, | |
13487 | mlib-tgt-vms.ads: Replace headers with GPL v3 headers. | |
13488 | ||
13489 | 2007-09-10 Emmanuel Briot <briot@adacore.com> | |
13490 | ||
13491 | * s-regpat.adb (Parse_Character_Class): Fix handling of empty character | |
13492 | classes ("[]"). | |
13493 | ||
13494 | 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com> | |
13495 | ||
13496 | * adaint.c (__gnat_translate_vms): new function. | |
13497 | ||
13498 | 2007-09-10 Gary Dismukes <dismukes@adacore.com> | |
13499 | Thomas Quinot <quinot@adacore.com> | |
13500 | ||
13501 | * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only | |
13502 | create an abstract subprogram in the case of 'Input. For 'Output we now | |
13503 | create a real spec/body when the type is abstract, since it can | |
13504 | potentially be called. | |
13505 | (Predefined_Primitive_Bodies): Now allow the creation of a predefined | |
13506 | body for 'Output when the type is abstract (only the creation of the | |
13507 | body for 'Input is excluded when the type is abstract). | |
13508 | (Stream_Operation_OK): Add an additional condition in the return | |
13509 | statement, so that False will be returned for TTS_Stream_Input if the | |
13510 | associated tagged type is an abstract extension. Add comments for | |
13511 | return statement. | |
13512 | (Expand_N_Object_Declaration): For the case of a shared passive | |
13513 | variable, insert init proc call only after the shared variable | |
13514 | procedures have been processed, because the IP call needs to undergo | |
13515 | shared passive variable reference expansion, which requires these | |
13516 | procedures to be available (and elaborated). | |
13517 | ||
13518 | 2007-09-10 Vincent Celier <celier@adacore.com> | |
13519 | ||
13520 | * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove | |
13521 | parameter Runtime_Project. | |
13522 | ||
13523 | 2007-09-10 Ed Schonberg <schonberg@adacore.com> | |
13524 | ||
13525 | * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is | |
13526 | given a box association, the type of the component is discriminated, | |
13527 | and the value of the discriminant is the discriminant of the enclosing | |
13528 | type, retrieve its value from the aggregate itself, where it must have | |
13529 | been supplied. | |
13530 | ||
13531 | * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix, | |
13532 | to remove other spurious ambiguities on arithmetic operations involving | |
13533 | literals and addresses, on systems where Address is a visible integer | |
13534 | type, when the operator is called in functional notation. | |
13535 | (Try_Primitive_Operation): Within an instance, a call in prefixed form | |
13536 | is legal when the types match, even if the operation is currently | |
13537 | hidden. | |
13538 | ||
13539 | 2007-09-10 Ed Schonberg <schonberg@adacore.com> | |
13540 | ||
13541 | * sem_ch12.adb (Build_Local_Package): A formal package with no | |
13542 | associations is legal if all formals have defaults. It is not | |
13543 | equivalent to a formal declared with a box. | |
13544 | ||
13545 | 2007-09-10 Sergey Rybin <rybin@adacore.com> | |
13546 | ||
13547 | * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option | |
13548 | ||
13549 | 2007-09-10 Sergey Rybin <rybin@adacore.com> | |
13550 | ||
13551 | * gnat_ugn.texi: Add description of the new '-lratio' option | |
13552 | Update 7.3.1 section about availability of the feature. | |
13553 | ||
13554 | 2007-09-10 Thomas Quinot <quinot@adacore.com> | |
13555 | ||
13556 | * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last | |
13557 | inserted node. | |
13558 | ||
13559 | 2007-09-10 Olivier Hainque <hainque@adacore.com> | |
13560 | ||
13561 | * Makefile.in: (mips-irix section): Activate build of libgmem. | |
13562 | ||
dbabd768 | 13563 | 2007-09-10 Eric Botcazou <ebotcazou@adacore.com> |
13564 | ||
13565 | * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber | |
13566 | x87 registers. | |
13567 | ||
794a1c73 | 13568 | 2007-09-10 Eric Botcazou <ebotcazou@adacore.com> |
13569 | ||
13570 | * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for | |
13571 | a debug renaming declaration specially. | |
13572 | ||
4ec180c2 | 13573 | 2007-09-08 Eric Botcazou <ebotcazou@adacore.com> |
13574 | ||
13575 | * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under | |
13576 | which a constant renaming is treated as a normal object declaration. | |
13577 | * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from | |
13578 | the N_Indexed_Component case. | |
13579 | <N_Indexed_Component>: Fall through to above case. | |
13580 | <N_Object_Renaming_Declaration>: Return true for all composite types. | |
13581 | ||
aeb7e52f | 13582 | 2007-09-08 Eric Botcazou <ebotcazou@adacore.com> |
13583 | ||
13584 | * decl.c (make_packable_type): If the new type has been given BLKmode, | |
13585 | try again to get an integral mode for it. | |
13586 | ||
840452b5 | 13587 | 2007-09-07 Eric Botcazou <ebotcazou@adacore.com> |
4e6322c5 | 13588 | |
840452b5 | 13589 | Re-apply accidentally reverted change: |
4e6322c5 | 13590 | |
840452b5 | 13591 | 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com> |
4e6322c5 | 13592 | |
840452b5 | 13593 | * raise-gcc.c (get_region_description_for, get_call_site_action_for, |
7c066666 | 13594 | get_action_description_for): Replace _Unwind_Word with _uleb128_t |
840452b5 | 13595 | and _Unwind_SWord with _sleb128_t. |
551f2862 | 13596 | |
022beff2 | 13597 | 2007-09-06 Eric Botcazou <ebotcazou@adacore.com> |
13598 | ||
13599 | * trans.c (convert_with_check): Update call to real_2expN. | |
13600 | ||
87d4aa85 | 13601 | 2007-09-05 Sandra Loosemore <sandra@codesourcery.com> |
13602 | ||
13603 | * trans.c (Compilation_unit_to_gnu): Use set_cfun. | |
13604 | * utils.c (end_subprog_body): Likewise. | |
13605 | ||
742b2f1a | 13606 | 2007-09-03 Nick Clifton <nickc@redhat.com> |
13607 | ||
13608 | * Make-lang.in: Change copyright header to refer to version 3 of | |
13609 | the GNU General Public License and to point readers at the | |
13610 | COPYING3 file and the FSF's license web page. | |
13611 | * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c, | |
13612 | Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h, | |
13613 | namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h, | |
13614 | treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c: | |
13615 | Likewise. | |
13616 | ||
98fccce5 | 13617 | 2007-08-31 Vincent Celier <celier@adacore.com> |
13618 | ||
13619 | PR ada/4720 | |
13620 | ||
7c066666 | 13621 | * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb, |
98fccce5 | 13622 | gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb |
13623 | (Check_Version_And_Help): New procedure in package Switch to process | |
13624 | switches --version and --help. | |
13625 | Use Check_Version_And_Help in GNAT tools | |
13626 | ||
13627 | * make.adb: Ditto. | |
13628 | (Compile_Sources): Make sure that sources that are "excluded" are not | |
13629 | compiled. | |
13630 | (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a | |
13631 | project file is used. | |
13632 | (Version_Switch): Remove, moved to Switch | |
13633 | (Help_Switch): Remove, moved to Switch | |
13634 | (Display_Version): Remove, moved to Switch | |
13635 | ||
13636 | * switch.ads, switch.adb (Check_Version_And_Help): New procedure in | |
13637 | package Switch to process switches --version and --help. | |
13638 | (Display_Version): New procedure | |
13639 | ||
13640 | * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function. | |
13641 | ||
13642 | 2007-08-31 Javier Miranda <miranda@adacore.com> | |
13643 | ||
13644 | * a-tags.adb (Internal_Tag): Protect the run-time against wrong | |
13645 | internal tags. | |
13646 | ||
13647 | 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com> | |
13648 | ||
13649 | * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine. | |
13650 | (Mark_Non_Null): If the node for which we just generated an access check | |
13651 | is a reference to an *in* parameter and the reference appears in the | |
13652 | declarative part of a subprogram body, mark the node as known non null. | |
13653 | ||
13654 | 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com> | |
13655 | ||
13656 | * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the | |
13657 | structure of E_Exception to reflect the new flag. | |
13658 | (Is_Raised, Set_Is_Raised): New inlined routines. | |
13659 | Update the usage of available flag to reflect the addition of Is_Raised. | |
13660 | (Is_Raised, Set_Is_Raised): Bodies of new routines. | |
13661 | (Write_Entity_Flags): Write the status of flag Is_Raised. | |
13662 | (Is_Descendent_Of_Address): New entity flag, to simplify handling of | |
13663 | spurious ambiguities when integer literals appear in the context of an | |
13664 | address type that is a visible integer type. | |
13665 | ||
13666 | * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local | |
13667 | exceptions never being raised. | |
13668 | (Analyze_Raise_Statement): When analyzing an exception, mark it as being | |
13669 | explicitly raised. | |
13670 | ||
13671 | 2007-08-31 Javier Miranda <miranda@adacore.com> | |
13672 | ||
13673 | * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise | |
13674 | statement when compiling under restriction No_Exceptions_Proparation. | |
13675 | ||
13676 | 2007-08-31 Ed Schonberg <schonberg@adacore.com> | |
13677 | ||
13678 | * exp_ch3.adb (Build_Record_Init_Proc): If there is a static | |
13679 | initialization aggregate for the type, generate itype references for | |
13680 | thetypes of its (sub)components, to prevent out-of-scope errors in gigi. | |
13681 | ||
13682 | 2007-08-31 Gary Dismukes <dismukes@adacore.com> | |
13683 | ||
13684 | * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a | |
13685 | library-level package renaming, pass the declaration associated with | |
13686 | the renaming's special debug variable to Qualify_Entity_Names to ensure | |
13687 | that its encoded name is properly qualified. | |
13688 | ||
13689 | * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity | |
13690 | occurring in the list of entities to qualify, and do not attempt to | |
13691 | traverse an entity list in that case. Variables associated with | |
13692 | ` library-level package renamings can now occur in the table. | |
13693 | ||
13694 | * exp_dbug.ads: Revise documentation of the encoding for renaming | |
13695 | declarations. | |
13696 | ||
13697 | 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
13698 | ||
13699 | * layout.adb (Layout_Type): Use Underlying_Type to determine whether an | |
13700 | access type points to an unconstrained array. | |
13701 | ||
13702 | 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com> | |
13703 | ||
7c066666 | 13704 | * restrict.adb, namet.adb, par-util.adb: Remove redundant type |
98fccce5 | 13705 | conversion. |
13706 | ||
13707 | * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect | |
13708 | simple redundant qualifications. The check is performed whenever the | |
13709 | expression is a non-overloaded identifier. | |
13710 | (Resolve_Type_Conversion): Enchance the redundant type conversion check | |
13711 | to include loop parameters. | |
13712 | (Valid_Conversion): Avoid generation of spurious error message. | |
13713 | ||
13714 | 2007-08-31 Bob Duff <duff@adacore.com> | |
13715 | ||
13716 | * par-ch4.adb (P_Simple_Expression): Fold long sequences of | |
13717 | concatenations of string literals into a single literal, in order to | |
13718 | avoid very deep recursion in the front end, which was causing stack | |
13719 | overflow. | |
13720 | ||
13721 | * sem_eval.adb (Eval_Concatenation): If the left operand is the empty | |
13722 | string, and the right operand is a string literal (the case of "" & | |
13723 | "..."), optimize by avoiding copying the right operand -- just use the | |
13724 | value of the right operand directly. | |
13725 | ||
13726 | * stringt.adb (Store_String_Chars): Optimize by growing the | |
13727 | String_Chars table all at once, rather than appending characters one by | |
13728 | one. | |
13729 | (Write_String_Table_Entry): If the string to be printed is very long, | |
13730 | just print the first few characters, followed by the length. Otherwise, | |
13731 | doing "pn(n)" in the debugger can take an extremely long time. | |
13732 | ||
13733 | * sem_prag.adb (Process_Interface_Name): Replace loop doing | |
13734 | Store_String_Char with Store_String_Chars. | |
13735 | ||
13736 | 2007-08-31 Vincent Celier <celier@adacore.com> | |
13737 | ||
13738 | * prj-attr.adb: Add new attribute Excluded_Source_Files | |
13739 | ||
13740 | * prj-nmsc.adb: Use attribute Excluded_Source_Files before | |
13741 | Locally_Removed_Files. | |
13742 | ||
13743 | * snames.ads, snames.adb: New standard name Excluded_Source_Files | |
13744 | ||
13745 | 2007-08-31 Ed Schonberg <schonberg@adacore.com> | |
13746 | ||
13747 | * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context | |
13748 | clauses of subunits, ignore limited_with_clauses that are illegal and | |
13749 | have not been fully analyzed. | |
13750 | ||
13751 | 2007-08-31 Ed Schonberg <schonberg@adacore.com> | |
13752 | ||
13753 | * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity | |
13754 | flag, for effiency. It is called when analyzing arithmetic operators | |
13755 | and also for actuals in calls that are universal_integers. The flag is | |
13756 | set for the predefined type address, and for any type or subtype | |
13757 | derived from it. | |
13758 | ||
13759 | * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a | |
13760 | Universal_Integer, when the formal is a descendent of address and the | |
13761 | call appears in user code. | |
13762 | (Analyze_Selected_Component): if the prefix is a private extension, the | |
13763 | tag component is visible. | |
13764 | ||
13765 | * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an | |
13766 | entity flag. | |
13767 | ||
13768 | 2007-08-31 Robert Dewar <dewar@adacore.com> | |
13769 | ||
13770 | * s-fileio.adb (Open): Normalize file name to lower case in non-case | |
13771 | sensitive file name systems to avoid unexpected mismatch in Vista. | |
13772 | ||
13773 | 2007-08-31 Vincent Celier <celier@adacore.com> | |
13774 | ||
13775 | * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR | |
13776 | ||
13777 | 2007-08-31 Vincent Celier <celier@adacore.com> | |
13778 | ||
13779 | * symbols-vms.adb (Initialize): Read symbol files with continuation | |
13780 | lines | |
13781 | (Finalize): If symbol is long, split the line | |
13782 | ||
13783 | 2007-08-31 Vincent Celier <celier@adacore.com> | |
13784 | ||
13785 | * fmap.ads: Minor comment updates | |
13786 | ||
13787 | 2007-08-31 GNAT Script <nobody@adacore.com> | |
13788 | ||
13789 | * Make-lang.in: Makefile automatically updated | |
13790 | ||
13791 | 2007-08-31 Bob Duff <duff@adacore.com> | |
13792 | ||
13793 | * sinfo.ads: Minor comment fix. | |
13794 | ||
13795 | 2007-08-31 Thomas Quinot <quinot@adacore.com> | |
13796 | ||
13797 | * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent | |
13798 | with implementation. | |
13799 | Documentation cleanup only. | |
13800 | ||
13801 | 2007-08-31 Sergey Rybin <rybin@adacore.com> | |
13802 | ||
13803 | * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new | |
13804 | gnatpp '--separate-stmt-name' option. | |
13805 | Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line' | |
13806 | option. | |
13807 | ||
13808 | * gnat_ugn.texi: Add description for the new gnatpp | |
13809 | '--separate-stmt-name' and '--use-on-new-line' options. | |
13810 | ||
387c4458 | 13811 | 2007-08-31 Ben Elliston <bje@au.ibm.com> |
13812 | ||
13813 | * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads | |
13814 | when compiling for powerpc64-*-linux. | |
13815 | * system-linux-ppc64.ads: New file. | |
13816 | ||
bea887cf | 13817 | 2007-08-22 Krister Walfridsson <cato@df.lth.se> |
13818 | ||
13819 | * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for | |
13820 | NetBSD. | |
13821 | ||
f8fd23c0 | 13822 | 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
13823 | ||
13824 | * misc.c (gnat_type_max_size): Constify. | |
13825 | ||
18b44131 | 13826 | 2007-08-16 Gary Dismukes <dismukes@adacore.com> |
13827 | ||
13828 | * cstand.adb (Create_Standard): Create an entity for a zero-sized type | |
13829 | associated with Standard_Debug_Renaming_Type, to be used as the type of | |
13830 | the special variables whose names provide debugger encodings for | |
13831 | renaming declarations. | |
13832 | ||
13833 | * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25. | |
13834 | (Set_Debug_Renaming_Link): Change to set Node25. | |
13835 | (Write_Field13_Name): Remove case for E_Enumeration_Literal. | |
13836 | (Write_Field25_Name): Add case for E_Variable to output | |
13837 | "Debug_Renaming_Link". | |
13838 | (Write_Field23_Name): Correct the output string for "Limited_View". | |
13839 | ||
13840 | * exp_dbug.adb: Add with and use of Tbuild. | |
13841 | (Debug_Renaming_Declaration): Replace creation of an enumeration type | |
13842 | and literal with creation of a variable of type | |
13843 | Standard_Debug_Renaming_Type whose name encodes both the renamed object | |
13844 | and the entity of the renaming declaration. | |
13845 | (Qualify_Entity_Name): Add the delayed qualification of the entity name | |
13846 | part of the name of a variable that has a Debug_Renaming_Link. | |
13847 | ||
13848 | * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a | |
13849 | special type to be associated with variables that provide debugger | |
13850 | encodings for renaming declarations. | |
13851 | ||
13852 | 2007-08-16 Gary Dismukes <dismukes@adacore.com> | |
13853 | Ed Schonberg <schonberg@adacore.com> | |
13854 | Javier Miranda <miranda@adacore.com> | |
13855 | ||
13856 | * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an | |
13857 | ancestor part given by an aggregate to test for an unchecked conversion, | |
13858 | since this can occur in some cases when the ancestor part is a function | |
13859 | call, and we don't want to fall into the recursive call to this | |
13860 | procedure in that case. | |
13861 | ||
13862 | * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of | |
13863 | stream attributes on limited types to account for user-specified | |
13864 | attributes as well as whether Input (resp. Output) becomes available | |
13865 | due to Read (resp. Write) being available for the type. Change Boolean | |
13866 | variable to the more accurate name | |
13867 | Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted | |
13868 | double-"not" predicate at beginning of return statement to more | |
13869 | understandable form. | |
13870 | ||
13871 | * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended | |
13872 | return has an associated N_Handled_Sequence_Of_Statements, then wrap it | |
13873 | in a block statement and use that as the first statement of the | |
13874 | expanded return rather than incorrectly using the handled sequence as | |
13875 | the first statement. | |
13876 | ||
13877 | * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected | |
13878 | operation, generate an explicit freeze node for it rather than | |
13879 | generating extra formals, to ensure that gigi has the proper order of | |
13880 | elaboration for anonymous subtypes in the signature of the subprograms. | |
13881 | (Build_In_Place_Formal): Move assertion to beginning of loop. | |
13882 | (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion | |
13883 | applied to a function call (occurs for some cases of 'Input). | |
13884 | (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion | |
13885 | applied to a function call (occurs for some cases of 'Input). | |
13886 | ||
13887 | * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada | |
13888 | 2005, generate an extended return statement enclosing the result object | |
13889 | and 'Read call. | |
13890 | ||
13891 | * freeze.adb (Freeze_Record_Type): Extend the current management of | |
13892 | components that are access type with an allocator as default value: add | |
13893 | missing support to the use of qualified expressions of the | |
13894 | allocator (which also cause freezing of the designated type!) | |
13895 | (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined | |
13896 | dispatching operation, since extra formals may be needed by calls to | |
13897 | build-in-place functions (such as stream 'Input). | |
13898 | ||
13899 | * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra | |
13900 | formals for 'Constrained and accessibility level in the case of a | |
13901 | predefined dispatching operation. | |
13902 | ||
13903 | * exp_util.adb (Insert_Actions): A protected body is a valid insertion | |
13904 | point, no need to find the parent node. | |
13905 | ||
13906 | 2007-08-16 Javier Miranda <miranda@adacore.com> | |
13907 | ||
13908 | * exp_attr.adb (Attribute_Priority): Add missing support for entries | |
13909 | and entry barriers. | |
13910 | ||
13911 | 2007-08-16 Javier Miranda <miranda@adacore.com> | |
13912 | ||
13913 | * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it | |
13914 | is not really required and can introduce regression with the debugger. | |
13915 | The original problem is fixed with the patch written for checks.adb. | |
13916 | ||
13917 | 2007-08-16 Thomas Quinot <quinot@adacore.com> | |
13918 | ||
13919 | * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress | |
13920 | Range_Check on Allocated_Table. | |
13921 | ||
13922 | 2007-08-16 Vincent Celier <celier@adacore.com> | |
13923 | ||
13924 | * make.adb (Collect_Arguments): Call Test_If_Relative_Path with | |
13925 | Including_Non_Switch set to False. | |
13926 | (Gnatmake): For the compiler, call Test_If_Relative_Path with | |
13927 | Including_Non_Switch set to False. | |
13928 | ||
13929 | * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean | |
13930 | parameter Including_Non_Switch, defaulted to True. When | |
13931 | Including_Non_Switch is False, options that are not switches and | |
13932 | appear as relative path are not converted to absolute paths. | |
13933 | ||
13934 | 2007-08-16 Nicolas Roche <roche@adacore.com> | |
13935 | ||
13936 | * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub | |
13937 | makefiles | |
13938 | ||
13939 | * Make-lang.in: Update dependencies | |
13940 | ||
13941 | 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com> | |
13942 | ||
13943 | * sem_ch10.adb (Has_With_Clause): If the name of the with clause | |
13944 | currently inspected is a selected component, retrieve the entity of | |
13945 | its selector. | |
13946 | (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting | |
13947 | from the immediate ancestor of Main_Unit_Entity. | |
13948 | (Install_Limited_Withed_Unit): Do not install the limited view of | |
13949 | package P if P is reachable through an ancestor chain from package C | |
13950 | and C also has a with clause for P in its body. | |
13951 | (Has_Limited_With_Clause): New routine. | |
13952 | (Has_With_Clause): New routine. | |
13953 | ||
13954 | 2007-08-16 Ed Schonberg <schonberg@adacore.com> | |
13955 | ||
13956 | * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the | |
13957 | generic for an enclosing instance is a global reference, even though | |
13958 | its scope is the enclosing instance. | |
13959 | ||
13960 | 2007-08-16 Gary Dismukes <dismukes@adacore.com> | |
13961 | Javier Miranda <miranda@adacore.com> | |
13962 | ||
13963 | * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to | |
13964 | initialize a limited object. | |
13965 | (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4 | |
13966 | 13/2 and 14/2. | |
13967 | Make sure Has_Complex_Representation is inherited by derived type. | |
13968 | ||
13969 | 2007-08-16 Robert Dewar <dewar@adacore.com> | |
13970 | ||
13971 | * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in | |
13972 | exception case | |
13973 | ||
13974 | 2007-08-16 Ed Schonberg <schonberg@adacore.com> | |
13975 | ||
13976 | * sem_disp.adb (Check_Dispatching_Operation): If the operation | |
13977 | implements an operation inherited from a progenitor interface, verify | |
13978 | that they are subtype-conformant. | |
13979 | ||
13980 | 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com> | |
13981 | Bob Duff <duff@adacore.com> | |
13982 | Nicolas Setton <setton@adacore.com> | |
13983 | ||
13984 | * sem_res.adb (Comes_From_Predefined_Lib_Unit): New. | |
13985 | (Resolve): Alphabetize local variables. Add new variable From_Lib. When | |
13986 | the statement which is being resolved comes from a predefined library | |
13987 | unit, all non-predefined library interpretations are skipped. | |
13988 | (Resolve_Op_Concat): If string concatenation was folded in the parser, | |
13989 | but the "&" is user defined, give an error, because the folding would | |
13990 | be wrong. | |
13991 | ||
13992 | * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that | |
13993 | the parser has folded a long sequence of concatenations of string | |
13994 | literals. | |
13995 | ||
13996 | * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE" | |
13997 | and "JMP_BUF" variables as artificial. | |
13998 | (N_String_Literal): Do not use alloca for very long string literals. Use | |
13999 | xmalloc/free instead. Otherwise the stack might overflow. | |
14000 | ||
14001 | * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the | |
14002 | compiler. | |
14003 | ||
14004 | 2007-08-16 Vincent Celier <celier@adacore.com> | |
14005 | ||
14006 | * vms_conv.adb (Process_Argument): Ensure that project related options | |
14007 | are not put in the -cargs section when using GNAT COMPILE. | |
14008 | ||
14009 | 2007-08-16 Robert Dewar <dewar@adacore.com> | |
14010 | ||
14011 | * gnat_ugn.texi: Add note on preprocessing (output file not written) | |
14012 | ||
14013 | 2007-08-16 Thomas Quinot <quinot@adacore.com> | |
14014 | ||
14015 | * a-tags.adb: Minor reformatting. | |
14016 | ||
14017 | 2007-08-16 Bob Duff <duff@adacore.com> | |
14018 | ||
14019 | * sem_type.ads, sem_ch4.adb: Minor reformatting. | |
14020 | ||
330917d9 | 14021 | 2007-08-14 Thomas Quinot <quinot@adacore.com> |
14022 | ||
7c066666 | 14023 | * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads, |
330917d9 | 14024 | s-osinte-interix.ads, system-interix.ads: Removed. |
14025 | ||
14026 | 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com> | |
14027 | ||
14028 | * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove | |
14029 | calls to Check_Within_Time_Bounds. | |
14030 | ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds. | |
14031 | (Difference): Account for possible rounding of the resulting difference | |
14032 | ||
14033 | 2007-08-14 Robert Dewar <dewar@adacore.com> | |
14034 | ||
14035 | * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb, | |
14036 | par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb, | |
14037 | s-osinte-solaris.adb, s-osinte-solaris.ads, | |
14038 | s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting. | |
14039 | ||
14040 | * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style | |
14041 | switch -gnatyS. Enable -gnatyS in GNAT style check mode | |
14042 | ||
14043 | 2007-08-14 Robert Dewar <dewar@adacore.com> | |
14044 | Ed Schonberg <schonberg@adacore.com> | |
14045 | ||
7c066666 | 14046 | * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads: |
330917d9 | 14047 | Suppress unmodified in-out parameter warning in some cases |
14048 | This patch is a also fairly significant change to the way suppressible | |
14049 | checks are handled. | |
14050 | ||
14051 | * checks.ads, checks.adb (Install_Null_Excluding_Check): No check | |
14052 | needed for access to concurrent record types generated by the expander. | |
14053 | (Generate_Range_Check): When generating a temporary to capture the | |
14054 | value of a conversion that requires a range check, set the type of the | |
14055 | temporary before rewriting the node, so that the type is always | |
14056 | properly placed for back-end use. | |
14057 | (Apply_Float_Conversion_Check): Handle case where the conversion is | |
14058 | truncating. | |
14059 | (Get_Discriminal): Code reformatting. Climb the scope stack looking | |
14060 | for a protected type in order to examine its discriminants. | |
14061 | ||
14062 | 2007-08-14 Robert Dewar <dewar@adacore.com> | |
14063 | Gary Dismukes <dismukes@adacore.com> | |
14064 | Ed Schonberg <schonberg@adacore.com> | |
14065 | Thomas Quinot <quinot@adacore.com> | |
14066 | ||
7c066666 | 14067 | * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb, |
330917d9 | 14068 | a-stwisu.adb, a-strsup.adb: Fix warnings for range |
14069 | tests optimized out. | |
14070 | ||
14071 | * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out. | |
14072 | (Get_Allocator_Final_List): For the case of an anonymous access type | |
14073 | that has a specified Associated_Final_Chain, do not go up to the | |
14074 | enclosing scope. | |
14075 | (Expand_N_Type_Conversion): Test for the case of renamings of access | |
14076 | parameters when deciding whether to apply a run-time accessibility | |
14077 | check. | |
14078 | (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded | |
14079 | aggregate code before allocator, and ahead of declaration for | |
14080 | temporary, to prevent access before elaboration when the allocator is | |
14081 | an actual for an access parameter. | |
14082 | (Expand_N_Type_Conversion): On an access type conversion involving an | |
14083 | access parameter, do not apply an accessibility check when the | |
14084 | operand's original node was an attribute other than 'Access. We now | |
14085 | create access conversions for the expansion of 'Unchecked_Access and | |
14086 | 'Unrestricted_Access in certain cases and clearly accessibility should | |
14087 | not be checked for those. | |
14088 | ||
14089 | * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that | |
14090 | includes a type conversion of a packed component that has been expanded, | |
14091 | recover the original expression for the object, and use this expression | |
14092 | in the post-call assignment statement, so that the assignment is made | |
14093 | to the object and not to a back-end temporary. | |
14094 | (Freeze_Subprogram): In case of primitives of tagged types not defined | |
14095 | at the library level force generation of code to register the primitive | |
14096 | in the dispatch table. In addition some code reorganization has been | |
14097 | done to leave the implementation clear. | |
14098 | (Expand_Call): When expanding an inherited implicit conversion, | |
14099 | preserve the type of the inherited function after the intrinsic | |
14100 | operation has been expanded. | |
14101 | ||
14102 | * exp_ch2.ads, exp_ch2.adb | |
14103 | (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference | |
14104 | of an entry formal appearing in an assignment statement does not assign | |
14105 | to the formal. | |
14106 | (Expand_Current_Value): Instead of calling a routine to determine | |
14107 | whether the prefix of an attribute reference should be optimized or | |
14108 | not, prevent the optimization of such prefixes all together. | |
14109 | ||
14110 | * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected | |
14111 | component whose prefix is known to be of an access type is an implicit | |
14112 | dereference and does not assign to the prefix. | |
14113 | ||
14114 | 2007-08-14 Ed Schonberg <schonberg@adacore.com> | |
14115 | Robert Dewar <dewar@adacore.com> | |
14116 | ||
14117 | * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and | |
14118 | itype is visited, make an entry into table to link associated node and | |
14119 | new itype. | |
14120 | Add comments and correct harmless error in Build_NCT_Hash_Tables | |
14121 | (Array_Aggr_Subtype): Associate each itype created for an index type to | |
14122 | the corresponding range construct, and not to the aggregate itself. to | |
14123 | maintain a one-to-one correspondence between itype and its associated | |
14124 | node, to prevent errors when complex expression is copied. | |
14125 | Fix mishandling of multiple levels of parens | |
14126 | ||
14127 | * sem_aggr.adb: Create a limited view of an incomplete type, to make | |
14128 | treatment of limited views uniform for all visible declarations in a | |
14129 | limited_withed package. | |
14130 | (New_Copy_Tree): If hash table is being used and itype is visited, | |
14131 | make an entry into table to link associated node and new itype. | |
14132 | (Resolve_Record_Aggregate): Do not add an others box association for a | |
14133 | discriminated record component that has only discriminants, when there | |
14134 | is a box association for the component itself. | |
14135 | ||
14136 | * par-ch4.adb: Fix mishandling of multiple levels of parens | |
14137 | ||
14138 | 2007-08-14 Robert Dewar <dewar@adacore.com> | |
14139 | ||
14140 | * comperr.adb: Fix problem with suppressing warning messages from gigi | |
14141 | ||
7c066666 | 14142 | * erroutc.ads, erroutc.adb, errout.ads, |
330917d9 | 14143 | errout.adb (Write_Eol): Remove trailing spaces before writing the line |
14144 | (Write_Eol_Keep_Blanks): New procedure to write a line, including | |
14145 | possible trailing spaces. | |
14146 | (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line | |
14147 | Fix problem with suppressing warning messages from back end | |
14148 | Improve handling of deleted warnings | |
14149 | ||
7c066666 | 14150 | * gnat1drv.adb: |
330917d9 | 14151 | Fix problem with suppressing warning messages from back end |
14152 | Handle setting of Static_Dispatch_Tables flag. | |
14153 | ||
7c066666 | 14154 | * prepcomp.adb: |
330917d9 | 14155 | Fix problem with suppressing warning messages from back end |
14156 | ||
14157 | * exp_intr.adb: Improve handling of deleted warnings | |
14158 | ||
14159 | 2007-08-14 Robert Dewar <dewar@adacore.com> | |
14160 | ||
14161 | * debug.adb: Improve -gnatdI to cover all cases of serialization | |
14162 | Add documentation of dZ, d.t | |
14163 | ||
14164 | * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of | |
14165 | serialization. | |
14166 | (Sprint_Node_Actual): Generate new output associated with implicit | |
14167 | importation and implicit exportation of object declarations. | |
14168 | ||
14169 | 2007-08-14 Ed Schonberg <schonberg@adacore.com> | |
14170 | Robert Dewar <dewar@adacore.com> | |
14171 | Javier Miranda <miranda@adacore.com> | |
14172 | Gary Dismukes <dismukes@adacore.com> | |
14173 | ||
14174 | * einfo.ads, einfo.adb: Create a limited view of an incomplete type, | |
14175 | to make treatment of limited views uniform for all visible declarations | |
14176 | in a limited_withed package. | |
14177 | Improve warnings for in out parameters | |
14178 | (Set_Related_Interaface/Related_Interface): Allow the use of this | |
14179 | attribute with constants. | |
14180 | (Write_Field26_Name): Handle attribute Related_Interface in constants. | |
14181 | Warn on duplicate pragma Preelaborable_Initialialization | |
14182 | ||
14183 | * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the | |
14184 | generation of a freezing node to ensure proper management of null | |
14185 | excluding access types in the backend. | |
14186 | (Create_Extra_Formals): Test base type of the formal when checking for | |
14187 | the need to add an extra accessibility-level formal. Pass the entity E | |
14188 | on all calls to Add_Extra_Formal (rather than Scope (Formal) as was | |
14189 | originally being done in a couple of cases), to ensure that the | |
14190 | Extra_Formals list gets set on the entity E when the first entity is | |
14191 | added. | |
14192 | (Conforming_Types): Add missing calls to Base_Type to the code that | |
14193 | handles anonymous access types. This is required to handle the | |
14194 | general case because Process_Formals builds internal subtype entities | |
14195 | to handle null-excluding access types. | |
14196 | (Make_Controlling_Function_Wrappers): Create wrappers for constructor | |
14197 | functions that need it, even when not marked Requires_Overriding. | |
14198 | Improve warnings for in out parameters | |
14199 | (Analyze_Function_Return): Warn for disallowed null return | |
14200 | Warn on return from procedure with unset out parameter | |
14201 | Ensure consistent use of # in error messages | |
14202 | (Check_Overriding_Indicator): Add in parameter Is_Primitive. | |
14203 | (Analyze_Function_Return): Move call to Apply_Constraint_Check before | |
14204 | the implicit conversion of the expression done for anonymous access | |
14205 | types. This is required to generate the code of the null excluding | |
14206 | check (if required). | |
14207 | ||
14208 | * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable): | |
14209 | A formal parameter is never publicly referenceable outside of its body. | |
14210 | (Check_References): For an unreferenced formal parameter in an accept | |
14211 | statement, use the same warning circuitry as for subprogram formal | |
14212 | parameters. | |
14213 | (Warn_On_Unreferenced_Entity): New subprogram, taken from | |
14214 | Output_Unreferenced_Messages, containing the part of that routine that | |
14215 | is now reused for entry formals as described above. | |
14216 | (Goto_Spec_Entity): New function | |
14217 | (Check_References): Do not give IN OUT warning for dispatching operation | |
14218 | Improve warnings for in out parameters | |
14219 | (Test_Ref): Check that the entity is not undefinite before calling | |
14220 | Scope_Within, in order to avoid infinite loops. | |
14221 | Warn on return from procedure with unset out parameter | |
14222 | Improved warnings for unused variables | |
14223 | ||
14224 | 2007-08-14 Robert Dewar <dewar@adacore.com> | |
14225 | Javier Miranda <miranda@adacore.com> | |
14226 | Gary Dismukes <dismukes@adacore.com> | |
14227 | ||
14228 | * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit | |
14229 | (Expand_N_Attribute_Reference): Further unify the handling of the | |
14230 | three forms of access attributes, using common code now for all three | |
14231 | cases. Add a test for the case of applying an access attribute to | |
14232 | an explicit dereference when the context is an access-to-interface | |
14233 | type. In that case we need to apply the conversion to the prefix | |
14234 | of the explicit dereference rather than the prefix of the attribute. | |
14235 | (Attribute_Version, UET_Address): Set entity as internal to ensure | |
14236 | proper dg output of implicit importation. | |
14237 | (Expand_Access_To_Type): Removed. | |
14238 | (Expand_N_Attribute_Reference): Merge the code from the three cases | |
14239 | of access attributes, since the processing is largely identical for | |
14240 | these cases. The substantive fix here is to process the case of a | |
14241 | type name prefix (current instance case) before handling the case | |
14242 | of interface prefixes. | |
14243 | ||
14244 | 2007-08-14 Thomas Quinot <quinot@adacore.com> | |
14245 | Ed Schonberg <schonberg@adacore.com> | |
14246 | Javier Miranda <miranda@adacore.com> | |
14247 | Robert Dewar <dewar@adacore.com> | |
14248 | ||
14249 | * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram. | |
14250 | (Freeze_Array_Type, Freeze_Record_Type): For the case of a component | |
14251 | type that is an anonymous access to controlled object, establish | |
14252 | an associated finalization chain to avoid corrupting the global | |
14253 | finalization list when a dynamically allocated object designated | |
14254 | by such a component is deallocated. | |
14255 | (Make_Controlling_Function_Wrappers): Create wrappers for constructor | |
14256 | functions that need it, even when not marked Requires_Overriding. | |
14257 | (Initialize_Tag): Replace call to has_discriminants by call to | |
14258 | Is_Variable_Size_Record in the circuitry that handles the | |
14259 | initialization of secondary tags. | |
14260 | (Is_Variable_Size_Record): New implementation. | |
14261 | (Expand_N_Object_Declaration): Suppress call to init proc if there is a | |
14262 | Suppress_Initialization pragma for a derived type. | |
14263 | (Is_Variable_Size_Record): New subprogram. | |
14264 | (Build_Offset_To_Top_Functions): New implementation that simplifies the | |
14265 | initial version of this routine and also fixes problems causing | |
14266 | incomplete initialization of the table of interfaces. | |
14267 | (Build_Init_Procedure): Improve the generation of code to initialize the | |
14268 | the tag components of secondary dispatch tables. | |
14269 | (Init_Secondary_Tags): New implementation that simplifies the previous | |
14270 | version of this routine. | |
14271 | (Make_DT): Add parameter to indicate when type has been frozen by an | |
14272 | object declaration, for diagnostic purposes. | |
14273 | (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to | |
14274 | diagnose attemps to freeze a subprogram when some untagged type of its | |
14275 | profile is a private type whose full view has not been analyzed yet. | |
14276 | (Freeze_Array_Type): Generate init proc for packed array if either | |
14277 | Initialize or Normalize_Scalars is set. | |
14278 | (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when | |
14279 | constructing the new profile, copy the null_exclusion indicator for each | |
14280 | parameter, to ensure full conformance of the new body with the spec. | |
14281 | ||
14282 | * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers): | |
14283 | Create wrappers for constructor functions that need it, even when not | |
14284 | marked Requires_Overriding. | |
14285 | (Covers): Handle properly designated types of anonymous access types, | |
14286 | whose non-limited views are themselves incomplete types. | |
14287 | (Add_Entry): Use an entity to store the abstract operation which hides | |
14288 | an interpretation. | |
14289 | (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op. | |
14290 | (Collect_Interps): Use Empty as an actual for Abstract_Op in the | |
14291 | initialization aggregate. | |
14292 | (Function_Interp_May_Be_Hidden): Rename to | |
14293 | Function_Interp_Has_Abstract_Op. | |
14294 | (Has_Compatible_Type): Remove machinery that skips interpretations if | |
14295 | they are labeled as potentially hidden by an abstract operator. | |
14296 | (Has_Hidden_Interp): Rename to Has_Abstract_Op. | |
14297 | (Set_May_Be_Hidden): Rename to Set_Abstract_Op. | |
14298 | (Write_Overloads): Output the abstract operator if present. | |
14299 | (Add_Entry): Before inserting a new entry into the interpretation table | |
14300 | for a node, determine whether the entry will be disabled by an abstract | |
14301 | operator. | |
14302 | (Binary_Op_Interp_May_Be_Hidden): New routine. | |
14303 | (Collect_Interps): Add value for flag May_Be_Hidden in initialization | |
14304 | aggregate. | |
14305 | (Function_Interp_May_Be_Hidden): New routine. | |
14306 | (Has_Compatible_Type): Do not consider interpretations hidden by | |
14307 | abstract operators when trying to determine whether two types are | |
14308 | compatible. | |
14309 | (Has_Hidden_Interp): New routine. | |
14310 | (Set_May_Be_Hidden_Interp): New routine. | |
14311 | (Write_Overloads): Write the status of flag May_Be_Hidden. | |
14312 | ||
14313 | 2007-08-14 Ed Schonberg <schonberg@adacore.com> | |
14314 | Javier Miranda <miranda@adacore.com> | |
14315 | ||
14316 | * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged | |
14317 | types declared in the declarative part of a nested package body or in | |
14318 | the proper body of a stub. | |
14319 | (Set_All_DT_Position): Add missing check to avoid wrong assignation | |
14320 | of the same dispatch table slot to renamed primitives. | |
14321 | (Make_Select_Specific_Data_Table): Handle private types. | |
14322 | (Tagged_Kind): Handle private types. | |
14323 | (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg | |
14324 | output of implicit importation and exportation. | |
14325 | (Expand_Interface_Thunk): Fix bug in the expansion assuming that the | |
14326 | first formal of the thunk is always associated with the controlling | |
14327 | type. In addition perform the following code cleanup: remove formal | |
14328 | Thunk_Alias which is no longer required, cleanup evaluation of the | |
14329 | the controlling type, and update the documentation. | |
14330 | Replace occurrence of Default_Prim_Op_Count by | |
14331 | Max_Predef_Prims. Addition of compile-time check to verify | |
14332 | that the value of Max_Predef_Prims is correct. | |
14333 | (Check_Premature_Freezing): Apply check in Ada95 mode as well. | |
14334 | (Make_DT): Add parameter to indicate when type has been frozen by an | |
14335 | object declaration, for diagnostic purposes. | |
14336 | (Build_Static_Dispatch_Tables): New subprogram that takes care of the | |
14337 | construction of statically allocated dispatch tables. | |
14338 | (Make_DT): In case of library-level tagged types export the declaration | |
14339 | of the primary tag. Remove generation of tags (now done by Make_Tags). | |
14340 | Additional modifications to handle non-static generation of dispatch | |
14341 | tables. Take care of building tables for asynchronous interface types | |
14342 | (Make_Tags): New subprogram that generates the entities associated with | |
14343 | the primary and secondary tags of Typ and fills the contents of Access_ | |
14344 | Disp_Table. In case of library-level tagged types imports the forward | |
14345 | declaration of the primary tag that will be declared later by Make_DT. | |
14346 | (Expand_Interface_Conversion): In case of access types to interfaces | |
14347 | replace an itype declaration by an explicit type declaration to avoid | |
14348 | problems associated with the scope of such itype in transient blocks. | |
14349 | ||
14350 | 2007-08-14 Robert Dewar <dewar@adacore.com> | |
14351 | Ed Schonberg <schonberg@adacore.com> | |
14352 | Javier Miranda <miranda@adacore.com> | |
14353 | ||
7c066666 | 14354 | * exp_util.ads, exp_util.adb: |
330917d9 | 14355 | This patch replaces a number of occurrences of explicit tests for N_Null |
14356 | with calls to Known_Null. This improves tracking of null values, since | |
14357 | Known_Null also catches null constants, and variables currently known to | |
14358 | be null, so we get better tracking. | |
14359 | (Ensure_Defined): create an itype reference only in the scope of the | |
14360 | itype. | |
14361 | (Side_Effect_Free): A selected component of an access type that | |
14362 | denotes a component with a rep clause must be treated as not | |
14363 | side-effect free, because if it is part of a linked structure its | |
14364 | value may be affected by a renaming. | |
14365 | (Expand_Subtype_From_Expr): For limited objects initialized with build | |
14366 | in place function calls, do nothing; otherwise we prematurely introduce | |
14367 | an N_Reference node in the expression initializing the object, which | |
14368 | breaks the circuitry that detects and adds the additional arguments to | |
14369 | the called function. Bug found working in the new patch for statically | |
14370 | allocated dispatch tables. | |
14371 | (Is_Library_Level_Tagged_Type): New subprogram. | |
14372 | (Remove_Side_Effects): If the expression of an elementary type is an | |
14373 | operator treat as a function call. | |
14374 | (Make_Literal_Range): If the index type of the array is not integer, use | |
14375 | attributes properly to compute the constraint on the resulting aggregate | |
14376 | which is a string. | |
14377 | ||
14378 | * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a | |
14379 | class-wide type whose base type is an incomplete private type, leave | |
14380 | class-wide type unfrozen so that freeze nodes can be generated | |
14381 | properly at a later point. | |
14382 | (Freeze_Entity, array case): Handle case of pragma Pack and component | |
14383 | size attributre clause for same array. | |
14384 | ||
14385 | 2007-08-14 Vincent Celier <celier@adacore.com> | |
14386 | ||
14387 | * prj.ads, prj.adb: Update Project Manager to new attribute names for | |
14388 | gprbuild. | |
14389 | Allow all valid declarations in configuration project files | |
14390 | (Reset): Initialize all tables and hash tables in the project tree data | |
14391 | Major update of the Project Manager and of the project aware tools, | |
14392 | including gprmake, so that the same sources in the GNAT repository | |
14393 | can be used by gprbuild. | |
14394 | (Slash_Id): Change type to be Path_Name_Type | |
14395 | (Slash): Return a Path_Name_Type instead of a File_Name_Type | |
14396 | ||
14397 | * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by | |
14398 | gprbuild. | |
14399 | Update Project Manager to new attribute names for ghprbuild | |
14400 | Allow all valid declarations in configuration project files | |
14401 | Major update of the Project Manager and of the project aware tools, | |
14402 | including gprmake, so that the same sources in the GNAT repository | |
14403 | can be used by gprbuild. | |
14404 | ||
7c066666 | 14405 | * prj-com.ads: |
330917d9 | 14406 | Major update of the Project Manager and of the project aware tools, |
14407 | including gprmake, so that the same sources in the GNAT repository | |
14408 | can be used by gprbuild. | |
14409 | ||
14410 | * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case | |
14411 | insensitive flag for attributes with optional index. | |
14412 | (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative | |
14413 | array attribute, put the index in lower case. | |
14414 | Update Project Manager to new attribute names for ghprbuild | |
14415 | Allow all valid declarations in configuration project files | |
14416 | Major update of the Project Manager and of the project aware tools, | |
14417 | including gprmake, so that the same sources in the GNAT repository | |
14418 | can be used by gprbuild. | |
14419 | ||
7c066666 | 14420 | * prj-env.ads, prj-env.adb: |
330917d9 | 14421 | Major update of the Project Manager and of the project aware tools, |
14422 | including gprmake, so that the same sources in the GNAT repository | |
14423 | can be used by gprbuild. | |
14424 | (Get_Reference): Change type of parameter Path to Path_Name_Type | |
14425 | ||
14426 | * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after | |
14427 | removing '-' from the path to start with the first character of the | |
14428 | next directory. | |
14429 | Major update of the Project Manager and of the project aware tools, | |
14430 | including gprmake, so that the same sources in the GNAT repository | |
14431 | can be used by gprbuild. | |
14432 | Major update of the Project Manager and of the project aware tools, | |
14433 | including gprmake, so that the same sources in the GNAT repository | |
14434 | can be used by gprbuild. | |
14435 | ||
7c066666 | 14436 | * prj-nmsc.ads, prj-nmsc.adb: |
330917d9 | 14437 | Update Project Manager to new attribute names for ghprbuild |
14438 | Allow all valid declarations in configuration project files | |
14439 | (Search_Directories): Detect subunits that are specified with an | |
14440 | attribute Body in package Naming. Do not replace a source/unit in the | |
14441 | same project when the order of the source dirs are known. Detect | |
14442 | duplicate sources/units in the same project when the order of the | |
14443 | source dirs are not known. | |
14444 | (Check_Ada_Name): Allow all identifiers that are not reserved words | |
14445 | in Ada 95. | |
14446 | Major update of the Project Manager and of the project aware tools, | |
14447 | including gprmake, so that the same sources in the GNAT repository | |
14448 | can be used by gprbuild. | |
14449 | (Look_For_Sources): If the list of sources is empty, set the object | |
14450 | directory of non extending project to nil. | |
14451 | Change type of path name variables to be Path_Name_Type | |
14452 | (Locate_Directory): Make sure that on Windows '/' is converted to '\', | |
14453 | otherwise creating missing directories will fail. | |
14454 | ||
7c066666 | 14455 | * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb, |
330917d9 | 14456 | prj-part.ads, prj-part.adb: |
14457 | Major update of the Project Manager and of the project aware tools, | |
14458 | including gprmake, so that the same sources in the GNAT repository | |
14459 | can be used by gprbuild. | |
14460 | ||
14461 | * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case | |
14462 | insensitive flag for attributes with optional index. | |
14463 | (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative | |
14464 | array attribute, put the index in lower case. | |
14465 | (Parse_Variable_Reference): Allow the current project name to be used in | |
14466 | the prefix of an attribute reference. | |
14467 | ||
14468 | * prj-util.ads, prj-util.adb | |
14469 | (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index, | |
14470 | defaulted to False. When True, always check against indexes in lower | |
14471 | case. | |
14472 | ||
7c066666 | 14473 | * snames.ads, snames.h, snames.adb: |
330917d9 | 14474 | Update Project Manager to new attribute names for gprbuild |
14475 | Allow all valid declarations in configuration project files | |
14476 | ||
14477 | 2007-08-14 Robert Dewar <dewar@adacore.com> | |
14478 | Ed Schonberg <schonberg@adacore.com> | |
14479 | ||
14480 | * opt.ads: Warning for non-local exception propagation now off by | |
14481 | default | |
14482 | New switch -gnatI to disable representation clauses | |
14483 | Implement new pragma Implicit_Packing | |
14484 | ||
7c066666 | 14485 | * usage.adb: |
330917d9 | 14486 | Warning for non-local exception propagation now off by default |
14487 | Add warning for unchecked conversion of pointers wi different | |
14488 | conventions. | |
14489 | New switch -gnatI to disable representation clauses | |
14490 | ||
14491 | * usage.adb: new switch -gnatyS | |
14492 | ||
14493 | * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a | |
14494 | note that aggregates of anonymous array types are not flagged. | |
14495 | -gnatwc now includes membership tests optimized away | |
14496 | -gnatw.x warnings are now off by default | |
14497 | Added conditional compilation Appendix | |
14498 | Add documentation of -gnatI | |
14499 | Add documentation for new -gnatyS style check | |
14500 | Update documentation about SAL and auto-init on Windows. | |
14501 | ||
7c066666 | 14502 | * gnat_rm.texi: |
330917d9 | 14503 | Add documentation for pragma Check_Name and 'Enabled attribute |
14504 | Document that Eliminate on dispatching operation is ignored | |
14505 | Document IDE attributes VCS_Repository_Root and VCS_Patch_Root. | |
14506 | Document pragma Main | |
14507 | Document pragma Implicit_Packing | |
14508 | ||
14509 | * sem_ch13.adb: Add warning for unchecked conversion of pointers wi | |
14510 | different conventions | |
14511 | New switch -gnatI to disable representation clauses | |
14512 | ||
14513 | * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not | |
14514 | recognized, report the invalid characters including "-gnat" instead of | |
14515 | just the first character in the switch. | |
14516 | New switch -gnatI to disable representation clauses | |
14517 | Set Warn_On_Object_Renames_Function true for -gnatg | |
14518 | ||
14519 | * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES | |
14520 | Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS | |
14521 | Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent | |
14522 | to switch -aP (add directory to project search dir). | |
14523 | ||
14524 | * par-prag.adb: Implement new pragma Implicit_Packing | |
14525 | ||
14526 | * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the | |
14527 | type as having a non-standard representation, to force expansion on | |
14528 | conversion to related types. | |
14529 | (Analyze_Pragma): Warn on misspelled pragma | |
14530 | (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg | |
14531 | Ensure consistent use of # in error messages | |
14532 | Implement pragma Implicit_Packing | |
14533 | ||
14534 | 2007-08-14 Olivier Hainque <hainque@adacore.com> | |
14535 | Eric Botcazou <ebotcazou@adacore.com> | |
14536 | ||
14537 | * targtyps.c (get_target_maximum_default_alignment): New function. | |
14538 | Maximum alignment | |
14539 | that the compiler might choose by default for a type or object. | |
14540 | (get_target_default_allocator_alignment): New function. Alignment known | |
14541 | to be honored by the target default allocator. | |
14542 | (get_target_maximum_allowed_alignment): New function. Maximum alignment | |
14543 | we might accept for any type or object on the target. | |
14544 | (get_target_maximum_alignment): Now synonym of maximum_default_alignment | |
14545 | ||
14546 | * gigi.h (get_target_maximum_default_alignment): Declare new function. | |
14547 | (get_target_default_allocator_alignment): Likewise. | |
14548 | (get_target_maximum_allowed_alignment): Likewise. | |
14549 | ||
14550 | PR ada/19037 | |
14551 | * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the | |
14552 | result of a function call, first try to use a stabilized reference for | |
14553 | a constant renaming too. | |
14554 | (validate_alignment): Use target_maximum_allowed_alignment instead of | |
14555 | MAX_OFILE_ALIGNMENT as the upper bound to what we accept. | |
14556 | (gnat_to_gnu_entity): Use common nodes directly. | |
14557 | (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate | |
14558 | alignment and size for the object. | |
14559 | (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call | |
14560 | and N_Procedure_Call_Statement. | |
14561 | (takes_address): Rename to lvalue_required_p, add third parameter | |
14562 | 'aliased' and adjust recursive calls. | |
14563 | <N_Indexed_Component>: Update 'aliased' from the array type. | |
14564 | <N_Selected_Component>: New case. | |
14565 | <N_Object_Renaming_Declaration>: New Likewise. | |
14566 | (Identifier_to_gnu): Adjust for above changes. | |
14567 | (maybe_stabilize_reference) <CONST_DECL>: New case. | |
14568 | ||
14569 | * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion | |
14570 | between type variants. | |
14571 | (build_simple_component_ref): Likewise. | |
14572 | (build_call_alloc_dealloc): Use target_default_allocator_alignment | |
14573 | instead of BIGGEST_ALIGNMENT as the threshold to trigger the super | |
14574 | aligning type circuitry for allocations from the default storage pool. | |
14575 | (build_allocator): Likewise. | |
14576 | (build_simple_component_ref): Manually fold the reference for a | |
14577 | constructor if the record type contains a template. | |
14578 | ||
14579 | * utils.c (value_zerop): Delete. | |
14580 | (gnat_init_decl_processing): Emit debug info for common types. | |
14581 | (rest_of_record_type_compilation): If a union contains a field | |
14582 | with a non-constant qualifier, treat it as variable-sized. | |
14583 | (finish_record_type): Give the stub TYPE_DECL a name. | |
14584 | (rest_of_record_type_compilation): Likewise. | |
14585 | (convert) <CONSTRUCTOR>: New case. Build a new constructor if | |
14586 | types are equivalent array types. | |
14587 | (create_field_decl): Claim fields of any ARRAY_TYPE are addressable, | |
14588 | even if the type is not passed by reference. | |
14589 | (static_ctors, static_dtors): Delete. | |
14590 | (end_subprog_body): Do not record constructors and destructors. | |
14591 | (build_global_cdtor): Delete. | |
14592 | (gnat_write_global_declarations): Do not call build_global_cdtor. | |
14593 | ||
840452b5 | 14594 | * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when |
330917d9 | 14595 | -fRTS=rtp is specified. |
14596 | If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is | |
14597 | specified. | |
14598 | ||
14599 | * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name | |
14600 | of the personality function with SJLJ exceptions. | |
14601 | ||
7c066666 | 14602 | * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for |
330917d9 | 14603 | the name of the personality function with SJLJ exceptions. |
14604 | ||
14605 | 2007-08-14 Robert Dewar <dewar@adacore.com> | |
14606 | Ed Schonberg <schonberg@adacore.com> | |
14607 | ||
14608 | * par.ads, par.adb: Improve handling of extra right parens. | |
14609 | (Par): Remove flag From_Limited_With_Clause. | |
14610 | ||
14611 | * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint | |
14612 | Improve handling of extra right parens. | |
14613 | ||
14614 | 2007-08-14 Robert Dewar <dewar@adacore.com> | |
14615 | ||
14616 | * par-tchk.adb (TF_Semicolon): Improve error recovery | |
14617 | ||
14618 | 2007-08-14 Robert Dewar <dewar@adacore.com> | |
14619 | Ed Schonberg <schonberg@adacore.com> | |
14620 | ||
14621 | * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For | |
14622 | enumeration type, mark all literals as referenced. | |
14623 | (Eval_Attribute, case 'Image): If the argument is an enumeration | |
14624 | literal and names are available, constant-fold but mark nevertheless as | |
14625 | non-static. | |
14626 | Clean up function names. | |
14627 | (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify | |
14628 | comment. | |
14629 | (Requires_Simple_Name_Prefix): Removed. | |
14630 | ||
14631 | 2007-08-14 Robert Dewar <dewar@adacore.com> | |
14632 | Ed Schonberg <schonberg@adacore.com> | |
14633 | ||
14634 | * sem_ch11.adb: Improved warnings for unused variables | |
14635 | ||
14636 | * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor | |
14637 | is a synchronized interface, the derived type is limited. | |
14638 | (Analyze_Object_Declaration): Mark the potential coextensions in the | |
14639 | definition and expression of an object declaration node. | |
14640 | (Build_Derived_Type): For the completion of a private type declaration | |
14641 | with a derived type declaration, chain the parent type's representation | |
14642 | items to the last representation item of the derived type (not the | |
14643 | first one) if they are not present already. | |
14644 | (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete | |
14645 | object declaration of forward references to tags. | |
14646 | (Access_Subprogram_Declaration): In Ada2005, anonymous access to | |
14647 | subprogram types can appear as access discriminants of synchronized | |
14648 | types. | |
14649 | (OK_For_Limited_Init_In_05): The initialization is legal is it is a call | |
14650 | given in prefixed form as a selected component. | |
14651 | (Process_Discriminants): If not all discriminants have defaults, place | |
14652 | error message on a default that is present. | |
14653 | (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to | |
14654 | extend a synchronized tagged type. | |
14655 | Improved warnings for unused variables | |
14656 | (Is_Visible_Component): Fix a visibility hole on a component inherited | |
14657 | by a private extension when parent is itself declared as a private | |
14658 | extension, and the derivation is in a child unit. | |
14659 | (Find_Hidden_Interface): Move spec from the package body. | |
14660 | ||
14661 | 2007-08-14 Robert Dewar <dewar@adacore.com> | |
14662 | Ed Schonberg <schonberg@adacore.com> | |
14663 | ||
14664 | * sem_ch5.adb: Improve warnings on redundant assignments | |
14665 | ||
14666 | * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk | |
14667 | parameter | |
14668 | (Is_Synchronized_Tagged_Type): New subprogram that returns true | |
14669 | in case of synchronized tagged types (AARM 3.9.4 (6/2)). | |
14670 | (Safe_To_Capture_Value): Can now return True for constants, even if Cond | |
14671 | is set to False. Improves handling of Known_[Not_]Null. | |
14672 | (Wrong_Type): Special case address arithmetic attempt | |
14673 | (Collect_Abstract_Interfaces): Add new formal to allow collecting | |
14674 | abstract interfaces just using the partial view of private types. | |
14675 | (Has_Abstract_Interfaces): Add new formal to allow checking types | |
14676 | covering interfaces using the partial view of private types. | |
14677 | (Is_Fully_Initialized_Type): Special VM case for uTag component. This | |
14678 | component still needs to be defined in this case, but is never | |
14679 | initialized as VMs are using other dispatching mechanisms. | |
14680 | (Abstract_Interface_List): For a protected type, use base type to get | |
14681 | proper declaration. | |
14682 | Improve warnings on redundant assignments | |
14683 | (Is_Variable): Handle properly an implicit dereference of a prefixed | |
14684 | function call. | |
14685 | (Build_Actual_Subtype): If this is an actual subtype for an | |
14686 | unconstrained formal parameter, use the sloc of the body for the new | |
14687 | declaration, to prevent anomalises in the debugger. | |
14688 | ||
14689 | 2007-08-14 Robert Dewar <dewar@adacore.com> | |
14690 | ||
14691 | * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for | |
14692 | dispatching operation | |
14693 | ||
14694 | 2007-08-14 Ed Schonberg <schonberg@adacore.com> | |
14695 | Gary Dismukes <dismukes@adacore.com> | |
14696 | ||
7c066666 | 14697 | * exp_aggr.ads, |
330917d9 | 14698 | exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place |
14699 | expanded aggregate code before allocator, and ahead of declaration for | |
14700 | temporary, to prevent access before elaboration when the allocator is | |
14701 | an actual for an access parameter. | |
14702 | (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing | |
14703 | the TSD and the table of interfaces. | |
14704 | (Convert_To_Assignments): Augment the test for delaying aggregate | |
14705 | expansion for limited return statements to include the case of extended | |
14706 | returns, to prevent creation of an unwanted transient scope. | |
14707 | (Is_Static_Dispatch_Table_Aggregate): New subprogram. | |
14708 | (Expand_Array_Aggregate): Handle aggregates associated with | |
14709 | statically allocated dispatch tables. | |
14710 | (Expand_Record_Aggregate): Handle aggregates associated with | |
14711 | statically allocated dispatch tables. | |
14712 | (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators | |
14713 | of anonymous access type. | |
14714 | ||
14715 | 2007-08-14 Ed Schonberg <schonberg@adacore.com> | |
14716 | ||
14717 | * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment | |
14718 | is a variable that renames a slice, use the variable itself in the | |
14719 | expannsion when the renamed expression itself may be modified between | |
14720 | the declaration of the renaming and the array assignment. | |
14721 | ||
14722 | 2007-08-14 Jerome Guitton <guitton@adacore.com> | |
14723 | ||
7c066666 | 14724 | * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb, |
14725 | s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb, | |
330917d9 | 14726 | s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks): |
14727 | New functions; dummy implementations. | |
14728 | ||
14729 | * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New | |
14730 | functions, used to implement the multi-tasks mode routines on VxWorks. | |
14731 | ||
14732 | * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop): | |
14733 | New functions, thin | |
14734 | binding to the VxWorks routines which have changed between VxWorks 5 | |
14735 | and 6. | |
14736 | (Int_Lock, Int_Unlock): New function, thin binding to kernel routines | |
14737 | which are not callable from a RTP. | |
14738 | ||
14739 | * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions, | |
14740 | implemented for the multi-tasks mode on VxWorks 5 and 6. | |
14741 | ||
14742 | * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions. | |
14743 | ||
14744 | * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New | |
14745 | functions. | |
14746 | ||
14747 | 2007-08-14 Vincent Celier <celier@adacore.com> | |
14748 | ||
7c066666 | 14749 | * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb, |
330917d9 | 14750 | gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb |
7c066666 | 14751 | mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb, |
14752 | mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb, | |
14753 | mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, | |
330917d9 | 14754 | mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb, |
14755 | mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New | |
14756 | procedure. | |
14757 | (Major_Id_Name): New function. | |
14758 | mlib-tgt.ads/mlib.tgt.adb: | |
14759 | (Library_Major_Minor_Id_Supported): New function, default returns True | |
14760 | Most mlib-tgt-*.adb that support shared libraries and symbolic links: | |
14761 | (Build_Dynamic_Library): Add support for major/minor ids for shared libs | |
14762 | Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi): | |
14763 | Implementation of Library_Major_Minor_Id_Supported returns False | |
14764 | clean.adb: | |
14765 | (Clean_Library_Directory): If major/minor ids are supported, clean all | |
14766 | library files. | |
14767 | Major update of the Project Manager and of the project aware tools, | |
14768 | including gprmake, so that the same sources in the GNAT repository | |
14769 | can be used by gprbuild. | |
14770 | ||
14771 | 2007-08-14 Olivier Hainque <hainque@adacore.com> | |
14772 | ||
14773 | * system-solaris-x86.ads (ZCX_By_Default): Switch to True. | |
14774 | (GCC_ZCX_Support): Switch to True. | |
7c066666 | 14775 | |
330917d9 | 14776 | * s-intman-solaris.adb (Notify_Exception): Call |
14777 | Adjust_Context_For_Raise before raising, as expected for signal | |
14778 | handlers in general. | |
7c066666 | 14779 | |
330917d9 | 14780 | * s-intman-posix.adb (Notify_Exception): Remove declaration of |
14781 | Adjust_Context_For_Raise, moved to the spec of this unit to be visible | |
14782 | to other implementation bodies. | |
7c066666 | 14783 | |
330917d9 | 14784 | * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to |
14785 | be visible by multiple implementation bodies. | |
7c066666 | 14786 | |
330917d9 | 14787 | * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context |
14788 | only for conditions coming from hardware. | |
14789 | [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement, | |
14790 | adjustments to signal context prior to exception raise from signal | |
14791 | handler. | |
14792 | (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP | |
14793 | mode. | |
14794 | Solaris section: (__gnat_adjust_context_for_raise): New function. | |
14795 | Implementation of the machine context adjustments to perform prior to | |
14796 | raise from a signal handler. Version for both sparc and x86. | |
14797 | (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define. | |
14798 | (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it | |
14799 | prior to raising as expected for any handler, before possible nested | |
14800 | faults to make sure all the contexts in a chain have been adjusted by | |
14801 | the time we propagate. | |
14802 | ||
14803 | 2007-08-14 Pascal Obry <obry@adacore.com> | |
14804 | ||
14805 | * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows. | |
14806 | (SYSTEM_INFO): New record. | |
14807 | (SetThreadIdealProcessor): New imported routine needed for supporting | |
14808 | task_info pragma on Windows. | |
14809 | ||
14810 | * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task | |
14811 | info can be applied to the current host. | |
14812 | (Create_Task): Set the ideal processor if information is present. | |
14813 | ||
14814 | * s-tasinf-mingw.adb, s-tasinf-mingw.ads, | |
14815 | a-exetim-mingw.adb, a-exetim-mingw.ads: New files. | |
14816 | ||
14817 | 2007-08-14 Olivier Hainque <hainque@adacore.com> | |
14818 | ||
14819 | * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the | |
14820 | stack size and initial stack pointer value for a given task. | |
14821 | (Enter_Task): Get the stack attributes of the task we are entering and | |
14822 | let the stack checking engine know about them. | |
14823 | ||
14824 | * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram. | |
14825 | Let the stack-checking engine know about the initial sp value and stack | |
14826 | size associated with the current task. | |
14827 | (Set_Stack_Info): If a stack base has been notified for the current | |
14828 | task, honor it. Fallback to the previous less accurate method otherwise. | |
14829 | ||
14830 | * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body. | |
14831 | ||
14832 | 2007-08-14 Ed Schonberg <schonberg@adacore.com> | |
14833 | ||
14834 | * sem_ch10.adb: Create a limited view of an incomplete type, to make | |
14835 | treatment of limited views uniform for all visible declarations in a | |
14836 | limited_withed package. | |
14837 | Set flag indicating that a subprogram body for a child unit has a | |
14838 | generated spec. | |
14839 | (Analyze_Compilation_Unit): If unit is a subprogram body that has no | |
14840 | separate declaration, remove the unit name from visibility after | |
14841 | compilation, so that environment is clean for subsequent compilations. | |
14842 | (Install_Limited_Context_Clauses): Do not install a | |
14843 | limited_private_with_clause unless the current unit is a body or a | |
14844 | private child unit. | |
14845 | (Analyze_Subunit, Install_Parents): Treat generic and non-generic units | |
14846 | in the same fashion. | |
14847 | (Install_Limited_Withed_Unit): Do not install a limited with clause if | |
14848 | it applies to the declaration of the current package body. | |
14849 | (Remove_Private_With_Clauses): If there is a regular with_clause for | |
14850 | the unit, delete Private_With_Clause from context, to prevent improper | |
14851 | hiding when processing subsequent nested packages and instantiations. | |
14852 | ||
14853 | 2007-08-14 Jose Ruiz <ruiz@adacore.com> | |
14854 | ||
14855 | * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept | |
14856 | dir/file, device:/dir/file, and device:drive_letter:/dir/file as | |
14857 | representing absolute path names. | |
14858 | __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues. | |
14859 | ||
14860 | * cstreams.c (__gnat_full_name for VxWorks): Use | |
14861 | __gnat_is_absolute_path to detect whether we need to add the current | |
14862 | directory to normalize the path. | |
14863 | ||
14864 | 2007-08-14 Javier Miranda <miranda@adacore.com> | |
14865 | ||
7c066666 | 14866 | * a-tags.ads, |
330917d9 | 14867 | a-tags.adb (Displace): Associate a message with the raised CE |
14868 | exception. | |
14869 | (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr, | |
14870 | To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr, | |
14871 | To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package | |
14872 | spec. | |
14873 | (Default_Prim_Op_Count): Removed. | |
14874 | (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind, | |
14875 | Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind): | |
14876 | Remove pragma Inline_Always. | |
14877 | ||
14878 | * rtsfind.ads (Default_Prim_Op_Count): Removed | |
14879 | (Max_Predef_Prims): New entity | |
14880 | (RE_Expanded_Name): Removed | |
14881 | (RE_HT_Link): Removed | |
14882 | (RE_Iface_Tag): Remmoved | |
14883 | (RE_Ifaces_Table): Removed | |
14884 | (RE_Interfaces_Array): Removed | |
14885 | (RE_Interface_Data_Element): Removed | |
14886 | (RE_Nb_Ifaces): Removed | |
14887 | (RE_RC_Offset): Removed | |
14888 | (RE_Static_Offset_To_Top): Removed | |
14889 | ||
14890 | * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new | |
14891 | formal. | |
14892 | (Build_Inherit_Predefined_Prims): Replace occurrences of Default_ | |
14893 | Prim_Op_Count by Max_Predef_Prims. | |
14894 | ||
14895 | 2007-08-14 Thomas Quinot <quinot@adacore.com> | |
14896 | Vincent Celier <celier@adacore.com> | |
14897 | ||
14898 | * binde.adb (Elab_All_Links): Remove unnecessary call to | |
14899 | Generic_Separately_Compiled (if a unit satisfies this predicate, there | |
14900 | won't be an associated Afile). | |
14901 | (Elab_All_Links): Fail if a referenced unit cannot be found | |
14902 | ||
7c066666 | 14903 | * bindgen.adb: |
330917d9 | 14904 | Fix comments in bindgen regarding consistency checks done in Bcheck: |
14905 | the checks are made across units within a partition, not across several | |
14906 | partitions. | |
14907 | Fix generation of C binder file for VxWorks. | |
14908 | ||
14909 | * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to | |
14910 | Generic_May_Lack_ALI, more descriptive of the current use of the | |
14911 | predicate, and update documentation. | |
14912 | ||
14913 | * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code | |
14914 | reorganization and documentation update for the case of predefined | |
14915 | library generics (for which we do not reference an Afile). | |
14916 | ||
14917 | 2007-08-14 Robert Dewar <dewar@adacore.com> | |
14918 | ||
14919 | * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads, | |
14920 | s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, | |
14921 | s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb, | |
14922 | s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb, | |
14923 | s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb, | |
14924 | s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads, | |
14925 | s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads, | |
14926 | s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb, | |
14927 | exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads, | |
14928 | s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb, | |
14929 | s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads, | |
14930 | a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads, | |
14931 | s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads, | |
14932 | g-altcon.adb: Minor reformatting | |
14933 | ||
14934 | ada-tree.h: Delete empty line. | |
14935 | ||
14936 | ali.ads: Minor reformatting | |
14937 | Clarification of comments. | |
14938 | Minor spelling correction | |
14939 | ||
14940 | * exp_dbug.adb: Add Warnings Off to suppress new warning | |
14941 | ||
14942 | * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode | |
14943 | formal | |
14944 | ||
14945 | * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old | |
14946 | value | |
14947 | ||
14948 | * a-textio.adb (Write): Remove an unnecessary IN OUT mode from | |
14949 | ||
14950 | * a-textio.ads: Reorder the standard input/output/error declarations | |
14951 | for consistency. | |
14952 | ||
14953 | * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call | |
14954 | ||
14955 | * par-ch2.adb: Recognize RM specially in errout | |
14956 | Change 'R'M to RM in all error messages | |
14957 | ||
14958 | * scng.adb: Recognize RM specially in errout | |
14959 | ||
14960 | * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename | |
14961 | N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology. | |
14962 | ||
14963 | * s-direio.adb: Add missing routine header box. | |
14964 | ||
14965 | * sem_attr.ads: Add ??? comments | |
14966 | ||
14967 | * sem_eval.adb: Recognize RM specially in errout | |
14968 | Change 'R'M to RM in all error messages | |
14969 | ||
14970 | * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes | |
14971 | ||
14972 | * s-tasinf.ads: Fix minor comment typo. | |
14973 | ||
14974 | * a-cihama.adb: Minor comment addition | |
14975 | ||
14976 | * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode | |
14977 | formal | |
14978 | ||
14979 | * s-tasinf-tru64.ads: Fix minor comment typo. | |
14980 | ||
14981 | * itypes.ads: Comment update. | |
14982 | ||
14983 | * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed | |
14984 | anymore. | |
14985 | ||
14986 | * argv.c: Added protection against null gnat_argv and gnat_envp. | |
14987 | ||
14988 | * bcheck.adb (Check_Consistency): Use correct markup character ({) in | |
14989 | warning message when Tolerate_Consistency_Errors is True. | |
14990 | ||
14991 | * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for | |
14992 | Any_Id, as this subprogram is only applicable to *type* entities (it | |
14993 | sets RM_Size). Instead initialize just Esize and Alignment. | |
14994 | ||
14995 | 2007-08-14 Bob Duff <duff@adacore.com> | |
14996 | ||
7c066666 | 14997 | * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads, |
14998 | a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, | |
14999 | a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads, | |
330917d9 | 15000 | a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads, |
15001 | a-coorse.ads (Next): Applied pragma Inline. | |
15002 | Make all Containers packages Remote_Types (unless they are already | |
15003 | Pure). | |
15004 | (Previous): applied pragma Inline | |
15005 | (Elements_Type): is now a record instead of an array | |
15006 | ||
15007 | 2007-08-14 Thomas Quinot <quinot@adacore.com> | |
15008 | ||
15009 | * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms | |
15010 | of Set_Item. | |
15011 | (Set_Item): When the new item is an element of the currently allocated | |
15012 | table passed by reference, save a copy on the stack if we're going | |
15013 | to reallocate. Also, in Table.Set_Item, make sure we test the proper | |
15014 | variable to determine whether to call Set_Last. | |
15015 | ||
15016 | * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb, | |
15017 | symbols-vms.adb, symbols-processing-vms-alpha.adb, | |
15018 | symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace | |
15019 | some occurrences of the pattern | |
15020 | T.Increment_Last; | |
15021 | T.Table (T.Last) := Value; | |
15022 | with a cleaner call to | |
15023 | T.Append (Value); | |
15024 | ||
15025 | 2007-08-14 Ed Schonberg <schonberg@adacore.com> | |
15026 | Gary Dismukes <dismukes@adacore.com> | |
15027 | Thomas Quinot <quinot@adacore.com> | |
15028 | ||
15029 | * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a | |
15030 | derived type with interface progenitors use the analyzed formal as the | |
15031 | parent of the actual, to create renamings for all the inherited | |
15032 | operations in Derive_Subprograms. | |
15033 | (Collect_Previous_Instances): new procedure within of | |
15034 | Load_Parent_Of_Generic, to instantiate all bodies in the compilation | |
15035 | unit being loaded, to ensure that the generation of global symbols is | |
15036 | consistent in different compilation modes. | |
15037 | (Is_Tagged_Ancestor): New function testing the ancestor relation that | |
15038 | takes progenitor types into account. | |
15039 | (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by | |
15040 | traversing over the primitives of the formal and actual types to locate | |
15041 | any abstract subprograms of the actual type that correspond to a | |
15042 | nonabstract subprogram of the formal type's ancestor type(s), and issue | |
15043 | an error if such is found. | |
15044 | (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation, | |
15045 | Instantiate_Package_Body, Instantiate_Subprogram_Body): | |
15046 | Remove bogus guard around calls to Inherit_Context. | |
15047 | (Reset_Entity): If the entity is the selector of a selected component | |
15048 | that denotes a named number, propagate constant-folding to the generic | |
15049 | template only if the named number is global to the generic unit. | |
15050 | (Set_Instance_Env): Only reset the compilation switches when compiling | |
15051 | a predefined or internal unit. | |
15052 | ||
15053 | 2007-08-14 Ed Schonberg <schonberg@adacore.com> | |
15054 | ||
15055 | * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first | |
15056 | parameter to determine whether operation applies to the prefix. | |
15057 | (Complete_Object_Operation): If actual has an access type and | |
15058 | controlling formal is not an in_parameter, reject the actual if it is | |
15059 | an access_to_constant type. | |
15060 | (Try_Primitive_Operation): If the type of the prefix is a formal tagged | |
15061 | type, the candidate operations are found in the scope of declaration of | |
15062 | the type, because the type has no primitive subprograms. | |
15063 | (Analyze_Selected_Component): If prefix is class-wide, and root type is | |
15064 | a private extension, only examine visible components before trying to | |
15065 | analyze as a prefixed call. | |
15066 | Change Entity_List to Type_To_Use, for better readability. | |
15067 | (Has_Fixed_Op): Use base type when checking whether the type of an | |
15068 | operator has a user-defined multiplication/division | |
15069 | (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when | |
15070 | user-defined operators are available for fixed-point types. | |
15071 | ||
15072 | 2007-08-14 Thomas Quinot <quinot@adacore.com> | |
15073 | Ed Schonberg <schonberg@adacore.com> | |
15074 | ||
15075 | * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New | |
15076 | formal At_Any_Place indicating, when True, that we want to test for | |
15077 | availability of the stream attribute at any place (as opposed to the | |
15078 | current visibility context only). | |
15079 | (Missing_Read_Write_Attributes): A stream attribute is missing for the | |
15080 | purpose of enforcing E.2.2(8) only if it is not available at any place. | |
15081 | Take into account the Ada2005 pragma Has_Preelaborable_Initialization | |
15082 | when checking the legality of an extension aggregate in a preelaborable | |
15083 | package. Treat the literal null as a valid default expression in a | |
15084 | component declaration for a type with preelaborable initialization. | |
15085 | A limited interface is a legal progenitor for the designated type of a | |
15086 | remote access to class-wide type. | |
15087 | ||
15088 | 2007-08-14 Thomas Quinot <quinot@adacore.com> | |
15089 | Ed Schonberg <schonberg@adacore.com> | |
15090 | ||
15091 | * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute | |
15092 | reference): Use correct entity as denoted entity for the selector of | |
15093 | the rewritten node. | |
15094 | (Find_Direct_Name): Add comment about Generate_Reference incorrectly | |
15095 | setting the Referenced_As_LHS flag for entities that are implicitly | |
15096 | dereferenced. | |
15097 | (Find_Type): If the type is an internally generated incomplete type, | |
15098 | mark the full view as referenced, to prevent spurious warnings. | |
15099 | (Find_Selected_Component, Has_Components): Handle properly non-limited | |
15100 | views that are themselves incomplete types. | |
15101 | Handle interfaces visible through limited-with clauses. | |
15102 | (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a | |
15103 | subprogram generic actual for which we have generated a renaming. | |
15104 | Warn when the renaming introduces a homonym of | |
15105 | the renamed entity, and the renamed entity is directly visible. | |
15106 | ||
15107 | 2007-08-14 Ed Schonberg <schonberg@adacore.com> | |
15108 | Hristian Kirtchev <kirtchev@adacore.com> | |
15109 | ||
15110 | * sem_res.adb (Resolve_Allocator): Propagate any coextensions that | |
15111 | appear in the subtree to the current allocator if it is not a static | |
15112 | coextension. | |
15113 | (Resolve_Allocator): Perform cleanup if resolution has determined that | |
15114 | the allocator is not a coextension. | |
15115 | (Resolve): Skip an interpretation hidden by an abstract operator only | |
15116 | when the type of the interpretation matches that of the context. | |
15117 | (Resolve): When looping through all possible interpretations of a node, | |
15118 | do not consider those that are hidden by abstract operators. | |
15119 | (Resolve_Actuals): When verifying that an access to class-wide object | |
15120 | is an actual for a controlling formal, ignore anonymous access to | |
15121 | subprograms whose return type is an access to class_wide type. | |
15122 | (Resolve_Slice): If the prefix of the slice is a selected component | |
15123 | whose type depends on discriminants, build its actual subtype before | |
15124 | applying range checks on the bounds of the slice. | |
15125 | (Valid_Conversion): In an instance or inlined body, compare root types, | |
15126 | to prevent anomalies between private and public views. | |
15127 | (Resolve): Improve error message for ambiguous fixed multiplication | |
15128 | expressions that involve universal_fixed multiplying operations. | |
15129 | ||
15130 | 2007-08-14 Javier Miranda <miranda@adacore.com> | |
15131 | Hristian Kirtchev <kirtchev@adacore.com> | |
15132 | ||
15133 | * exp_ch9.adb (Build_Protected_Entry): Propagate the original source | |
15134 | location to allow the correct generation of errors in case of | |
15135 | restrictions applied to the expanded code. | |
15136 | (Expand_Entry_Barrier): Remove all generated renamings for a barrier | |
15137 | function if the condition does not reference them. | |
15138 | (Expand_Entry_Body_Declarations): Mark the index constant as having a | |
15139 | valid value. | |
15140 | ||
15141 | 2007-08-14 Thomas Quinot <quinot@adacore.com> | |
0485b740 | 15142 | Pablo Oliveira <oliveira@adacore.com> |
330917d9 | 15143 | |
15144 | * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating | |
15145 | typecode parameters for a union (in a variant record), remove | |
15146 | extraneous layer of Any wrapping for member label. | |
15147 | (Expand_Receiving_Stubs_Bodies): For an RCI package body that has | |
15148 | elabration statements, register the package with the name server | |
15149 | at the beginning, not at the end, of the elaboration statements so | |
15150 | that they can create remote access to subprogram values that designate | |
15151 | remote subprograms from the package. | |
15152 | ||
15153 | 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com> | |
15154 | ||
15155 | * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time | |
15156 | values to compute the number of seconds since the Unix Epoc in order to | |
15157 | account for Daylight Savings Time. Perform special processing for dates | |
15158 | that are earlier than the Unix Epoc to obtain a negative number. | |
15159 | ||
15160 | 2007-08-14 Emmanuel Briot <briot@adacore.com> | |
15161 | ||
15162 | * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing | |
15163 | switches. | |
15164 | ||
15165 | 2007-08-14 Eric Botcazou <ebotcazou@adacore.com> | |
15166 | ||
15167 | * gnatlink.adb (Gnatlink): Pass switches to the linker even if the | |
15168 | binder-generated file is not in Ada. | |
15169 | Pass -mrtp to the linker if it is GCC and --RTS=rtp has been | |
15170 | recorded in the ALI file. | |
15171 | Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded. | |
15172 | ||
15173 | 2007-08-14 Vincent Celier <celier@adacore.com> | |
15174 | ||
15175 | * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value | |
15176 | (Output_Source): Do nothing if parameter is No_Sdep_Id | |
15177 | ||
15178 | * make.adb (Gnatmake): Do not rebuild an archive simply because a | |
15179 | shared library it imports has a later time stamp. | |
15180 | (Check): Resolve the symbolic links in the path name of the object | |
15181 | directory. | |
15182 | Check that the ALI file is in the correct object directory | |
15183 | Check if a file name does not correspond to the mapping of units | |
15184 | to file names. | |
15185 | (Display_Version): New procedure | |
15186 | (Initialize): Process switches --version and --help | |
15187 | Use type Path_Name_Type for path name | |
15188 | ||
15189 | 2007-08-14 Paul Hilfinger <hilfinger@adacore.com> | |
15190 | ||
15191 | * impunit.adb: Re-organize System.Random_Numbers and | |
15192 | GNAT.Random_Numbers and add to builds. | |
15193 | ||
15194 | * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert* | |
15195 | ||
15196 | * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files. | |
15197 | ||
15198 | * a-assert.ads, a-assert.adb: New files. | |
15199 | ||
15200 | 2007-08-14 Gary Dismukes <dismukes@adacore.com> | |
15201 | ||
15202 | * layout.adb (Layout_Type): In the case of access-to-subprogram types, | |
15203 | if AAMP_On_Target is True, then the size of the type encompasses two | |
15204 | addresses (a static link and a subprogram address), except in the case | |
15205 | of library-level access types. | |
15206 | ||
15207 | 2007-08-14 Vincent Celier <celier@adacore.com> | |
15208 | ||
15209 | * output.ads, output.adb (Write_Eol): Remove trailing spaces before | |
15210 | writing the line. | |
15211 | (Write_Eol_Keep_Blanks): New procedure to write a line, including | |
15212 | possible trailing spaces. | |
15213 | (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line | |
15214 | ||
15215 | 2007-08-14 Javier Miranda <miranda@adacore.com> | |
15216 | ||
15217 | * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with | |
15218 | null-excluding access types. | |
15219 | ||
15220 | 2007-08-14 Javier Miranda <miranda@adacore.com> | |
15221 | ||
15222 | * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code | |
15223 | that is common to Analyze_Protected_Type and Analyze_Task_Type. In case | |
15224 | of private types add missing check on matching interfaces in the | |
15225 | partial and full declarations. | |
15226 | (Analyze_Protected_Type): Code cleanup. | |
15227 | (Analyze_Task_Type): Code cleanup. | |
15228 | ||
15229 | 2007-08-14 Javier Miranda <miranda@adacore.com> | |
15230 | ||
15231 | * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a | |
15232 | generated interface thunk. | |
15233 | ||
15234 | 2007-08-14 Ed Schonberg <schonberg@adacore.com> | |
15235 | ||
15236 | * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent | |
15237 | obsolescent warning on application of 'Class to an incomplete type. | |
15238 | ||
15239 | * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to | |
15240 | prevent obsolescent warning on application of 'Class to an incomplete | |
15241 | type. | |
15242 | ||
15243 | 2007-08-14 Pascal Obry <obry@adacore.com> | |
15244 | ||
15245 | * s-fileio.adb (Is_Open): Add check for usability of the underlying | |
15246 | file stream. | |
15247 | ||
15248 | 2007-08-14 Cyrille Comar <comar@adacore.com> | |
15249 | ||
15250 | * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent | |
15251 | since it is potentially used in cases implying double finalization of | |
15252 | the same object. | |
15253 | ||
15254 | 2007-08-14 Jose Ruiz <ruiz@adacore.com> | |
15255 | ||
15256 | * s-tasini.adb (Get_Stack_Info): Move this function to | |
15257 | System.Soft_Links.Tasking because it is common to the full and the | |
15258 | restricted run times. | |
15259 | (Init_RTS): Do not set the Get_Stack_Info soft link because it is done | |
15260 | in SSL.Tasking.Init_Tasking_Soft_Links. | |
15261 | ||
15262 | * s-solita.adb (Get_Stack_Info): Function moved from | |
15263 | System.Tasking.Initialization because it is common to the full and the | |
15264 | restricted run times. | |
15265 | (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info. | |
15266 | ||
15267 | 2007-08-14 Arnaud Charlet <charlet@adacore.com> | |
15268 | ||
15269 | * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb, | |
15270 | s-taskin.ads (Requeue_With_Abort): Rename field With_Abort. | |
15271 | (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort | |
15272 | parameter. | |
15273 | ||
15274 | * s-tassta.adb (Task_Wrapper): Increased value of the small overflow | |
15275 | guard to 12K. | |
15276 | ||
15277 | 2007-08-14 Gary Dismukes <dismukes@adacore.com> | |
15278 | ||
15279 | * s-veboop.adb (SU): New named number initialized to | |
15280 | System.Storage_Unit. | |
15281 | (True_Val): The initialization expression is revised to use SU (= | |
15282 | Storage_Unit) rather than assuming 8 for the component size of an | |
15283 | unpacked Boolean array. | |
15284 | ||
15285 | 2007-08-14 Tristan Gingold <gingold@adacore.com> | |
15286 | ||
15287 | * tracebak.c: Use tb-ivms.c on OpenVMS Itanium. | |
15288 | ||
15289 | * tb-ivms.c: New file. | |
15290 | ||
15291 | * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2 | |
15292 | ||
15293 | 2007-08-14 Geert Bosch <bosch@adacore.com> | |
15294 | ||
15295 | * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads, | |
15296 | s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads: | |
15297 | Add required linker pragmas for automatically linking with the gnalasup | |
15298 | linear algebra support library, and the systems math library. | |
15299 | Rename cdot to cdotu and zdot to zdotu. | |
15300 | Update header comment to describe purpose of package. | |
15301 | ||
15302 | 2007-08-14 Thomas Quinot <quinot@adacore.com> | |
15303 | ||
15304 | * exp_ch7.adb (Find_Final_List): For an anonymous access type that has | |
15305 | an explicitly specified Associated_Final_Chain, use that list. | |
15306 | (Expand_N_Package_Body): Build dispatch tables of library level tagged | |
15307 | types. | |
15308 | (Expand_N_Package_Declaration): Build dispatch tables of library level | |
15309 | tagged types. Minor code cleanup. | |
15310 | ||
15311 | 2007-08-14 Vincent Celier <celier@adacore.com> | |
15312 | ||
15313 | * gnatchop.adb (Terminate_Program): Remove exception and use | |
15314 | Types.Terminate_Program instead. | |
15315 | ||
15316 | * osint.ads, osint.adb (Current_Exit_Status): New global variable | |
15317 | (Find_Program_Name): Added protection against empty name. | |
15318 | (OS_Exit_Through_Exception): New procedure | |
15319 | ||
15320 | * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body | |
15321 | (OS_Exit_Default): New procedure that contains the previous | |
15322 | implementation of procedure OS_Exit. | |
15323 | (Final_Value): Remove obsolete Interix stuff. | |
15324 | ||
15325 | 2007-08-14 Thomas Quinot <quinot@adacore.com> | |
15326 | ||
15327 | * g-socket.ads: Reorganize example code so that it also works on | |
15328 | Windows XP. | |
15329 | ||
15330 | 2007-08-14 Tristan Gingold <gingold@adacore.com> | |
15331 | ||
15332 | * g-trasym.ads: AIX now supports symbolic backtraces. | |
15333 | ||
15334 | 2007-08-14 Ed Schonberg <schonberg@adacore.com> | |
15335 | ||
15336 | * lib-load.adb (From_Limited_With_Chain): Always scan the stack of | |
15337 | units being loaded to detect circularities. A circularity may be | |
15338 | present even if the current chain of pending units to load starts from | |
15339 | a limited_with_clause. | |
15340 | ||
15341 | * lib-load.ads: Change profile of Load_Unit to use a with_clause | |
15342 | rather than a boolean flag, in order to detect circularities in | |
15343 | with_clauses. | |
15344 | ||
15345 | * par-load.adb: Use current with_clause in calls to Load_Unit, rather | |
15346 | than propagating the From_Limited_With flag, in order to handle | |
15347 | properly circularities involving with_clauses. | |
15348 | ||
15349 | 2007-08-14 Nicolas Setton <setton@adacore.com> | |
15350 | ||
15351 | * link.c (FreeBSD): Add "const" keyword where needed, to eliminate | |
15352 | warnings. | |
15353 | ||
15354 | 2007-08-14 Arnaud Charlet <charlet@adacore.com> | |
15355 | ||
15356 | * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects | |
15357 | to build for libgnala. | |
15358 | libgnat: Add rules to build libgnala.a | |
15359 | (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from | |
15360 | target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5. | |
15361 | Add s-osinte-vxworks-kernel.adb to the target pairs of the | |
15362 | kernel run-time lib for VxWorks 6, which would provide a different | |
15363 | implementation for Task_Cont and Task_Stop than the VxWorks 5 version. | |
15364 | x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now | |
15365 | running ZCX by default. | |
15366 | Add g-sttsne-locking to LynxOS version. | |
15367 | Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead. | |
15368 | On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads. | |
15369 | ||
15370 | * system-darwin-x86.ads: New file. | |
15371 | ||
15372 | * Make-lang.in: Delete files before copying onto them, so if they are | |
15373 | read-only, the copy won't fail. | |
15374 | Update dependencies | |
15375 | ||
15376 | 2007-08-14 Pascal Obry <obry@adacore.com> | |
15377 | ||
15378 | * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries | |
15379 | naming scheme. | |
15380 | ||
15381 | 2007-08-14 Vincent Celier <celier@adacore.com> | |
15382 | ||
15383 | * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access | |
15384 | (Gcc): Initialize Gcc_Name at the first call | |
15385 | ||
15386 | 2007-08-14 Ed Schonberg <schonberg@adacore.com> | |
15387 | ||
15388 | * sem_ch7.adb (Analyze_Package_Specification): Do not install private | |
15389 | with_clauses of the enclosing unit when analyzing the package | |
15390 | specification of a nested instance. | |
15391 | ||
15392 | 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com> | |
15393 | ||
15394 | * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed. | |
15395 | (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines. | |
15396 | Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the | |
15397 | layout of N_Allocator. | |
15398 | ||
15399 | 2007-08-14 Thomas Quinot <quinot@adacore.com> | |
15400 | ||
15401 | * rtsfind.adb (Check_RPC): Add PCS version check. | |
15402 | ||
15403 | * gnatvsn.ads, gnatvsn.adb: Add PCS version. | |
15404 | (Gnat_Free_Software): New function. | |
15405 | ||
15406 | * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns | |
15407 | the PCS_Version value from s-parint, used to check that it is consistent | |
15408 | with what exp_dist expects. | |
15409 | ||
15410 | * s-parint.ads (PCS_Version): New entity for checking consistency | |
15411 | between exp_dist and PCS. | |
15412 | ||
15413 | * gen-soccon.c: (SO_REUSEPORT): New constant. | |
15414 | ||
15415 | 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com> | |
15416 | ||
15417 | * a-calfor.adb (Image (Duration; Boolean)): Change type of local | |
15418 | variable Sub_Second to Duration in order to accomodate a larger range | |
15419 | of arithmetic operations. | |
15420 | ||
15421 | 2007-08-14 Bob Duff <duff@adacore.com> | |
15422 | ||
15423 | * g-sttsne-locking.ads: Move comments from spec to body. | |
15424 | * g-sttsne-locking.adb: Move comments from spec to body. | |
15425 | * g-sttsne-vxworks.ads: Removed. | |
15426 | * g-sttsne-vxworks.adb: Removed. | |
15427 | ||
32c2fdea | 15428 | 2007-08-11 Ian Lance Taylor <iant@google.com> |
15429 | ||
15430 | * misc.c (gnat_get_alias_set): Change return type to | |
15431 | alias_set_type. | |
15432 | ||
6c8927d7 | 15433 | 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
15434 | ||
15435 | * decl.c, utils2.c: Fix whitespace in last change. | |
15436 | ||
9eb272ee | 15437 | 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
15438 | ||
15439 | * decl.c (compare_field_bitpos): Constify. | |
15440 | * utils2.c (compare_elmt_bitpos): Likewise. | |
15441 | ||
b4c4fea4 | 15442 | 2007-07-27 Aurelien Jarno <aurelien@aurel32.net> |
15443 | ||
7c066666 | 15444 | * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by |
b4c4fea4 | 15445 | anonymous access type. |
15446 | (pthread_sigmask): Now take an access sigset_t. | |
15447 | ||
8a67bb47 | 15448 | 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com> |
545ea939 | 15449 | |
7c066666 | 15450 | * s-osinte-rtems.ads: Correct prototype of pthread_sigmask. |
15451 | ||
cf2226cc | 15452 | 2007-06-21 Eric Botcazou <ebotcazou@adacore.com> |
15453 | ||
15454 | PR tree-optimization/25737 | |
15455 | * misc.c (gnat_post_options): Do not force flag_tree_salias to 0. | |
15456 | ||
0de36bdb | 15457 | 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com> |
15458 | ||
15459 | * trans.c (Attribute_to_gnu): When subtracting an | |
15460 | offset from a pointer, use POINTER_PLUS_EXPR with | |
15461 | NEGATE_EXPR instead of MINUS_EXPR. | |
15462 | (gnat_to_gnu): Likewise. | |
15463 | * utils.c (convert): When converting between | |
15464 | thin pointers, use POINTER_PLUS_EXPR and sizetype | |
15465 | for the offset. | |
15466 | * utils2.c (known_alignment): POINTER_PLUS_EXPR | |
15467 | have the same semantics as PLUS_EXPR for alignment. | |
15468 | (build_binary_op): Add support for the semantics of | |
15469 | POINTER_PLUS_EXPR's operands. | |
15470 | When adding an offset to a pointer, use POINTER_PLUS_EXPR. | |
15471 | ||
d3eff7bb | 15472 | 2007-06-11 Rafael Ávila de Espíndola <espindola@google.com> |
71354ca1 | 15473 | |
88e8d33a | 15474 | * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead |
15475 | of get_signed_or_unsigned_type. | |
71354ca1 | 15476 | * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove. |
15477 | ||
b17d8487 | 15478 | 2007-06-11 Bob Duff <duff@adacore.com> |
7c066666 | 15479 | Thomas Quinot <quinot@adacore.com> |
b17d8487 | 15480 | |
15481 | * g-stsifd-sockets.adb (Create): Work around strange behavior of | |
15482 | 'bind' on windows that causes 'connect' to fail intermittently, by | |
15483 | retrying the 'bind'. | |
15484 | (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close. | |
15485 | ||
a801596b | 15486 | 2007-06-10 Duncan Sands <baldrick@free.fr> |
15487 | ||
15488 | * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather | |
15489 | than to void, for the fields when making a new fat pointer type. | |
15490 | (gnat_substitute_in_type): Now substitute_in_type. | |
88e8d33a | 15491 | * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls. |
a801596b | 15492 | * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge. |
15493 | * utils.c (update_pointer_to): Update fat pointers by updating the | |
15494 | dummy node pointers used for the fields. | |
15495 | ||
b852d3a0 | 15496 | 2007-06-06 Thomas Quinot <quinot@adacore.com> |
15497 | Bob Duff <duff@adacore.com> | |
15498 | ||
7c066666 | 15499 | * g-soccon-freebsd.ads, g-soccon-vxworks.ads:, |
15500 | g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads, | |
b852d3a0 | 15501 | g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new |
15502 | constant Thread_Blocking_IO, always True by default, set False | |
15503 | on a per-runtime basis. | |
15504 | (Need_Netdb_Buffer): New constant. | |
15505 | ||
15506 | * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads, | |
15507 | g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New | |
15508 | files. | |
15509 | ||
15510 | * g-socthi-vxworks.ads, g-socthi-vxworks.adb, | |
15511 | g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname, | |
15512 | Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new | |
15513 | child package Task_Safe_NetDB | |
15514 | (Host_Error_Messages): Add stub body. | |
15515 | (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close. | |
15516 | ||
15517 | * g-soccon-mingw.ads: Add Windows-specific constants. | |
15518 | (Need_Netdb_Buffer): New constant. | |
15519 | (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada | |
15520 | wrapper and import inet_addr(3) from the standard sockets library | |
15521 | directly instead. | |
15522 | (In_Addr): Add alignment clause. | |
15523 | (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close. | |
15524 | ||
15525 | 2007-06-06 Robert Dewar <dewar@adacore.com> | |
15526 | ||
15527 | * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads, | |
15528 | s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb, | |
15529 | s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads, | |
15530 | s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb, | |
15531 | s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb, | |
15532 | s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb, | |
15533 | a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb, | |
15534 | a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb, | |
15535 | a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb, | |
15536 | g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb, | |
15537 | g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb, | |
15538 | i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb, | |
15539 | s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads, | |
15540 | s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb, | |
15541 | s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb, | |
15542 | s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb, | |
15543 | s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb, | |
15544 | s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb, | |
15545 | s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb, | |
15546 | s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb, | |
15547 | s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb, | |
15548 | s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb, | |
15549 | s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb, | |
15550 | s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb, | |
15551 | s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb, | |
15552 | s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb, | |
15553 | s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb, | |
15554 | s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb, | |
15555 | s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb, | |
15556 | s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads, | |
15557 | s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb, | |
15558 | a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace | |
15559 | Unchecked_* by Ada.Unchecked_* | |
15560 | ||
15561 | 2007-06-06 Robert Dewar <dewar@adacore.com> | |
15562 | ||
15563 | * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb, | |
15564 | s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb, | |
15565 | g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads, | |
15566 | output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads, | |
15567 | g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb, | |
15568 | a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate. | |
15569 | ||
15570 | * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb, | |
15571 | s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads, | |
15572 | s-tasloc.adb, s-tasloc.ads: New files. | |
15573 | ||
15574 | 2007-06-06 Bob Duff <duff@adacore.com> | |
15575 | ||
7c066666 | 15576 | * g-expect-vms.adb: |
b852d3a0 | 15577 | (Send_Signal, Close): Raise Invalid_Process if the process id is invalid. |
15578 | * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string. | |
15579 | (Send_Signal, Close): Raise Invalid_Process if the process id is | |
15580 | invalid. | |
15581 | (Pattern_Matcher_Access): Is now a general access type to be able to | |
15582 | use aliased string. | |
15583 | ||
15584 | 2007-06-06 Thomas Quinot <quinot@adacore.com> | |
15585 | Arnaud Charlet <charlet@adacore.com> | |
15586 | ||
88e8d33a | 15587 | * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change |
15588 | (SIGEMT is now used instead of SIGTERM on AIX). | |
b852d3a0 | 15589 | |
15590 | * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads. | |
15591 | (Time_Slice_Supported): Set to True. | |
88e8d33a | 15592 | Use SIGEMT instead of SIGTERM as SIGADAABORT. |
b852d3a0 | 15593 | |
15594 | 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com> | |
15595 | ||
15596 | * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-" | |
15597 | (Time, Time)): Use To_Relative_Time rather than manual calculation to | |
15598 | express the bounds of Duration as Time. Raise Time_Error when the | |
15599 | result is greater or equal to the higher bound of Duration (on the | |
15600 | margin case). | |
15601 | ("+" (Time, Duration)): Reorder code. Remove the declaration of constant | |
15602 | Ada_High_And_Leaps. | |
15603 | ("-" (Time, Duration)): Reorder code. Remove the declaration of constant | |
15604 | Ada_High_And_Leaps. | |
15605 | ("-" (Time, Time)): Reorder code. | |
15606 | (All_Leap_Seconds): Removed. | |
15607 | (Arithmetic_Operations.Add): Remove sign related kludge. | |
15608 | (Arithmetic_Operations.Difference): Control the leaps seconds processing | |
15609 | with flag Leap_Support. | |
15610 | (Arithmetic_Operations.Subtract): Remove sign related kludge. | |
15611 | (Check_Within_Time_Bounds): New procedure. | |
15612 | (Clock): Control the leap seconds processing with flag Leap_Support. | |
15613 | (Cumulative_Leap_Seconds): Assert that the target supports leap seconds. | |
15614 | (Formatting_Operations.Split): Control the leap seconds processing with | |
15615 | flag Leap_Support. | |
15616 | (Formatting_Operations.Time_Of): Control the leaps seconds processing | |
15617 | with flag Leap_Support. Adjust the year, month and day (if applicable) | |
15618 | when the value of day seconds designates a new day. | |
15619 | (Split): Use parameter associations for better readability. Integrate | |
15620 | flag Is_Ada_05. | |
15621 | (Time_Of): Use parameter associations for better readability. Integrate | |
15622 | flag Is_Ada_05. | |
15623 | ||
15624 | * a-calfor.adb (Split): Use parameter associations for better | |
15625 | readability. Integrate flag Is_Ada_05. | |
15626 | (Time_Of): Remove flag Leap_Checks. Use parameter associations for | |
15627 | better readability. Integrate flag Is_Ada_05. | |
15628 | ||
15629 | 2007-06-06 Arnaud Charlet <charlet@adacore.com> | |
15630 | ||
7c066666 | 15631 | * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb, |
15632 | s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb, | |
15633 | s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb, | |
15634 | s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads, | |
15635 | s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb, | |
15636 | s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb, | |
15637 | s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads, | |
15638 | s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads, | |
15639 | s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads, | |
b852d3a0 | 15640 | s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb, |
7c066666 | 15641 | s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base |
b852d3a0 | 15642 | time when entering this routine to detect a backward clock setting |
15643 | (manual setting or DST adjustment), to avoid waiting for a longer delay | |
15644 | than needed. | |
15645 | (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant. | |
15646 | Remove handling of deferred priority change, and replace by setting the | |
15647 | task priority directly, as required by AI-188. | |
15648 | Update comments. | |
15649 | (Max_Task_Image_Length): New constant. | |
15650 | Replace Warnings (Off) by Unreferenced pragma, cleaner. | |
15651 | (Dynamic_Priority_Support): Removed, no longer needed. | |
15652 | (Poll_Base_Priority_Change): Ditto. | |
15653 | (Set_Ceiling): Add this procedure to change the ceiling priority | |
15654 | associated to a lock. This is a dummy implementation because dynamic | |
15655 | priority ceilings are not supported by the underlying system. | |
15656 | ||
15657 | * a-dynpri.adb (Set_Priority): Take into account case where Target is | |
15658 | accepting a RV with its priority boosted. | |
15659 | Remove handling of deferred priority change, and replace by setting the | |
15660 | task priority directly, as required by AI-188. | |
15661 | ||
15662 | * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for | |
15663 | Succeeded = True. | |
15664 | Remove handling of deferred priority change, and replace by setting the | |
15665 | task priority directly, as required by AI-188. | |
15666 | (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state | |
15667 | of Self_Id earlier. | |
15668 | ||
15669 | * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion. | |
15670 | (Poll_Base_Priority_Change): Removed. | |
15671 | Code clean up: use SSL.Current_Target_Exception. | |
15672 | ||
15673 | * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks | |
15674 | to run as this is a potentially dispatching point. | |
15675 | (Call_Synchronous): Use Local_Defer_Abort. | |
15676 | (Callable): Relax assertion. | |
15677 | (Selective_Wait): Relax assertion in case abort is not allowed. | |
15678 | Remove handling of deferred priority change, and replace by setting the | |
15679 | task priority directly, as required by AI-188. | |
15680 | ||
15681 | * s-tasuti.adb (Make_Passive): Adjust assertions. | |
15682 | Remove handling of deferred priority change, and replace by setting the | |
15683 | task priority directly, as required by AI-188. | |
15684 | ||
15685 | 2007-06-06 Arnaud Charlet <charlet@adacore.com> | |
15686 | ||
7c066666 | 15687 | * system-vxworks-sparcv9.ads, system-solaris-x86.ads, |
15688 | system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, | |
15689 | system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads, | |
15690 | system-vxworks-mips.ads, system-vxworks-alpha.ads, | |
15691 | system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads, | |
15692 | system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads, | |
15693 | system-interix.ads, system-linux-hppa.ads, system-tru64.ads, | |
15694 | system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads, | |
b852d3a0 | 15695 | system-solaris-sparcv9.ads, system-vms.ads, system.ads, |
15696 | system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads, | |
15697 | system-linux-ia64.ads: Document mapping between Ada and OS priorities. | |
15698 | This patch changes the largest non-binary modulus from 2**31-1 to | |
15699 | 2**32-1. | |
15700 | (Compiler_System_Version): Removed, no longer used. | |
15701 | Clean up system files by removing flags only used on a single target. | |
15702 | Also remove obsolete flags, only used during bootstrap from system.ads | |
15703 | (Address): Add a pragma Preelaborable_Initialization. | |
15704 | ||
15705 | * system-aix.ads: Ditto. | |
15706 | (GCC_ZCX_Support): Set to true. | |
15707 | Update priority range on AIX and map Ada priorities to target | |
15708 | priorities appropriately for different scheduling policies. | |
15709 | ||
15710 | * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1 | |
15711 | ||
15712 | 2007-06-06 Vincent Celier <celier@adacore.com> | |
15713 | ||
15714 | * mlib-tgt-specific.adb, mlib-tgt-specific.ads, | |
15715 | mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files. | |
15716 | ||
7c066666 | 15717 | * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb, |
15718 | mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb, | |
15719 | mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, | |
15720 | mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, | |
b852d3a0 | 15721 | mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package |
88e8d33a | 15722 | MLib.Tgt, containing the default versions of the exported subprograms. |
15723 | For each platform, create a specific version of the body of new child | |
15724 | package MLib.Tgt.Specific that contains only the body of subprograms | |
15725 | that are different from the default. | |
15726 | (Archive_Builder_Append_Options): New function. | |
b852d3a0 | 15727 | |
15728 | 2007-06-06 Matthew Gingell <gingell@adacore.com> | |
15729 | ||
88e8d33a | 15730 | * s-osinte-aix.adb: Map Ada priorities to target priorities |
15731 | appropriately for different scheduling policies. | |
b852d3a0 | 15732 | |
15733 | 2007-06-06 Arnaud Charlet <charlet@adacore.com> | |
15734 | ||
15735 | * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely | |
15736 | its C counterpart. | |
15737 | Remove references to Unchecked_Conversion, and use Ada.xxx instead. | |
7c066666 | 15738 | Replace Unchecked_Conversion by Ada.Unchecked_Conversion. |
b852d3a0 | 15739 | |
15740 | 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com> | |
15741 | ||
88e8d33a | 15742 | * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure. |
15743 | Noop on VMS, added for interface commonality. | |
b852d3a0 | 15744 | |
15745 | 2007-06-06 Eric Botcazou <ebotcazou@adacore.com> | |
15746 | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
15747 | Olivier Hainque <hainque@adacore.com> | |
15748 | ||
15749 | * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the | |
15750 | renamed expression of a full renaming at toplevel. | |
15751 | (gnat_to_gnu_entity, case object): If not defining, do not look inside | |
15752 | the values the constant is initialized to if it is an N_Allocator. | |
15753 | (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the | |
15754 | TYPE_SIZE_UNIT of inner types after the stride is elaborated. | |
15755 | (make_aligning_type): Accept an extra ROOM argument for storage to be | |
15756 | made available before the aligned field, and an extra BASE_ALIGN | |
15757 | argument for callers to pass the alignment guaranteed to be honored for | |
15758 | the whole aligning object. Avoid call to finish_record_type, which only | |
15759 | interferes with the sizes we want to set. | |
15760 | (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to | |
15761 | make_aligning_type for super-aligned objects on stack. | |
15762 | (components_to_record): Pass the adjusted size of the type when creating | |
15763 | fields in the qualified union for the variant part. | |
15764 | (gnat_substitute_in_type): Copy TYPE_USER_ALIGN. | |
15765 | (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for | |
15766 | packed array type. | |
15767 | (maybe_pad_type): Set TYPE_USER_ALIGN. | |
15768 | (make_aligning_type): Likewise. | |
15769 | ALIGN argument is unsigned int. | |
15770 | (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism. | |
15771 | (gnat_to_gnu_param): Likewise, for parameters. | |
15772 | (gnat_to_gnu_entity) <object>: Always instantiate the renaming object | |
15773 | if it is constant and stems from a function call. | |
15774 | (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment | |
15775 | of the record is specified. Adjust accordingly. | |
15776 | (adjust_packed): New static function. | |
15777 | (gnat_to_gnu_field): Use it to adjust the packedness setting. | |
15778 | (components_to_record): Likewise. | |
15779 | (gnat_to_gnu_entity) <object>: Do not test the renamed expression for | |
15780 | side-effects if the object is deemed constant. | |
15781 | (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer | |
15782 | type instead of merely finalizing it. Tidy. | |
15783 | <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL. | |
15784 | <E_Access_Type>: Likewise. | |
15785 | (defer_debug_incomplete_list): Rename to defer_finalize_list. | |
15786 | (defer_debug_level): Delete. | |
15787 | (gnat_to_gnu_entity) <debug_deferred>: Likewise | |
15788 | <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer | |
15789 | type. | |
15790 | <E_Record_Type>: Do not explicitly defer finalizing the type. | |
15791 | Adjust for write_record_type_debug_info renaming. | |
15792 | <E_Subprogram_Type>: Likewise. | |
15793 | Finalize deferred types right after deferred incomplete types are | |
15794 | expanded. | |
15795 | (rest_of_type_decl_compilation): New global function. | |
15796 | (components_to_record): Rename defer_debug parameter to do_not_finalize. | |
15797 | (components_to_record): Propagate the packedness to the fields of the | |
15798 | qualified union type if there is a variant part. | |
15799 | (gnat_to_gnu_entity) <E_Array_Type>: Use new function | |
15800 | instead of inline code to adjust the XUT field offsets. | |
15801 | (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type. | |
15802 | <E_Record_Subtype>: Do not let finish_record_type compute the sizes | |
15803 | and write the debug info if the type derives from a discriminated one. | |
15804 | (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type. | |
15805 | <E_Array_Subtype>: Likewise. | |
15806 | <E_String_Literal_Subtype>: Likewise. | |
15807 | (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have | |
15808 | an alignment clause. | |
15809 | (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN | |
15810 | before giving warning. | |
15811 | (prepend_one_attribute_to): New function, helper to prepend an attribute | |
15812 | to an attribute list. | |
15813 | (gnat_to_gnu_entity) <E_Procedure>: Use it. | |
15814 | (prepend_attributes): Likewise. | |
15815 | (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type. | |
15816 | <E_Array_Type>: Declare the padding type for the element type, if any. | |
15817 | <E_Array_Subtype>: Likewise. | |
15818 | (defer_limited_with): New variable. | |
15819 | (Gigi_Equivalent_Type): New function. | |
15820 | (gnat_to_gnu_entity): Use it at start and use result throughout. | |
15821 | (gnat_to_gnu_entity, case E_Access_Type): Rework to use | |
15822 | Gigi_Equivalent_Type, support Limited_With, allow two levels of | |
15823 | indirection, precompute if unconstrained array to simplify logic, and | |
15824 | use defer_limited_with to defer elaboration of some types from limited | |
15825 | with. | |
15826 | (finalize_from_with_types): New function. | |
15827 | ||
15828 | 2007-06-06 Gary Dismukes <dismukes@adacore.com> | |
15829 | Eric Botcazou <ebotcazou@adacore.com> | |
15830 | Tristan Gingold <gingold@adacore.com> | |
15831 | Olivier Hainque <hainque@adacore.com> | |
15832 | ||
88e8d33a | 15833 | * trans.c (Identifier_to_gnu): Change test for deferred constant by |
15834 | adding guard that the entity is an E_Constant before testing presence | |
15835 | of Full_view (and remove unnecessary test that entity is not a type). | |
b852d3a0 | 15836 | For a CONST_DECL used by reference, manually retrieve |
15837 | the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either. | |
15838 | (struct language_function): Move from utils.c to here. | |
15839 | (struct parm_attr): New structure. | |
15840 | (parm_attr, parm_attr vector, parm_attr GC vector): New types. | |
15841 | (f_parm_attr_cache): New macro. | |
15842 | (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the | |
15843 | expressions for the 'First, 'Last and 'Length attributes of the | |
15844 | unconstrained array IN parameters. | |
15845 | (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout. | |
15846 | Allocate the information structure for the function earlier, as well | |
15847 | as the language-specific part. | |
15848 | If the parameter attributes cache has been populated, evaluate the | |
15849 | cached expressions on entry. | |
15850 | (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call, | |
15851 | N_Procedure_Call_Statement and N_Indexed_Component. | |
15852 | (Pragma_to_gnu): Translate inspection_point to an asm statement | |
15853 | containaing a comment and a reference to the object (either its address | |
15854 | for BLKmode or its value). | |
15855 | (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide | |
15856 | to go to DECL_INITIAL. Together with the size constraint relaxation | |
15857 | in create_var_decl, enlarges the set of situations in which an | |
15858 | identifier may be used as an initializer without implying elaboration | |
15859 | code. | |
15860 | (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set | |
15861 | DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the | |
15862 | node. | |
15863 | (maybe_stabilize_reference): Remove lvalues_only parameter. | |
15864 | (gnat_stabilize_reference): Adjust for above change. | |
15865 | (gnat_to_gnu): Do not set location information on the result | |
15866 | if it is a reference. | |
15867 | (add_cleanup): Add gnat_node parameter and set the location of the | |
15868 | cleanup to it. | |
15869 | (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup. | |
15870 | (Exception_Handler_to_gnu_zcx): Likewise. | |
15871 | (gigi): Remove the cgraph node if the elaboration procedure is empty. | |
15872 | (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit | |
15873 | the former right after the latter. | |
15874 | (start_stmt_group): Make global. | |
15875 | (end_stmt_group): Likewise. | |
15876 | (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New | |
15877 | vars. | |
15878 | (gnu_program_error_label_stack): Likewise. | |
15879 | (gigi): Initialize them. | |
15880 | (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise. | |
15881 | (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label): | |
15882 | New cases. | |
15883 | (push_exception_label_stack): New function. | |
15884 | (takes_address): New function. | |
15885 | ||
15886 | * utils.c (struct language_function): Move to trans.c from here. | |
15887 | (unchecked_convert): Do not wrap up integer constants in | |
15888 | VIEW_CONVERT_EXPRs. | |
15889 | (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent | |
15890 | the latter for aggregate types, unexpected by later passes, and relax an | |
15891 | arbitrary size constraint on the former. | |
15892 | (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p | |
15893 | to compare the sizes. | |
15894 | (convert_vms_descriptor): When converting to a fat pointer type, be | |
15895 | prepared for a S descriptor at runtime in spite of a SB specification. | |
15896 | (shift_unc_components_for_thin_pointers): New function. | |
15897 | (write_record_type_debug_info): For variable-sized fields, cap the | |
15898 | alignment of the pointer to the computed alignment. | |
15899 | (finish_record_type): Change HAS_REP parameter into REP_LEVEL. | |
15900 | If REP_LEVEL is 2, do not compute the sizes. | |
15901 | (build_vms_descriptor): Adjust for new prototype of finish_record_type. | |
15902 | (build_unc_object_type): Likewise. | |
15903 | (declare_debug_type): New function. | |
15904 | ||
7c066666 | 15905 | * ada-tree.def: USE_STMT: removed (not emitted anymore). |
b852d3a0 | 15906 | |
7c066666 | 15907 | * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because |
15908 | no statement is expandable anymore. | |
15909 | (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice. | |
15910 | (gnat_handle_option): Only allow flag_eliminate_debug_types to be set | |
15911 | when the user requested it explicitely. | |
15912 | (gnat_post_options): By default, set flag_eliminate_unused_debug_types | |
15913 | to 0 for Ada. | |
15914 | (get_alias_set): Return alias set 0 for a type if | |
15915 | TYPE_UNIVERSAL_ALIASING_P is set on its main variant. | |
b852d3a0 | 15916 | |
7c066666 | 15917 | * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro. |
15918 | (DECL_FUNCTION_STUB): New accessor macro. | |
15919 | (SET_DECL_FUNCTION_STUB): New setter macro. | |
b852d3a0 | 15920 | |
7c066666 | 15921 | * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada. |
b852d3a0 | 15922 | |
15923 | * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New | |
15924 | declarations. | |
15925 | ||
15926 | 2007-06-06 Jose Ruiz <ruiz@adacore.com> | |
15927 | ||
15928 | * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal): | |
15929 | Rename to Abort_Task_Interrupt to be able to keep the same interface | |
15930 | as the rest of the targets. | |
15931 | ||
15932 | * s-osinte-vxworks.ads s-osinte-vxworks.adb | |
15933 | (To_VxWorks_Priority): Remove explicit "in" mode indicator | |
15934 | ||
15935 | * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads: | |
15936 | New files. | |
15937 | ||
15938 | 2007-06-06 Robert Dewar <dewar@adacore.com> | |
15939 | ||
15940 | * a-chahan.ads: Remove obsolescent pragmas | |
15941 | ||
15942 | * a-chlat1.ads: Minor reformatting | |
15943 | ||
15944 | 2007-06-06 Robert Dewar <dewar@adacore.com> | |
15945 | ||
15946 | * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface | |
15947 | for Errout | |
15948 | ||
15949 | * errout.adb: New Finalize/Compilation_Errors/Output_Messages | |
15950 | implementation | |
15951 | ||
15952 | * errout.ads (Finalize): Changed interface | |
15953 | (Output_Messages): New procedure | |
15954 | (Compilation_Errors): New Interface | |
15955 | ||
15956 | * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New | |
15957 | Finalize/Output_Messages interface for Errout | |
15958 | (Prepare_To_Preprocess): New Finalize/Output_Messages interface for | |
15959 | Errout. | |
15960 | ||
15961 | 2007-06-06 Thomas Quinot <quinot@adacore.com> | |
15962 | Olivier Hainque <hainque@adacore.com> | |
15963 | Robert Dewar <dewar@adacore.com> | |
15964 | ||
15965 | * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18) | |
15966 | check. | |
15967 | (Raise_Current_Excep): Call Debug_Raise_Exception just before | |
15968 | propagation starts, to let debuggers know about the event in a reliable | |
15969 | fashion. | |
15970 | (Local_Raise): Moved to System.Exceptions | |
15971 | More convenient to have this as a separate unit | |
15972 | ||
15973 | * s-except.adb, s-except.ads: New files. | |
15974 | ||
15975 | * a-exextr.adb (Unhandled_Exception): Delete - replaced by | |
15976 | Debug_Unhandled_Exception in System.Exceptions where it belongs | |
15977 | together with a couple of other debug helpers. | |
15978 | (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of | |
15979 | the former Unhandled_Exception. | |
15980 | ||
15981 | * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure | |
15982 | (Warn_No_Exception_Propagation): New procedure | |
15983 | (Warn_If_No_Propagation): Rewritten for new warning generation | |
15984 | (Expand_Exception_Handlers): New warning generation | |
15985 | (Expand_N_Raise_xxx_Error): Rewritten for new warnings | |
15986 | (Add_Exception_Label): Use Special_Exception_Package_Used for test | |
15987 | instead of Most_Recent_Exception_Used (accomodates Exception_Traces) | |
15988 | (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap | |
15989 | even if restriction is set (makes life easier in Check_Returns) | |
15990 | (Expand_Local_Exception_Handlers): Follow renamed entity chain when | |
15991 | checking exception identities. | |
15992 | (Expand_Local_Exception_Handlers): Do not optimize when all others case | |
15993 | (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated | |
15994 | block for handler (used by Check_Returns) | |
15995 | (Expand_Local_Exception_Handlers): Local_Raise now takes an address | |
15996 | (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to | |
15997 | remove all exception handlers when optimizing local raise statements. | |
15998 | (Find_Local_Handler): Use Get_Renamed_Entity | |
15999 | (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is | |
16000 | marked analyzed after expanding exception handlers, do not generate | |
16001 | redundant cleanup actions, because they have been constructed already. | |
16002 | ||
16003 | 2007-06-06 Thomas Quinot <quinot@adacore.com> | |
16004 | ||
16005 | * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The | |
16006 | presence of this categorization pragma is mandated by the language. | |
16007 | (Limited_Controlled): Add missing pragma Preelaborable_Initialization | |
16008 | for this type. | |
16009 | ||
16010 | 2007-06-06 Vincent Celier <celier@adacore.com> | |
16011 | Robert Dewar <dewar@adacore.com> | |
16012 | ||
7c066666 | 16013 | * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb, |
16014 | butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads, | |
16015 | err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads, | |
16016 | fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads, | |
16017 | lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads, | |
16018 | makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb, | |
16019 | par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb, | |
16020 | prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads, | |
16021 | prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb, | |
16022 | sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb, | |
b852d3a0 | 16023 | uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb, |
7c066666 | 16024 | ali.ads, ali.adb: |
b852d3a0 | 16025 | Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to |
16026 | package Namet. Make File_Name_Type and Unit_Name_Type types derived from | |
16027 | Mame_Id. Add new type Path_Name_Type, also derived from Name_Id. | |
16028 | Use variables of types File_Name_Type and Unit_Name_Type in error | |
16029 | messages. | |
16030 | (Get_Name): Add parameter Ignore_Special, and set it reading file name | |
16031 | (New_Copy): When debugging the compiler, call New_Node_Debugging_Output | |
16032 | here. | |
16033 | Define flags Flag217-Flag230 with associated subprograms | |
16034 | (Flag_Word5): New record type. | |
16035 | (Flag_Word5_Ptr): New access type. | |
16036 | (To_Flag_Word5): New unchecked conversion. | |
16037 | (To_Flag_Word5_Ptr): Likewise. | |
16038 | (Flag216): New function. | |
16039 | (Set_Flag216): New procedure. | |
16040 | ||
16041 | 2007-06-06 Arnaud Charlet <charlet@adacore.com> | |
16042 | ||
16043 | * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length | |
16044 | instead of 'Size. | |
16045 | ||
16046 | * a-stwifi.ads, a-stzfix.ads: Minor reformatting | |
16047 | ||
16048 | 2007-06-06 Javier Miranda <miranda@adacore.com> | |
16049 | ||
16050 | * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to | |
16051 | the package. | |
16052 | (Object_Specific_Data_Array): This is now internal to the package. | |
16053 | (Object_Specific_Data): This is now internal to the package. | |
16054 | (Select_Specific_Data_Element): This is now internal to the package. | |
16055 | (Select_Specific_Data_Array): This is now internal to the package. | |
16056 | (Select_Specific_Data): This is now internal to the package. | |
16057 | (Offset_To_Top_Function_Ptr): This is now public. | |
16058 | (To_Offset_To_Top_Function_Ptr): Removed. | |
16059 | (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now | |
16060 | local to subprogram Offset_To_Top. | |
16061 | (Predefined_DT): Removed. | |
16062 | (Typeinfo_Ptr): Removed. | |
16063 | (OSD): This function is now internal to this package. | |
16064 | (SSD): This function is now internal to this package. | |
16065 | (DT): New function that displaces the pointer to the table of primitives | |
16066 | to get access to the enclosing wrapper record. | |
16067 | (IW_Membership): Code cleanup. | |
16068 | (Offset_To_Top): Code cleanup. | |
16069 | (Predefined_DT): Removed. | |
16070 | (Register_Interface_Tag): Removed. | |
16071 | (Set_Interface_Table): Removed. | |
16072 | (Set_Offset_Index): Removed. | |
16073 | (Set_Offset_To_Top): Code cleanup. | |
16074 | (Set_OSD): Removed. | |
16075 | (Set_Signature): Removed. | |
16076 | (Set_SSD): Removed. | |
16077 | (Set_Tagged_Kind): Removed. | |
16078 | (Typeinfo_Ptr): Removed. | |
16079 | (TSD): Removed. | |
16080 | (Displace): Add missing check on null actual. | |
16081 | ||
16082 | * exp_disp.ads, exp_disp.adb | |
16083 | (Select_Expansion_Utilities): Removed. | |
16084 | (Build_Common_Dispatching_Select_Statements): Moved to exp_atags. | |
16085 | (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because | |
16086 | the interface requires a new parameter. | |
16087 | (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec, | |
16088 | Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace | |
16089 | calls to subprograms Build_T, Build_S, etc. by the corresponding code. | |
16090 | Done to remove package Select_Expansion_Utilities. | |
16091 | (Make_DT): New implementation for statically allocated dispatch tables. | |
16092 | (Make_Secondary_DT): Moved to the scope of Make_DT. | |
16093 | (Register_Primitive): Code cleanup plus incoporate the use of the new | |
16094 | function DT_Address_Attribute. | |
16095 | (Expand_Interface_Thunk): The profile of this subprogram has been | |
16096 | changed to return the Thunk_Id and the corresponding code. | |
16097 | (Fill_DT_Entry): Removed. Its functionality is now provided by | |
16098 | subprogram Register_Primitive. | |
16099 | (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by | |
16100 | subprogram Register_Primitive. | |
16101 | (Register_Primitive): New subprogram that incorporates the previous | |
16102 | functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry. | |
16103 | (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This | |
16104 | was only required to call Make_DT_Access_Action, which is now removed. | |
16105 | (Ada_Actions): Removed | |
16106 | (Action_Is_Proc): Removed | |
16107 | (Action_Nb_Arg): Removed | |
16108 | Replace all the calls to Make_DT_Access_Action by direct calls to | |
16109 | Make_Procedure_Call_Statement or Make_Function_Call. | |
16110 | (Set_DTC_Entity_Value): New subprogram. | |
16111 | (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value. | |
16112 | (Expand_Interface_Thunk): Add missing support for primitives that are | |
16113 | functions with a controlling result (case in which there is no need | |
16114 | to generate the thunk). | |
16115 | ||
16116 | * exp_atag.ads, exp_atag.adb | |
16117 | (Build_DT): New subprogram that displaces the pointer to reference the | |
16118 | base of the wrapper record. | |
16119 | (Build_Typeinfo_Offset): Removed. | |
16120 | (RTE_Tag_Node): Removed. | |
16121 | (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp | |
16122 | (Build_Get_RC_Offset): Removed. | |
16123 | (Build_Inherit_Predefined_Prims): Removed. | |
16124 | (Build_Inherit_TSD: Removed. | |
16125 | (Build_New_TSD): Removed. | |
16126 | (Build_Set_External_Tag): Removed. | |
16127 | (Build_Set_Predefined_Prim_Op_Address): Add documentation. | |
16128 | (Build_Set_Prim_Op_Address): Add documentation. | |
16129 | (Build_Set_TSD): Removed. | |
16130 | ||
16131 | * rtsfind.ads, rtsfind.adb | |
16132 | (Load_Fail): If load fails and we are not in configurable run-time | |
16133 | mode, then raise Unrecoverable_Error. | |
16134 | (Text_IO_Kludge): Generate an error message if a run-time library is | |
16135 | not available in a given run-time (ie. zfp run-time). | |
16136 | (RTE_Record_Component): Add code to check that the component we search | |
16137 | for is not found in two records in the given run-time package. | |
16138 | (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed | |
16139 | (RE_DT_Predef_Prims_Offset): New entity | |
16140 | (RE_Static_Offset_To_Top): New entity | |
16141 | (RE_HT_Link): New entity. | |
16142 | (System_Address_Image): Addition of this run-time package. | |
16143 | (RE_Address_Image): New entity. | |
16144 | (RE_Abstract_Interface): Removed. | |
16145 | (RE_Default_Prim_Op_Count): Removed. | |
16146 | (RE_DT_Entry_Size): Removed. | |
16147 | (RE_DT_Min_Prologue_Size): Removed. | |
16148 | (RE_DT_Prologue_Size): Removed. | |
16149 | (RE_Ifaces_Table_Ptr): Removed. | |
16150 | (RE_Interface_Data_Ptr): Removed. | |
16151 | (RE_Type_Specific_Data): Removed. | |
16152 | (RE_Primary_DT): Removed. | |
16153 | (RE_Register_Interface_Tag): Removed. | |
16154 | (RE_Set_Offset_Index): Removed. | |
16155 | (RE_Set_OSD): Removed. | |
16156 | (RE_Set_SSD): Removed. | |
16157 | (RE_Set_Signature): Removed. | |
16158 | (RE_Set_Tagged_Kind): Removed. | |
16159 | (RE_Address_Array): New entity. | |
16160 | (RE_DT): New entity. | |
16161 | (RE_Iface_Tag): New entity. | |
16162 | (RE_Interfaces_Table): New entity. | |
16163 | (RE_No_Dispatch_Table): New entity. | |
16164 | (RE_NDT_Prims_Ptr): New entity. | |
16165 | (RE_NDT_TSD): New entity. | |
16166 | (RE_Num_Prims): New entity. | |
16167 | (RE_Offset_To_Top_Function_Ptr): New entity. | |
16168 | (RE_OSD_Table): New entity. | |
16169 | (RE_OSD_Num_Prims): New entity. | |
16170 | (RE_Predef_Prims): New entity | |
16171 | (RE_Predef_Prims_Table_Ptr): New entity. | |
16172 | (RE_Primary_DT): New entity. | |
16173 | (RE_Signature): New entity. | |
16174 | (RE_SSD): New entity. | |
16175 | (RE_TSD): New entity. | |
16176 | (RE_Type_Specific_Data): New entity. | |
16177 | (RE_Tag_Kind): New entity. | |
16178 | ||
16179 | 2007-06-06 Thomas Quinot <quinot@adacore.com> | |
16180 | ||
16181 | * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the | |
16182 | C imported variable. | |
16183 | (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set | |
16184 | on entry. | |
16185 | ||
16186 | 2007-06-06 Robert Dewar <dewar@adacore.com> | |
16187 | ||
16188 | * a-tienio.adb (Get): Adjust buffer size to accomodate one extra | |
16189 | character | |
16190 | ||
16191 | 2007-06-06 Vincent Celier <celier@adacore.com> | |
16192 | ||
16193 | * a-tifiio.adb (Put, internal): For negative numbers, check that there | |
16194 | is room for at least one digit and the minus sign. | |
16195 | (Put.Put_Character): Never put a character outside of the range of | |
16196 | string To. | |
16197 | ||
16198 | 2007-06-06 Olivier Hainque <hainque@adacore.com> | |
16199 | Eric Botcazou <ebotcazou@adacore.com> | |
16200 | ||
16201 | * utils2.c (build_allocator): Provide the extra arguments to | |
16202 | make_aligning_type for super-aligned objects allocated from the default | |
16203 | pool. Leave enough room for a pointer before the aligning field, and | |
16204 | store the system's allocator return value there. | |
16205 | (build_call_alloc_dealloc): When releasing a super-aligned object, | |
16206 | retrieve the system's allocator return value from where build_allocator | |
16207 | has stored it, just ahead of the adjusted address we are passed. | |
16208 | (build_call_raise): Handle properly the generation of line numbers when | |
16209 | the node is marked No_Location. | |
16210 | (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort | |
16211 | by using DECL_UID on ties. | |
16212 | (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same | |
16213 | main variant. | |
16214 | (build_call_raise): Handle converting exception into goto; support new | |
16215 | argument KIND. | |
16216 | (build_component_ref): Add new arg to build_call_raise. | |
16217 | ||
16218 | 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com> | |
16219 | ||
16220 | * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse | |
16221 | "." in the case of nnn.xxx when nnn terminates with an underscore. | |
16222 | Parse the remaining "#" or ":" in the case of nnn#.xxx# | |
16223 | ||
16224 | 2007-06-06 Robert Dewar <dewar@adacore.com> | |
16225 | ||
16226 | * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT | |
16227 | ||
16228 | 2007-06-06 Arnaud Charlet <charlet@adacore.com> | |
16229 | Vincent Celier <celier@adacore.com> | |
16230 | Robert Dewar <dewar@adacore.com> | |
16231 | ||
16232 | * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when | |
16233 | needed. | |
16234 | (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute | |
16235 | ((destructor)) for adafinal, even when switch -a is used. | |
16236 | Do not issue pragma Linker_Destructor for adafinal when switch -a is | |
16237 | used. | |
16238 | (Gen_Object_Files_Options): Add formatting of Linker Options, when | |
16239 | Output_Linker_Option_List is set. Suppress this formatting when | |
16240 | Zero_Formatting is set. | |
16241 | Add case for CLI_Target. | |
16242 | (System_Restrictions_Used): New flag, used to avoid generating with of | |
16243 | System_Restrictions and initialization of the data unless there is | |
16244 | some use of System.Restrictions in the partition. | |
16245 | (Check_System_Restrictions_Used): New procedure | |
16246 | ||
7c066666 | 16247 | * s-stalib.adb: Remove with of System.Restrictions. No longer needed |
b852d3a0 | 16248 | since we only with this unit in the binder file if it is used elsewhere |
16249 | in the partition. | |
16250 | ||
16251 | 2007-06-06 Vincent Celier <celier@adacore.com> | |
16252 | ||
16253 | * bindusg.adb: Add line for @<response file> | |
16254 | Add lines for new switches -R and -Z | |
16255 | ||
16256 | * gnatbind.adb (Gnatbind): Do not include sources from the GNAT | |
16257 | hierarchy in the list of files of the closure when -R is used | |
16258 | (Gnatbind): Accept arguments starting with '@' to indicate response | |
16259 | files and take the arguments from the response files. | |
16260 | If List_Closure is set, display the referenced files | |
16261 | ||
16262 | 2007-06-06 Javier Miranda <miranda@adacore.com> | |
16263 | Robert Dewar <dewar@adacore.com> | |
16264 | Ed Schonberg <schonberg@adacore.com> | |
16265 | ||
16266 | * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in | |
16267 | which the address-clause is applied to in-mode actuals (allowed by | |
16268 | 13.1(22)). | |
16269 | (Apply_Discriminant_Check): Do not generate a check if the type is | |
16270 | constrained by a current instance. | |
16271 | (Activate_Division_Check): New procedure | |
16272 | (Activate_Overflow_Check): New procedure | |
16273 | (Activate_Range_Check): New procedure | |
16274 | Call these new Activate procedures instead of setting flags directly | |
16275 | (Apply_Array_Size_Check): Removed, no longer needed. | |
16276 | Code clean up: remove obsolete code related to GCC 2. | |
16277 | (Get_E_Length): Protect against bomb in case scope is standard | |
16278 | (Selected_Range_Checks): If the node to be checked is a conversion to | |
16279 | an unconstrained array type, and the expression is a slice, use the | |
16280 | bounds of the slice to construct the required constraint checks. | |
16281 | Improve NOT NULL error messages | |
16282 | (Apply_Constraint_Check): If the context is a null-excluding access | |
16283 | type, diagnose properly the literal null. | |
16284 | ||
16285 | 2007-06-06 Pascal Obry <obry@adacore.com> | |
16286 | ||
16287 | * clean.adb (Clean_Archive): Use untouched casing for the archive name | |
16288 | and the corresponding .deps file. | |
16289 | (Clean_Interface_Copy_Directory): Use untouched casing for the library | |
16290 | src directory. Minor code-clean-up. Use untouched casing for files | |
16291 | read into the library src dir. | |
16292 | (Clean_Library_Directory): Idem. | |
16293 | (Parse_Cmd_Line): Accept new switch -aP | |
16294 | ||
16295 | 2007-06-06 Javier Miranda <miranda@adacore.com> | |
16296 | Ed Schonberg <schonberg@adacore.com> | |
16297 | Robert Dewar <dewar@adacore.com> | |
16298 | Eric Botcazou <ebotcazou@adacore.com> | |
16299 | Arnaud Charlet <charlet@adacore.com> | |
16300 | ||
16301 | * einfo.ads, einfo.adb (Available_View): New synthesized attribute | |
16302 | applicable to types that have the With_Type flag set. Returns the | |
16303 | non-limited view of the type, if available, otherwise the type itself. | |
16304 | For class-wide types, there is no direct link in the tree, so we have | |
16305 | to retrieve the class-wide type of the non-limited view of the Etype. | |
16306 | New attributes Static_Initialization and Static_Elaboration_Desired. | |
16307 | Remove the pragma Thread_Body, and the associated flag | |
16308 | Is_Thread_Body in entities, and all related code. | |
16309 | (Suppress_Value_Tracking_On_Call): New flag | |
16310 | E_Exception has Esize and Alignment fields | |
16311 | (Universal_Aliasing): New function. | |
16312 | (Set_Universal_Aliasing): New procedure. | |
16313 | (Write_Entity_Flags): Deal with Universal_Aliasing flag. | |
16314 | (Check_Nested_Access): New procedure. | |
16315 | (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures. | |
16316 | (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access. | |
16317 | (Related_Interface): New attribute. Present in dispatch table pointer | |
16318 | components of records. Set to point to the entity of the corresponding | |
16319 | interface type. | |
16320 | (Is_By_Reference_Type): Recurse on the full view of an incomplete type. | |
16321 | (Original_Access_Type): Remove, not needed. | |
16322 | (Root_Type): Handle properly subtypes of class-wide-types. | |
16323 | Update comments. | |
16324 | ||
16325 | * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for | |
16326 | class-wide types visible through limited-with clauses. | |
16327 | (Try_Primitive_Operation): When examining all primitive operations of a | |
16328 | tagged type, do not consider subprograms labeled as hidden unless they | |
16329 | belong to a private generic type with a tagged parent. | |
16330 | (Try_Object_Operation): Extensive rewriting, to handle properly various | |
16331 | overloading cases, when several ancestors may have class-wide operations | |
16332 | that are possible candidates, and when the overloaded functions return | |
16333 | array types and have defaulted parameters so that the call may be | |
16334 | interpreted as an indexing. | |
16335 | (Analyze_Allocator): Remove Mark_Allocator and its invocation. | |
16336 | (Process_Function_Call): use Next, rather than Next_Actual, to analyze | |
16337 | successive actuals before analyzing the call itself. | |
16338 | (Try_Primitive_Operation): A primitive operation is compatible with the | |
16339 | prefix if the prefix has a synchronized type and the type of the formal | |
16340 | is its corresponding record, as can be the case when the primitive | |
16341 | operation is declared outside of the body of the type. | |
16342 | (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to | |
16343 | perform homonym traversal, looking for class-wide operation matches | |
16344 | (formerly done in statements of Try_Class_Wide_Operation). Matches on | |
16345 | access parameters are now restricted to anonymous access types. | |
16346 | (Mark_Allocator): An allocator with a discriminant association parent is | |
16347 | a coextension. | |
16348 | (Try_One_Prefix_Interpretation): If the type of the object is | |
16349 | incomplete, as can be happen when it is a limited view obtained through | |
16350 | a limited_with_clause, the selected component is not part of a prefixed | |
16351 | call. | |
16352 | (Complete_Object_Operation): Diagnose properly an object that is not | |
16353 | aliased when the corresponding controlling formal is an access | |
16354 | parameter. | |
16355 | (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly | |
16356 | ambiguous calls in prefixed notation, where two primitives differ only | |
16357 | in that the controlling argument of one is an access parameter. | |
16358 | ||
16359 | * sem_ch6.adb (Has_Single_Return): Add guard in code that determines | |
16360 | whether a function that returns an unconstrained type can be inlined. | |
16361 | (Process_Formals): Diagnose properly the illegal use of an incomplete | |
16362 | type in the profile of an access_to_subprogram declaration. | |
16363 | (Check_Synchronized_Overriding): Nothing check for concurrent types, the | |
16364 | operations are attached to the corresponding record. | |
16365 | (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ. | |
16366 | When processing a primitive of a concurrent type which implements an | |
16367 | interface change the type of all controlling formals to that of the | |
16368 | corresponding record type. | |
16369 | (Check_Synchronized_Overriding): Relax the conditional logic when trying | |
16370 | to determine the tagged type to which a primitive belongs. | |
16371 | (Check_Conventions): Capture condition to ignore a primitive operation | |
16372 | (which is shared between the loop in Check_Conventions and the one in | |
16373 | Check_Convention) in a new local function Skip_Check. | |
16374 | (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible | |
16375 | confusion with Check_Conventions' own Prim_Op local variable. | |
16376 | (Create_Extra_Formals): Test for a tagged result type rather than a | |
16377 | controlling result when determining whether to add a BIP_Alloc_Form | |
16378 | formal and a BIP_Final_List formal to the function. | |
16379 | (Check_Conformance); For parameters that are anonymous access types, | |
16380 | subtype conformance requires that the not null and the constant | |
16381 | indicators must match | |
16382 | (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery | |
16383 | to retrieve the appropriate type when processing a concurrent type | |
16384 | declared within a generic. Minor comment reformatting. Change invocation | |
16385 | of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri- | |
16386 | mitive. | |
16387 | (Analyze_Subprogram_Body): If the return type of a function is an | |
16388 | anonymous access to the limited view of a class-wide type, and the | |
16389 | non-limited view of the type is available, update the type of the | |
16390 | function so that code can be generated. | |
16391 | (Process_Formals): In case of access-subtype itype whose designated | |
16392 | type is also an itype (situation that happens now with access to | |
16393 | subprograms) we mark the access-type itype with the Has_Delayed_Freeze | |
16394 | attribute to avoid backend problems. | |
16395 | (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in | |
16396 | init of R_Stm_Type_Is_Anon_Access. Also check that base types of the | |
16397 | anonymous types' designated types are same before testing | |
16398 | Subtypes_Statically_Match. | |
16399 | (Create_Extra_Formals): Test for a named access parameter that is a | |
16400 | controlling formal as an additional condition for adding an | |
16401 | accessibility level formal. This can occur in the subp type created for | |
16402 | dispatching calls in Expand_Dispatching_Call, and allows calling | |
16403 | Create_Extra_Formals from that procedure rather than special-casing the | |
16404 | extra formals there. | |
16405 | (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals | |
16406 | when the function has a controlling result. | |
16407 | (Check_Returns): Add much more knowledge of the optimization of local | |
16408 | raise statements to gotos, to retain proper warnings in this case. | |
16409 | (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label | |
16410 | nodes when looking for last statement. | |
16411 | ||
16412 | * sem_type.ads, sem_type.adb (Specific_Type): Add support for | |
16413 | class-wide types visible through limited with clauses. | |
16414 | (Add_One_Interp): If the operands are anonymous access types, the | |
16415 | predefined operator on universal_access is immediately visibles | |
16416 | (Find_Unique_Type): Handle anonymous access to subprogram types just as | |
16417 | other anonymous access types. | |
16418 | (Disambiguate): Take into account CIL convention. | |
16419 | (Interface_Present_In_Ancestor): Add support for class-wide interfaces. | |
16420 | ||
16421 | 2007-06-06 Robert Dewar <dewar@adacore.com> | |
16422 | ||
16423 | * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb, | |
16424 | sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads, | |
16425 | elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure. | |
16426 | Fix lower bound of tables. | |
16427 | Add rep clauses. | |
16428 | ||
16429 | * nlists.adb: Ditto. | |
16430 | (Prev_Node, Next_Node): Change index type to Int so that it properly | |
16431 | covers the range First_Node_Id - 1 up. | |
16432 | ||
16433 | 2007-06-06 Javier Miranda <miranda@adacore.com> | |
16434 | Ed Schonberg <schonberg@adacore.com> | |
16435 | Bob Duff <duff@adacore.com> | |
16436 | Hristian Kirtchev <kirtchev@adacore.com> | |
16437 | ||
7c066666 | 16438 | * exp_aggr.ads, exp_aggr.adb: |
b852d3a0 | 16439 | (Build_Record_Aggr_Code): Add missing initialization of secondary tags |
16440 | in extension aggregates. | |
16441 | (Flatten): Other conditions being met, an aggregate is static if the | |
16442 | low bound given by component associations is different from the low | |
16443 | bound of the base index type. | |
16444 | (Packed_Array_Aggregate_Handled): If the component type is itself a | |
16445 | packed array or record, the front-end must expand into assignments. | |
16446 | (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to | |
16447 | Init_Pr, instead of Ancestor_Is_Expression. | |
16448 | (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a | |
16449 | coextension chain root, either generate a list controller or use the | |
16450 | already existing one. | |
16451 | (Static_Array_Aggregate): New procedure to construct a positional | |
16452 | aggregate that can be handled by the backend, when all bounds and | |
16453 | components are compile-time known constants. | |
16454 | (Expand_Record_Aggregate): Force conversion of aggregates of tagged | |
16455 | types covering interface types into assignments. | |
16456 | (Replace_Type): move to Build_Record_Aggr_Code. | |
16457 | (Expand_Record_Aggr_Code): if the target of the aggregate is an | |
16458 | interface type, convert to the definite type of the aggregate itself, | |
16459 | so that needed components are visible. | |
16460 | (Convert_Aggr_In_Object_Decl): If the aggregate has controlled | |
16461 | components and the context is an extended return statement do not | |
16462 | create a transient block for it, to prevent premature finalization | |
16463 | before the return is executed. | |
16464 | (Gen_Assign): Do not generate a call to deep adjust routine if the | |
16465 | component type is itself an array of controlled (sub)-components | |
16466 | initialized with an inner aggregate. | |
16467 | (Component_Check): New name for Static_Check. This name is now more | |
16468 | appropriate, and documentation is added which was missing. | |
16469 | (Component_Check): Add test for bit aligned component value | |
16470 | (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_ | |
16471 | Tagged_Comps, name is more appropriate given added function below. | |
16472 | (Component_Not_OK_For_Backend): Check for bit aligned component ref. | |
16473 | ||
16474 | 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com> | |
16475 | Javier Miranda <miranda@adacore.com> | |
16476 | Robert Dewar <dewar@adacore.com> | |
16477 | ||
16478 | * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and | |
16479 | Terminated: Add unchecked type conversion from System.Address to | |
16480 | System.Tasking.Task_Id when calling the predefined primitive | |
16481 | _disp_get_task_id. | |
16482 | Disable new Ada 05 accessibility check for JVM.NET targets, which | |
16483 | cannot be implemented in a practical way. | |
16484 | (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in | |
16485 | the sources always references the tag of the actual object. Therefore, | |
16486 | if 'Tag is applied in the sources to class-wide interface objects we | |
16487 | generate code that displaces "this" to reference the base of the object. | |
16488 | (Expand_N_Attribute_Reference, case Size): Return specified size if | |
16489 | known to front end. | |
16490 | (Expand_N_Attribute_Reference): The expansion of the 'Address attribute | |
16491 | has code that displaces the pointer of the object to manage interface | |
16492 | types. However this code must not be executed when the prefix is a | |
16493 | subprogram. This bug caused the wrong expansion of the internally | |
16494 | generated assignment that fills the dispatch table when the primitive | |
16495 | is a function returning a class-wide interface type. | |
16496 | (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to | |
16497 | Set_Attribute_Name for Name_Unaligned_Valid. | |
16498 | ||
16499 | 2007-06-06 Ed Schonberg <schonberg@adacore.com> | |
16500 | Gary Dismukes <dismukes@adacore.com> | |
16501 | ||
16502 | * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address): | |
16503 | If the initialization is the equivalent aggregate of the initialization | |
16504 | procedure of the type, do not remove it. | |
16505 | (Expand_N_Attribute_Definition_Clause): Exclude access variables | |
16506 | initialized to null from having their expression reset to empty and | |
16507 | note this exception in the comment. | |
16508 | ||
16509 | 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com> | |
16510 | Robert Dewar <dewar@adacore.com> | |
16511 | Ed Schonberg <schonberg@adacore.com> | |
16512 | Gary Dismukes <dismukes@adacore.com> | |
16513 | ||
16514 | * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames. | |
16515 | Add "with" and "use" clauses for Sem_Attr. | |
16516 | (Expand_Current_Value): Do not replace occurences of attribute | |
16517 | references where the prefix must be a simple name. | |
16518 | ||
16519 | * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for | |
16520 | Namet. Add new arrays Attribute_Name_Modifies_Prefix and | |
16521 | Attribute_Requires_Simple_Name_Prefix. | |
16522 | (Name_Modifies_Prefix): Body of new function. | |
16523 | (Requires_Simple_Name_Prefix): Body of new function. | |
16524 | (Resolve_Attribute, case Access): Improve error message for case of | |
16525 | mismatched conventions. | |
16526 | (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an | |
16527 | incomplete type. | |
16528 | (Analyze_Attribute, case 'Access): If the type of the prefix is a | |
16529 | constrained subtype for a nominal unconstrained type, use its base type | |
16530 | to check for conformance with the context. | |
16531 | (Resolve_Attribute): Remove test of the access type being associated | |
16532 | with a return statement from condition for performing accessibility | |
16533 | checks on access attributes, since this case is now captured by | |
16534 | Is_Local_Anonymous_Access. | |
16535 | (Analyze_Access_Attribute): Set Address_Taken on entity | |
16536 | (Analyze_Attribute, case Address): Set Address_Taken on entity | |
16537 | (OK_Self_Reference): Traverse tree to locate enclosing aggregate when | |
16538 | validating an access attribute whose prefix is a current instance. | |
16539 | (Resolve_Attribute): In case of attributes 'Code_Address and 'Address | |
16540 | applied to dispatching operations, if freezing is required then we set | |
16541 | the attribute Has_Delayed_Freeze in the prefix's entity. | |
16542 | (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in | |
16543 | current scope if access of local subprogram taken | |
16544 | (Analyze_Access_Attribute): Check legality of self-reference even if the | |
16545 | expression comes from source, as when a single component association in | |
16546 | an aggregate has a box association. | |
16547 | (Resolve_Attribute, case 'Access): Do not apply accessibility checks to | |
16548 | the prefix if it is a protected operation and the attribute is | |
16549 | Unrestricted_Access. | |
16550 | (Resolve_Attribute, case 'Access): Set the Etype of the attribute | |
16551 | reference to the base type of the context, to force a constraint check | |
16552 | when the context is an access subtype with an explicit constraint. | |
16553 | (Analyze_Attribute, case 'Class): If the prefix is an interface and the | |
16554 | node is rewritten as an interface conversion. leave unanalyzed after | |
16555 | resolution, to ensure that type checking against the context will take | |
16556 | place. | |
16557 | ||
16558 | 2007-06-06 Ed Schonberg <schonberg@adacore.com> | |
16559 | Javier Miranda <miranda@adacore.com> | |
16560 | Robert Dewar <dewar@adacore.com> | |
16561 | ||
16562 | * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a | |
16563 | wrapper when the full view of the controlling type of an inherited | |
16564 | function that dispatches on result implements interfaces. | |
16565 | (Expand_N_Object_Declaration): In cases where the type of the | |
16566 | declaration is anonymous access, create finalization list for it. | |
16567 | (Expand_N_Object_Declaration): Generate a persistent_bss directive only | |
16568 | if the object has no explicit initialization, to match description of | |
16569 | functionality of pragam Persistent_BSS. | |
16570 | (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate): | |
16571 | new function to build static aggregates, to replace initialization call | |
16572 | when static initialization is desired. | |
16573 | (Freeze_Type): Generate a list controller for an access type whenever | |
16574 | its designated type has controlled anonymous access discriminants. | |
16575 | (Build_Equivalent_Aggregate): New procedure to compute a static | |
16576 | aggregate to be used as default initialization for composite types, | |
16577 | instead of a generating a call to the initialization procedure for the | |
16578 | type. | |
16579 | (Build_Initialization_Call): When available, replace a call to the | |
16580 | initialization procedure with a copy of the equivalent static aggregate | |
16581 | for the type. | |
16582 | (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated | |
16583 | declarations for objects of a class-wide interface type, rather than | |
16584 | just identifiers, to prevent visibility problems. | |
16585 | (Expand_N_Object_Declaration): When expanding the declaration for an | |
16586 | object of a class-wide interface type, preserve the homonym chain of | |
16587 | the original entity before exchanging it with that of the generated | |
16588 | renaming declaration. | |
16589 | (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation | |
16590 | active, because there is no way to handle the exception. | |
16591 | (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT | |
16592 | to do a minimum decoration of the Access_Disp_Table list. | |
16593 | (Expand_Record_Controller): Avoid the addition of the controller between | |
16594 | the component containing the tag of a secondary dispatch table and its | |
16595 | adjacent component that stores the offset to the base of the object. | |
16596 | This latter component is only generated when the parent type has | |
16597 | discriminants ---documented in Add_Interface_Tag_Components). | |
16598 | (Apply_Array_Size_Check): Removed, no longer needed. | |
16599 | (Expand_N_Full_Type_Declaration): If the type has anonymous access | |
16600 | components, create a Master_Entity for it only if it contains tasks. | |
16601 | (Build_Init_Procedure): Suppress the tag assignment compiling under | |
16602 | no run-time mode. | |
16603 | (Freeze_Record_Type): Remove code associated with creation of dispatch | |
16604 | table. | |
16605 | (Init_Secondary_Tags): Update type of actuals when generating calls to | |
16606 | Ada.Tags.Set_Offset_To_Top | |
16607 | (Stream_Operation_OK): Disable use of streams compiling under no | |
16608 | run-time mode | |
16609 | (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization | |
16610 | if Has_Init_Expression set. | |
16611 | (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to | |
16612 | Register_Primitive, which provides the same functionality. | |
16613 | (Requires_Init_Proc): Return false in case of interface types. | |
16614 | (Add_Secondary_Tables): Use the new attribute Related_Interface to | |
16615 | cleanup the code. | |
16616 | (Predefined_Primitive_Freeze): Do not assume that an internal entity | |
16617 | is always associated with a predefined primitive because the internal | |
16618 | entities associated with interface types are not predefined primitives. | |
16619 | Therefore, the call to Is_Internal is replaced by a call to the | |
16620 | function Is_Predefined_Dispatching_Operation. | |
16621 | (Make_Eq_If): When generating the list of comparisons for the | |
16622 | components of a given variant, omit the controller component that is | |
16623 | present if the variant has controlled components. | |
16624 | ||
16625 | 2007-06-06 Javier Miranda <miranda@adacore.com> | |
16626 | Hristian Kirtchev <kirtchev@adacore.com> | |
16627 | Bob Duff <duff@adacore.com> | |
16628 | ||
16629 | * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to | |
16630 | handle the creation of finalization lists and calls for nested | |
16631 | coextensions when the root of the chains is part of a return statement. | |
16632 | (Inside_A_Return_Statement): New function inside Complete_Coextension_ | |
16633 | Finalization. | |
16634 | (Expand_Record_Equality): Skip components that are interface types. | |
16635 | (Displace_Allocator_Pointer): Add missing support for interface subtypes | |
16636 | (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant | |
16637 | with Rewrite_Coextension. Change the condition for detecting coextension | |
16638 | root nodes. | |
16639 | (Is_Local_Access_Discriminant): Removed. | |
16640 | (Rewrite_Coextension): New routine which rewrites a static coextension | |
16641 | as a temporary and uses its unrestricted access in the construction of | |
16642 | the outer object. | |
16643 | (Complete_Coextension_Finalization): New routine. Generate finalization | |
16644 | attachment calls to all delayed coextensions. | |
16645 | (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever | |
16646 | the allocator is not a coextension itself and has delayed coextensions. | |
16647 | If the current allocator is controlled, but also a coextension, delay | |
16648 | the generation of the finalization attachment call. | |
16649 | Rename local variable "Node" to "Nod" in order to avoid confusion with | |
16650 | "Elists.Node". | |
16651 | (Expand_Allocator_Expression): Call Adjust for initialized allocators of | |
16652 | limited types that are not inherently limited. Such an allocator is | |
16653 | illegal, but is generated by the expander for a return statement, to | |
16654 | copy the result onto the secondary stack. This is the only case where a | |
16655 | limited object can be copied. Generate code to displace the pointer | |
16656 | to the object if the qualified expression is a class-wide interface | |
16657 | object. Such displacement was missing and hence the copy of the object | |
16658 | was wrong. | |
16659 | (Apply_Accessibility_Check): Handle allocated objects initialized in | |
16660 | place. | |
16661 | (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator | |
16662 | and Expand_Allocator_Expression. Allocating class-wide interface objects | |
16663 | this routine displaces the pointer to the allocated object to reference | |
16664 | the component referencing the corresponding secondary dispatch table. | |
16665 | Expand_Allocator_Expression): Add missing support to allocate class-wide | |
16666 | interface objects initialized with a qualified expression. | |
16667 | (Get_Allocator_Final_List): Test for an anonymous access type that is a | |
16668 | function result type, and use the finalization list associated with the | |
16669 | function scope in that case (such an anonymous type should not be | |
16670 | treated like an access parameter's type). | |
16671 | ||
16672 | 2007-06-06 Ed Schonberg <schonberg@adacore.com> | |
16673 | Gary Dismukes <dismukes@adacore.com> | |
16674 | Javier Miranda <miranda@adacore.com> | |
16675 | ||
16676 | * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a | |
16677 | controlled type, use Make_Handler_For_Ctrl_Operation to construct the | |
16678 | required exception handler. | |
16679 | (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle | |
16680 | properly the case of a function whose return type is a limited | |
16681 | class-wide interface type. Modify the code of the accessibility | |
16682 | check to handle class-wide interface objects. In this case we need to | |
16683 | displace "this" to reference the primary dispatch table to get access | |
16684 | to the TSD of the object (to evaluate its accessibility level). | |
16685 | (Expand_N_Extended_Return_Statement): Test for a tagged result type | |
16686 | rather than a controlling result as one of the conditions for | |
16687 | generating tests of the implicit BIP_Alloc_Form formal. The | |
16688 | initialization assignment is also handled according to whether the | |
16689 | result is tagged instead of controlling. | |
16690 | In the case where the init assignment is inserted in the "then" part of | |
16691 | the allocation conditional, rewrite the target to be a dereference of | |
16692 | the implicit BIP_Object_Access formal. | |
16693 | If the returned value is unconstrained and created on the secondary | |
16694 | stack, mark the enclosing block and function so that the secondary | |
16695 | stack is not reclaimed on return. | |
16696 | Treat returns from functions with controlling results similarly to | |
16697 | returns from functions with unconstrained result subtypes. | |
16698 | If the object returned is unconstrained, and an allocator must be | |
16699 | created for it, analyze the allocator once the block for the extended | |
16700 | return is installed, to ensure that finalizable components | |
16701 | of the expression use the proper finalization list. Guard the call to | |
16702 | Move_Final_List with a check that there is something to finalize. | |
16703 | (Make_Tag_Ctrl_Assignment): Use "old" handling | |
16704 | of controlled type assignment for virtual machines, since new code uses | |
16705 | unsupported features (such as direct access to bytes in memory). | |
16706 | ||
16707 | 2007-06-06 Gary Dismukes <dismukes@adacore.com> | |
16708 | Ed Schonberg <schonberg@adacore.com> | |
16709 | ||
16710 | * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra | |
16711 | accessibility actual, check for the case of an aliased object that has | |
16712 | been rewritten as an Access attribute, and assign Prev to Prev_Orig so | |
16713 | we fall into processing for the attribute rather than the name of the | |
16714 | object. | |
16715 | (Expand_Inline_Call): If an actual is a literal, and the corresponding | |
16716 | formal has its address taken in the body, create a temporary to capture | |
16717 | value. If the return type is a limited interface, do not treat the | |
16718 | return value as Controlled. | |
16719 | (Is_In_Place_Function): If the return type is a limited interface, | |
16720 | treat as returning in place. The actual returned object may not always | |
16721 | be limited, but the caller has to assume that it is returned in place. | |
16722 | (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the | |
16723 | context of an allocator, use the correct finalization chain (that is, | |
16724 | the chain belonging to the access type, rather than the chain belonging | |
16725 | to the current scope). | |
16726 | (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged | |
16727 | result type rather than a controlling result as a precondition for | |
16728 | adding an allocation form actual to a build-in-place call. | |
16729 | (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto. | |
16730 | (Freeze_Subprogram): Code cleanup. Remove all the code that register the | |
16731 | primitive in the dispatch tables. This work is now done by Make_DT when | |
16732 | the type is frozen. | |
16733 | (Register_Predefined_DT_Entry): Removed. | |
16734 | (Add_Return): If end label is not present, use sloc of last statement | |
16735 | for generated return statement in procedure, for better gdb behavior | |
16736 | on expanded code. | |
16737 | (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the | |
16738 | object address nodes to ensure proper processing by routines like | |
16739 | Insert_After*. | |
16740 | (Expand_Call): Fix generation of validity check for parameter | |
16741 | (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing | |
16742 | the allocation form parameter if the result subtype is constrained, | |
16743 | except when the function has a controlling result. | |
16744 | (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type | |
16745 | rather than Is_Controlled and Has_Controlled_Component, since we want to | |
16746 | include class-wide result types in this treatment. Also test for a | |
16747 | controlling result, since that also requires passing a finalization | |
16748 | list. | |
16749 | (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_* | |
16750 | even when the result subtype is constrained, to handle calls involving | |
16751 | controlling results. | |
16752 | (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_* | |
16753 | is now called even when the result subtype is constrained, to handle | |
16754 | calls involving controlling results. | |
16755 | (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained | |
16756 | on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure | |
16757 | now performs the test). | |
16758 | (Make_Build_In_Place_Call_In_Object_Declaration): | |
16759 | Add_Alloc_Form_Actual_* is now called even when the result subtype is | |
16760 | constrained, to handle calls involving controlling results. | |
16761 | (Add_Return): Accomodate rewritten pattern from local raise to goto | |
16762 | transformation, so that we still recognize an transfer statement | |
16763 | and do the right thing here in that case. | |
16764 | (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start | |
16765 | and end of subprogram code. | |
16766 | (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing | |
16767 | support for primitives that are functions (without formals) with a | |
16768 | controlling result. | |
16769 | (Inherited_From_Formal): If the actual subtype has not generic parent | |
16770 | type, it is not an actual for a formal derived type, and there is no | |
16771 | operation to inherit from the formal. | |
16772 | ||
16773 | 2007-06-06 Ed Schonberg <schonberg@adacore.com> | |
16774 | Thomas Quinot <quinot@adacore.com> | |
16775 | ||
16776 | * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of | |
16777 | inserted cleanup code appropriately for GDB use. | |
16778 | (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create | |
16779 | exception handler for Deep_Adjust or Deep_Finalize. | |
16780 | (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity | |
16781 | Raise_From_Controlled_Operation is available, use a call to that | |
16782 | subprogram instead of a plain "raise Program_Error" node to raise | |
16783 | Program_Error if an exception is propagated from an Adjust or Finalize | |
16784 | operation. | |
16785 | (Insert_Actions_In_Scope_Around): If the statement to be wrapped | |
16786 | appears in the optional statement list of a triggering alternative, the | |
16787 | scope actions can be inserted directly there, and not in the list that | |
16788 | includes the asynchronous select itself. | |
16789 | ||
16790 | 2007-06-06 Ed Schonberg <schonberg@adacore.com> | |
16791 | Robert Dewar <dewar@adacore.com> | |
16792 | Hristian Kirtchev <kirtchev@adacore.com> | |
16793 | ||
16794 | * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of | |
16795 | generated exception handler appropriately when debugging generated code. | |
16796 | Deal properly with No_Exception_Propagation restriction mode. | |
16797 | (Expand_N_Abort_Statement): Add an unchecked type conversion from | |
16798 | System.Address to System.Tasking.Task_Id when processing the result of | |
16799 | the predefined primitive _disp_get_task_id. | |
16800 | (Expand_N_Asynchronous_Select): Clarify comment. | |
16801 | (Expand_N_Protected_Type_Declaration): Minor code cleanup. | |
16802 | (Find_Parameter_Type): New routine inside Type_Conformant_Parameters. | |
16803 | (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup. | |
16804 | (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for | |
16805 | privals and for generated call to Complete_Entry_Body, for better gdb | |
16806 | behavior. | |
16807 | (Copy_Result_Type): Utility to construct a parameter and result profile | |
16808 | for protected functions whose return type is an anonymous access to | |
16809 | subprogram. | |
16810 | (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type): | |
16811 | call the above. | |
16812 | (Build_Task_Activation_Call): Insert Activate_Tasks call at proper | |
16813 | point when the local-raise-to-goto transformation has taken place. | |
16814 | ||
16815 | 2007-06-06 Javier Miranda <miranda@adacore.com> | |
16816 | Nicolas Setton <setton@adacore.com> | |
16817 | ||
16818 | * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its | |
16819 | functionality when the backend is generating code. | |
16820 | Otherwise any serious error | |
16821 | reported by the backend calling the frontend routine Error_Msg | |
16822 | changes the Compilation_Mode to Check_Semantics, disables the | |
16823 | functionality of this routine and causes the generation of | |
16824 | spureous additional errors. | |
16825 | ||
16826 | * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the | |
16827 | debugging information now generated by the compiler for fat-pointer | |
16828 | types. | |
16829 | Document the contents of DW_AT_producer in the GNAT Vendor extensions to | |
16830 | DWARF2/3. | |
16831 | Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch. | |
16832 | ||
16833 | 2007-06-06 Thomas Quinot <quinot@adacore.com> | |
16834 | ||
16835 | * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram | |
16836 | (GARLIC_Support.Build_Subprogram_Receiving_Stubs, | |
16837 | PolyORB_Support.Build_Subprogram_Receiving_Stubs): | |
16838 | For a remote call to a function with a classwide return type, apply an | |
16839 | E.4(18) check to the returned value. | |
16840 | (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for | |
16841 | stream attributes of the designated type of an RACW, as they are not | |
16842 | dispatching primitive operations. | |
16843 | ||
16844 | 2007-06-06 Geert Bosch <bosch@adacore.com> | |
16845 | ||
16846 | * exp_fixd.adb (Integer_Literal): Add optional argument to construct a | |
16847 | negative literal | |
16848 | (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always | |
16849 | positive | |
16850 | (Do_Divide_Fixed_Universal): Handle case of negative Frac. | |
16851 | (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always | |
16852 | positive | |
16853 | (Do_Multiply_Fixed_Universal): Handle case of negative Frac. | |
16854 | ||
16855 | 2007-06-06 Javier Miranda <miranda@adacore.com> | |
16856 | ||
16857 | * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this | |
16858 | attribute compiling package Ada.Tags under No_Run_Time_Mode. | |
16859 | ||
16860 | 2007-06-06 Javier Miranda <miranda@adacore.com> | |
16861 | ||
16862 | * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for | |
16863 | deallocation of class-wide interface objects. | |
16864 | (Expand_Dispatching_Constructor_Call): Take into account that if the | |
16865 | result of the dispatching constructor is an interface type, the | |
16866 | function returns a class-wide interface type; otherwise the returned | |
16867 | object would be actual. The frontend previously accepted returning | |
16868 | interface types because Expand_Interface_Actuals silently performed | |
16869 | the management of the returned type "as if" it were a class-wide | |
16870 | interface type. | |
16871 | (Expand_Dispatching_Constructor_Call): Replace call to | |
16872 | Make_DT_Access_Action by direct call to Make_Function_Call. | |
16873 | ||
16874 | 2007-06-06 Robert Dewar <dewar@adacore.com> | |
16875 | Ed Schonberg <schonberg@adacore.com> | |
16876 | ||
16877 | * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to | |
16878 | compute masking constant, since we now set Esize properly to the | |
16879 | underlying size. | |
16880 | (Create_Packed_Array_Type): Set proper Esize value adjusted as required | |
16881 | to match the alignment. | |
16882 | (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for | |
16883 | packed arrays of 8 bits or less. | |
16884 | ||
16885 | * freeze.adb (Freeze_Entity): When freezing the formals of a | |
16886 | subprogram, freeze the designated type of a parameter of an access type | |
16887 | only if it is an access parameter. | |
16888 | Increase size of C convention enumeration object | |
16889 | (Freeze_Entity, array type case): Make sure Esize value is properly | |
16890 | adjusted for the alignment if it is known. | |
16891 | (Freeze_Entity, array type case): When checking bit packed arrays for | |
16892 | the size being incorrect, check RM_Size, not Esize. | |
16893 | (Freeze_Record_Type): Check for bad discriminated record convention | |
16894 | (In_Exp_Body): Return true if the body is generated for a subprogram | |
16895 | renaming, either an attribute renaming or a renaming as body. | |
16896 | (Check_Itype): If the designated type of an anonymous access component | |
16897 | is a non-protected subprogram type, indicate that it is frozen, to | |
16898 | prevent out-of-scope freeze node at some subsequent call. | |
16899 | (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism | |
16900 | only if the subprogram is neither imported nor exported, as well as the | |
16901 | NCA descriptor class if the subprogram is exported. | |
16902 | ||
16903 | 2007-06-06 Ed Schonberg <schonberg@adacore.com> | |
16904 | Arnaud Charlet <charlet@adacore.com> | |
16905 | Robert Dewar <dewar@adacore.com> | |
16906 | Gary Dismukes <dismukes@adacore.com> | |
16907 | ||
16908 | * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a | |
16909 | default initialization on an imported object, when there is no | |
16910 | initialization call generated for it. | |
16911 | (Expand_Pragma_Assert): Add handling of No_Exception_Propagation | |
16912 | restriction | |
16913 | ||
16914 | * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma | |
16915 | Static_Elaboration_Desired. | |
16916 | Remove pragma Thread_Body. | |
16917 | Implement a new pragma No_Body | |
16918 | Removes the Explicit_Overriding pragma | |
16919 | Remove Optional_Overriding pragma | |
16920 | (Prag): Deal with Universal_Aliasing. | |
16921 | (Name_CIL, Name_CIL_Constructor, Convention_CIL, | |
16922 | Pragma_CIL_Constructor): New names. | |
16923 | ||
16924 | * sem_cat.adb (Validate_Object_Declaration): An initialization that | |
16925 | uses the equivalent aggregate of a type must be treated as an implicit | |
16926 | initialization. | |
16927 | (Get_Categorization): Check a unit for pragma Preelaborate only if it | |
16928 | has none of the other categories. | |
16929 | (Process_Import_Or_Interface_Pragma): Report an error for an attempt | |
16930 | to apply Import to an object renaming declaration. | |
16931 | ||
16932 | * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported | |
16933 | from a C++ class should be declared as limited and that it will be | |
16934 | considererd limited. | |
16935 | (Analyze_Pragma): Warn that a type specified with pragma CPP_Class | |
16936 | should be declared as limited and that it will be considererd limited. | |
16937 | (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas | |
16938 | (Analyze_Pragma, case Export): Diagnose export of enumeration literal | |
16939 | (Analyze_Pragma): Deal with Universal_Aliasing. | |
16940 | (Sig_Flags): Likewise. | |
16941 | (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP. | |
16942 | (Overflow_Checks_Unsuppressed): New flag. | |
16943 | (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed. | |
16944 | (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in | |
16945 | case of JVM or .NET targets, and compiling user code. | |
16946 | Add debugging convenience routine rv | |
16947 | ||
16948 | 2007-06-06 Robert Dewar <dewar@adacore.com> | |
16949 | ||
16950 | * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that | |
16951 | are interface type. | |
16952 | (Build_Elementary_Input_Call): For floating-point use right type in the | |
16953 | absence of strange size or stream size clauses. | |
16954 | (Build_Elementary_Write_Call): Same fix | |
16955 | (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute | |
16956 | set to value that does not match base type size. | |
16957 | ||
16958 | 2007-06-06 Ed Schonberg <schonberg@adacore.com> | |
16959 | ||
16960 | * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an | |
16961 | object of a limited type can be initialized with a call to a function | |
16962 | that returns in place. If the limited type has unknown discriminants, | |
16963 | and the underlying type is a constrained composite type, build an actual | |
16964 | subtype from the function call, as is done for private types. | |
16965 | (Side_Effect_Free): An expression that is the renaming of an object or | |
16966 | whose prefix is the renaming of a object, is not side-effect free | |
16967 | because it may be assigned through the renaming and its value must be | |
16968 | captured in a temporary. | |
16969 | (Has_Controlled_Coextensions): New routine. | |
16970 | (Expand_Subtype_From_Expr): Do nothing if type is a limited interface, | |
16971 | as is done for other limited types. | |
16972 | (Non_Limited_Designated_Type): new predicate. | |
16973 | (Make_CW_Equivalent_Type): Modified to handle class-wide interface | |
16974 | objects. | |
16975 | Remove all handling of with_type clauses. | |
16976 | ||
7c066666 | 16977 | * par-ch10.adb: Remove all handling of with_type clauses. |
b852d3a0 | 16978 | |
16979 | * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the | |
16980 | checksum if the main source could not be parsed. | |
16981 | (Loat_Unit): When processing a child unit, determine properly whether | |
16982 | the parent unit is a renaming when the parent is itself a child unit. | |
16983 | Remove handling of with_type clauses. | |
16984 | ||
16985 | * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function. | |
16986 | (Set_Is_Static_Coextension): New procedure. | |
16987 | (Has_Local_Raise): New function | |
16988 | (Set_Has_Local_Raise): New procedure | |
16989 | (Renaming_Exception): New field | |
16990 | (Has_Init_Expression): New flag | |
16991 | (Delay_Finalize_Attach): Remove because flag is obsolete. | |
16992 | (Set_Delay_Finalize_Attach): Remove because flag is obsolete. | |
16993 | Remove all handling of with_type clauses. | |
16994 | (Exception_Junk): Can now be set in N_Block_Statement | |
16995 | ||
16996 | 2007-06-06 Vincent Celier <celier@adacore.com> | |
16997 | Robert Dewar <dewar@adacore.com> | |
16998 | ||
16999 | * frontend.adb (Frontend): Return immediately if the main source could | |
17000 | not be parsed, because of preprocessing errors. | |
17001 | ||
17002 | * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully. | |
17003 | (Gnat1drv): Exit with errors if the main source could not be parsed, | |
17004 | because of preprocessing errors. | |
17005 | (Check_Rep_Info): New procedure | |
17006 | ||
17007 | 2007-06-06 Robert Dewar <dewar@adacore.com> | |
17008 | ||
17009 | * g-hesorg.ads, g-heasor.ads, | |
17010 | g-busorg.ads, g-bubsor.ads: Update documentation | |
17011 | GNAT.Heap/Bubble_Sort_G is now pure | |
17012 | ||
17013 | 2007-06-06 Robert Dewar <dewar@adacore.com> | |
17014 | ||
17015 | * g-catiio.ads, g-catiio.adb (Image): Check for null picture string | |
17016 | ||
17017 | 2007-06-06 Robert Dewar <dewar@adacore.com> | |
17018 | Ed Schonberg <schonberg@adacore.com> | |
17019 | ||
7c066666 | 17020 | * g-comlin.ads, g-comlin.adb: |
b852d3a0 | 17021 | Add new warning for renaming of function return objects |
17022 | ||
17023 | * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size | |
17024 | (Tree_Read): Use size of object instead of type'object_size, since the | |
17025 | latter is incorrect for packed array types. | |
17026 | (Tree_Write): Same fix | |
17027 | ||
17028 | * opt.ads: Add new warning for renaming of function return objects | |
17029 | (Generating_Code): New boolean variable used to indicate that the | |
17030 | frontend as finished its work and has called the backend to process | |
17031 | the tree and generate the object file. | |
17032 | (GCC_Version): Is now private | |
17033 | (Static_Dispatch_Tables): New constant declaration. | |
17034 | (Overflow_Checks_Unsuppressed): New flag. | |
17035 | (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed. | |
17036 | (List_Closure): New flag for gnatbind (-R) | |
17037 | Zero_Formatting: New flag for gnatbind (-Z) | |
17038 | (Special_Exception_Package_Used): New flag. | |
17039 | (Warn_On_Unrepped_Components): New flag. | |
17040 | ||
17041 | * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed | |
17042 | unit is a compilation unit, rather than relying on its scope, so that | |
17043 | Standard can be renamed. | |
17044 | (Analyze_Object_Renaming): Add new warning for renaming of function | |
17045 | return objects. | |
17046 | Also reject attempt to rename function return object in Ada 83 mode. | |
17047 | (Attribute_Renaming): In case of tagged types, add the body of the | |
17048 | generated function to the freezing actions of the type. | |
17049 | (Find_Type): A protected type is visible right after the reserved word | |
17050 | "is" is encountered in its type declaration. Set the entity and type | |
17051 | rather than emitting an error message. | |
17052 | (New_Scope): Properly propagate Discard_Names to inner scopes | |
17053 | (Check_Nested_Access): New procedure. | |
17054 | (Has_Nested_Access, Set_Has_Nested_Access): New procedures. | |
17055 | (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access. | |
17056 | ||
17057 | * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning | |
17058 | Add new warning for renaming of function return objects | |
17059 | (Check_References): Suppress warnings for objects whose type or | |
17060 | base type has Warnings suppressed. | |
17061 | (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C | |
17062 | (Set_Warning_Switch): Include new -gnatwc in -gnatwa | |
17063 | ||
17064 | 2007-06-06 Vincent Celier <celier@adacore.com> | |
17065 | Emmanuel Briot <briot@adacore.com> | |
17066 | Olivier Hainque <hainque@adacore.com> | |
17067 | ||
17068 | * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the | |
17069 | absolute value of Header.Block_Size when displaying the freed physical | |
17070 | memory in traces. | |
17071 | (Allocate): Compute Storage_Address using Integer_Address, not | |
17072 | Storage_Offset, because the range of Storage_Offset may not be large | |
17073 | enough. | |
17074 | (Configure): New parameter Low_Level_Traces | |
17075 | (Allocate, Deallocation, Free_Physically): Added low-level traces | |
17076 | (Configure): new parameter Errors_To_Stdout. | |
17077 | (Output_File): new subprogram | |
17078 | (Deallocate, Dereference): Send error messages to the proper stream | |
17079 | (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as | |
17080 | documented. Previous code would send it to the current output file | |
17081 | defined in GNAT.IO, which might not be stdout | |
17082 | (Is_Valid): Adjust comment to mention that a positive reply means that | |
17083 | Header_Of may be used to retrieve the allocation header associated with | |
17084 | the subprogram Storage address argument. Return False early if this | |
17085 | address argument is misaligned. | |
17086 | ||
17087 | 2007-06-06 Vincent Celier <celier@adacore.com> | |
17088 | ||
17089 | * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept | |
17090 | switch -P | |
17091 | (ASIS_Main): New global variable | |
17092 | (Get_Closure): New procedure | |
17093 | (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat | |
17094 | check, metric or pretty. Call Get_Closure in this case. | |
17095 | (Check_Files): For GNAT LIST, check all sources of all projects when | |
17096 | All_Projects is True. | |
17097 | (GNATCmd): Accept -U for GNAT LIST | |
17098 | ||
17099 | 2007-06-06 Vincent Celier <celier@adacore.com> | |
17100 | ||
17101 | * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK= | |
17102 | has been specified | |
17103 | Correct error message when invocation of the linker fails | |
17104 | Add explicit size clause for the C imported variables | |
17105 | Object_List_File_Supported and Using_GNU_Linker to emphasize that | |
17106 | we expect char size. | |
17107 | Read target parameters earlier, since this is needed to set | |
17108 | Target_VM properly. Also do not use -static/shared-libgcc for non GCC | |
17109 | targets. | |
17110 | ||
17111 | 2007-06-06 Vincent Celier <celier@adacore.com> | |
17112 | ||
7c066666 | 17113 | * gnatls.adb: |
b852d3a0 | 17114 | Add 3 spaces before the default project directory when displaying |
17115 | the project search path. | |
17116 | Add new command line switch '-l' to display license information. | |
17117 | ||
17118 | 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com> | |
17119 | ||
17120 | * gmem.c: Add support for timestamps on memory operations. | |
17121 | ||
17122 | * memtrack.adb, gnatmem.adb: Add support for timestamps on memory | |
17123 | operations (not used currently, just foundation for future | |
17124 | enhancements). Add possibility to perform full dump of gmem.out file. | |
17125 | (Print_Back_Traces): Declare accesses to root arrays constants since | |
17126 | they aren't modified. | |
17127 | (Print_Back_Traces): allocate root arrays on the heap rather than stack. | |
17128 | ||
17129 | 2007-06-06 Vincent Celier <celier@adacore.com> | |
17130 | ||
17131 | * gnatsym.adb: Update Copyright notice | |
17132 | (Parse_Cmd_Line): Accept new switch -D | |
17133 | (Gnatsym): In Direct policy (switch -D) copy reference file to symbol | |
17134 | file. | |
17135 | ||
17136 | * prj.ads (Policy): New policy Direct | |
17137 | (Yes_No_Unknown): New enumeration type | |
17138 | (Project_Data): New component Libgnarl_Needed | |
17139 | ||
17140 | * prj-nmsc.adb (Check_For_Source): When recording a source file make | |
17141 | use the untouched pathname casing. | |
17142 | (Get_Directories): Ensure that the Display_Exec_Directory is using the | |
17143 | proper casing on non case-sensitive platforms like Windows. | |
17144 | (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s) | |
17145 | on all platforms, as it is not possible to know which one is allowed | |
17146 | before processing the project files. | |
17147 | (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is | |
17148 | specified when symbol policy is Direct. Check that when there is a | |
17149 | symbol file defined (either by default or with attribute | |
17150 | Library_Symbol_File) it is not the same as the reference symbol file. | |
17151 | (Check_Stand_Alone_Library): Recognize new symbol policy Direct. | |
17152 | (Look_For_Sources): Allow Locally_Removed_Files to be declare in non | |
17153 | extending projects. | |
17154 | (Record_Ada_Source): Record a source that has been locally removed in an | |
17155 | imported project. | |
17156 | ||
17157 | * symbols.ads (Policy): New policy Direct | |
17158 | ||
17159 | * symbols-vms.adb (Initialize): Take new policy Direct in case | |
17160 | statement | |
17161 | ||
17162 | 2007-06-06 Vincent Celier <celier@adacore.com> | |
17163 | ||
17164 | * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory): | |
17165 | Correct obvious bug (return Dir; instead of return Directory;). | |
17166 | (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last | |
17167 | ||
17168 | 2007-06-06 Thomas Quinot <quinot@adacore.com> | |
17169 | ||
17170 | * g-pehage.adb (Produce): Open output files in Binary mode, so that | |
17171 | they have UNIX line endings (LF only) even on Windows, and thus pass | |
17172 | all GNAT style checks. | |
17173 | ||
17174 | 2007-06-06 Emmanuel Briot <briot@adacore.com> | |
17175 | ||
17176 | * g-regpat.adb (Quote): Fix improper quoting of '.' | |
17177 | ||
17178 | 2007-06-06 Thomas Quinot <quinot@adacore.com> | |
17179 | ||
17180 | * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by | |
17181 | default, set False on a per-runtime basis. | |
17182 | (Need_Netdb_Buffer): New constant. | |
17183 | ||
17184 | * g-socket.ads, g-socket.adb: Import new package | |
17185 | GNAT.Sockets.Thin.Task_Safe_NetDB. | |
17186 | (Raise_Host_Error): Use Host_Error_Message from platform-specific thin | |
17187 | binding to obtain proper message. | |
17188 | (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close. | |
17189 | Replace various occurrences of Arry (Arry'First)'Address with the | |
17190 | equivalent Arry'Address (GNAT always follows implementation advice from | |
17191 | 13.3(14)). | |
17192 | (Get_Host_By_Address, Get_Host_By_Name, | |
17193 | Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock; | |
17194 | instead, rely on platform-specific task safe netdb operations provided | |
17195 | by g-socthi. | |
17196 | ||
17197 | * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal | |
17198 | parameter Process_Blocking_IO. | |
17199 | (Host_Error_Messages): Add stub body. | |
17200 | (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close. | |
17201 | (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname, | |
17202 | Safe_Getservbyport): Move functions into new child package | |
17203 | Task_Safe_NetDB. | |
17204 | (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr, | |
17205 | Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines. | |
17206 | (In_Addr): Add alignment clause. | |
17207 | ||
17208 | 2007-06-06 Robert Dewar <dewar@adacore.com> | |
17209 | ||
17210 | * g-trasym.ads, g-traceb.ads: Update list of supported targets | |
17211 | Add note about symbolic traceback | |
17212 | ||
17213 | 2007-06-06 Pascal Obry <obry@adacore.com> | |
17214 | ||
17215 | * hostparm.ads (Normalized_CWD): Use the host directory separator | |
17216 | instead of the hardcoded forward slash which is not the proper | |
17217 | character on Windows for example. | |
17218 | (Java_VM): Removed. | |
17219 | ||
17220 | 2007-06-06 Vincent Celier <celier@adacore.com> | |
17221 | Arnaud Charlet <charlet@adacore.com> | |
17222 | ||
17223 | * a-clrefi.adb, a-clrefi.ads: New files | |
17224 | ||
17225 | * impunit.adb: Add s-os_lib in the list of user visible units. | |
17226 | (Non_Imp_File_Names_95): Add a-clrefi to this list | |
17227 | Remove obsolete run-time entries. | |
17228 | (Non_Imp_File_Names_05): Add Ada 2005 entries for: | |
17229 | "a-exetim" -- Ada.Execution_Time | |
17230 | "a-extiti" -- Ada.Execution_Time.Timers | |
17231 | ||
17232 | * mlib-prj.ads, mlib-prj.adb | |
17233 | (Build_Library): Use untouched object dir and library dir. At the | |
17234 | same time makes sure that the checks are done using the canonical | |
17235 | form. Removes hard-coded directory separator and use the proper host | |
17236 | one instead. | |
17237 | (Process_Project): Do not look in object directory to check if libgnarl | |
17238 | is needed for a library, if there is no object directory. | |
17239 | (Build_Library): Scan the ALI files to decide if libgnarl is needed for | |
17240 | linking. | |
17241 | (Build_Library): When invoking gnatbind, use a response file if the | |
17242 | total size of the arguments is too large. | |
17243 | ||
17244 | * Makefile.rtl: (g-sttsne): New object file. | |
17245 | Add entry for a-clrefi, s-utf_32, System.Exceptions | |
17246 | ||
17247 | * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o. | |
17248 | (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o. | |
17249 | (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o | |
17250 | Change g-string to s-string, g-os_lib to s-os_lib | |
17251 | Change all g-utf_32 references to s-utf_32 | |
17252 | ||
17253 | 2007-06-06 Tristan Gingold <gingold@adacore.com> | |
17254 | Olivier Hainque <hainque@adacore.com> | |
17255 | ||
17256 | * init.c: Do not adjust IP of an imported VMS exception of ia64. | |
17257 | LIB$STOP is called to raise an exception and the IP of the exception | |
17258 | is the instruction right after the call. | |
17259 | (__gnat_adjust_context_for_raise, AIX): Implement. | |
17260 | (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call | |
17261 | adjust_context_for_raise before Raise_From_Signal_Hanler. | |
17262 | (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure | |
17263 | siginfo is passed to the handler, necessary to let the zcx propagation | |
17264 | engine unwind past it. | |
17265 | ||
17266 | 2007-06-06 Olivier Hainque <hainque@adacore.com> | |
17267 | ||
17268 | * initialize.c (__gnat_initialize for vxworks): Update documentation | |
17269 | on the ZCX support, using different sets of crtstuff objects than with | |
17270 | GCC 3.4. | |
17271 | ||
17272 | 2007-06-06 Robert Dewar <dewar@adacore.com> | |
17273 | ||
17274 | * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package | |
17275 | spec from body | |
17276 | (Layout_Type): Fix recomputation of size from alignment. | |
17277 | ||
17278 | 2007-06-06 Ed Schonberg <schonberg@adacore.com> | |
17279 | Javier Miranda <miranda@adacore.com> | |
17280 | ||
17281 | * sem_ch12.adb (Analyze_Associations): Diagnose use of an others | |
17282 | association in an instance. | |
17283 | (Copy_Generic_Node): If the node is a string literal, no need to copy | |
17284 | its descendants. | |
17285 | (Is_Generic_Formal): For a formal subprogram, the declaration is the | |
17286 | grandparent of the entity. | |
17287 | (Analyze_Formal_Interface_Type): Transform into a full type declaration, | |
17288 | to simplify handling of formal interfaces that derive from other formal | |
17289 | interfaces. | |
17290 | (Instantiate_Subprogram_Body): The defining unit name of the body of | |
17291 | the instance should be a defining identifier. | |
17292 | (Install_Formal_Packages): make global to the package, for use in | |
17293 | instantiations of child units. | |
17294 | (Analyze_Package_Instantiation): Do not attempt to set information on an | |
17295 | enclosing master of an entry when expansion is disabled. | |
17296 | (Instantiate_Type): If the actual is a tagged synchronized type and the | |
17297 | generic ancestor is an interface, create a generic actual for the | |
17298 | corresponding record. | |
17299 | (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type | |
17300 | declaration, to ensure that the interface list is processed correctly. | |
17301 | (Inline_Instance_Body): If enclosing scope is an instance body, remove | |
17302 | its entities from visibiility as well. | |
17303 | (Pre_Analyze_Actuals): if the actual is an allocator with constraints | |
17304 | given with a named association, analyze the expression only, not the | |
17305 | discriminant association itself. | |
17306 | (Reset_Entity): If the analysis of a selected component is transformed | |
17307 | into an expanded name in the prefix of a call with parameters, do not | |
17308 | transform the original node into an expanded name, to prevent visibility | |
17309 | errors in the case of nested generics. | |
17310 | (Check_Private_View): For an array type, check whether the index types | |
17311 | may need exchanging. | |
17312 | ||
17313 | 2007-06-06 Arnaud Charlet <charlet@adacore.com> | |
17314 | Vincent Celier <celier@adacore.com> | |
17315 | ||
17316 | * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java, | |
17317 | since both are separated. | |
17318 | Add support for imported CIL packages. | |
17319 | Add further special handling of "value_type" for CIL. | |
17320 | Add special handling of pragma Import for CIL. | |
17321 | ||
17322 | * make.ads, make.adb: When switch -eS is used, direct all outputs to | |
17323 | standard output instead of standard error, except errors. | |
17324 | (Absolute_Path): Use untouched casing for the parent directory. | |
17325 | (Add_Library_Search_Dir): Use the untouched directory name. | |
17326 | (Add_Source_Search_Dir): Idem. | |
17327 | (Change_To_Object_Directory): Update output to use proper casing. | |
17328 | (Create_Binder_Mapping_File): Use the untouched filename to set | |
17329 | ALI_Name. | |
17330 | (Gnatmake): Use untouched library and executable directory names. | |
17331 | (Insert_Project_Sources): Use untouched filename for spec and body. | |
17332 | (Is_In_Object_Directory): Use untouched object directory. | |
17333 | (Mark_Directory): Idem. | |
17334 | (Collect_Arguments_And_Compile): Ensure that Full_Source_File always | |
17335 | contains the non-canonical filename in all cases. | |
17336 | (Change_To_Object_Directory): In verbose mode, display the name of the | |
17337 | object directory we're changing to. | |
17338 | (Compile_Sources): Make sure, when a project file is used, to compile | |
17339 | the body of the unit, when there is one, even when only the spec is | |
17340 | recorded in an ALI file. | |
17341 | (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the | |
17342 | spec to the body. | |
17343 | (Report_Compilation_Failed): New procedure | |
17344 | (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg): | |
17345 | procedures moved from the spec to the body. | |
17346 | (Extract_Failure): Removed, not used | |
17347 | Replace explicit raises of exception Bind_Failed and Link_Failed with | |
17348 | calls to Make_Failed with the proper message. | |
17349 | Replace explicit raises of exception Compilation_Failed with calls to | |
17350 | procedure Report_Compilation_Failed. | |
17351 | (Initialize): Create mapping files unconditionally when using project | |
17352 | files. | |
17353 | ||
17354 | * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL, | |
17355 | Pragma_CIL_Constructor): New names. | |
17356 | ||
17357 | * targparm.ads, targparm.adb | |
17358 | (Compiler_System_Version): Removed, no longer used. | |
17359 | (Get_Target_Parameters): Relax checks on system.ads validity. Add | |
17360 | handling of two new system flags: JVM and CLI. | |
17361 | ||
17362 | 2007-06-06 Jose Ruiz <ruiz@adacore.com> | |
17363 | Arnaud Charlet <charlet@adacore.com> | |
17364 | ||
17365 | * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run | |
17366 | time, use the default s-interr body that provides interrupt support | |
17367 | based on signals. | |
17368 | (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of | |
17369 | a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b}, | |
17370 | g-soccon.ads, and s-taprop.adb for the marte run time. | |
17371 | (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and | |
17372 | timers are supported on marte. | |
17373 | (EH_MECHANISM for marte): Do not use ZCX. | |
17374 | (THREADSLIB for marte): Use -lmarte. | |
17375 | Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS | |
17376 | Add mlib-tgt-specific.o to gnatmake objects | |
17377 | mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no | |
17378 | longer of MLib.Tgt. | |
17379 | (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks | |
17380 | 6, either kernel or rtp, use a specialized version of s-osinte.ads. | |
17381 | ||
17382 | 2007-06-06 Pascal Obry <obry@adacore.com> | |
17383 | ||
17384 | * mkdir.c (__gnat_mkdir): Add support for UTF-8. | |
17385 | ||
17386 | 2007-06-06 Vincent Celier <celier@adacore.com> | |
17387 | ||
17388 | * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory | |
17389 | separator, use instead the proper host directory separator. | |
17390 | (Copy_ALI_Files): Make sure that an already existing ALI file in the | |
17391 | ALI copy dir is writable, before doing the copy. | |
17392 | ||
7c066666 | 17393 | * mlib-utl.ads, mlib-utl.adb: |
b852d3a0 | 17394 | (Gcc): If length of command line is too long, put the list of object |
17395 | files in a response file, if this is supported by the platform. | |
17396 | (Ar): If invocation of the archive builder is allowed to be done in | |
17397 | chunks and building it in one shot would go above an OS dependent | |
17398 | limit on the number of characters on the command line, build the archive | |
17399 | in chunks. | |
17400 | ||
17401 | 2007-06-06 Vincent Celier <celier@adacore.com> | |
17402 | ||
17403 | * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name | |
17404 | of specified object file is not equal to base name of source. | |
17405 | ||
17406 | 2007-06-06 Javier Miranda <miranda@adacore.com> | |
17407 | Hristian Kirtchev <kirtchev@adacore.com> | |
17408 | Ed Schonberg <schonberg@adacore.com> | |
17409 | ||
17410 | * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to | |
17411 | the full type declaration. | |
17412 | (Analyze_Component_Declaration): Add local variable E to capture the | |
17413 | initialization expression of the declaration. Replace the occurences of | |
17414 | Expression (N) with E. | |
17415 | (OK_For_Limited_Init_In_05): Allow initialization of class-wide | |
17416 | limited interface object with a function call. | |
17417 | (Array_Type_Declaration): If the declaration lacks subtype marks for | |
17418 | indices, create a simple index list to prevent cascaded errors. | |
17419 | (Is_Null_Extension): Ignore internal components created for secondary | |
17420 | tags when checking whether a record extension is a null extension. | |
17421 | (Check_Abstract_Interfaces): Add missing support for interface subtypes | |
17422 | and generic formals. | |
17423 | (Derived_Type_Declaration): Add missing support for interface subtypes | |
17424 | and generic formals. | |
17425 | (Analyze_Object_Declaration): If an initialization expression is | |
17426 | present, traverse its subtree and mark all allocators as static | |
17427 | coextensions. | |
17428 | (Add_Interface_Tag_Component): When looking for components that may be | |
17429 | secondary tags, ignore pragmas that can appear within a record | |
17430 | declaration. | |
17431 | (Check_Abstract_Overriding): an inherited function that dispatches on | |
17432 | result does not need to be overriden if the controlling type is a null | |
17433 | extension. | |
17434 | (Mentions_T): Handle properly a 'class attribute in an anonymous access | |
17435 | component declaration, when the prefix is an expanded name. | |
17436 | (Inherit_Component): If the derivation is for a private extension, | |
17437 | inherited components remain visible and their ekind should not be set | |
17438 | to Void. | |
17439 | (Find_Type_Of_Object): In the case of an access definition, always set | |
17440 | Is_Local_Anonymous_Access. We were previously not marking the anonymous | |
17441 | access type of a return object as a local anonymous type. | |
17442 | (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete | |
17443 | range with character literal bounds. | |
17444 | (Constrain_Array): Initialize the Packed_Array_Type field to Empty. | |
17445 | (Access_Subprogram_Declaration): Indicate that the type declaration | |
17446 | depends on an incomplete type only if the incomplete type is declared | |
17447 | in an open scope. | |
17448 | (Analyze_Subtype_Declaration): Handle properly subtypes of | |
17449 | synchronized types that are tagged, and that may appear as generic | |
17450 | actuals. | |
17451 | (Access_Subprogram_Declaration): An anonymous access to subprogram can | |
17452 | appear as an access discriminant in a private type declaration. | |
17453 | (Add_Interface_Tag_Components): Complete decoration of the component | |
17454 | containing the tag of a secondary dispatch table and the component | |
17455 | containing the offset to the base of the object (this latter component | |
17456 | is only generated when the parent type has discriminants --as documented | |
17457 | in this routine). | |
17458 | (Inherit_Components): Use the new decoration of the tag components to | |
17459 | improve the condition that avoids inheriting the components associated | |
17460 | with secondary tags of the parent. | |
17461 | (Build_Discriminanted_Subtype): Indicate to the backend that the | |
17462 | size of record types associated with dispatch tables is known at | |
17463 | compile time. | |
17464 | (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed. | |
17465 | (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface | |
17466 | to include task, protected, and synchronized interfaces as limited | |
17467 | interfaces. | |
17468 | (Process_Discriminants): Remove the setting of | |
17469 | Is_Local_Anonymous_Access on the type of (anonymous) access | |
17470 | discriminants of nonlimited types. | |
17471 | (Analyze_Interface_Type_Declaration): Complete the decoration of the | |
17472 | class-wide entity it is is already present. This situation occurs if | |
17473 | the limited-view has been previously built. | |
17474 | (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep | |
17475 | field. | |
17476 | (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute | |
17477 | Related_Interface. | |
17478 | ||
17479 | 2007-06-06 Ed Schonberg <schonberg@adacore.com> | |
17480 | ||
17481 | * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components | |
17482 | of the type that specify the position of interface tags when the type | |
17483 | inherits discriminated array components from the parent type. | |
17484 | If a component is initialized with a box, check for the presence of a | |
17485 | default expression in its declaration before using its default | |
17486 | initialization procedure. | |
17487 | (Resolve_Record_Aggregate): If a component is box-initialized, and the | |
17488 | component type has a discriminants, create a partial aggregate for it | |
17489 | by copying the discriminants of the component subtype. | |
17490 | Reject attempt to initialize a discriminant with a box. | |
17491 | (Array_Aggr_Subtype): Indicate to the backend that the size of arrays | |
17492 | associated with dispatch tables is known at compile time. | |
17493 | (Get_Value): If an association in a record aggregate has a box | |
17494 | association, and the corresponding record component has a default | |
17495 | expression, always copy the default expression, even when the | |
17496 | association has a single choice, in order to create a proper | |
17497 | association for the expanded aggregate. | |
17498 | ||
17499 | 2007-06-06 Ed Schonberg <schonberg@adacore.com> | |
17500 | Robert Dewar <dewar@adacore.com> | |
17501 | ||
17502 | * par-ch12.adb (P_Generic_Associations): The source position of an | |
17503 | Others association is that of the others keyword, not that of the token | |
17504 | that follows the box. | |
17505 | (P_Formal_Type_Definition): Handle formal access types that carry a | |
17506 | not null indicator. | |
17507 | ||
17508 | * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If | |
17509 | multiple identifier are present, save Scan_State before scanning the | |
17510 | colon, to ensure that separate trees are constructed for each | |
17511 | declaration. | |
17512 | (P_Identifier_Declarations): For object declaration, set new flag | |
17513 | Has_Init_Expression if initialization expression present. | |
17514 | (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL | |
17515 | Improve NOT NULL error messages | |
17516 | ||
17517 | 2007-06-06 Robert Dewar <dewar@adacore.com> | |
17518 | ||
17519 | * par-ch4.adb: (P_Name): Recover from literal used as name | |
17520 | ||
17521 | 2007-06-06 Vincent Celier <celier@adacore.com> | |
17522 | ||
17523 | * prep.ads, prep.adb (Expression): New Boolean parameter Complemented, | |
17524 | defaulted to False. | |
17525 | In the "not" case, recursive call with Complemented set to True. | |
17526 | Do not allow "or" or "and" operators when Complemented is True. | |
17527 | ||
17528 | 2007-06-06 Vincent Celier <celier@adacore.com> | |
17529 | ||
17530 | * prj.adb (Project_Empty): Gives default value for new component | |
17531 | Libgnarl_Needed | |
17532 | ||
17533 | * prj-attr.ads: Minor reformatting | |
17534 | ||
17535 | * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object | |
17536 | directory using the untouched casing. | |
17537 | (For_All_Source_Dirs): Idem. | |
17538 | ||
17539 | * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record | |
17540 | directories specified with switches -aP. | |
17541 | (Add_Search_Project_Directory): New procedure | |
17542 | (Initialize_Project_Path): Put the directories in table | |
17543 | Search_Directories in the project search path. | |
17544 | (Initialize_Project_Path): For VMS, transform into canonical form the | |
17545 | project path. | |
17546 | ||
17547 | 2007-06-06 Arnaud Charlet <charlet@adacore.com> | |
17548 | ||
17549 | * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return | |
17550 | true if configurable run-time or No_Run_Time is set. | |
17551 | (Set_Restriction): Avoid setting restriction No_Elaboration_Code when | |
17552 | processing an unit which is not the one being compiled. | |
17553 | ||
17554 | 2007-06-06 Arnaud Charlet <charlet@adacore.com> | |
17555 | ||
17556 | * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax. | |
17557 | Replace UC by Ada.UC | |
17558 | ||
17559 | * s-bitops.adb: Get rid of System.Pure_Exceptions. | |
17560 | Replace UC by Ada.UC | |
17561 | ||
17562 | 2007-06-06 Robert Dewar <dewar@adacore.com> | |
17563 | ||
17564 | * scng.adb: (Check_End_Of_Line): Deal with very long lines | |
17565 | ||
17566 | 2007-06-06 Robert Dewar <dewar@adacore.com> | |
17567 | ||
17568 | * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names | |
17569 | Remove no longer used nodes. | |
17570 | ||
17571 | 2007-06-06 Javier Miranda <miranda@adacore.com> | |
17572 | Ed Schonberg <schonberg@adacore.com> | |
17573 | Robert Dewar <dewar@adacore.com> | |
17574 | ||
17575 | * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check | |
17576 | on obsolescent withed unit in case of limited-withed units. | |
17577 | (Analyze_Compilation_Unit): Add guard to code that removed an | |
17578 | instantiation from visibility, to prevent compiler aborts when | |
17579 | instantiation is abandoned early on. | |
17580 | (Install_Limited_Withed_Unit): Recognize a limited-with clause on the | |
17581 | current unit being analyzed, and Distinguish local incomplete types | |
17582 | from limited views of types declared elsewhere. | |
17583 | (Build_Limited_Views.Decorate_Tagged_Type): Add documentation | |
17584 | to state that the class-wide entity is shared by the limited-view | |
17585 | and the full-view. | |
17586 | (Analyze_With_Clause): Improve placement of flag for case of | |
17587 | unimplemented unit. | |
17588 | (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a | |
17589 | manner similar to GNAT.Current_Exception. This is a violation of | |
17590 | restriction (No_Exception_Propagation), and also inhibits the | |
17591 | optimization of local raise to goto. | |
17592 | (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed, | |
17593 | and if so set Most_Recent_Exception_Used flag in Opt, and also check | |
17594 | for violation of restriction No_Exception_Propagation. | |
17595 | ||
17596 | 2007-06-06 Javier Miranda <miranda@adacore.com> | |
17597 | Hristian Kirtchev <kirtchev@adacore.com> | |
17598 | Gary Dismukes <dismukes@adacore.com> | |
17599 | ||
17600 | * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the | |
17601 | use of entity Exception_Occurrence if it is not available in the | |
17602 | target run-time. | |
17603 | ||
17604 | * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When | |
17605 | concurrent types are declared within an Ada 2005 generic, build their | |
17606 | corresponding record types since they are needed for overriding-related | |
17607 | semantic checks. | |
17608 | (Analyze_Protected_Type): Rearrange and simplify code for testing that a | |
17609 | protected type does not implement a task interface or a nonlimited | |
17610 | interface. | |
17611 | (Analyze_Task_Type): Rearrange and simplify code for testing that a task | |
17612 | type does not implement a protected interface or a nonlimited interface. | |
17613 | (Single_Task_Declaration, Single_Protected_Declaration): use original | |
17614 | entity for variable declaration, to ensure that debugging information | |
17615 | is correcty generated. | |
17616 | (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander | |
17617 | routines if the expander is not active. | |
17618 | (Analyze_Task_Body): Mark all handlers to stop optimization of local | |
17619 | raise, since special things happen for task exception handlers. | |
17620 | ||
17621 | * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for | |
17622 | concurrent types declared within a generic. | |
17623 | (Check_Dispatching_Operation): Do not emit warning about late interface | |
17624 | operations in the context of an instance. | |
17625 | (Check_Dispatching_Call): Remove restriction against calling a | |
17626 | dispatching operation with a limited controlling result. | |
17627 | (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and | |
17628 | Register_Interface_DT_Entry by calls to Register_Primitive. | |
17629 | (Check_Dispatching_Formals): Handle properly a function with a | |
17630 | controlling access result. | |
17631 | ||
17632 | 2007-06-06 Robert Dewar <dewar@adacore.com> | |
17633 | Arnaud Charlet <charlet@adacore.com> | |
17634 | ||
17635 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size): | |
17636 | Check for restriction No_Implementation_Attributes if in Ada 95 mode. | |
17637 | (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available | |
17638 | (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error | |
17639 | message when using a VM, since this attribute is not supported. | |
17640 | (Analyze_Record_Representation_Clause): Give unrepped component warnings | |
17641 | ||
17642 | * usage.adb: Add new warning for renaming of function return objects | |
17643 | Indicate that -gnatwp and -gnatwP concern front-end inlining | |
17644 | Add line for -gnatyg | |
17645 | Add usage information for -gnatw.c/C | |
17646 | ||
17647 | 2007-06-06 Robert Dewar <dewar@adacore.com> | |
17648 | Ed Schonberg <schonberg@adacore.com> | |
17649 | ||
17650 | * sem_ch5.adb | |
17651 | (Find_Var): Do not consider function call in test for infinite loop | |
17652 | warning if warnings set off for function entity. | |
17653 | (One_Bound): Do not create a temporary for a loop bound if it is a | |
17654 | character literal. | |
17655 | (Analyze_Assignment): Traverse the right hand side of an assignment and | |
17656 | mark all allocators as static coextensions. | |
17657 | (Analyze_Assignment): Exempt assignments involving a dispatching call | |
17658 | to a function with a controlling access result from the check requiring | |
17659 | the target to be class-wide. | |
17660 | ||
17661 | 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com> | |
17662 | Ed Schonberg <schonberg@adacore.com> | |
17663 | Robert Dewar <dewar@adacore.com> | |
17664 | Javier Miranda <miranda@adacore.com> | |
17665 | ||
17666 | * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the | |
17667 | chain of coextensions when an allocator serves as the root of such a | |
17668 | chain. | |
17669 | (Propagate_Coextensions): Remove the test for the root being an | |
17670 | allocator. | |
17671 | (Resolve_Allocator): Add condition to ensure that all future decoration | |
17672 | occurs on an allocator node. Add processing and cleanup for static | |
17673 | coextensions. | |
17674 | (Valid_Conversion): If the operand type is the limited view of a | |
17675 | class-wide type, use the non-limited view is available to determine | |
17676 | legality of operation. | |
17677 | (Ambiguous_Character): move to spec, for use elsewhere. | |
17678 | (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode | |
17679 | (Resolve_Range): Diagnose properly an ambiguous range whose bounds are | |
17680 | character literals. | |
17681 | (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting | |
17682 | Do_Division_Check flag explicitly. | |
17683 | (Resolve_Actuals): If the actual is of a synchronized type, and the | |
17684 | formal is of the corresponding record type, this is a call to a | |
17685 | primitive operation of the type, that is declared outside of the type; | |
17686 | the actual must be unchecked-converted to the type of the actual | |
17687 | (Resolve_Call): Kill all current values for any subprogram call if | |
17688 | flag Suppress_Value_Tracking_On_Call is set. | |
17689 | (Resolve_Type_Conversion): Generate error message the the operand | |
17690 | or target of interface conversions come from a limited view. | |
17691 | (Check_Infinite_Recursion): Ignore generated calls | |
17692 | (Check_Allocator_Discrim_Accessibility): New procedure for checking | |
17693 | that an expression that constrains an access discriminant in an | |
17694 | allocator does not denote an object with a deeper level than the | |
17695 | allocator's access type. | |
17696 | (Resolve_Allocator): In the case of an allocator initialized by an | |
17697 | aggregate of a discriminated type, check that associations for any | |
17698 | access discriminants satisfy accessibility requirements by calling | |
17699 | Check_Allocator_Discrim_Accessibility. | |
17700 | (Resolve_Equality_Op): Handle comparisons of anonymous access to | |
17701 | subprogram types in the same fashion as other anonymous access types. | |
17702 | (Resolve_Concatenation_Arg): Remove initial character '\' in an error | |
17703 | message that is not a continuation message. | |
17704 | (Resolve_Type_Conversion): Add missing support for conversion to | |
17705 | interface type. | |
17706 | (Resolve_Actuals): Introduce a transient scope around the call if an | |
17707 | actual is a call to a function returning a limited type, because the | |
17708 | resulting value must be finalized after the call. | |
17709 | (Resolve_Actuals): If the call was given in prefix notations, check | |
17710 | whether an implicit 'Access reference or implicit dereference must be | |
17711 | added to make the actual conform to the controlling formal. | |
17712 | ||
17713 | 2007-06-06 Robert Dewar <dewar@adacore.com> | |
17714 | Javier Miranda <miranda@adacore.com> | |
17715 | ||
17716 | * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body | |
17717 | (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit | |
17718 | overriding of an inherited private subprogram now there is no need to | |
17719 | inherit its dispatching slot and reduce the size of the dispatch table. | |
17720 | Set_All_DT_Position now ensures that the same slot is now assigned to | |
17721 | both entities. This is required to statically build the dispatch table. | |
17722 | (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need | |
17723 | of calling Set_All_DT_Position to re-evaluate the position of the | |
17724 | entries in the dispatch table. Such reevaluation is not desired if | |
17725 | the tagged type is already frozen. | |
17726 | ||
17727 | 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com> | |
17728 | Gary Dismukes <dismukes@adacore.com> | |
17729 | Robert Dewar <dewar@adacore.com> | |
17730 | Javier Miranda <miranda@adacore.com> | |
17731 | ||
17732 | * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute | |
17733 | reference acts as an lvalue when the attribute name modifies the prefix | |
17734 | (Is_Coextension_Root): New routine. | |
17735 | (Mark_Static_Coextensions): New routine. | |
17736 | (Type_Access_Level): Revise code for checking the level of the | |
17737 | anonymous access type of a return object. | |
17738 | (Safe_To_Capture_Value): Not safe to capture if Address_Taken | |
17739 | (Matches_Prefixed_View_Profile): Remove the no longer necessary | |
17740 | retrieval of the corresponding controlling record type. | |
17741 | (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of | |
17742 | concurrent types declared within a generic as well as class wide types. | |
17743 | Emit a mode incompatibility error whenever a protected entry or routine | |
17744 | override an interface routine whose first parameter is not of mode | |
17745 | "out", "in out" or access to variable. | |
17746 | (Overrides_Synchronized_Primitive): Rename to | |
17747 | Find_Overridden_Synchronized_Primitive. | |
17748 | (Collect_Interface_Components): New subprogram that collects all the | |
17749 | components of a tagged record containing tags of secondary dispatch | |
17750 | tables. | |
17751 | (Add_Global_Declaration): New procedure | |
17752 | (Abstract_Interface_List): Handle properly the case of a subtype of a | |
17753 | private extension. | |
17754 | (Type_Access_Level): In the case of a type whose parent scope is a | |
17755 | return statement, call Type_Access_Level recursively on the enclosing | |
17756 | function's result type to determine the level of the return object's | |
17757 | type. | |
17758 | (Build_Elaboration_Entity): Build name of elaboration entity from the | |
17759 | scope chain of the entity, rather than the unit name of the file name. | |
17760 | (Check_Nested_Access): New procedure. | |
17761 | (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures. | |
17762 | (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access. | |
17763 | (Get_Renamed_Entity): Utility routine for performing common operation | |
17764 | of chasing the Renamed_Entity field of an entity. | |
17765 | ||
17766 | 2007-06-06 Robert Dewar <dewar@adacore.com> | |
17767 | ||
17768 | * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on | |
17769 | elaboration model | |
17770 | (Check_A_Call): Add check for entry call which was causing blowup | |
17771 | ||
17772 | 2007-06-06 Olivier Hainque <hainque@adacore.com> | |
17773 | ||
17774 | * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add | |
17775 | special code on ia64-vms to handle major incompatibilities between the | |
17776 | GCC unwinding ABI and the VMS Condition Handling Facility, both calling | |
17777 | this routine with a very different set of arguments and expectations on | |
17778 | the return value. | |
17779 | ||
17780 | 2007-06-06 Thomas Quinot <quinot@adacore.com> | |
17781 | ||
17782 | * socket.c (__gnat_close_signalling_fd): New function. | |
17783 | (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname, | |
17784 | __gnat_safe_getservbyname, __gnat_safe_getservbyport): | |
17785 | New supporting functions for task safe Netdb operations. | |
17786 | ||
17787 | 2007-06-06 Thomas Quinot <quinot@adacore.com> | |
17788 | Olivier Hainque <hainque@adacore.com> | |
17789 | ||
17790 | * a-except-2005.ads, a-except-2005.adb | |
17791 | (Raise_From_Controlled_Operation): New procedure in | |
17792 | (private part of) Ada.Exceptions (standard runtime version). Used to | |
17793 | provide informational exception message when Program_Error is raised as | |
17794 | a result of an Adjust or Finalize operation propagating an exception. | |
17795 | (Rmsg_28): Fix description for E.4(18) check. | |
17796 | (Raise_Current_Excep): Call Debug_Raise_Exception just before | |
17797 | propagation starts, to let debuggers know about the event in a reliable | |
17798 | fashion. | |
17799 | Take the address of E and dereference to make sure it is homed on stack | |
17800 | and prevent the stores from being deleted, necessary for proper | |
17801 | debugger behavior on "break exception" hits. | |
17802 | (Local_Raise): Moved to System.Exceptions | |
17803 | ||
17804 | * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate | |
17805 | exception message from the current occurrence and raise Program_Error | |
17806 | has been moved to Ada.Exceptions.Raise_From_Controlled_Operation. | |
17807 | ||
17808 | 2007-06-06 Jose Ruiz <ruiz@adacore.com> | |
17809 | Arnaud Charlet <charlet@adacore.com> | |
17810 | ||
17811 | * s-taprob.adb (Unlock): Change the ceiling priority of the underlying | |
17812 | lock, if needed. | |
17813 | ||
17814 | * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling | |
17815 | priority associated to a lock. | |
17816 | ||
17817 | * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax | |
17818 | assertion to take into account case of no abort restriction. | |
17819 | (Initialize_Protection_Entries): Add initialization for the field | |
17820 | New_Ceiling associated to the protected object. | |
17821 | (Unlock_Entries): Change the ceiling priority of the underlying lock, if | |
17822 | needed. | |
17823 | ||
17824 | * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest, | |
17825 | since this function needs to be set consistently with Update_Exception. | |
17826 | ||
17827 | * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest, | |
17828 | since this function needs to be set consistently with Update_Exception. | |
17829 | ||
17830 | * s-taskin.ads: Update comments on | |
17831 | Interrupt_Server_Blocked_On_Event_Flag. | |
17832 | (Unbind_Handler): Fix handling of server_task wakeup | |
17833 | (Server_Task): Set self's state so that Unbind_Handler can take | |
17834 | appropriate actions. | |
17835 | (Common_ATCB): Now use a constant from System.Parameters to determine | |
17836 | the max size of the Task_Image field. | |
17837 | ||
17838 | * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the | |
17839 | Initialize_Analyzer function. | |
17840 | ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to | |
17841 | take into account case of no abort restriction. | |
17842 | ([Vulnerable_]Complete_Master): Modify assertion. | |
17843 | ||
17844 | * s-tataat.adb (Finalize): Use the nestable versions of | |
17845 | Defer/Undefer_Abort. | |
17846 | ||
17847 | * s-tpobop.adb (Protected_Entry_Call): Relax assertion. | |
17848 | ||
17849 | * s-tpobop.ads: Update comments. | |
17850 | ||
17851 | * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead | |
17852 | of locking the object manually, to avoid inconsistencies between | |
17853 | Lock/Unlock_Entry assertions. | |
17854 | ||
17855 | * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when | |
17856 | terminating | |
17857 | application and System.Parameters.No_Abort is True. | |
17858 | Update comments on Interrupt_Server_Blocked_On_Event_Flag. | |
17859 | (Unbind_Handler): Fix handling of server_task wakeup | |
17860 | (Server_Task): Set self's state so that Unbind_Handler can take | |
17861 | appropriate actions. | |
17862 | ||
17863 | 2007-06-06 Thomas Quinot <quinot@adacore.com> | |
17864 | ||
17865 | * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure | |
17866 | declarations instead of an explicit null body, for conciseness. | |
17867 | ||
17868 | 2007-06-06 Robert Dewar <dewar@adacore.com> | |
17869 | ||
17870 | * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an | |
17871 | illegal aggregate and the type is still Any_Composite. | |
17872 | (Subtypes_Statically_Match): Fix problem of empty discriminant list | |
17873 | ||
17874 | 2007-06-06 Ed Schonberg <schonberg@adacore.com> | |
17875 | ||
17876 | * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object, | |
17877 | to prevent subsequent expansion. | |
17878 | ||
17879 | 2007-06-06 Robert Dewar <dewar@adacore.com> | |
17880 | ||
17881 | * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body | |
17882 | ||
17883 | 2007-06-06 Ed Schonberg <schonberg@adacore.com> | |
17884 | Robert Dewar <dewar@adacore.com> | |
17885 | ||
17886 | * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for | |
17887 | exceptions. | |
17888 | (Write_Itype): Handle case of string literal subtype, which | |
17889 | comes up in this context. | |
17890 | (Update_Itype): when debugging expanded code, update sloc of itypes | |
17891 | associated with defining_identifiers and ranges, for gdb use. | |
17892 | (Sprint_Node_Actual): Add static keyword to object or exception | |
17893 | declaration output if Is_Statically_Allocated is True. | |
17894 | (Sprint_End_Label): Set entity of end marker for a subprogram, package, | |
17895 | or task body, so that the tree carries the proper Sloc information for | |
17896 | debugging use. | |
17897 | (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes | |
17898 | ||
17899 | 2007-06-06 Arnaud Charlet <charlet@adacore.com> | |
17900 | ||
17901 | * s-secsta.adb (Chunk): Ensure this object has a static size known at | |
17902 | compile time, to avoid dynamic memory allocation | |
17903 | (Elaboration code): Only use dynamic memory allocation when needed. | |
17904 | ||
17905 | 2007-06-06 Quentin Ochem <ochem@adacore.com> | |
17906 | ||
17907 | * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter | |
17908 | "Overflow_Guard". | |
17909 | (Stack_Analyzer): Added field "Overflow_Guard" | |
17910 | (Task_Result): Added field "Overflow_Guard". | |
17911 | (Index_Str): New constant. | |
17912 | (Task_Name_Str): New constant. | |
17913 | (Actual_Size_Str): New constant. | |
17914 | (Pattern_Array_Element_Size): New constant. | |
17915 | (Get_Usage_Range): New subprogram. | |
17916 | (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len. | |
17917 | Now align the output. | |
17918 | Added comments. | |
17919 | (Initialize): Added value for Overflow_Guard. | |
17920 | (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant. | |
17921 | Update the value of the overflow guard according to the actual | |
17922 | beginning of the pattern array. | |
17923 | (Initialize_Analyzer): Added parameter Overflow_Guard. | |
17924 | Take this parameter into accound when computing the max size. | |
17925 | (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant. | |
17926 | (Report_Result): Removed extra useless procedure. | |
17927 | Updated call to Output_Result. | |
17928 | Moved full computation of the Task_Result here. | |
17929 | ||
17930 | 2007-06-06 Thomas Quinot <quinot@adacore.com> | |
17931 | ||
17932 | * g-soccon-darwin.ads, gen-soccon.c: Add new constant | |
17933 | Thread_Blocking_IO, always True by default, set False on a per-runtime | |
17934 | basis. | |
17935 | Add Windows-specific constants | |
17936 | Add new constant Need_Netdb_Buffer. | |
17937 | Add new macros to indicate whether getXXXbyYYY is thread safe and, if | |
17938 | not, whether to use getXXXbyYYY_r. | |
17939 | ||
17940 | * gsocket.h: Add new constant Need_Netdb_Buffer. | |
17941 | Add new macros to indicate whether getXXXbyYYY is thread safe and, if | |
17942 | not, whether to use getXXXbyYYY_r. | |
17943 | ||
17944 | 2007-06-06 Eric Botcazou <ebotcazou@adacore.com> | |
17945 | ||
17946 | * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier | |
17947 | than their first call. | |
17948 | Add type Dummy_Communication_Block used in the generation of the pre- | |
17949 | defined dispatching primitive _disp_asynchronous_select. | |
17950 | (Storage_Element): Put Pragma Universal_Aliasing on it. | |
17951 | ||
17952 | 2007-06-06 Vincent Celier <celier@adacore.com> | |
17953 | ||
17954 | * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean | |
17955 | function. | |
17956 | ||
17957 | * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive | |
17958 | letter if it is not followed by a '/' or a '\'. | |
17959 | (Windows): New Boolean function | |
17960 | ||
17961 | * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma | |
17962 | Ada 2005. | |
17963 | (Containing_Directory): On Windows, keep at least one '/' or '\' after a | |
17964 | drive letter. | |
17965 | (Containing_Directory): Raise Use_Error when the directory is a root | |
17966 | directory. | |
17967 | (Extension): When returning the result, use a conversion to Result_Type, | |
17968 | not a qualification. | |
17969 | ||
17970 | 2007-06-06 Robert Dewar <dewar@adacore.com> | |
17971 | ||
17972 | * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure | |
17973 | (Set_Style_Check_Options): Recognize new -gnatyg style switch | |
17974 | ||
17975 | * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set | |
17976 | Warn_On_Non_Local_Exception to False, to turn off warnings for | |
17977 | No_Exception_Propagation in ZFP runtime. | |
17978 | (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC | |
17979 | back-ends. | |
17980 | (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks | |
17981 | ||
17982 | 2007-06-06 Vincent Celier <celier@adacore.com> | |
17983 | ||
17984 | * switch-b.adb (Scan_Binder_Switches): Add processing for new | |
17985 | switches -R and -Z | |
17986 | ||
17987 | * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E | |
17988 | (Scan_Make_Switches): Recognize new switch -aP | |
17989 | ||
17990 | 2007-06-06 Matthew Gingell <gingell@adacore.com> | |
17991 | Jose Ruiz <ruiz@adacore.com> | |
17992 | ||
17993 | * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the | |
17994 | VxWorks task descriptor in the Ada run time, call a C subprogram | |
17995 | (__gnat_get_stack_info) that extracts the required information. | |
17996 | ||
17997 | * sysdep.c: Back out temporary lynxos workaround. | |
17998 | (__gnat_get_stack_info): Add this procedure that passes to the Ada run | |
17999 | time the stack information associated to the currently executing task. | |
18000 | Only VxWorks systems require this function. | |
18001 | ||
18002 | 2007-06-06 Eric Botcazou <ebotcazou@adacore.com> | |
18003 | ||
18004 | * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not | |
18005 | add the stack bias if the offset is computed from a frame address. | |
18006 | (__gnat_backtrace): Adjust for above change. | |
18007 | ||
18008 | 2007-06-06 Thomas Quinot <quinot@adacore.com> | |
18009 | ||
18010 | * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to | |
18011 | PE_Non_Transportable_Actual. | |
18012 | (By_Descriptor_Last): New constant. | |
18013 | (By_Copy_Return): Likewise. | |
18014 | ||
18015 | 2007-06-06 Vincent Celier <celier@adacore.com> | |
18016 | ||
18017 | * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as | |
18018 | is. | |
18019 | ||
18020 | * vms_data.ads: Add entries for -gnatw.x and -gnatw.X | |
18021 | /STYLE_CHECKS=GNAT: Change meaning to -gnatyg | |
18022 | /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg | |
18023 | Add missing comment for /OPTIMIZE=SPACE | |
18024 | Add entry for OPTIMIZE=SPACE | |
18025 | Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST | |
18026 | Add documentation for new qualifiers corresponding to -gnatw.c/.C | |
18027 | ||
18028 | 2007-06-06 Vincent Celier <celier@adacore.com> | |
18029 | Robert Dewar <dewar@adacore.com> | |
18030 | ||
18031 | * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and | |
18032 | -gnatw.C) | |
18033 | ||
18034 | * gnat_ugn.texi: Fix ordering of -g switch for gnatmake | |
18035 | Document gnatbind switch -a | |
18036 | (case Constructions): Document that variables declarations are allowed | |
18037 | for previously declared variables. | |
18038 | Fix external lib project example | |
18039 | -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL | |
18040 | Indicate that "#if not X or Y then" is not allowed in input files to | |
18041 | gnatprep. | |
18042 | Document gnatw.x and gnatw.X warning flags | |
18043 | Mention -Winline switch to activate warnings when back-end inlining is | |
18044 | ineffective. | |
18045 | Add gnatcheck rule descriptions | |
18046 | Describe how to use the GNAT driver to call a tool on a closure. | |
18047 | Describe how to run project-wide checks or metrics. | |
18048 | Document gnatbind's -R option | |
18049 | Updated to account for Ada 2005 support | |
18050 | ||
18051 | * gnat_rm.texi (Case Construction): Allow variable declarations for | |
18052 | previously declared variables. | |
18053 | (Representation Clauses and Pragmas): Lift restriction on alignment | |
18054 | clauses for record types. | |
18055 | (Ada.Characters.*): Fix typo in reference to A.3.3(27). | |
18056 | Document No_Exception_Propagation restriction | |
18057 | Document No_Body pragma | |
18058 | Updated to account for Ada 2005 support; corrected some typos | |
18059 | (Implementation Defined Pragmas): Document pragma Universal_Aliasing. | |
18060 | ||
18061 | * gnat-style.texi: Make it clear that we never use mode IN for | |
18062 | procedures or functions | |
18063 | ||
18064 | * ug_words: Add entries for -gnatw.x and -gnatw.X | |
18065 | Add entries for -gnatw.c/.C | |
18066 | ||
18067 | 2007-06-06 Pascal Obry <obry@adacore.com> | |
18068 | Vincent Celier <celier@adacore.com> | |
18069 | ||
18070 | * makegpr.adb (Add_Archive_Path): Use untouched object and library | |
18071 | dirs and library name. | |
18072 | (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate | |
18073 | comments. | |
18074 | (Build_Library): Idem. | |
18075 | (Compile_Individual_Sources): Idem. | |
18076 | (Compile_Link_With_Gnatmake): Idem. | |
18077 | (Compile_Sources): Idem. | |
18078 | (Get_Imported_Directories): Idem. | |
18079 | (Link_Executables): Idem. Same change for the executable dir. | |
18080 | (Check_Compilation_Needed): C_Source_Path new variable containing | |
18081 | the canonical form of Source_Path to check against the source names | |
18082 | in the dependency file. | |
18083 | (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In | |
18084 | verbose mode, display the name of the object directory we're changing | |
18085 | to. | |
18086 | (Saved_Switches): New name of table X_Switches | |
18087 | (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches | |
18088 | (Usage): New line for switch -aP | |
18089 | (Get_Imported_Directories.Add): Make sure that Add_Arg is True before | |
18090 | testing if a directory should be added to the search path. | |
18091 | ||
18092 | 2007-06-06 Javier Miranda <miranda@adacore.com> | |
18093 | ||
7c066666 | 18094 | * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads, |
b852d3a0 | 18095 | a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object |
18096 | declaration after freezing point of all its associated tagged types; | |
18097 | otherwise such types are frozen too early. | |
18098 | ||
18099 | 2007-06-06 Robert Dewar <dewar@adacore.com> | |
18100 | ||
18101 | * a-reatim.adb: Documentation addition | |
18102 | ||
18103 | * g-cgideb.adb: Minor code reorganization | |
18104 | ||
18105 | * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb, | |
18106 | mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads, | |
18107 | s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting. | |
18108 | ||
18109 | * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete | |
18110 | function. Change name New_Scope to Push_Scope | |
18111 | (Get_Debug_Flag_K): Remove unused obsolete function. | |
18112 | ||
18113 | * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to | |
18114 | Push_Scope. | |
18115 | ||
18116 | * makeusg.adb: Update Copyright notice | |
18117 | Add line for switch -aP | |
18118 | ||
18119 | * makeusg.adb: Fix wording of some usage messages | |
18120 | ||
18121 | * s-assert.adb (Raise_Assert_Failure): Add call to | |
18122 | Debug_Raise_Assert_Failure. | |
18123 | ||
18124 | * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min | |
18125 | (2, Standard'Alignment) for compatibility with AAMP (where alignment | |
18126 | is restricted to 1). | |
18127 | ||
18128 | * s-wchjis.adb: Remove use of System.Pure_Exceptions | |
18129 | ||
18130 | * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the | |
18131 | node location to No_Location when we're not debugging the expanded | |
18132 | code. | |
18133 | ||
8394e1b5 | 18134 | 2007-05-22 Alexandre Oliva <aoliva@redhat.com> |
18135 | ||
18136 | * misc.c (enumerate_modes): Consider log2_b to always be one. | |
18137 | ||
d3eff7bb | 18138 | 2007-05-14 Rafael Ávila de Espíndola <espindola@google.com> |
71eea85c | 18139 | |
18140 | * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove. | |
18141 | ||
1aa4b9ce | 18142 | 2007-05-02 Pascal Obry <obry@adacore.com> |
18143 | ||
18144 | * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation | |
18145 | to use Stream_IO.File_Type. This is needed to make use of the UTF-8 | |
18146 | encoding support of Stream_IO. | |
18147 | (Write_Unit): Idem. | |
18148 | ||
18149 | * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the | |
18150 | filename and corresponding encoding to match the OS requirement. | |
18151 | (__gnat_file_exists): Do not call __gnat_stat() on Windows as this | |
18152 | routine will fail on specific devices like CON: AUX: ... | |
18153 | ||
18154 | PR ada/29856: Add missing braces | |
18155 | ||
242b7465 | 18156 | 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com> |
18157 | ||
18158 | PR ada/31660 | |
18159 | * ada-tree.h (lang_tree_node): Fix typo in chain_next. | |
18160 | ||
64c2e9b0 | 18161 | 2007-04-21 Jan Hubicka <jh@suse.cz> |
18162 | ||
18163 | * misc.c (gnat_expand_body): Don't call target for destructors, | |
18164 | avoid redundant check on syntax errors. | |
18165 | ||
98d4f925 | 18166 | 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com> |
18167 | ||
18168 | * ada-tree.h (lang_tree_node): Use GENERIC_NEXT | |
18169 | instead of checking GIMPLE_STMT_P in chain_next. | |
18170 | ||
c2245763 | 18171 | 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com> |
18172 | ||
18173 | PR ada/31576 | |
18174 | * system-linux-alpha.ads: Disable constant condition warning for the | |
18175 | Default_Bit_Order variable. | |
18176 | * system-linux-s390.ads: Likewise. | |
18177 | * system-linux-s390x.ads: Likewise. | |
18178 | * system-linux-sparc.ads: Likewise. | |
18179 | ||
148291c8 | 18180 | 2007-04-06 Javier Miranda <miranda@adacore.com> |
18181 | Matt Heaney <heaney@adacore.com> | |
18182 | Robert Dewar <dewar@adacore.com> | |
18183 | ||
18184 | a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, | |
18185 | a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads, | |
18186 | a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb, | |
18187 | a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads, | |
18188 | a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads, | |
18189 | a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads, | |
18190 | a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads, | |
18191 | a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads, | |
18192 | a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, | |
18193 | a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads, | |
18194 | a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads, | |
18195 | a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads, | |
18196 | a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads, | |
18197 | a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads, | |
18198 | a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads, | |
18199 | a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads, | |
18200 | a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads, | |
18201 | i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads, | |
18202 | unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads, | |
18203 | a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads, | |
18204 | a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads, | |
18205 | a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads, | |
18206 | expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads, | |
18207 | s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb, | |
18208 | s-taprop-tru64.adb, s-taprop-irix.adb, | |
18209 | s-taprop-hpux-dce.adb, s-traceb-hpux.adb, | |
18210 | s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb, | |
18211 | s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb, | |
7c066666 | 18212 | s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb, |
18213 | s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads, | |
18214 | a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb, | |
18215 | a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads, | |
18216 | g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads, | |
18217 | s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb, | |
18218 | s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads, | |
18219 | s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb, | |
18220 | s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, | |
18221 | s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb, | |
18222 | s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb, | |
18223 | a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads, | |
18224 | a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads, | |
18225 | a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb, | |
148291c8 | 18226 | a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, |
7c066666 | 18227 | a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads, |
148291c8 | 18228 | a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous |
18229 | access types. | |
18230 | Update documentation. | |
18231 | Minor rewording. | |
18232 | ||
18233 | 2007-04-06 Robert Dewar <dewar@adacore.com> | |
18234 | ||
18235 | * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, | |
18236 | system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads, | |
18237 | system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads, | |
18238 | system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads, | |
18239 | system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads, | |
18240 | system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, | |
18241 | system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, | |
18242 | system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads, | |
18243 | system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads, | |
7c066666 | 18244 | system-hpux-ia64.ads, targparm.adb, |
148291c8 | 18245 | targparm.ads (Functions_Return_By_DSP_On_Target): Removed |
18246 | ||
18247 | * system.ads: Move Functions_Return_By_DSP to obsolete section, | |
18248 | kept for bootstrap purposes only. | |
18249 | ||
18250 | 2007-04-06 Arnaud Charlet <charlet@adacore.com> | |
18251 | ||
18252 | * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads, | |
18253 | s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads, | |
18254 | s-taprop-posix.adb (Create_Task): Fix handling of Task_Info. | |
18255 | (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants. | |
18256 | ||
18257 | 2007-04-06 Robert Dewar <dewar@adacore.com> | |
18258 | ||
18259 | * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb | |
18260 | (Local_Raise): New dummy procedure called when a raise is converted | |
18261 | to a local goto. Used for debugger to detect that the exception | |
18262 | is raised. | |
18263 | ||
18264 | * debug.adb: Document new d.g flag (expand local raise statements to | |
18265 | gotos even if pragma Restriction (No_Exception_Propagation) is not set) | |
18266 | ||
18267 | * exp_sel.adb: Use Make_Implicit_Exception_Handler | |
18268 | ||
18269 | * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to | |
18270 | suppress warnings for unused handlers. | |
18271 | (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress | |
18272 | warnings for raise statements not handled locally. | |
18273 | (Get_RT_Exception_Entity): New function | |
18274 | (Get_Local_Call_Entity): New function | |
18275 | (Find_Local_Handler): New function | |
18276 | (Warn_If_No_Propagation): New procedure | |
18277 | (Expand_At_End_Handler): Call Make_Implicit_Handler | |
18278 | (Expand_Exception_Handlers): Major additions to deal with local handlers | |
18279 | (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error, | |
18280 | Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling | |
18281 | for local raise | |
18282 | ||
18283 | * exp_ch11.ads (Get_RT_Exception_Entity): New function | |
18284 | (Get_Local_Call_Entity): New function | |
18285 | ||
18286 | * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list | |
18287 | of restrictions that the binder will never suggest adding. | |
18288 | ||
18289 | * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field | |
18290 | to No_Elist. | |
18291 | ||
18292 | * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not | |
18293 | be with'ed in the presence of pragma Restriction | |
18294 | (No_Exception_Propagation). | |
18295 | ||
18296 | * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes | |
18297 | ||
18298 | * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice | |
18299 | parameter, then the handler is not a suitable target for a local raise, | |
18300 | and this is a violation of restriction No_Exception_Propagation. | |
18301 | (Analyze_Handled_Statements): Analyze choice parameters in exception | |
18302 | handlers before analyzing statement sequence (needed for proper | |
18303 | detection of local raise statements). | |
18304 | (Analyze_Raise_Statement): Reraise statement is a violation of the | |
18305 | No_Exception_Propagation restriction. | |
18306 | ||
18307 | * s-rident.ads: Add new restriction No_Exception_Propagation | |
18308 | ||
18309 | * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New | |
18310 | function, like Make_Exception_Handler but sets Local_Raise_Statements | |
18311 | to No_List. | |
18312 | (Add_Unique_Serial_Number): Deal with case where this is called during | |
18313 | processing of configuration pragmas. | |
18314 | ||
18315 | 2007-04-06 Thomas Quinot <quinot@adacore.com> | |
18316 | Pat Rogers <rogers@adacore.com> | |
18317 | Pascal Obry <obry@adacore.com> | |
18318 | ||
18319 | * g-stsifd-sockets.adb: New file. | |
18320 | ||
18321 | * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb, | |
18322 | g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads, | |
18323 | g-socthi-vms.adb: Move signalling | |
18324 | fd management to a nested package, so that they can conveniently be | |
18325 | moved to a subunit that is shared across Windows, VMS, and VxWorks | |
18326 | (Ada implementation) or completed with imported bodies from socket.c | |
18327 | (UNIX case). | |
18328 | (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New | |
18329 | subprograms. | |
18330 | (Check_Selector): Use Read_Signalling_Fd to read and discard data from | |
18331 | the signalling file descriptor. | |
18332 | (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the | |
18333 | signalling file descriptor. | |
18334 | (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds | |
18335 | instead of creating a pair of sockets for signalling here. | |
18336 | ||
18337 | * g-socthi.adb: Ditto. | |
18338 | Set the runtime process to ignore SIGPIPEs on platforms that support | |
18339 | neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality. | |
18340 | ||
18341 | * g-socthi-mingw.adb: Ditto. | |
18342 | (WS_Version): Use Windows 2.2. | |
18343 | Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API. | |
18344 | ||
18345 | * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support. | |
18346 | Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API. | |
18347 | ||
18348 | * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb. | |
18349 | added GNAT byte swapping facility | |
18350 | Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6. | |
18351 | ||
18352 | * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files. | |
18353 | ||
18354 | * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd): | |
18355 | New subprograms. | |
18356 | (__gnat_create_signalling_fds): New subprogram. | |
18357 | Set the runtime process to ignore SIGPIPEs on platforms that support | |
18358 | neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality. | |
18359 | ||
18360 | 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com> | |
18361 | Vincent Celier <celier@adacore.com> | |
18362 | ||
18363 | * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb: | |
18364 | New version of Ada.Calendar which supports the new upper bound of Ada | |
18365 | time (2399-12-31 86_399.999999999). | |
18366 | The following modifications have been made to the package: | |
18367 | - New representation of time as count of nanoseconds since the start of | |
18368 | Ada time (1901-1-1 0.0). | |
18369 | - Target independent Split and Time_Of routines which service both | |
18370 | Ada 95 and Ada 2005 code. | |
18371 | - Target independent interface to the Ada 2005 children of Calendar. | |
18372 | - Integrated leap seconds into Ada 95 and Ada 2005 mode. | |
18373 | - Handling of non-leap centenial years. | |
18374 | - Updated clock function. | |
18375 | - Updated arithmetic and comparison operators. | |
18376 | ||
18377 | * a-caldel.adb (To_Duration): Add call to target independent routine in | |
18378 | Ada.Calendar to handle the conversion of time to duration. | |
18379 | ||
18380 | * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off | |
18381 | (UTC Offset). | |
18382 | If timezone is obviously incorrect (outside of -14 hours .. 14 hours), | |
18383 | set off to 0. | |
18384 | (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these | |
18385 | targets do not have a natural time zone, GMT is used as a default. | |
18386 | (__gnat_get_task_options): New. | |
18387 | ||
18388 | * a-direct.adb (Modification_Time): Add with and use clauses for | |
18389 | Ada.Calendar and Ada. | |
18390 | Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion | |
18391 | since it is no longer needed. | |
18392 | (Duration_To_Time): Removed. | |
18393 | (OS_Time_To_Long_Integer): Removed. | |
18394 | (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar. | |
18395 | Formatting Time_Of routines which automatically handle time zones, | |
18396 | buffer periods and leap seconds. | |
18397 | ||
18398 | * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to | |
18399 | target independent routines in Ada.Calendar. | |
18400 | ||
7c066666 | 18401 | * a-calfor.ads, a-calfor.adb: |
148291c8 | 18402 | Code cleanup and addition of validity checks in various routines. |
18403 | (Day_Of_Week, Split, Time_Of): Add call to target independent routine in | |
18404 | Ada.Calendar. | |
18405 | ||
18406 | * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target | |
18407 | independent routine in Ada.Calendar. | |
18408 | ||
18409 | 2007-04-06 Olivier Hainque <hainque@adacore.com> | |
18410 | ||
7c066666 | 18411 | * adaint.c: |
148291c8 | 18412 | (convert_addresses): Adjust prototype and dummy definition to expect an |
18413 | extra file_name argument. | |
18414 | ||
18415 | * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses, | |
18416 | filling the now expected file_name argument with the appropriate | |
18417 | argv[0] expansion. | |
18418 | (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it. | |
18419 | (tracebk): Array of void * instead of char *, corresponding to what | |
18420 | convert_addresses expects. | |
18421 | (exename): New static global, to hold the executable file name to be | |
18422 | used in all convert_addresses invocations. | |
18423 | (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type | |
18424 | change. | |
18425 | (__gnat_gmem_a2l_initialize): Resolve exename. | |
18426 | (__gnat_convert_addresses): Use exename as the convert_addresses | |
18427 | file_name argument. | |
18428 | ||
18429 | * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported | |
18430 | "convert_addresses", now expecting a filename argument. Import the | |
18431 | necessary entities to compute the filename to use and pass it to | |
18432 | convert_addresses. | |
18433 | ||
18434 | 2007-04-06 Matt Gingell <gingell@adacore.com> | |
18435 | ||
18436 | * system-aix.ads: Back out previous change. | |
18437 | (Functions_Return_By_DSP): Removed | |
18438 | ||
18439 | 2007-04-06 Pascal Obry <obry@adacore.com> | |
18440 | ||
18441 | * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one | |
18442 | or the monotonic used by Ada.Real_Time) to compute the sleep duration | |
18443 | on Windows. | |
18444 | ||
18445 | 2007-04-06 Jose Ruiz <ruiz@adacore.com> | |
18446 | ||
18447 | * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this | |
18448 | function. Its value changes in different VxWorks versions, and it is | |
18449 | now handled by the function __gnat_get_task_options. | |
18450 | ||
18451 | * s-taprop-vxworks.adb (Create_Task): Call the function | |
18452 | __gnat_get_task_options to get the required options for creating a task. | |
18453 | ||
18454 | 2007-04-06 Pascal Obry <obry@adacore.com> | |
18455 | Thomas Quinot <quinot@adacore.com> | |
18456 | ||
18457 | * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when | |
18458 | dealing with filename. | |
18459 | (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the | |
18460 | filename from a standard string to a wide-string depending on the | |
18461 | encoding value. | |
18462 | (__gnat_freopen): Idem. | |
18463 | (__gnat_current_time): New function (wrapper for time(3) standard C | |
18464 | function). | |
18465 | ||
18466 | * g-os_lib.ads (Current_Time): New function. Returns the current | |
18467 | system time as an OS_Time value. | |
18468 | ||
18469 | * s-osprim.ads (Clock): Add more precise definition of UNIX epoch. | |
18470 | (Monotonic_Clock): Same. | |
18471 | ||
18472 | 2007-04-06 Quentin Ochem <ochem@adacore.com> | |
18473 | ||
18474 | * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is | |
18475 | not on a natural. | |
18476 | (Scan_ALI): Cancel the xref line if there has been a reading ALI error. | |
18477 | ||
18478 | 2007-04-06 Jose Ruiz <ruiz@adacore.com> | |
18479 | ||
18480 | * a-retide.adb: Add elaboration code to ensure that the tasking run | |
18481 | time is initialized when using delay operations even when no task is | |
18482 | created. | |
18483 | ||
18484 | 2007-04-06 Javier Miranda <miranda@adacore.com> | |
18485 | ||
18486 | * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove | |
18487 | component Num_Prim_Ops. | |
18488 | (Set_Num_Prim_Ops): Removed. | |
18489 | Remove all the assertions because all the routines of this | |
18490 | package are inline always. | |
18491 | (Get_Offset_Index): Add support to primary dispatch tables. | |
18492 | Move the documentation about the dispatch table to a-tags.ads | |
18493 | (Set_External_Tag): Removed | |
18494 | (Inherit_TSD): Removed. | |
18495 | (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations | |
18496 | moved to a-tags.ads | |
18497 | (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags, | |
18498 | Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences | |
18499 | of the TSD field "Table" because this field has been renamed to | |
18500 | "Ifaces_Table". | |
18501 | (Inherit_CPP_DT): Removed. | |
18502 | (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature, | |
18503 | Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These | |
18504 | declarations have been moved to a-tags.ads | |
18505 | (Check_Size): Removed. | |
18506 | (Expanded_Name): Updated to get access to the new field of TSD | |
18507 | containing the address of the expanded name. | |
18508 | (Get_Access_Level/Set_Access_Level): Removed. | |
18509 | (Get_Predefined_Prim_Op_Address): Removed. | |
18510 | (Set_Predefined_Prim_Op_Address): Removed. | |
18511 | (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed. | |
18512 | (Get_Remotely_Callable/Set_Remotely_Callable): Removed. | |
18513 | (Set_Expanded_Name): Removed. | |
18514 | (Inherit_DT): Removed. | |
18515 | (Inherit_CPP_DT): Removed. | |
18516 | (Set_RC_Offset): Removed. | |
18517 | (Set_TSD): Removed. | |
18518 | (Base_Address): New function that displaces "this" to point to the base | |
18519 | of the object (that is, to point to the primary tag of the object). | |
18520 | ||
18521 | 2007-04-06 Ed Schonberg <schonberg@adacore.com> | |
18522 | Javier Miranda <miranda@adacore.com> | |
18523 | ||
18524 | * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an | |
18525 | anonymous access component, do not create a master_id if type already | |
18526 | has one, as may happen if the type is a subcomponent of a packed array | |
18527 | type. | |
18528 | (Build_Init_Procedure, Component_Needs_Simple_Initialization, | |
18529 | Initialize_Tag): Remove code associated with the old CPP pragmas. | |
18530 | CPP_Virtual and CPP_Vtable are no longer supported. | |
18531 | (Build_Offset_To_Top_Internal): Add support for concurrent record types | |
18532 | (Build_Offset_To_Top_Functions): Add support for concurrent record types | |
18533 | (Freeze_Record_Type): Remove call to | |
18534 | Init_Predefined_Interface_Primitives. | |
18535 | (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the | |
18536 | code required to initialize the tags of the secondary dispatch tables. | |
18537 | This leaves the algoritm more clear. | |
18538 | (Init_Secondary_Tags): Add support for concurrent record types | |
18539 | (Make_Predefined_Primitive_Specs): Code cleanup. | |
18540 | (Predefined_Primitive_Bodies): Code cleanup. | |
18541 | (Build_Master_Renaming): New local subprogram. | |
18542 | (Expand_N_Full_Type_Declaration): Build the master_id associated with | |
18543 | anonymous access to task type components. | |
18544 | (Expand_N_Subtype_Indication): The bounds of a range constraint in a | |
18545 | subtype indication are resolved during analysis, and must not be done | |
18546 | here. | |
18547 | (Stream_Operation_OK): Check Restriction_Active before RTE_Available. | |
18548 | ||
18549 | 2007-04-06 Geert Bosch <bosch@adacore.com> | |
18550 | Ed Schonberg <schonberg@adacore.com> | |
18551 | Javier Miranda <miranda@adacore.com> | |
18552 | Bob Duff <duff@adacore.com> | |
18553 | ||
18554 | * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing | |
18555 | for conversion of a Float_Type'Truncation to integer. | |
18556 | ||
18557 | * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to | |
18558 | check if a node is an attribute that can be handled directly by the | |
18559 | back end. | |
18560 | (Expand_N_Attribute_Reference): Suppress expansion of floating-point | |
18561 | attributes that can be handled directly by the back end. | |
18562 | (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access): | |
18563 | use new predicate Is_Access_Protected_Subprogram_Type. | |
18564 | (Expand_N_Attribute_Reference, case 'Write): The reference is legal for | |
18565 | and Unchecked_Union if it is generated as part of the default Output | |
18566 | procedure for a type with default discriminants. | |
18567 | (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls | |
18568 | if we are compiling under restriction No_Dispatching_Calls. | |
18569 | (Constrained): Use Underlying_Type, in case the type is private without | |
18570 | discriminants, but the full type has discriminants. | |
18571 | (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by | |
18572 | call to Build_Get_Access_Level. | |
18573 | (Expand_N_Attribute_Reference): The use of 'Address with class-wide | |
18574 | interface objects requires a call to the run-time subprogram that | |
18575 | returns the base address of the object. | |
18576 | (Valid_Conversion): Improve error message on illegal attempt to store | |
18577 | an anonymous access to subprogram value into a record component. | |
18578 | ||
18579 | * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access = | |
18580 | null". | |
18581 | (Simplify_Type_Conversion): New procedure that performs simplification | |
18582 | of Int_Type (Float_Type'Truncation (X)). | |
18583 | (Resolve_Type_Conversion): Call above procedure after resolving operand | |
18584 | and before performing checks. This replaces the existing ineffective | |
18585 | code in Exp_Ch4. | |
18586 | (Set_String_Literal_Subtype): When creating the internal static lower | |
18587 | bound subtype for a string literal, use a newly created copy of the | |
18588 | subtree representing the lower bound. | |
18589 | (Resolve_Call): Exclude build-in-place function calls from transient | |
18590 | scope treatment. Update comments to describe this exception. | |
18591 | (Resolve_Equality_Op): In case of dispatching call check violation of | |
18592 | restriction No_Dispatching_Calls. | |
18593 | (Resolve_Call): If the call returns an array, the context imposes the | |
18594 | component type of the array, and the function has one non-defaulted | |
18595 | parameter, rewrite the call as the indexing of a call with a single | |
18596 | parameter, to handle an Ada 2005 syntactic ambiguity for calls written | |
18597 | in prefix form. | |
18598 | (Resolve_Actuals): If an actual is an allocator for an access parameter, | |
18599 | the master of the created object is the innermost enclosing statement. | |
18600 | (Remove_Conversions): For a binary operator, check if type of second | |
18601 | formal is numeric, to check if an abstract interpretation is present | |
18602 | in the case of exponentiation as well. | |
18603 | ||
18604 | 2007-04-06 Ed Schonberg <schonberg@adacore.com> | |
18605 | Bob Duff <duff@adacore.com> | |
18606 | ||
18607 | * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When | |
18608 | copying a parameter list in a call, set properly the First_Named_Formal | |
18609 | and Next_Named_Formal fields in the new list and in the enclosing call. | |
18610 | (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten | |
18611 | names, to ease typing in the debugger. Improve comments. | |
18612 | (Watch_Node): New variable, intended to be set in the debugger. | |
18613 | (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on, | |
18614 | called when the watched node is created. | |
18615 | (New_Node_Debugging_Output): Combined version of local procedures | |
18616 | New_Node_Debugging_Output and New_Entity_Debugging_Output, now global, | |
18617 | with a parameter so that conditional breakpoints like "if Node = 12345" | |
18618 | work. | |
18619 | (New_Node, New_Entity): Call the global New_Node_Debugging_Output. | |
18620 | Add Elist1 function | |
18621 | ||
18622 | 2007-04-06 Thomas Quinot <quinot@adacore.com> | |
18623 | Ed Schonberg <schonberg@adacore.com> | |
18624 | Gary Dismukes <dismukes@adacore.com> | |
18625 | ||
18626 | * checks.ads, checks.adb (Selected_Range_Checks): No range check is | |
18627 | required for a conversion between two access-to-unconstrained-array | |
18628 | types. | |
18629 | (Expr_Known_Valid): Validity checks do not apply to discriminants, but | |
18630 | to discriminant constraints on discriminant objects. This rule must | |
18631 | apply as well to discriminants of protected types in private components. | |
18632 | (Null_Exclusion_Static_Checks): If No_Initialization is set on an | |
18633 | object of a null-excluding access type then don't require the | |
18634 | the object declaration to have an expression and don't emit a | |
18635 | run-time check. | |
18636 | ||
18637 | 2007-04-06 Arnaud Charlet <charlet@adacore.com> | |
8a67bb47 | 18638 | Eric Botcazou <botcazou@adacore.com> |
148291c8 | 18639 | |
18640 | * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type | |
18641 | and made constant. | |
18642 | ||
18643 | * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter | |
18644 | Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't | |
18645 | carry any. | |
18646 | ||
18647 | * fe.h (Compiler_Abort): Add third parameter. | |
18648 | ||
18649 | * misc.c (internal_error_function): Build third argument from current | |
18650 | input location and pass it to Compiler_Abort. | |
18651 | ||
18652 | 2007-04-06 Gary Dismukes <dismukes@adacore.com> | |
18653 | ||
18654 | * cstand.adb (Create_Standard): When the target's storage unit size is | |
18655 | greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on | |
18656 | Standard_String. | |
18657 | ||
18658 | 2007-04-06 Nicolas Roche <roche@adacore.com> | |
18659 | ||
18660 | * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which | |
18661 | absolute path can have the following form: device:/a/b. In this case | |
18662 | '/' should be inserted between the path and the filename. | |
18663 | ||
18664 | 2007-04-06 Olivier Hainque <hainque@adacore.com> | |
8a67bb47 | 18665 | Eric Botcazou <botcazou@adacore.com> |
148291c8 | 18666 | |
18667 | * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external | |
18668 | VAR_DECL to a CONST_DECL we make for a public constant when we know the | |
18669 | corresponding definition has created the so made visible variable. | |
18670 | Handle anonymous access to protected subprogram. | |
18671 | (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an | |
18672 | object with an address clause volatile. Re-enable original fix. | |
18673 | <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type | |
18674 | too. | |
18675 | (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL | |
18676 | associated with either the Equivalent or Root type, instead of the | |
18677 | naked type node. | |
18678 | (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET | |
18679 | subtree for every field of a global record type. | |
18680 | (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has | |
18681 | discriminants, invoke again variable_size on its newly computed sizes. | |
18682 | ||
18683 | 2007-04-06 Robert Dewar <dewar@adacore.com> | |
18684 | Thomas Quinot <quinot@adacore.com> | |
18685 | Ed Schonberg <schonberg@adacore.com> | |
18686 | Bob Duff <duff@adacore.com> | |
18687 | ||
18688 | * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function | |
18689 | (Next_Component_Or_Discriminant): New function and procedure | |
18690 | (First_Index, First_Literal, Master_Id, | |
18691 | Set_First_Index, Set_First_Literal, Set_Master_Id): | |
18692 | Add missing Ekind assertions. | |
18693 | (Is_Access_Protected_Subprogram_Type): New predicate. | |
18694 | (Has_RACW): New entity flag, set on package entities to indicate that | |
18695 | the package contains the declaration of a remote accecss-to-classwide | |
18696 | type. | |
18697 | (E_Return_Statement): This node type has the Finalization_Chain_Entity | |
18698 | attribute, in case the result type has controlled parts. | |
18699 | (Requires_Overriding): Add this new flag, because "requires | |
18700 | overriding" is subtly different from "is abstract" (see AI-228). | |
18701 | (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and | |
18702 | Is_Abstract_Type. Make sure these are called only when appropriate. | |
18703 | (Has_Pragma_Unreferenced_Objects): New flag | |
18704 | ||
18705 | * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is | |
18706 | class-wide, the tag of the right-hand side must be an exact match, not | |
18707 | an ancestor of that of the object on left-hand side. | |
18708 | (Move_Activation_Chain): New procedure to create the call to | |
18709 | System.Tasking.Stages.Move_Activation_Chain. | |
18710 | (Expand_N_Extended_Return_Statement): Generate code to call | |
18711 | System.Finalization_Implementation.Move_Final_List at the end of a | |
18712 | return statement if the function's result type has controlled parts. | |
18713 | Move asserts to Build_In_Place_Formal. | |
18714 | (Move_Final_List): New function to create the call statement. | |
18715 | (Expand_N_Assignment_Statement): In case of assignment to a class-wide | |
18716 | tagged type, replace generation of call to the run-time subprogram | |
18717 | CW_Membership by call to Build_CW_Membership. | |
18718 | (Expand_N_Return_Statement): Replace generation of call to the run-time | |
18719 | subprogram Get_Access_Level by call to Build_Get_Access_Level. | |
18720 | (Expand_N_Simple_Function_Return): Replace generation of call to the | |
18721 | run-time subprogram Get_Access_Level by call to Build_Get_Access_Level. | |
18722 | ||
18723 | * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate | |
18724 | Is_Access_Protected_Subprogram_Type, to handle both named and anonymous | |
18725 | access to protected operations. | |
18726 | (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the | |
18727 | master and chain actual parameters to a build-in-place function call | |
18728 | involving tasks. | |
18729 | (BIP_Formal_Suffix): Add new enumeration literals to complete the case | |
18730 | statement. | |
18731 | (Make_Build_In_Place_Call_In_Allocator, | |
18732 | Make_Build_In_Place_Call_In_Anonymous_Context, | |
18733 | Make_Build_In_Place_Call_In_Assignment, | |
18734 | Make_Build_In_Place_Call_In_Object_Declaration): Call | |
18735 | Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master. | |
18736 | (Expand_Inlined_Call): If the subprogram is a null procedure, or a | |
18737 | stubbed procedure with a null body, replace the call with a null | |
18738 | statement without using the full inlining machinery, for efficiency | |
18739 | and to avoid invalid values in source file table entries. | |
18740 | ||
18741 | * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for | |
18742 | renamings of calls to build-in-place functions. | |
18743 | ||
18744 | * rtsfind.adb (RTE_Record_Component_Available): New subprogram that | |
18745 | provides the functionality of RTE_Available to record components. | |
18746 | (RTU_Entity): The function Entity has been renamed to RTU_Entity | |
18747 | to avoid undesired overloading. | |
18748 | (Entity): New subprogram that returns the entity for the referened | |
18749 | unit. If this unit has not been loaded, it returns Empty. | |
18750 | (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities. | |
18751 | Remove no longer used entities. | |
18752 | (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities. | |
18753 | (RE_Type_Specific_Data): New entity. | |
18754 | (RE_Move_Any_Value): New entity. | |
18755 | (RE_TA_A, RE_Get_Any_Type): New entities. | |
18756 | (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count, | |
18757 | RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable, | |
18758 | RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added. | |
18759 | (Entity): New subprogram that returns the entity for the referened | |
18760 | unit. If this unit has not been loaded, it returns Empty. | |
18761 | (RTE): Addition of a new formal that extends the search to the scopes | |
18762 | of the record types found in the chain of the package. | |
18763 | ||
18764 | * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print | |
18765 | "abstract subprograms must be visible" message, whether or not the type | |
18766 | is an interface; that is, remove the special case for interface types. | |
18767 | (Analyze_Function_Return): Remove error message "return of task objects | |
18768 | is not yet implemented" because this is now implemented. | |
18769 | (Create_Extra_Formals): Add the extra master and activation chain | |
18770 | formals in case the result type has tasks. | |
18771 | Remove error message "return of limited controlled objects is not yet | |
18772 | implemented". | |
18773 | (Create_Extra_Formals): Add the extra caller's finalization list formal | |
18774 | in case the result type has controlled parts. | |
18775 | (Process_Formals): In case of access formal types there is no need | |
18776 | to continue with the analysis of the formals if we already notified | |
18777 | errors. | |
18778 | (Check_Overriding_Indicator): Add code to check overriding of predefined | |
18779 | operators. | |
18780 | (Create_Extra_Formals): Prevent creation of useless Extra_Constrained | |
18781 | flags for formals that do not require them,. | |
18782 | (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless | |
18783 | hidden entity is use visible or directly visible. | |
18784 | (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body, | |
18785 | Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification, | |
18786 | Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator, | |
18787 | New_Overloaded_Entity): Split Is_Abstract flag into | |
18788 | Is_Abstract_Subprogram and Is_Abstract_Type. | |
18789 | ||
18790 | * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move | |
18791 | a return statement's finalization list to the caller's list, used for | |
18792 | build-in-place functions with result type with controlled parts. | |
18793 | Remove no longer used entities. | |
18794 | ||
18795 | * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no | |
18796 | longer needed, because the full type is now limited, and therefore a | |
18797 | pass-by-reference type. | |
18798 | (Foreign_Task_Level): New constant. | |
18799 | ||
18800 | * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to | |
18801 | move tasks from the activation chain belonging to a return statement to | |
18802 | the one passed in by the caller, and update the master to the one | |
18803 | passed in by the caller. | |
18804 | (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master | |
18805 | of unactivated tasks, so we don't kill the ones that are being returned | |
18806 | by a build-in-place function. | |
18807 | (Create_Task): Ignore AI-280 for foreign threads. | |
18808 | ||
18809 | 2007-04-06 Ed Schonberg <schonberg@adacore.com> | |
18810 | Robert Dewar <dewar@adacore.com> | |
18811 | Bob Duff <duff@adacore.com> | |
18812 | Gary Dismukes <dismukes@adacore.com> | |
18813 | ||
18814 | * errout.adb (Unwind_Internal_Type): Use predicate | |
18815 | Is_Access__Protected_Subprogram_Type. | |
18816 | ||
18817 | * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant | |
18818 | (Freeze_Entity, packed array case): Do not override explicitly set | |
18819 | alignment and size clauses. | |
18820 | (Freeze_Entity): An entity declared in an outer scope can be frozen if | |
18821 | the enclosing subprogram is a child unit body that acts as a spec. | |
18822 | (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type. | |
18823 | (Freeze_Record_Type): New Ada 2005 processing for reverse bit order | |
18824 | Remove all code for DSP option | |
18825 | ||
18826 | * layout.adb (Layout_Record_Type): Use First/ | |
18827 | Next_Component_Or_Discriminant | |
18828 | (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type, | |
18829 | to handle properly the anonymous access case. | |
18830 | ||
18831 | * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type | |
18832 | for all access attributes, because overload resolution should work the | |
18833 | same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This | |
18834 | causes the error message for the ambiguous "X'Access = Y'Access" and | |
18835 | "X'Unrestricted_Access = Y'Access" and so forth to match. | |
18836 | (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type, | |
18837 | now that anonymous access to protected operations have their own kind. | |
18838 | (Resolve_Attribute): In case of dispatching call check the violation of | |
18839 | restriction No_Dispatching_Calls. | |
18840 | (Check_Array_Type): Check new -gnatyA array index style option | |
18841 | ||
18842 | * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an | |
18843 | attempt to derive from a synchronized tagged type. | |
18844 | (Analyze_Type_Declaration): If there is a incomplete tagged view of the | |
18845 | type, inherit the class-wide type already created, because it may | |
18846 | already have been used in a self-referential anonymous access component. | |
18847 | (Mentions_T): Recognize self-referential anonymous access components | |
18848 | that use (a subtype of) the class-wide type of the enclosing type. | |
18849 | (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass | |
18850 | Derived_Type for Prev formal on call to | |
18851 | Check_Anonymous_Access_Components rather than Empty. | |
18852 | (Make_Incomplete_Type_Declaration): Add test for case where the type has | |
18853 | a record extension in deciding whether to create a class-wide type, | |
18854 | rather than just checking Tagged_Present. | |
18855 | (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies | |
18856 | to stand-alone object declarations as well as component declarations. | |
18857 | (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to | |
18858 | prevent accidental overwriting when enclosing package appears in | |
18859 | a limited_with_clause. | |
18860 | (Array_Type_Declaration): If the component type is an anonymous access, | |
18861 | the associated_node for the itype is the type declaration itself. | |
18862 | (Add_Interface_Tag_Components): Modified to support concurrent | |
18863 | types with abstract interfaces. | |
18864 | (Check_Abstract_Interfaces): New subprogram that verifies the ARM | |
18865 | rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2). | |
18866 | (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration | |
18867 | to complete the decoration of synchronized interface types. Add also | |
18868 | a call to Check_Abstract_Interfaces to verify the ARM rules. | |
18869 | (Derive_Interface_Subprograms): Modified to support concurrent types | |
18870 | with abstract interfaces. | |
18871 | (Analyze_Subtype_Indication): Resolve the range with the given subtype | |
18872 | mark, rather than delaying the full resolution depending on context. | |
18873 | (Analyze_Component_Declaration,Analyze_Interface_Declaration, | |
18874 | Analyze_Object_Declaration,Analyze_Subtype_Declaration, | |
18875 | Array_Type_Declaration,Build_Derived_Record_Type, | |
18876 | Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion, | |
18877 | Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type, | |
18878 | Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into | |
18879 | Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are | |
18880 | called only when appropriate. | |
18881 | (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type | |
18882 | to private type. | |
18883 | (Analyze_Subtype_Declaration): For an access subtype declaration, create | |
18884 | an itype reference for the anonymous designated subtype, to prevent | |
18885 | scope anonmalies in gigi. | |
18886 | (Build_Itype_Reference): New utility, to simplify construction of such | |
18887 | references. | |
18888 | ||
18889 | 2007-04-06 Vincent Celier <celier@adacore.com> | |
18890 | ||
18891 | * errutil.adb (Initialize): Initialize warnings table, if all warnings | |
18892 | are suppressed, supply an initial dummy entry covering all possible | |
18893 | source locations. | |
18894 | ||
18895 | * make.adb (Scan_Make_Arg): Reject options that should start with "--" | |
18896 | and start with only one, such as "-RTS=none". | |
18897 | (Collect_Arguments): Do not check for sources outside of projects. | |
18898 | Do not collect arguments if project is externally built. | |
18899 | (Compile_Sources): Do nothing, not even check if the source is up to | |
18900 | date, if its project is externally built. | |
18901 | (Compile): When compiling a predefined source, add -gnatpg | |
18902 | as the second switch, after -c. | |
18903 | (Compile_Sources): Allow compilation of Annex J renames without -a | |
18904 | (Is_In_Object_Directory): Check if the ALI file is in the object | |
18905 | even if there is no project extension. | |
18906 | (Create_Binder_Mapping_File): Only put a unit in the mapping file for | |
18907 | gnatbind if the ALI file effectively exists. | |
18908 | (Initialize): Add the directory where gnatmake is invoked in front of | |
18909 | the path if it is invoked from a bin directory, even without directory | |
18910 | information, so that the correct GNAT tools will be used when spawned | |
18911 | without directory information. | |
18912 | ||
18913 | * makeusg.adb: Change switch -S to -eS | |
18914 | Add lines for new switches -we, -wn and -ws | |
18915 | Add line for new switch -p | |
18916 | ||
18917 | * prj-proc.adb (Process): Set Success to False when Warning_Mode is | |
18918 | Treat_As_Error and there are warnings. | |
18919 | ||
18920 | * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip | |
18921 | -gnatww Change gnatmake switch -S to -eS | |
18922 | (Scan_Make_Switches): Code reorganisation. Process separately multi | |
18923 | character switches and single character switches. | |
18924 | (Scan_Make_Switches): New Boolean out parameter Success. Set Success to | |
18925 | False when switch is not recognized by gnatmake. | |
18926 | (Scan_Make_Switches): Set Setup_Projects True when -p or | |
18927 | --create-missing-dirs is specified. | |
18928 | ||
18929 | * fname.adb (Is_Predefined_File_Name): Return True for annex J | |
18930 | renamings Calendar, Machine_Code, Unchecked_Conversion and | |
18931 | Unchecked_Deallocation only when Renamings_Included is True. | |
18932 | ||
18933 | * par.adb: Allow library units Calendar, Machine_Code, | |
18934 | Unchecked_Conversion and Unchecked_Deallocation to be recompiled even | |
18935 | when -gnatg is not specified. | |
18936 | (P_Interface_Type_Definition): Remove the formal Is_Synchronized because | |
18937 | there is no need to generate always a record_definition_node in case | |
18938 | of synchronized interface types. | |
18939 | (SIS_Entry_Active): Initialize global variable to False | |
18940 | (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to | |
18941 | indicate cases where AI-447 says "not null" is legal. | |
18942 | ||
18943 | * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function | |
18944 | ||
18945 | * makegpr.adb (Check_Compilation_Needed): Take into account dependency | |
18946 | files with with several lines starting with the object fileb name. | |
18947 | (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs | |
18948 | is specified. | |
18949 | (Initialize): Add the directory where gprmake is invoked in front of the | |
18950 | path, if it is invoked from a bin directory or with directory | |
18951 | information, so that the correct GNAT tools will be used when invoked | |
18952 | directly. | |
18953 | (Check_Compilation_Needed): Process correctly backslashes on Windows. | |
18954 | ||
18955 | * vms_data.ads: Update switches/qualifiers | |
18956 | ||
18957 | 2007-04-06 Ed Schonberg <schonberg@adacore.com> | |
18958 | Thomas Quinot <quinot@adacore.com> | |
18959 | ||
18960 | * exp_aggr.adb: | |
18961 | If the array component is a discriminated record, the array aggregate | |
18962 | is non-static even if the component is given by an aggregate with | |
18963 | static components. | |
18964 | (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant | |
18965 | (Convert_Aggr_In_Allocator): If the allocator is for an access | |
18966 | discriminant and the type is controlled. do not place on a finalization | |
18967 | list at this point. The proper list will be determined from the | |
18968 | enclosing object. | |
18969 | (Build_Record_Aggr_Code): If aggregate has box-initialized components, | |
18970 | initialize record controller if needed, before the components, to ensure | |
18971 | that they are properly finalized. | |
18972 | (Build_Record_Aggr_Code): For the case of an array component that has a | |
18973 | corresponding array aggregate in the record aggregate, perform sliding | |
18974 | if required. | |
18975 | ||
18976 | 2007-04-06 Javier Miranda <miranda@adacore.com> | |
18977 | Gary Dismukes <dismukes@adacore.com> | |
18978 | Ed Schonberg <schonberg@adacore.com> | |
18979 | ||
18980 | * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the | |
18981 | run-time subprogram Set_External_Tag by call to Build_Set_External_Tag. | |
18982 | ||
18983 | * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time | |
18984 | accessibility on class-wide allocators if the allocator occurs at the | |
18985 | same scope level as the allocator's type. The check is guaranteed to | |
18986 | succeed in that case, even when the expression originates from a | |
18987 | parameter of the containing subprogram. | |
18988 | (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling | |
18989 | under No_Dispatching_Calls restriction. During the semantic analysis | |
18990 | we already notified such violation. | |
18991 | (Tagged_Membership): Constant folding. There is no need to check | |
18992 | the tag at run-time if the type of the right operand is non | |
18993 | class-wide abstract. | |
18994 | Replace call to Is_Ancestor by call to Is_Parent | |
18995 | to support concurrent types with interface types. | |
18996 | (Expand_N_Allocator): Add an assertion associated with the generation | |
18997 | of the master_id. | |
18998 | (Expand_N_Slice): Do not enable range check to nodes associated | |
18999 | with the frontend expansion of the dispatch table. | |
19000 | (Is_Local_Access_Discriminant): Subsidiary function to | |
19001 | Expand_N_Allocator. | |
19002 | (Tagged_Membership): Replace generation of call to the run-time | |
19003 | subprogram CW_Membership by call to Build_CW_Membership. | |
19004 | (Expand_Allocator_Expression): Replace generation of call to the | |
19005 | run-time subprogram Get_Access_Level by call to Build_Get_Access_Level. | |
19006 | ||
19007 | * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to | |
19008 | initialize most the TSD components by means of an aggregate. | |
19009 | Modify the declaration of the object containing the TSD | |
19010 | because we now expand code that has a higher level of abstraction. | |
19011 | The TSD has a discriminant containing the Inheritance Depth Level, | |
19012 | value that is used in the membership test but also to fix the size | |
19013 | of the table of ancestors. | |
19014 | (Expand_Interface_Conversion): Insert function body at the closest place | |
19015 | to the conversion expression, to prevent access-before-elaboration | |
19016 | errors in the backend. | |
19017 | Code improved to reduce the size of the dispatch table if | |
19018 | compiling under restriction No_Dispatching_Calls plus code cleanup. | |
19019 | Code reorganization plus removal of calls to Set_Num_Prim_Ops | |
19020 | (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops. | |
19021 | (Expand_Dispatching_Call): Minor code reorganization plus addition of | |
19022 | code to return immediately if compiling under No_Dispatching_Calls | |
19023 | restriction. | |
19024 | (Set_All_DT_Position): Remove code associated with the old CPP pragmas. | |
19025 | CPP_Virtual and CPP_Vtable are no longer supported. | |
19026 | (Expand_Interface_Conversion): Add missing support for interface type | |
19027 | derivations. | |
19028 | (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to | |
19029 | Is_Parent to support concurrent types with interfaces. | |
19030 | (Init_Predefined_Interface_Primitives): Removed. | |
19031 | (Make_Secondary_DT): Modified to support concurrent record types. | |
19032 | (Set_All_DT_Position): Modified to support concurrent record types. | |
19033 | (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated | |
19034 | with Get_External_Tag, Inherit_TSD, Set_External_Tag. | |
19035 | (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated | |
19036 | with CW_Membership. | |
19037 | (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated | |
19038 | with Get_Access_Level, Get_Predefined_Prim_Op_Address, | |
19039 | Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT, | |
19040 | Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address, | |
19041 | Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD. | |
19042 | (Expand_Dispatching_Call): Replace generation of call to the run-time | |
19043 | subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by | |
19044 | calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_ | |
19045 | Address. | |
19046 | (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to | |
19047 | the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_ | |
19048 | Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and | |
19049 | Build_Set_Prim_Op_Address. | |
19050 | (Get_Remotely_Callable): Subprogram removed. | |
19051 | (Init_Predefined_Interface_Primitives): Replace generation of call to | |
19052 | the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_ | |
19053 | Prims. | |
19054 | ||
19055 | * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to | |
19056 | First (Parameter_Associations ()) with the call to First_Actual that | |
19057 | returns an actual parameter expression for both named and positional | |
19058 | associations. | |
19059 | ||
19060 | * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call | |
19061 | check violation of restriction No_Dispatching_Calls. | |
19062 | (Check_Controlling_Type): A formal of a tagged incomplete type is a | |
19063 | controlling argument. | |
19064 | ||
19065 | * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use | |
19066 | First/Next_Component_Or_Discriminant | |
19067 | (Insert_Actions): Add entries for new N_Push and N_Pop nodes | |
19068 | (Find_Implemented_Interface): Removed. All the calls to this subprogram | |
19069 | specify Any_Limited_Interface, and this functionality is already | |
19070 | provided by the function Has_Abstract_Interfaces. | |
19071 | (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to | |
19072 | support concurrent types implementing interfaces. | |
19073 | (Find_Implemented_Interface): Removed. All the calls to this subprogram | |
19074 | specify kind Any_Limited_Interface, and this functionality is already | |
19075 | provided by the function Has_Abstract_Interfaces. | |
19076 | (Remove_Side_Effects): replace Controlled_Type by | |
19077 | CW_Or_Controlled_Type whenever the issue is related to | |
19078 | using or not the secondary stack. | |
19079 | ||
19080 | * par-ch12.adb (P_Formal_Type_Definition): Update calls to | |
19081 | P_Interface_Type_Definition to fulfill the new interface (the formal | |
19082 | Is_Synchronized is no longer required). | |
19083 | ||
19084 | * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o | |
19085 | Update dependencies. | |
19086 | ||
19087 | * exp_atag.ads, exp_atag.adb: New file | |
19088 | ||
19089 | 2007-04-06 Ed Schonberg <schonberg@adacore.com> | |
19090 | Bob Duff <duff@adacore.com> | |
19091 | Cyrille Comar <comar@adacore.com> | |
19092 | ||
19093 | * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is | |
19094 | anonymous, use finalization list of enclosing dynamic scope. | |
19095 | (Expand_N_Package_Declaration): For a library package declaration | |
19096 | without a corresponding body, generate RACW subprogram bodies in the | |
19097 | spec (just as we do for the task activation call). | |
19098 | (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and | |
19099 | Is_Abstract_Type. Make sure these are called only when appropriate. | |
19100 | Remove all code for DSP option | |
19101 | (CW_Or_Controlled_Type): new subprogram. | |
19102 | ||
8a67bb47 | 19103 | 2007-04-06 Eric Botcazou <botcazou@adacore.com> |
148291c8 | 19104 | Ed Schonberg <schonberg@adacore.com> |
19105 | Gary Dismukes <dismukes@adacore.com> | |
19106 | ||
19107 | * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean | |
19108 | parameter. If it is set to true, return a result capped according to | |
19109 | the global upper bound for the index of an entry family. | |
19110 | (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset | |
19111 | (Build_Find_Body_Index): Adjust for above change. | |
19112 | (Entry_Index_Expression): Likewise. | |
19113 | (Is_Potentially_Large_Family): New function extracted from... | |
19114 | (Collect_Entry_Families): ...here. Call it to detect whether the family | |
19115 | is potentially large. | |
19116 | (Build_Entry_Count_Expression): If the family is potentially large, call | |
19117 | Family_Size with 'Cap' set to true. | |
19118 | (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate | |
19119 | a protected version of an operation declared in the private part of | |
19120 | a protected object, because they may be invoked through a callback. | |
19121 | (Set_Privals): If the type of a private component is an anonymous access | |
19122 | type, do not create a new itype for each protected body. | |
19123 | If the body of a protected operation creates | |
19124 | controlled types (including allocators for class-widetypes), the | |
19125 | body of the corresponding protected subprogram must include a | |
19126 | finalization list. | |
19127 | (Build_Activation_Chain_Entity): Build the chain entity for extended | |
19128 | return statements. | |
19129 | (Type_Conformant_Parameters): Use common predicate Conforming_Types | |
19130 | to determine whether operation overrides an inherited primitive. | |
19131 | (Build_Wrapper_Spec): Add code to examine the parents while looking | |
19132 | for a possible overriding candidate. | |
19133 | (Build_Simple_Entry_Call): Set No_Initialization on the object used to | |
19134 | hold an actual parameter value since its initialization is separated | |
19135 | from the the declaration. Prevents errors on null-excluding access | |
19136 | formals. | |
19137 | ||
19138 | 2007-04-06 Thomas Quinot <quinot@adacore.com> | |
0485b740 | 19139 | Pablo Oliveira <oliveira@adacore.com> |
148291c8 | 19140 | |
19141 | * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call): | |
19142 | Do an Unchecked_Conversion to handle the passage from the Underlying | |
19143 | Type to the Base Type when calling Build_To_Any_Call and | |
19144 | Build_From_Any_Call. | |
19145 | (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or | |
19146 | E_Constant, depending upon Variable formal. | |
19147 | (GARLIC_Support.Build_Subprogram_Receiving_Stubs, | |
19148 | PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal | |
19149 | parameter that requires an extra constrained parameter, declare | |
19150 | temporary for actual as a variable, not a constant. | |
19151 | (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when | |
19152 | the unit being compiled is the one that contains the stub type. | |
19153 | Change primitive operation name for the RACW associated with a RAS | |
19154 | from Call to _Call so it cannot clash with any legal identifier. | |
19155 | (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant | |
19156 | Is_RAS. | |
19157 | (Append_RACW_Bodies): New subprogram. | |
19158 | (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to | |
19159 | Add_Receiving_Stubs_To_Declarations functions. | |
19160 | When expanding a package body, this list correspond to the | |
19161 | statements in the HSS at the end of the pacakge. | |
19162 | When expanding a package spec, this list correspond to the | |
19163 | spec declarations. | |
19164 | (Add_Receiving_Stubs_To_Declarations): Append the function | |
19165 | registering the receiving stubs at the end of the 'Stmts' list. | |
19166 | (RCI_Package_Locator): Pass the new Version generic formal when | |
19167 | instantiating a RCI_Locator package. | |
19168 | (Build_From_Any_Function): To compute the High bound for an | |
19169 | unconstrained array actual, we add the Low bound with the length. | |
19170 | Thus we must convert the low bound and the length to an appropriate | |
19171 | type before doing the sum. | |
19172 | (Build_Subprogram_Receiving_Stubs, PolyORB): | |
19173 | * Retrieve the extra formals parameters at the | |
19174 | end of the parameter stream. | |
19175 | * Use Move_Any_Value to write back out parameters | |
19176 | after executing the request as it is more efficient | |
19177 | than Copy_Any_Value. | |
19178 | * Build the any containing Extra Formals with the | |
19179 | appropriate typecode. | |
19180 | (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an | |
19181 | empty Component_List. | |
19182 | (Build_Actual_Object_Declaration): New subprogram. Build and insert into | |
19183 | the tree the declaration for an object that serves as actual parameter | |
19184 | in server-side stubs. | |
19185 | (GARLIC_Support.Build_Subprogram_Receiving_Stubs, | |
19186 | PolyORB_Support.Build_Subprogram_Receiving_Stubs): | |
19187 | Use Build_Actual_Object_Declaration to prepare the actuals. | |
19188 | (Add_Parameter_To_NVList): Set the parameter mode to In for | |
19189 | Extra Constrained Parameters. | |
19190 | (Build_General_Calling_Stubs): Set the parameter type to boolean for | |
19191 | Extra Constrained parameters. | |
19192 | (Build_To_Any_Function, Build_From_Any_Function, | |
19193 | Built_TypeCode_Function): When Typ is implicit, call the correct | |
19194 | function with the first not implicit parent type. | |
19195 | (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element, | |
19196 | (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the | |
19197 | typecode from the Etype. Therefore we retrieve the correct typecode | |
19198 | with a call to Get_Any_Type. | |
19199 | (Copy_Specification): Do controlling formal type substitution based on | |
19200 | Is_Controlling_Formal flag, instead of caller-provided object type. | |
19201 | (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for | |
19202 | a RACW primitive operation, we might get a subprogram declaration for an | |
19203 | ancestor of the RACW designated type (not for the designated type | |
19204 | itself), in the case where this operation is inherited. In this case we | |
19205 | have no easy means of determining the original tagged type for which | |
19206 | the primitive was declared, so instead we now rely on | |
19207 | Copy_Specification to use the Is_Controlling_Formal flag to determine | |
19208 | which formals require type substitution. | |
19209 | ||
19210 | 2007-04-06 Robert Dewar <dewar@adacore.com> | |
19211 | Ed Schonberg <schonberg@adacore.com> | |
19212 | ||
19213 | * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in | |
19214 | GNAT.Current_Exception are not allowed if pragma Restrictions | |
19215 | (No_Exception_Propagation) is set and in any case make the associated | |
19216 | handler unsuitable as a target for a local raise statement. | |
19217 | (Expand_Dispatching_Constructor_Call): Replace generation of call to the | |
19218 | run-time subprogram CW_Membership by call to Build_CW_Membership. | |
19219 | (Expand_Dispatching_Constructor_Call): If the dispatching tag is given | |
19220 | by a function call, a temporary must be created before expanding the | |
19221 | Constructor_Call itself, to prevent out-of-order elaboration in the | |
19222 | back-end when stack checking is enabled.. | |
19223 | ||
19224 | 2007-04-06 Ed Schonberg <schonberg@adacore.com> | |
19225 | ||
19226 | * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the | |
19227 | result are the bounds of the left operand, not the right. | |
19228 | ||
19229 | 2007-04-06 Ed Schonberg <schonberg@adacore.com> | |
19230 | ||
19231 | * exp_strm.adb | |
19232 | (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use | |
19233 | discriminant defaults. | |
19234 | (Build_Record_Or_Elementary_Output_Procedure): Ditto. | |
19235 | (Make_Component_List_Attributes): Ditto. | |
19236 | ||
19237 | 2007-04-06 Ed Schonberg <schonberg@adacore.com> | |
19238 | Bob Duff <duff@adacore.com> | |
19239 | ||
19240 | * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat | |
19241 | an association with a box as providing a value even though the | |
19242 | initialization procedure for the type is not available. | |
19243 | (Resolve_Record_Aggregate): Check that a choice of an association with a | |
19244 | box corresponds to a component of the type. | |
19245 | (Resolve_Record_Aggregate): Split Is_Abstract flag into | |
19246 | Is_Abstract_Subprogram and Is_Abstract_Type. | |
19247 | ||
19248 | * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for | |
19249 | assert. | |
19250 | ||
19251 | * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into | |
19252 | Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are | |
19253 | called only when appropriate. | |
19254 | ||
19255 | 2007-04-06 Olivier Hainque <hainque@adacore.com> | |
19256 | ||
19257 | * g-alleve.ads (Low Level Vector type definitions): Map each to the | |
19258 | associated vector view instead of all to the unsigned char view. | |
19259 | ||
19260 | * g-altcon.adb (Generic_Conversions): New internal generic package, | |
19261 | offering facilities for all the Vector/View conversion routines | |
19262 | implemented by this unit. | |
19263 | (To_View/To_Vector - all versions): Reimplemented in a systematic | |
19264 | manner, using the internal Generic_Conversions facilities. | |
19265 | ||
19266 | 2007-04-06 Pascal Obry <obry@adacore.com> | |
19267 | ||
19268 | * g-arrspl.adb (Free) [Element_Access]: New routine to free the source | |
19269 | string. | |
19270 | (Create): Free the source string before storing the new one. | |
19271 | ||
19272 | 2007-04-06 Vincent Celier <celier@adacore.com> | |
19273 | ||
19274 | * g-debpoo.adb (Validity): New package with a complete new | |
19275 | implementation of subprograms Is_Valid and Set_Valid. | |
19276 | (Is_Valid): Move to local package Validity | |
19277 | (Set_Valid): Move to local package Validity | |
19278 | ||
19279 | 2007-04-06 Arnaud Charlet <charlet@adacore.com> | |
0485b740 | 19280 | Pablo Oliveira <oliveira@adacore.com> |
148291c8 | 19281 | |
19282 | * g-expect.adb (Get_Command_Output): When expanding the output buffer | |
19283 | we must ensure that there is enough place for the new data we are going | |
19284 | to copy in. | |
19285 | ||
19286 | 2007-04-06 Thomas Quinot <quinot@adacore.com> | |
19287 | ||
19288 | * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding | |
19289 | computation. | |
19290 | ||
19291 | 2007-04-06 Jose Ruiz <ruiz@adacore.com> | |
19292 | Vincent Celier <celier@adacore.com> | |
19293 | ||
19294 | * gnatcmd.adb (B_Start): Add prefix of binder generated file. | |
19295 | (Stack_String): Add this String that contains the name of the Stack | |
19296 | package in the project file. | |
19297 | (Packages_To_Check_By_Stack): Add this list that contains the packages | |
19298 | to be checked by gnatstack, which are the naming and the stack packages. | |
19299 | (Check_Files): If no .ci files were specified for gnatstack we add all | |
19300 | the .ci files belonging to the projects, including binder generated | |
19301 | files. | |
19302 | (Non_VMS_Usage): Document that gnatstack accept project file switches. | |
19303 | (GNATCmd): Update the B_Start variable if we are in a VMS environment. | |
19304 | Add gnatstack to the list of commands that use project file related | |
19305 | switches, and get the single attribute Switches from the stack package | |
19306 | in a project file when calling gnatstack. Parse the -U flag for | |
19307 | processing files belonging to all projects in the project tree. | |
19308 | Remove all processing for command Setup | |
19309 | ||
19310 | * prj-attr.adb: Add new package Stack with single attribute Switches | |
19311 | ||
19312 | * vms_conv.ads (Command_Type): Add command Stack. | |
19313 | Move to body declarations that are only used in the body: types Item_Id, | |
19314 | Translation_Type, Item_Ptr, Item and its subtypes. | |
19315 | ||
19316 | * vms_conv.adb: (Initialize): Add data for new command Stack. | |
19317 | Add declarations moved from the spec: types Item_Id, Translation_Type, | |
19318 | Item_Ptr, Item and its subtypes. | |
19319 | (Cargs_Buffer): New table | |
19320 | (Cargs): New Boolean global variable | |
19321 | (Process_Buffer): New procedure to create arguments | |
19322 | (Place): Put character in table Buffer or Cargs_Buffer depending on the | |
19323 | value of Cargs. | |
19324 | (Process_Argument): Set Cargs when processing qualifiers for GNAT | |
19325 | COMPILE | |
19326 | (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not | |
19327 | empty, for table Cargs_Buffer. | |
19328 | (Initialize): Remove component Setup in Command_List | |
19329 | ||
19330 | 2007-04-06 Vincent Celier <celier@adacore.com> | |
19331 | ||
19332 | * gprep.adb (Process_Files.Process_One_File): Use full file name when | |
19333 | issuing pragma Source_Reference. | |
19334 | ||
19335 | 2007-04-06 Emmanuel Briot <briot@adacore.com> | |
19336 | ||
19337 | * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of | |
19338 | [[:xdigit:]] character class. | |
19339 | Also raise an exception when an invalid character class is used. | |
19340 | ||
19341 | 2007-04-06 Pascal Obry <obry@adacore.com> | |
19342 | ||
19343 | * i-cstrea.ads: (fopen): Add encoding parameter. | |
19344 | (freopen): Idem. | |
19345 | Change reference from a-sysdep.c to sysdep.c in comment. | |
19346 | Update copyright notice. | |
19347 | This set of patch add support for the encoding form parameter. | |
19348 | ||
19349 | * mingw32.h (S2WSU): New macro to convert from a string to a | |
19350 | wide-string using the UTF-8 encoding. The S2WS macro supports now only | |
19351 | standard 8bits encoding. | |
19352 | (WS2SU): As above but converting from wide-sring to string. | |
19353 | This is needed as it is necessary to have access to both versions in the | |
19354 | runtime for the form parameter encoding support. | |
19355 | This set of patch add support for the encoding form parameter. | |
19356 | (S2WS): Improve implementation to handle cases where the filename is not | |
19357 | UTF-8 encoded. In this case we default to using the current code page | |
19358 | for the conversion. | |
19359 | ||
19360 | * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration | |
19361 | type (UTF8, ASCII_8bits). This enumeration has a rep clause to match | |
19362 | the constants defined in adaint.h. | |
19363 | (fopen): Add encoding parameter. | |
19364 | (freopen): Idem. | |
19365 | ||
19366 | * s-ficobl.ads (AFCB): Add Encoding field to record the filename | |
19367 | encoding. This is needed for the Reset routine (freopen low level-call). | |
19368 | ||
19369 | * s-fileio.adb (Open): Decode encoding form parameter and set the | |
19370 | corresponding encoding value into AFCB structure. | |
19371 | (Reset): Pass the encoding value to freopen. | |
19372 | (Close): Move the call to Lock_Task to the beginning of the procedure. | |
19373 | ||
19374 | 2007-04-06 Geert Bosch <bosch@adacore.com> | |
19375 | Robert Dewar <dewar@adacore.com> | |
19376 | ||
19377 | * i-fortra.ads: Add Double_Complex type. | |
19378 | ||
19379 | * impunit.adb: (Is_Known_Unit): New function | |
19380 | Add Gnat.Byte_Swapping | |
19381 | Add GNAT.SHA1 | |
19382 | Add new Ada 2005 units | |
19383 | Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays, | |
19384 | Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays, | |
19385 | Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays, | |
19386 | Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays | |
19387 | ||
19388 | * impunit.ads (Is_Known_Unit): New function | |
19389 | ||
19390 | * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb, | |
19391 | a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads, | |
19392 | a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb, | |
19393 | g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads, | |
19394 | s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, | |
19395 | s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads: | |
19396 | New files. | |
19397 | ||
19398 | * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio | |
19399 | ||
19400 | * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units. | |
19401 | ||
8a67bb47 | 19402 | 2007-04-06 Eric Botcazou <botcazou@adacore.com> |
148291c8 | 19403 | Arnaud Charlet <charlet@adacore.com> |
19404 | ||
19405 | * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except | |
19406 | __gnat_adjust_context_for_raise. | |
19407 | (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same | |
19408 | implementation of floating point operations as native x86 targets. | |
19409 | So the FPU should be initialized in the same way using finit. Fix | |
19410 | floating point operations accuracy issues. | |
19411 | (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction | |
19412 | member in struct sigaction, so as to avoid warning for incompatible | |
19413 | pointer types. | |
19414 | ||
8a67bb47 | 19415 | 2007-04-06 Serguei Rybin <rybin@adacore.com> |
148291c8 | 19416 | |
19417 | * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the | |
19418 | switches from previously loaded tree | |
19419 | ||
19420 | 2007-04-06 Thomas Quinot <quinot@adacore.com> | |
19421 | ||
19422 | * lib-writ.adb (Write_With_Lines): Factor duplicated code between the | |
19423 | cases where a given dependency has a body or not. | |
19424 | (Write_With_File_Names): New subprogram, common code for the two cases | |
19425 | above. | |
19426 | ||
19427 | 2007-04-06 Ed Schonberg <schonberg@adacore.com> | |
19428 | Javier Miranda <miranda@adacore.com> | |
19429 | ||
7c066666 | 19430 | * lib-xref.ads, lib-xref.adb: |
148291c8 | 19431 | Modify the loop that collects type references, to include interface |
19432 | types that the type implements. List each of these interfaces when | |
19433 | building the entry for the type. | |
19434 | (Generate_Definition): Initialize component Def and Typ of new entry | |
19435 | in table Xrefs, to avoid to have these components unitialized. | |
19436 | (Output_References): Split Is_Abstract flag into | |
19437 | Is_Abstract_Subprogram and Is_Abstract_Type. | |
19438 | (Generate_Reference): Add barrier to do not generate the warning | |
19439 | associated with Ada 2005 entities with entities generated by the | |
19440 | expander. | |
19441 | ||
19442 | 2007-04-06 Robert Dewar <dewar@adacore.com> | |
19443 | Arnaud Charlet <charlet@adacore.com> | |
19444 | Vincent Celier <celier@adacore.com> | |
19445 | ||
19446 | * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation | |
19447 | Update 'Exception Handling Control' chapter which was outdated. | |
19448 | Minor fix to documentation of -gnatwq | |
19449 | Remove section "Adapting the Run Time to a New C++ Compiler" because | |
19450 | it is now obsolete. | |
19451 | Add passage on need of -nostart-files in some non-ada-main cases. | |
19452 | Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake | |
19453 | Update documentation about Interfacing with C++ | |
19454 | Add documentation for new gnatmake switch -p | |
19455 | Add missing protocol part in URLs. | |
19456 | Document -gnatyA | |
19457 | Document pragma Compile_Time_Error | |
19458 | Add documentation for Object_Size indicating that stand alone | |
19459 | objects can have a larger size in some cases. | |
19460 | Add node for GNAT.Byte_Swapping, GNAT.SHA1 | |
19461 | Update reference to the Ravenscar profile. | |
19462 | Document pragma Unreferenced_Objects | |
19463 | ||
19464 | * gnat-style.texi: Fix typo | |
19465 | ||
19466 | 2007-04-06 Vincent Celier <celier@adacore.com> | |
19467 | ||
19468 | * mlib.adb (Building_Library): Only output "building a library..." in | |
19469 | verbose mode | |
19470 | ||
19471 | * mlib-prj.adb (Build_Library): Only output lists of object and ALI | |
19472 | files in verbose mode. | |
19473 | ||
19474 | * mlib-utl.adb (Ar): Only output the first object files when not in | |
19475 | verbose mode. | |
19476 | (Gcc): Do not display all the object files if not in verbose mode, only | |
19477 | the first one. | |
19478 | ||
19479 | 2007-04-06 Robert Dewar <dewar@adacore.com> | |
19480 | ||
19481 | * namet.ads, namet.adb (wn): Improve this debugging routine. Calling | |
19482 | it no longer destroys the contents of Name_Buffer or Name_Len and | |
19483 | non-standard and invalid names are handled better. | |
19484 | (Get_Decoded_Name_String): Improve performance by using | |
19485 | Name_Has_No_Encodings flag in the name table. | |
19486 | (Is_Valid_Name): New function to determine whether a Name_Id is valid. | |
19487 | Used for debugging printouts. | |
19488 | ||
19489 | 2007-04-06 Robert Dewar <dewar@adacore.com> | |
19490 | Javier Miranda <miranda@adacore.com> | |
19491 | Bob Duff <duff@adacore.com> | |
19492 | ||
19493 | * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location | |
19494 | (P_Interface_Type_Definition): Remove the formal Is_Synchronized because | |
19495 | there is no need to generate always a record_definition_node in case | |
19496 | of synchronized interface types. | |
19497 | (P_Type_Declaration): Update calls to P_Interface_Type_Definition. | |
19498 | (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being | |
19499 | illegal in Ada 95, in cases where it is legal. Change the warnings to | |
19500 | errors in other cases. Don't give the error unless the "not null" | |
19501 | parses properly. Correct the source position at which the error occurs. | |
19502 | (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to | |
19503 | P_Null_Exclusion, to suppress "not null" warnings. | |
19504 | (P_Identifier_Declarations): Code cleanup. Removed unrequired label and | |
19505 | associated goto statements. | |
19506 | ||
19507 | * par-endh.adb (Pop_End_Context): Allow more flexibility in placement | |
19508 | of END RECORD | |
19509 | ||
19510 | * scans.ads (Type_Token_Location): New flag | |
19511 | ||
19512 | * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS | |
19513 | (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to | |
19514 | P_Null_Exclusion, to suppress "not null" warnings. | |
19515 | ||
19516 | 2007-04-06 Robert Dewar <dewar@adacore.com> | |
19517 | Javier Miranda <miranda@adacore.com> | |
19518 | Bob Duff <duff@adacore.com> | |
19519 | Vincent Celier <celier@adacore.com> | |
19520 | ||
19521 | * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error | |
19522 | (Extensions_Allowed): No longer sets Ada_Version | |
19523 | Entry for pragma Unreferenced_Objects | |
19524 | ||
19525 | * sem_prag.adb (Analyze_Pragma, case Priority): Force with of | |
19526 | system.tasking if pragma priority used in a procedure | |
19527 | (Analyze_Pragma, case Warning): Handle dot warning switches | |
19528 | (Process_Compile_Time_Warning_Or_Error): New procedure | |
19529 | (Analyze_Pragma): Add processing for Compile_Time_Error | |
19530 | Add support for extra arguments External_Name and Link_Name. | |
19531 | Remove code associated with pragmas CPP_Virtual and CPP_Vtable. | |
19532 | (Process_Import_Or_Interface): Add support for the use of pragma Import | |
19533 | with tagged types. | |
19534 | (Extensions_Allowed): No longer affects Ada_Version | |
19535 | (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and | |
19536 | Is_Abstract_Type. Make sure these are called only when appropriate. | |
19537 | Add processing for pragma Unreferenced_Objects | |
19538 | ||
19539 | * snames.h, snames.ads, snames.adb: Add entry for pragma | |
19540 | Compile_Time_Error | |
19541 | Add new standard name Minimum_Binder_Options for new gprmake | |
19542 | Add new standard names for gprmake: Archive_Suffix, | |
19543 | Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported, | |
19544 | Library_Support, Library_Version_Options, | |
19545 | Shared_Library_Minimum_Options, | |
19546 | Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported. | |
19547 | Change Name_Call to Name_uCall so that it cannot clash with a legal | |
19548 | subprogram name. | |
19549 | Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix | |
19550 | Append C_Plus_Plus to convention identifiers as synonym for CPP | |
19551 | Add new standard names Stack and Builder_Switches | |
19552 | Add new standard names: Compiler_Minimum_Options, Global_Config_File, | |
19553 | Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File, | |
19554 | Run_Path_Option, Toolchain_Version. | |
19555 | Entry for pragma Unreferenced_Objects | |
19556 | ||
19557 | * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD | |
19558 | switches, without repetition of "eD". Make sure that last character of | |
19559 | -gnatep= switch is not taken as -gnat switch character. | |
19560 | Complete rewrite of circuit for handling saving compilation options | |
19561 | Occasioned by need to support dot switchs for -gnatw, but cleans up | |
19562 | things in general. | |
19563 | -gnatX does not affect Ada_Version | |
19564 | Include -gnatyA in -gnatg style switches | |
19565 | ||
19566 | * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude | |
19567 | warnings on return objects. | |
19568 | (Warn_On_Useless_Assignment): Exclude warnings on return objects | |
19569 | (Set_Dot_Warning_Switch): New procedure | |
19570 | (Check_References): Add missing case of test for | |
19571 | Has_Pragma_Unreferenced_Objects | |
19572 | (Output_Unreferenced_Messages): Implement effect of new pragma | |
19573 | Unreferenced_Objects, remove special casing of limited controlled | |
19574 | variables. | |
19575 | ||
19576 | 2007-04-06 Vincent Celier <celier@adacore.com> | |
19577 | ||
19578 | * prj-ext.adb (Initialize_Project_Path): New procedure that initialize | |
19579 | the default project path, initially done during elaboration of the | |
19580 | package. | |
19581 | If the prefix returned by Sdefault is null, get the prefix from a call | |
19582 | to Executable_Prefix_Path. | |
19583 | (Project_Path): Call Initialize_Project_Path if Current_Project_Path is | |
19584 | null. | |
19585 | ||
19586 | * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non | |
19587 | canonical directory name to open the directory from which files are | |
19588 | retrieved. | |
19589 | (Record_Other_Sources): Idem. | |
19590 | (Locate_Directory): Add the possibility to create automatically missing | |
19591 | directories when Setup_Projects is True. | |
19592 | Call Locate_Directory so that the directory will be created when | |
19593 | Setup_Projects is True, for object dir, library dir, library ALI dir, | |
19594 | library source copy dir and exec dir. | |
19595 | ||
19596 | * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older | |
19597 | versions of GNAT. | |
19598 | ||
19599 | 2007-04-06 Robert Dewar <dewar@adacore.com> | |
19600 | ||
19601 | * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): | |
19602 | Use First/Next_Component_Or_Discriminant | |
19603 | (Analyze_Record_Representation_Clause): | |
19604 | Use First/Next_Component_Or_Discriminant | |
19605 | (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant | |
19606 | (Analyze_Attribute_Definition_Clause, case Value_Size): Reject | |
19607 | definition if type is unconstrained. | |
19608 | (Adjust_Record_For_Reverse_Bit_Order): New procedure | |
19609 | (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into | |
19610 | Is_Abstract_Subprogram and Is_Abstract_Type. | |
19611 | (Adjust_Record_For_Reverse_Bit_Order): New procedure | |
19612 | ||
19613 | * repinfo.adb (List_Record_Info): Use First/ | |
19614 | Next_Component_Or_Discriminant. | |
19615 | ||
19616 | * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index): | |
19617 | New procedure. | |
19618 | ||
19619 | * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch | |
19620 | Include -gnatyA in default switches | |
19621 | ||
19622 | * opt.ads: (Warn_On_Non_Local_Exception): New flag | |
19623 | (Warn_On_Reverse_Bit_Order): New flag | |
19624 | (Extensions_Allowed): Update the documentation. | |
19625 | (Warn_On_Questionable_Missing_Parens): Now on by default | |
19626 | ||
19627 | * usage.adb: Add documentation of -gnatw.x/X switches | |
19628 | Document new -gnatyA style switch | |
19629 | -gnatq warnings are on by default | |
19630 | ||
19631 | 2007-04-06 Ed Falis <falis@adacore.com> | |
19632 | ||
19633 | * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last | |
19634 | full word is no longer compared twice. | |
19635 | ||
19636 | 2007-04-06 Ed Schonberg <schonberg@adacore.com> | |
19637 | ||
19638 | * sem_ch10.adb (Install_Limited_Context_Clauses. | |
19639 | Expand_Limited_With_Clause): Use a new copy of selector name in the | |
19640 | call to Make_With_Clause. This fixes the tree structure for ASIS | |
19641 | purposes. Nothing is changed in the compiler behaviour. | |
19642 | (Process_Body_Clauses): Handle properly use clauses whose prefix is | |
19643 | a package renaming. | |
19644 | (Install_Limited_With_Clauses): Do not install non-limited view when it | |
19645 | is still incomplete. | |
19646 | ||
19647 | 2007-04-06 Ed Schonberg <schonberg@adacore.com> | |
19648 | Gary Dismukes <dismukes@adacore.com> | |
19649 | ||
19650 | * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual | |
19651 | when capturing size information, instead of base type, which for a | |
19652 | formal array type will be the unconstrained type. | |
19653 | (Analyze_Formal_Object_Declaration): Add check for illegal default | |
19654 | expressions for a formal in object of a limited type. | |
19655 | (Instantiate_Object): Ditto. | |
19656 | (Check_Formal_Package_Instance): Skip entities that are formal objects, | |
19657 | because they were defaulted in the formal package and no check applies | |
19658 | to them. | |
19659 | (Check_Formal_Package_Instance): Extend conformance check to other | |
19660 | discrete types beyond Integer. | |
19661 | (Process_Default): Copy directly the unmatched formal. A generic copy | |
19662 | has already been performed in Analyze_Formal_Package. | |
19663 | (Analyze_Associations): If a formal subprogram has no match, check for | |
19664 | partial parametrization before looking for a default, to prevent | |
19665 | spurious errors. | |
19666 | (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do | |
19667 | not set the instantiation environment before analyzing the actuals. | |
19668 | Fixes regression on 8515-003 with implementation of AI-133. | |
19669 | Set_Instance_Env checks whether the generic unit is a predefined | |
19670 | unit, in which case the instance must be analyzed with the latest Ada | |
19671 | mode. This setting must take place after analysis of the actuals, | |
19672 | because the actuals must be analyzed and frozen in the Ada mode extant | |
19673 | outside of the current instantiation. | |
19674 | (Save_Env, Restore_Env): Preserve and restore the configuration | |
19675 | parameters so that predefined units can be compiled in the proper Ada | |
19676 | mode. | |
19677 | (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram, | |
19678 | Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram | |
19679 | and Is_Abstract_Type. | |
19680 | (Analyze_Formal_Package): For better error recovery, Add exception | |
19681 | handler to catch Instantion_Error, which can be raised in | |
19682 | Analyze_Associations | |
19683 | ||
19684 | 2007-04-06 Ed Schonberg <schonberg@adacore.com> | |
19685 | Bob Duff <duff@adacore.com> | |
19686 | Gary Dismukes <dismukes@adacore.com> | |
19687 | ||
19688 | * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the | |
19689 | prefix type is a discriminated subtype of the type of the formal. | |
19690 | (Analyze_Allocator): Collect all coextensions regardless of the context. | |
19691 | Whether they can be allocated statically is determined in exp_ch4. | |
19692 | (Analyze_Selected_Component): If the prefix is a limited view and the | |
19693 | non-limited view is available, use the non-limited one. | |
19694 | (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and | |
19695 | therefore illegal), suggest a qualified expression rather than a type | |
19696 | conversion, because a type conversion would be illegal in this context. | |
19697 | (Anayze_Allocator): Trace recursively all nested allocators so that all | |
19698 | coextensions are on the corresponding list for the root. Do no mark | |
19699 | coextensions if the root allocator is within a declaration for a stack- | |
19700 | allocated object, because the access discriminants will be allocated on | |
19701 | the stack as well. | |
19702 | (Analyze_Call): Remove restriction on calls to limited functions for the | |
19703 | cases of generic actuals for formal objects, defaults for formal objects | |
19704 | and defaults for record components. | |
19705 | (Analyze_Allocator): Before analysis, chain coextensions on the proper | |
19706 | element list. Their expansion is delayed until the enclosing allocator | |
19707 | is processed and its finalization list constructed. | |
19708 | (Try_Primitive_Operation): If the prefix is a concurrent type, looks | |
19709 | for an operation with the given name among the primitive operations of | |
19710 | the corresponding record type. | |
19711 | (Analyze_Selected_Component): If the prefix is a task type that | |
19712 | implements an interface, and there is no entry with the given name, | |
19713 | check whether there is another primitive operation (e.g. a function) | |
19714 | with that name. | |
19715 | (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle | |
19716 | properly the indexing of a function call written in prefix form, where | |
19717 | the function returns an array type, and all parameters of the function | |
19718 | except the first have defaults. | |
19719 | (Analyze_Equality_Op): If this is a call to an implicit inequality, keep | |
19720 | the original operands, rather than relocating them, for efficiency and | |
19721 | to work properly when an operand is overloaded. | |
19722 | (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split | |
19723 | Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type. | |
19724 | (Analyze_Selected_Component): If the prefix is a private extension, only | |
19725 | scan the visible components, not those of the full view. | |
19726 | (Try_Primitive_Operation): If the operation is a procedure, collect all | |
19727 | possible interpretations, as for a function, because in the presence of | |
19728 | classwide parameters several primitive operations of the type can match | |
19729 | the given arguments. | |
19730 | ||
19731 | 2007-04-06 Ed Schonberg <schonberg@adacore.com> | |
19732 | Robert Dewar <dewar@adacore.com> | |
19733 | ||
19734 | * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a | |
19735 | tag-indeterminate call to an abstract function, when the left-hand side | |
19736 | is not classwide. | |
19737 | (Analyze_Loop_Statement): Improve detection of infinite loops | |
19738 | ||
19739 | 2007-04-06 Ed Schonberg <schonberg@adacore.com> | |
19740 | Thomas Quinot <quinot@adacore.com> | |
19741 | ||
19742 | * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move | |
19743 | out of Analyze_Package_Declaration, because processing must be applied | |
19744 | to package bodies as well, for deferred constants completed by pragmas. | |
19745 | (Analyze_Package_Declaration): When the package declaration being | |
19746 | analyzed does not require an explicit body, call Check_Completion. | |
19747 | (May_Need_Implicit_Body): An implicit body is required when a package | |
19748 | spec contains the declaration of a remote access-to-classwide type. | |
19749 | (Analyze_Package_Body): If the package contains RACWs, append the | |
19750 | pending subprogram bodies generated by exp_dist at the end of the body. | |
19751 | (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into | |
19752 | Is_Abstract_Subprogram and Is_Abstract_Type. | |
19753 | (Preserve_Full_Attributes): The full entity list is not an attribute | |
19754 | that must be preserved from full to partial view. | |
19755 | ||
7c066666 | 19756 | * sem_dist.adb (Add_RAS_Dereference_TSS): |
19757 | Change primitive name to _Call so it cannot clash with any legal | |
19758 | identifier, and be special-cased in Check_Completion. | |
19759 | Mark the full view of the designated type for the RACW associated with | |
19760 | a RAS as Comes_From_Source to get proper view switching when installing | |
19761 | private declarations. | |
19762 | Provite a placeholder nested package body along with the nested spec | |
19763 | to have a place for Append_RACW_Bodies to generate the calling stubs | |
19764 | and stream attributes. | |
148291c8 | 19765 | |
19766 | 2007-04-06 Ed Schonberg <schonberg@adacore.com> | |
19767 | Robert Dewar <dewar@adacore.com> | |
19768 | ||
19769 | * sem_ch8.adb (Has_Components): If the argument is an incomplete type | |
19770 | that is a limited view, check the non-limited view if available. | |
19771 | (Undefined): Refine error message for missing with of Text_IO | |
19772 | (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message | |
19773 | to distinguish real missing with cases. | |
19774 | Fix format of all missing with messages | |
19775 | (Analyze_Subprogram_Renaming): Emit proper error message on illegal | |
19776 | renaming as body when renamed entity is abstract. | |
19777 | ||
19778 | 2007-04-06 Ed Schonberg <schonberg@adacore.com> | |
19779 | Javier Miranda <miranda@adacore.com> | |
19780 | ||
19781 | * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make | |
19782 | predicate recursive, to handle complex expressions on literals whose | |
19783 | spurious ambiguity comes from the abstract interpretation of some | |
19784 | subexpression. | |
19785 | (Interface_Present_In_Ancestor): Add support to concurrent record | |
19786 | types. | |
19787 | (Add_One_Interp,Disambiguate): Split Is_Abstract flag into | |
19788 | Is_Abstract_Subprogram and Is_Abstract_Type. | |
19789 | ||
19790 | 2007-04-06 Ed Schonberg <schonberg@adacore.com> | |
19791 | Javier Miranda <miranda@adacore.com> | |
19792 | ||
19793 | * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a | |
19794 | dereference of a local object R created as a reference to another | |
19795 | object O, use the access level of O. | |
19796 | (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types, | |
19797 | rather than local Same_Formal_Type, to check whether protected operation | |
19798 | overrides an inherited one. | |
19799 | (Same_Formal_Type): New predicate, used when matching signatures of | |
19800 | overriding synchronized operations, to handle the case when a formal | |
19801 | has a type that is a generic actual. | |
19802 | (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by | |
19803 | predicate Is_Concurrent_Type. This ensures supportin case of subtypes. | |
19804 | (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve | |
19805 | syntactic ambiguities involving indexing of function calls that return | |
19806 | arrays. | |
19807 | (Abstract_Interface_List): New subprogram that returns the list of | |
19808 | abstract interfaces associated with a concurrent type or a | |
19809 | concurrent record type. | |
19810 | (Interface_Present_In_Parent): New subprogram used to check if a | |
19811 | given type or some of its parents implement a given interface. | |
19812 | (Collect_Abstract_Interfaces): Add support for concurrent types | |
19813 | with interface types. | |
19814 | (Has_Abstract_Interfaces): Add support for concurrent types with | |
19815 | interface types. | |
19816 | (Is_Parent): New subprogram that determines whether E1 is a parent | |
19817 | of E2. For a concurrent type its parent is the first element of its | |
19818 | list of interface types; for other types this function provides the | |
19819 | same result than Is_Ancestor. | |
19820 | (Enclosing_Subprogram): Add test for N_Extended_Return_Statement. | |
19821 | (Collect_Synchronized_Interfaces): Removed because the subprogram | |
19822 | Collect_Abstract_Interfaces provides this functionality. | |
19823 | (Collect_Abstract_Interfaces): Minor update to give support to | |
19824 | concurrent types and thus avoid undesired code duplication. | |
19825 | (Get_Subprogram_Entity): Handle entry calls. | |
19826 | (May_Be_Lvalue): Include actuals that appear as in-out parameters in | |
19827 | entry calls. | |
19828 | (Enter_Name): Do not give -gnatwh hiding warning for record component | |
19829 | entities, they never result in hiding. | |
19830 | ||
19831 | 2007-04-06 Ed Schonberg <schonberg@adacore.com> | |
19832 | Robert Dewar <dewar@adacore.com> | |
19833 | ||
19834 | * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators, | |
19835 | to chain nested components that are allocators for access discriminants | |
19836 | of the enclosing object. | |
19837 | Add N_Push and N_Pop nodes | |
19838 | New field Exception_Label added | |
19839 | (Local_Raise_Statements): New field in N_Exception_Handler_Node | |
19840 | (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node | |
19841 | (Is_Coextension): New flag for allocators, to mark allocators that | |
19842 | correspond to access discriminants of dynamically allocated objects. | |
19843 | (N_Block_Statement): Document the fact that the corresponding entity | |
19844 | can be an E_Return_Statement. | |
19845 | (Is_Coextension): New flag for allocators. | |
19846 | Remove all code for DSP option | |
19847 | ||
19848 | * sprint.ads, sprint.adb: Display basic information for class_wide | |
19849 | subtypes. Add handling of N_Push and N_Pop nodes | |
19850 | ||
19851 | 2007-04-06 Arnaud Charlet <charlet@adacore.com> | |
19852 | ||
19853 | * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion | |
19854 | before propagating exception. | |
19855 | ||
19856 | 2007-04-06 Olivier Hainque <hainque@adacore.com> | |
19857 | ||
19858 | * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield | |
19859 | an address always within the call instruction from a return address. | |
19860 | ||
19861 | 2007-04-06 Olivier Hainque <hainque@adacore.com> | |
8a67bb47 | 19862 | Eric Botcazou <botcazou@adacore.com> |
148291c8 | 19863 | |
19864 | * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an | |
19865 | expression with a COMPOUND_EXPR including the call instead of emitting | |
19866 | the call directly here. | |
19867 | (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the | |
19868 | high bound is constant and the slice is empty. Tidy. | |
19869 | (tree_transform, case N_Op_Not): Handle properly the case where the | |
19870 | operation applies to a private type whose full view is a modular type. | |
19871 | (Case_Statement_To_gnu): If an alternative is an E_Constant with an | |
19872 | Address_Clause, use the associated Expression as the GNAT tree | |
19873 | representing the choice value to ensure the corresponding GCC tree is | |
19874 | of the proper kind. | |
19875 | (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole | |
19876 | instead of just the operands, as the base GCC stabilize_reference does. | |
19877 | <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not | |
19878 | requested; otherwise fail. | |
19879 | (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P. | |
19880 | ||
19881 | 2007-04-06 Thomas Quinot <quinot@adacore.com> | |
19882 | ||
19883 | * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous | |
19884 | implementation of UI_Div. | |
19885 | (UI_Div): Reimplement as a call to UI_Div_Rem. | |
19886 | (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the | |
19887 | remainder, avoiding the cost of a multiplication and a subtraction. | |
19888 | (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem | |
19889 | provides both quotient and remainder in a single computation. | |
19890 | (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic | |
19891 | functions for uint. | |
19892 | (UI_Modular_Inverse): Add a note that the behaviour of this subprogram | |
19893 | is undefined if the given n is not inversible. | |
19894 | ||
19895 | 2007-04-06 Olivier Hainque <hainque@adacore.com> | |
19896 | ||
19897 | * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and | |
19898 | BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion | |
19899 | opcodes. | |
19900 | ||
8a67bb47 | 19901 | 2007-04-06 Eric Botcazou <botcazou@adacore.com> |
148291c8 | 19902 | Olivier Hainque <hainque@adacore.com> |
19903 | ||
19904 | * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs | |
19905 | when updating the contents of the old pointer to an unconstrained array. | |
19906 | (end_subprog_body): Set error_gnat_node to Empty. | |
19907 | (write_record_type_debug_info): Do not be unduly sparing with our bytes. | |
19908 | (unchecked_convert): For subtype to base type conversions, require that | |
19909 | the source be a subtype if it is an integer type. | |
19910 | (builtin_decls): New global, vector of available builtin functions. | |
19911 | (gnat_pushdecl): Add global builtin function declaration nodes to the | |
19912 | builtin_decls list. | |
19913 | (gnat_install_builtins): Adjust comments. | |
19914 | (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before | |
19915 | calling gnat_pushdecl, so that it knows when it handed a builtin | |
19916 | function declaration node. | |
19917 | (builtin_decl_for): Search the builtin_decls list. | |
19918 | ||
8a67bb47 | 19919 | 2007-04-06 Eric Botcazou <botcazou@adacore.com> |
148291c8 | 19920 | |
7c066666 | 19921 | * s-stchop-vxworks.adb: |
148291c8 | 19922 | (Stack_Check): Raise Storage_Error if the argument has wrapped around. |
19923 | ||
19924 | 2007-04-06 Robert Dewar <dewar@adacore.com> | |
19925 | Arnaud Charlet <charlet@adacore.com> | |
19926 | ||
19927 | * a-diroro.ads: Inserted the pragma Unimplemented_Unit | |
19928 | ||
19929 | * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start | |
19930 | of files | |
19931 | Add mention of -Sev (set initialize_scalars option from environment | |
19932 | variable at run time) in gnatbind usage message. | |
19933 | ||
19934 | * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure | |
19935 | ||
19936 | * fname-uf.ads: Minor comment fix | |
19937 | ||
19938 | * osint.ads: Change pragma Elaborate to Elaborate_All | |
19939 | ||
19940 | * par-load.adb: Add documentation. | |
19941 | ||
19942 | * sem_cat.ads, sem_cat.adb: Minor code reorganization | |
19943 | ||
19944 | * s-parint.ads (RCI_Locator) : Add 'Version' generic formal | |
19945 | ||
19946 | * s-secsta.ads: Extra comments | |
19947 | ||
19948 | * s-soflin.ads: Minor comment fixes | |
19949 | ||
19950 | * s-stratt.ads (Block_Stream_Ops_OK): Removed. | |
19951 | ||
19952 | * s-wchcon.ads: Minor comment addition | |
19953 | ||
19954 | * treepr.adb: Minor change in message | |
19955 | (Print_Name,Print_Node): Make these debug printouts more robust: print | |
19956 | "no such..." instead of crashing on bad input. | |
19957 | ||
d3eff7bb | 19958 | 2007-03-30 Rafael Ávila de Espíndola <espindola@google.com> |
81e897e4 | 19959 | |
19960 | * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type | |
19961 | instead of gnat_signed_or_unsigned_type. | |
19962 | * utils.c (gnat_signed_or_unsigned_type): Remove. | |
19963 | * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove | |
19964 | * gigi.h (gnat_signed_or_unsigned_type): Remove | |
19965 | ||
f2ea1701 | 19966 | 2007-03-09 Roger Sayle <roger@eyesopen.com> |
19967 | ||
19968 | * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling | |
19969 | fold with the result of buildN. | |
19970 | * decl.c (gnat_to_gnu_entity): Likewise. | |
19971 | * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise. | |
19972 | * utils.c (finish_record_type, merge_sizes, max_size, convert): | |
19973 | Likewise. | |
19974 | * utils2.c (gnat_truthvalue_conversion, compare_arrays, | |
19975 | nonbinary_modular_operation, build_binary_op, build_unary_op, | |
19976 | build_cond_expr): Likewise. | |
19977 | ||
19978 | * utils.c (convert): Use fold_build1 when casting values to void. | |
19979 | * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and | |
19980 | fold_convert instead of convert when appropriate. | |
19981 | ||
5b7b7eb5 | 19982 | 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com> |
19983 | ||
19984 | * Make-lang.in: Add install-pdf target as copied from | |
19985 | automake v1.10 rules. | |
19986 | ||
ec5def83 | 19987 | 2007-02-28 Andreas Schwab <schwab@suse.de> |
19988 | ||
19989 | * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on | |
19990 | $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi. | |
19991 | (doc/gnat-style.info): Likewise. | |
19992 | ||
8a667fb9 | 19993 | 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com> |
19994 | ||
19995 | * gnat-style.texi: Standardize title page. | |
19996 | * gnat_rm.texi: Likewise. | |
19997 | * gnat_ugn.texi: Likewise. | |
19998 | ||
46cdddaa | 19999 | 2007-02-25 Mark Mitchell <mark@codesourcery.com> |
20000 | ||
20001 | * decl.c (annotate_value): Adjust for refactoring of tree_map | |
20002 | hierarchy. | |
20003 | ||
9af7fd5b | 20004 | 2007-02-24 Mark Mitchell <mark@codesourcery.com> |
20005 | ||
20006 | * decl.c (annotate_value): Adjust for refactoring of tree_map | |
20007 | hierarchy. | |
20008 | ||
0108a1d0 | 20009 | 2007-02-21 Ed Schonberg <schonberg@adacore.com> |
20010 | ||
20011 | PR ada/18819 | |
20012 | * sem_ch3.adb (Create_Constrained_Components): for a subtype of an | |
20013 | untagged derived type, add hidden components to keep discriminant | |
20014 | layout consistent, when a given discriminant of the derived type | |
20015 | constraints several discriminants of the parent type. | |
20016 | ||
ccf6e6f9 | 20017 | 2007-02-16 Eric Botcazou <ebotcazou@adacore.com> |
d4c15061 | 20018 | Sandra Loosemore <sandra@codesourcery.com> |
ccf6e6f9 | 20019 | |
20020 | * trans.c (call_to_gnu): Use build_call_list instead of build3 to | |
20021 | build the call expression. | |
20022 | (gnat_stabilize_reference_1): Handle tcc_vl_exp. | |
20023 | * utils.c (max_size) <tcc_exceptional>: Delete. | |
20024 | <tcc_vl_exp>: New case. | |
20025 | <tcc_expression>: Delete CALL_EXPR subcase. | |
20026 | (build_global_cdtor): Use build_call_nary instead of build3. | |
20027 | * utils2.c (build_call_1_expr): Likewise. | |
20028 | (build_call_2_expr): Likewise. | |
20029 | (build_call_0_expr): Likewise. | |
20030 | (build_call_alloc_dealloc): Likewise. | |
20031 | ||
c3439806 | 20032 | 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com> |
20033 | ||
20034 | * raise-gcc.c (get_region_description_for, get_call_site_action_for, | |
7c066666 | 20035 | get_action_description_for): Replace _Unwind_Word with _uleb128_t |
c3439806 | 20036 | and _Unwind_SWord with _sleb128_t. |
20037 | ||
bfd211a3 | 20038 | 2007-02-06 Paolo Bonzini <bonzini@gnu.org> |
20039 | ||
20040 | * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency. | |
20041 | * decl.c: Include gt-ada-decl.h. | |
20042 | (annotate_value_cache): New. | |
20043 | (annotate_value): Use it instead of TREE_COMPLEXITY. | |
20044 | ||
2545e976 | 20045 | 2007-02-03 Kazu Hirata <kazu@codesourcery.com> |
20046 | ||
20047 | * misc.c, utils2.c: Fix comment typos. | |
20048 | ||
3971388f | 20049 | 2007-01-24 Roger Sayle <roger@eyesopen.com> |
20050 | ||
20051 | * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of | |
20052 | TREE_CONSTANT_OVERFLOW. | |
20053 | (allocatable_size_p, annotate_value): Likewise. | |
20054 | * trans.c (gnat_to_gnu): Likewise. | |
20055 | * utils.c (unchecked_convert): Likewise. | |
20056 | * utils2.c (build_simple_component_ref): Likewise. | |
20057 | ||
a18b2c54 | 20058 | 2007-01-23 Richard Guenther <rguenther@suse.de> |
20059 | ||
20060 | PR bootstrap/30541 | |
20061 | * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE). | |
20062 | (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX. | |
20063 | (gnatboot3): Likewise. | |
20064 | (GNATBIND): Do not define. | |
20065 | * Makefile.in (GNATBIND): Do not define. | |
20066 | ||
697bbc3f | 20067 | 2007-01-08 Richard Guenther <rguenther@suse.de> |
20068 | ||
20069 | * cuintp.c (build_cst_from_int): Use built_int_cst_type. | |
20070 | * trans.c (gnat_to_gnu): Likewise. | |
20071 | ||
29d774d0 | 20072 | 2006-12-07 Geoffrey Keating <geoffk@apple.com> |
20073 | ||
20074 | * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE. | |
20075 | * adaint.c: Likewise. | |
20076 | ||
c2bd76bf | 20077 | 2006-12-05 Aldy Hernandez <aldyh@redhat.com> |
20078 | ||
d4c15061 | 20079 | Merge from gimple-tuples-branch: |
c2bd76bf | 20080 | 2006-11-02 Aldy Hernandez <aldyh@redhat.com> |
d4c15061 | 20081 | |
c2bd76bf | 20082 | * ada-tree.h (lang_tree_node): Handle gimple tuples. |
20083 | * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with | |
20084 | GIMPLE_MODIFY_STMT. | |
20085 | ||
06bda105 | 20086 | 2006-12-02 Kazu Hirata <kazu@codesourcery.com> |
20087 | ||
20088 | * Makefile.in, mingw32.h, trans.c: Fix comment typos. | |
20089 | * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions. | |
20090 | Fix typos. | |
20091 | ||
d2c5527e | 20092 | 2006-11-17 Eric Botcazou <ebotcazou@adacore.com> |
20093 | ||
20094 | PR ada/27936 | |
20095 | * trans.c (add_decl_expr): Do not dynamically elaborate padded objects | |
20096 | if the initializer takes into account the padding. | |
20097 | ||
8a1417cb | 20098 | 2006-11-11 Richard Guenther <rguenther@suse.de> |
20099 | ||
20100 | * trans.c (maybe_stabilize_reference): Remove handling of | |
20101 | FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR. | |
20102 | ||
d2b06afc | 20103 | 2006-11-05 Arnaud Charlet <charlet@adacore.com> |
20104 | ||
0f6d65ea | 20105 | PR ada/29707 |
d2b06afc | 20106 | * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads |
20107 | (To_Target_Priority): New function. | |
d2b06afc | 20108 | |
6b95ae38 | 20109 | 2006-10-31 Robert Dewar <dewar@adacore.com> |
20110 | ||
20111 | * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb, | |
20112 | a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb, | |
20113 | s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb, | |
20114 | a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, | |
20115 | a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, | |
20116 | a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb, | |
20117 | a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb, | |
20118 | a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb, | |
20119 | a-szbzha.adb: Minor reformatting. Fix header. | |
20120 | ||
20121 | * a-numaux-x86.adb: Add parentheses for use of unary minus | |
20122 | * a-ngcefu.adb: Supply missing parentheses for unary minus | |
20123 | * a-ngcoty.adb: Add parens for use of unary minus | |
20124 | * a-ngelfu.adb: Add missing parens for unary minus | |
20125 | * a-tifiio.adb: Add parentheses for uses of unary minus | |
20126 | ||
20127 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
20128 | Bob Duff <duff@adacore.com> | |
20129 | Ed Schonberg <schonberg@adacore.com> | |
20130 | ||
d4c15061 | 20131 | * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus |
6b95ae38 | 20132 | with multiplying operator. |
20133 | (Expected_Type_Is_Any_Real): New function to determine from the Parent | |
20134 | pointer whether the context expects "any real type". | |
20135 | (Resolve_Arithmetic_Op): Do not give an error on calls to the | |
20136 | universal_fixed "*" and "/" operators when they are used in a context | |
20137 | that expects any real type. Also set the type of the node to | |
20138 | Universal_Real in this case, because downstream processing requires it | |
20139 | (mainly static expression evaluation). | |
20140 | Reword some continuation messages | |
20141 | Add some \\ sequences to continuation messages | |
20142 | (Resolve_Call): Refine infinite recursion case. The test has been | |
20143 | sharpened to eliminate some false positives. | |
20144 | Check for Current_Task usage now includes entry barrier, and is now a | |
20145 | warning, not an error. | |
20146 | (Resolve): If the call is ambiguous, indicate whether an interpretation | |
20147 | is an inherited operation. | |
20148 | (Check_Aggr): When resolving aggregates, skip associations with a box, | |
20149 | which are priori correct, and will be replaced by an actual default | |
20150 | expression in the course of expansion. | |
20151 | (Resolve_Type_Conversion): Add missing support for conversion from | |
20152 | a class-wide interface to a tagged type. Minor code cleanup. | |
20153 | (Valid_Tagged_Converion): Add support for abstact interface type | |
20154 | conversions. | |
20155 | (Resolve_Selected_Component): Call Generate_Reference here rather than | |
20156 | during analysis, and use May_Be_Lvalue to distinguish read/write. | |
20157 | (Valid_Array_Conversion): New procedure, abstracted from | |
20158 | Valid_Conversion, to incorporate accessibility checks for arrays of | |
20159 | anonymous access types. | |
20160 | (Valid_Conversion): For a conversion to a numeric type occurring in an | |
20161 | instance or inlined body, no need to check that the operand type is | |
20162 | numeric, since this has been checked during analysis of the template. | |
20163 | Remove legacy test for scope name Unchecked_Conversion. | |
20164 | ||
20165 | * sem_res.ads: Minor reformatting | |
20166 | ||
20167 | * a-except.adb, a-except-2005.adb: Turn off subprogram ordering | |
20168 | (PE_Current_Task_In_Entry_Body): New exception code | |
20169 | (SE_Restriction_Violation): Removed, not used | |
20170 | ||
20171 | * a-except.ads: Update comments. | |
20172 | ||
20173 | * types.h, types.ads: Add definition for Validity_Check | |
20174 | (PE_Current_Task_In_Entry_Body): New exception code | |
20175 | (SE_Restriction_Violation): Removed, not used | |
20176 | ||
20177 | 2006-10-31 Thomas Quinot <quinot@adacore.com> | |
20178 | ||
20179 | * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned | |
20180 | error status. | |
20181 | ||
20182 | 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com> | |
20183 | Jose Ruiz <ruiz@adacore.com> | |
20184 | ||
20185 | * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private | |
20186 | part of Ada.Calendar: all subprogram raise Unimplemented. | |
20187 | (Split_W_Offset): Temp function body, raising Unimplemented | |
20188 | ||
7c066666 | 20189 | * a-calend.ads, a-calend-vms.ads: |
6b95ae38 | 20190 | Add imported variable Invalid_TZ_Offset used to designate targets unable |
20191 | to support time zones. | |
20192 | (Unimplemented): Temporary function raised by the body of new | |
20193 | subprograms below. | |
20194 | (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This | |
20195 | unit provides handling of leap seconds and is used by the new Ada 2005 | |
20196 | packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting. | |
20197 | (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This | |
20198 | version returns an extra value which is the offset to UTC. | |
20199 | ||
20200 | * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff. | |
20201 | (Leap_Sec_Ops): New body for package in private part of Ada.Calendar. | |
20202 | (Split_W_Offset): New function body. | |
20203 | (Time_Of): When a date is close to UNIX epoch, compute the time for | |
20204 | that date plus one day (that amount is later substracted after | |
20205 | executing mktime) so there are no problems with time zone adjustments. | |
20206 | ||
20207 | * a-calend-mingw.adb: Remove Windows specific version no longer needed. | |
20208 | ||
20209 | * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb, | |
20210 | a-catizo.ads, a-catizo.adb: New files. | |
20211 | ||
d4c15061 | 20212 | * impunit.adb: Add new Ada 2005 entries |
6b95ae38 | 20213 | |
20214 | * sysdep.c: Add external variable __gnat_invalid_tz_offset. | |
20215 | Rename all occurences of "__gnat_localtime_r" to | |
20216 | "__gnat_localtime_tzoff". | |
20217 | (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time | |
20218 | zone data and calculate the GMT offset. | |
20219 | (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64): | |
20220 | Use the field "tm_gmtoff" to extract the GMT offset. | |
20221 | (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use | |
20222 | the external variable "timezone" to calculate the GMT offset. | |
20223 | ||
20224 | 2006-10-31 Arnaud Charlet <charlet@adacore.com> | |
20225 | Jose Ruiz <ruiz@adacore.com> | |
20226 | ||
7c066666 | 20227 | * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb, |
20228 | s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads, | |
6b95ae38 | 20229 | s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads, |
20230 | s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from | |
20231 | System.Any_Priority to a POSIX priority on the target. | |
20232 | ||
7c066666 | 20233 | * system-linux-ia64.ads: |
6b95ae38 | 20234 | Extend range of Priority types on Linux to use the whole range made |
20235 | available by the system. | |
20236 | ||
20237 | * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New | |
20238 | function maps from System.Any_Priority to a POSIX priority on the | |
20239 | target. | |
20240 | (PTHREAD_PRIO_PROTECT): Set real value. | |
20241 | (PTHREAD_PRIO_INHERIT): Now a function. | |
20242 | (SIGCPUFAIL): New signal. | |
20243 | (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals | |
20244 | are documented as reserved by the OS. | |
20245 | ||
20246 | * system-aix.ads: Use the full range of priorities provided by the | |
20247 | system on AIX. | |
20248 | ||
20249 | * s-taprop-posix.adb: Call new function To_Target_Priority. | |
20250 | (Set_Priority): Take into account Task_Dispatching_Policy and | |
20251 | Priority_Specific_Dispatching pragmas when determining if Round Robin | |
20252 | must be used for scheduling the task. | |
20253 | ||
7c066666 | 20254 | * system-linux-x86_64.ads, system-linux-x86.ads, |
6b95ae38 | 20255 | system-linux-ppc.ads: Extend range of Priority types on Linux to use |
20256 | the whole range made available by the system. | |
20257 | ||
7c066666 | 20258 | * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb, |
20259 | s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb, | |
6b95ae38 | 20260 | s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache |
20261 | when deallocating the TCB in order to avoid potential references to | |
20262 | deallocated data. | |
20263 | (Set_Priority): Take into account Task_Dispatching_Policy and | |
20264 | Priority_Specific_Dispatching pragmas when determining if Round Robin | |
20265 | or FIFO within priorities must be used for scheduling the task. | |
20266 | ||
20267 | * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in | |
20268 | the Thread field (to be used internally by the run-time system) and the | |
20269 | kernel-level task id in the LWP field (to be used by the debugger). | |
20270 | (Create_Task): Reorganize to unify the calls to taskSpawn into a single | |
20271 | instance, and propagate the current task options to the spawned task. | |
20272 | (Set_Priority): Take into account Priority_Specific_Dispatching pragmas. | |
20273 | (Initialize): Set Round Robin dispatching when the corresponding pragma | |
20274 | is in effect. | |
20275 | ||
20276 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
20277 | ||
7c066666 | 20278 | * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, |
20279 | system-linux-hppa.ads, system-hpux-ia64.ads, | |
20280 | system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads, | |
20281 | system-vxworks-sparcv9.ads, system-solaris-x86.ads, | |
20282 | system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, | |
20283 | system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads, | |
20284 | system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, | |
20285 | system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, | |
6b95ae38 | 20286 | system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off, |
20287 | Default_Bit_Order) to kill constant condition warnings for references | |
20288 | to this switch. | |
20289 | ||
20290 | 2006-10-31 Vincent Celier <celier@adacore.com> | |
20291 | Eric Botcazou <ebotcazou@adacore.com> | |
20292 | ||
20293 | * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb, | |
20294 | mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb, | |
20295 | mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of | |
20296 | Ext_To, when building the library file name | |
20297 | ||
20298 | * mlib-tgt-vxworks.adb: ditto. | |
20299 | (Get_Target_Suffix): Add support for x86 targets. | |
20300 | ||
20301 | * mlib-fil.ads, mlib-fil.adb: (Append_To): New function | |
20302 | ||
7c066666 | 20303 | * mlib-tgt-darwin.adb: |
6b95ae38 | 20304 | Use Append_To, instead of Ext_To, when building the library file name |
20305 | (Flat_Namespace): New global variable. | |
20306 | (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options. | |
20307 | (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options. | |
20308 | (Link_Shared_Libgcc): Delete. | |
20309 | (Build_Dynamic_Library): Adjust for above changes. | |
20310 | Use Opt package. | |
20311 | (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later. | |
20312 | ||
20313 | 2006-10-31 Eric Botcazou <ebotcazou@adacore.com> | |
20314 | ||
20315 | * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer. | |
20316 | (Initialize): Add type conversions required by above change. | |
20317 | ||
20318 | 2006-10-31 Jose Ruiz <ruiz@adacore.com> | |
20319 | ||
7c066666 | 20320 | * s-osinte-vxworks.ads, s-osinte-vxworks.adb: |
6b95ae38 | 20321 | (getpid): New body for this function that uses the underlying taskIdSelf |
20322 | function for VxWorks 5 and VxWorks 6 in kernel mode. | |
20323 | (unsigned_int): New type, modular to allow logical bit operations. | |
20324 | (taskOptionsGet): New imported function. | |
20325 | ||
20326 | * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP | |
20327 | field to be compliant with the type used by the corresponding operating | |
20328 | system primitive. | |
20329 | ||
20330 | 2006-10-31 Pascal Obry <obry@adacore.com> | |
20331 | Eric Botcazou <ebotcazou@adacore.com> | |
20332 | Vincent Celier <celier@adacore.com> | |
20333 | ||
20334 | * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the | |
20335 | ASCII version of the registry API. This is needed as the GNAT runtime | |
20336 | is now UNICODE by default. | |
20337 | Include version.h. | |
20338 | (get_gcc_version): Do not hardcode the return value. | |
20339 | (__gnat_file_time_name): On Windows properly set the default returned | |
20340 | value to -1 which corresponds to Invalid_Time. | |
20341 | (__gnat_fopen): New routine. A simple wrapper on all plateforms | |
20342 | except on Windows where it does conversion for unicode support. | |
20343 | (__gnat_freopen): Idem. | |
20344 | (__gnat_locate_exec_on_path): If environment variable PATH does not | |
20345 | exist, return a NULL pointer | |
20346 | ||
20347 | * adaint.h: (__gnat_fopen): Declare. | |
20348 | (__gnat_freopen): Likewise. | |
20349 | ||
20350 | * mingw32.h (_tfreopen): Define this macro here for older MingW | |
20351 | version. | |
20352 | Activate the unicode support on platforms using a MingW runtime | |
20353 | version 3.9 or newer. | |
20354 | ||
20355 | * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen. | |
20356 | This is needed for proper unicode support on Windows. | |
20357 | (freopen): Idem. | |
20358 | ||
20359 | 2006-10-31 Eric Botcazou <ebotcazou@adacore.com> | |
20360 | Nicolas Setton <setton@adacore.com> | |
20361 | Olivier Hainque <hainque@adacore.com> | |
20362 | Gary Dismukes <dismukes@adacore.com> | |
20363 | ||
20364 | * gigi.h: (tree_code_for_record_type): Declare. | |
20365 | (add_global_renaming_pointer): Rename to record_global_renaming_pointer. | |
20366 | (get_global_renaming_pointers): Rename to | |
20367 | invalidate_global_renaming_pointers. | |
20368 | (static_ctors): Delete. | |
20369 | (static_dtors): Likewise. | |
20370 | (gnat_write_global_declarations): Declare. | |
20371 | (create_var_decl): Adjust descriptive comment to indicate that the | |
20372 | subprogram may return a CONST_DECL node. | |
20373 | (create_true_var_decl): Declare new function, similar to | |
20374 | create_var_decl but forcing the creation of a VAR_DECL node. | |
20375 | (get_global_renaming_pointers): Declare. | |
20376 | (add_global_renaming_pointer): Likewise. | |
20377 | ||
20378 | * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro. | |
20379 | ||
20380 | * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type | |
20381 | tree before setting TREE_ADDRESSABLE for by-reference return mechanism | |
20382 | processing. | |
20383 | (gnat_to_gnu_entity): Remove From_With_Type from computation for | |
20384 | imported_p. | |
20385 | <E_Access_Type>: Use the Non_Limited_View as the full view of the | |
20386 | designated type if the pointer comes from a limited_with clause. Make | |
20387 | incomplete designated type if it is in the main unit and has a freeze | |
20388 | node. | |
20389 | <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and | |
20390 | Underlying_Full_View similarly. Return earlier if the full view already | |
20391 | has an associated tree. | |
20392 | (gnat_to_gnu_entity) <E_Record_Type>: Restore comment. | |
20393 | (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type. | |
20394 | (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the | |
20395 | reference type built for objects with an address clause. | |
20396 | Use create_true_var_decl with const_flag set for | |
20397 | DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with | |
20398 | TREE_READONLY set. | |
20399 | (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME | |
20400 | for Character and Wide_Character types. This info is read by the | |
20401 | dwarf-2 writer, and is needed to be able to use the command "ptype | |
20402 | character" in the debugger. | |
20403 | (gnat_to_gnu_entity): When generating a type representing | |
20404 | a Character or Wide_Character type, set the flag TYPE_STRING_FLAG, | |
20405 | so that debug writers can distinguish it from ordinary integers. | |
20406 | (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in | |
20407 | addition to TREE_READONLY to assert the constantness of variables for | |
20408 | elaboration purposes. | |
20409 | (gnat_to_gnu_entity, subprogram cases): Change loops on formal | |
20410 | parameters to call new Einfo function First_Formal_With_Extras. | |
20411 | (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a | |
20412 | protected type with its corresponding discriminant, to obtain a usable | |
20413 | declaration | |
20414 | (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared | |
20415 | for a multiple elaboration of the "equivalent" type. | |
20416 | (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer | |
20417 | into record_global_renaming_pointer. | |
20418 | (gnat_to_gnu_entity) <E_Array_Type>: Do not force | |
20419 | TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate. | |
20420 | <E_Array_Subtype>: Likewise. | |
20421 | (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular | |
20422 | incomplete subtypes and incomplete subtypes of incomplete types visible | |
20423 | through a limited with clause. | |
20424 | (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of | |
20425 | the base index type for the maximum size of the array only if they are | |
20426 | constant. | |
20427 | (gnat_to_gnu_entity, renaming object case): Do not wrap up the | |
20428 | expression into a SAVE_EXPR if stabilization failed. | |
20429 | ||
20430 | * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of | |
20431 | a result decl into DECL_BY_REFERENCE on this decl, now what is expected | |
20432 | by lower level compilation passes. | |
20433 | (gnat_genericize): New function, lowering a function body to GENERIC. | |
20434 | Turn the type of RESULT_DECL into a real reference type if the decl | |
20435 | has been marked DECL_BY_REFERENCE, and adjust references to the latter | |
20436 | accordingly. | |
20437 | (gnat_genericize_r): New function. Tree walking callback for | |
20438 | gnat_genericize. | |
20439 | (convert_from_reference, is_byref_result): New functions. Helpers for | |
20440 | gnat_genericize_r. | |
20441 | (create_type_decl): Call gnat_pushdecl before calling | |
20442 | rest_of_decl_compilation, to make sure that field TYPE_NAME of | |
20443 | type_decl is properly set before calling the debug information writers. | |
20444 | (write_record_type_debug_info): The heuristics which compute the | |
20445 | alignment of a field in a variant record might not be accurate. Add a | |
20446 | safety test to make sure no alignment is set to a smaller value than | |
20447 | the alignment of the field type. | |
20448 | (make_dummy_type): Use the Non_Limited_View as the underlying type if | |
20449 | the type comes from a limited_with clause. Do not loop on the full view. | |
20450 | (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros. | |
20451 | (dummy_node_table): New global variable, moved from decl.c. | |
20452 | (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros. | |
20453 | (save_gnu_tree): Use above macros. | |
20454 | (get_gnu_tree): Likewise. | |
20455 | (present_gnu_tree): Likewise. | |
20456 | (init_dummy_type): New function, moved from decl.c. Use above macros. | |
20457 | (make_dummy_type): Likewise. | |
20458 | (tree_code_for_record_type): New function extracted from make_dummy_type | |
20459 | (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc. | |
20460 | (static_ctors): Change it to a vector, make static. | |
20461 | (static_dtors): Likewise. | |
20462 | (end_subprog_body): Adjust for above change. | |
20463 | (build_global_cdtor): Moved from trans.c. | |
20464 | (gnat_write_global_declarations): Emit global constructor and | |
20465 | destructor, and call cgraph_optimize before emitting debug info for | |
20466 | global declarations. | |
20467 | (global_decls): New global variable. | |
20468 | (gnat_pushdecl): Store the global declarations in global_decls, for | |
20469 | later use. | |
20470 | (gnat_write_global_declarations): Emit debug information for global | |
20471 | declarations. | |
20472 | (create_var_decl_1): Former create_var_decl, with an extra argument to | |
20473 | state whether the creation of a CONST_DECL is allowed. | |
20474 | (create_var_decl): Behavior unchanged. Now a wrapper around | |
20475 | create_var_decl_1 allowing CONST_DECL creation. | |
20476 | (create_true_var_decl): New function, similar to create_var_decl but | |
20477 | forcing the creation of a VAR_DECL node (CONST_DECL not allowed). | |
20478 | (create_field_decl): Do not always mark the field as addressable | |
20479 | if its type is an aggregate. | |
20480 | (global_renaming_pointers): New static variable. | |
20481 | (add_global_renaming_pointer): New function. | |
20482 | (get_global_renaming_pointers): Likewise. | |
20483 | ||
20484 | * misc.c (gnat_dwarf_name): New function. | |
20485 | (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name. | |
20486 | (gnat_post_options): Add comment about structural alias analysis. | |
20487 | (gnat_parse_file): Do not call cgraph_optimize here. | |
20488 | (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations. | |
20489 | ||
20490 | * trans.c (process_freeze_entity): Don't abort if we already have a | |
20491 | non dummy GCC tree for a Concurrent_Record_Type, as it might | |
20492 | legitimately have been elaborated while processing the associated | |
20493 | Concurrent_Type prior to this explicit freeze node. | |
20494 | (Identifier_to_gnu): Do not make a variable referenced in a SJLJ | |
20495 | exception handler volatile if it is of variable size. | |
20496 | (process_type): Remove bypass for types coming from a limited_with | |
20497 | clause. | |
20498 | (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT | |
20499 | actual, convert the corresponding gnu_actual to the real destination | |
20500 | type when necessary. | |
20501 | (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables | |
20502 | originally TREE_READONLY but whose elaboration cannot be performed | |
20503 | statically. | |
20504 | Part of fix for F504-021. | |
20505 | (tree_transform, subprogram cases): Change loops on formal parameters to | |
20506 | call new Einfo function First_Formal_With_Extras. | |
20507 | (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow | |
20508 | stemming from type conversion for the lhs. | |
20509 | (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the | |
20510 | number of bits per unit for components of records. | |
20511 | (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed. | |
20512 | (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated | |
20513 | with At_End_Proc after the SJLJ EH cleanup. | |
20514 | (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main | |
20515 | compilation unit. | |
20516 | (elaborate_all_entities): Do not retest type_annotate_only. | |
20517 | (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the | |
20518 | result type of an abstract subprogram, which may be an itype associated | |
20519 | with an anonymous access result (related to AI-318-02). | |
20520 | (build_global_cdtor): Move to utils.c. | |
20521 | (Case_Statement_to_gnu): Avoid adding the choice of a when statement if | |
20522 | this choice is not a null tree nor an integer constant. | |
20523 | (gigi): Run unshare_save_expr via walk_tree_without_duplicates | |
20524 | on the body of elaboration routines instead of mark_unvisited. | |
20525 | (add_stmt): Do not mark the tree. | |
20526 | (add_decl_expr): Tweak comment. | |
20527 | (mark_unvisited): Delete. | |
20528 | (unshare_save_expr): New static function. | |
20529 | (call_to_gnu): Issue an error when making a temporary around a | |
20530 | procedure call because of non-addressable actual parameter if the | |
20531 | type of the formal is by_reference. | |
20532 | (Compilation_Unit_to_gnu): Invalidate the global renaming pointers | |
20533 | after building the elaboration routine. | |
20534 | ||
20535 | 2006-10-31 Bob Duff <duff@adacore.com> | |
20536 | ||
20537 | * a-filico.adb (Finalize(List_Controller)): Mark the finalization list | |
20538 | as finalization-started, so we can raise Program_Error on 'new'. | |
20539 | ||
20540 | * s-finimp.adb: Raise Program_Error on 'new' if finalization of the | |
20541 | collection has already started. | |
20542 | ||
20543 | * s-finimp.ads (Collection_Finalization_Started): Added new special | |
20544 | flag value for indicating that a collection's finalization has started. | |
20545 | ||
20546 | * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to | |
20547 | create a task whose master has already waited for dependent tasks. | |
20548 | ||
20549 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
20550 | ||
20551 | * lib.adb, lib.ads: (In_Predefined_Unit): New functions | |
20552 | ||
7c066666 | 20553 | * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads, |
20554 | a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads, | |
20555 | a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads, | |
20556 | a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads, | |
20557 | a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads, | |
6b95ae38 | 20558 | a-except-2005.ads: Add pragma Preelaborable_Warning |
20559 | ||
20560 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
20561 | Jose Ruiz <ruiz@adacore.com> | |
20562 | ||
20563 | * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files. | |
20564 | ||
20565 | * ali.adb (Get_Name): Properly handle scanning of wide character names | |
20566 | encoded with brackets notation. | |
20567 | (Known_ALI_Lines): Add S lines to this list. | |
20568 | (Scan_ALI): Acquire S (priority specific dispatching) lines. | |
20569 | New flag Elaborate_All_Desirable in unit table | |
20570 | ||
20571 | * ali.ads (Priority_Specific_Dispatching): Add this range of | |
20572 | identifiers to be used for Priority_Specific_Dispatching table entries. | |
20573 | (ALIs_Record): Add First_Specific_Dispatching and | |
20574 | Last_Specific_Dispatching that point to the first and last entries | |
20575 | respectively in the priority specific dispatching table for this unit. | |
20576 | (Specific_Dispatching): Add this table for storing each S (priority | |
20577 | specific dispatching) line encountered in the input ALI file. | |
20578 | New flag Elaborate_All_Desirable in unit table | |
20579 | ||
20580 | * bcheck.adb: (Check_Configuration_Consistency): Add call to | |
20581 | Check_Consistent_Dispatching_Policy. | |
20582 | (Check_Consistent_Dispatching_Policy): Add this procedure in charge of | |
20583 | verifying that the use of Priority_Specific_Dispatching, | |
20584 | Task_Dispatching_Policy, and Locking_Policy is consistent across the | |
20585 | partition. | |
20586 | ||
20587 | * bindgen.adb: (Public_Version_Warning): function removed. | |
20588 | (Set_PSD_Pragma_Table): Add this procedure in charge of getting the | |
20589 | required information from ALI files in order to initialize the table | |
20590 | containing the specific dispatching policy. | |
20591 | (Gen_Adainit_Ada): Generate the variables required for priority specific | |
20592 | dispatching entries (__gl_priority_specific_dispatching and | |
20593 | __gl_num_specific_dispatching). | |
20594 | (Gen_Adainit_C): Generate the variables required for priority specific | |
20595 | dispatching entries (__gl_priority_specific_dispatching and | |
20596 | __gl_num_specific_dispatching). | |
20597 | (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching | |
20598 | pragma entries. | |
20599 | (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed. | |
20600 | (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures. | |
20601 | (Tab_To): Removed. | |
20602 | (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of | |
20603 | a call to gnat_set_globals. | |
20604 | Generate a string containing settings from | |
20605 | Priority_Specific_Dispatching pragma entries. | |
20606 | (Gen_Object_Files_Options): Do not include the runtime libraries when | |
20607 | pragma No_Run_Time is specified. | |
20608 | ||
20609 | * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for | |
20610 | consistency with s-intman-posix.adb. | |
20611 | (__gnat_error_handler, case FreeBSD): Account for the fact that the | |
20612 | handler is installed with SA_SIGINFO. | |
20613 | (__gnat_adjust_context_for_raise, FreeBSD case): New function for | |
20614 | FreeBSD ZCX support, copied from Linux version. | |
20615 | Add MaRTE-specific definitions for the linux target. Redefine sigaction, | |
20616 | sigfillset, and sigemptyset so the routines defined by MaRTE. | |
20617 | (__gl_priority_specific_dispatching): Add this variable that stores the | |
20618 | string containing priority specific dispatching policies in the | |
20619 | partition. | |
20620 | (__gl_num_specific_dispatching): Add this variable that indicates the | |
20621 | highest priority for which a priority specific dispatching pragma | |
20622 | applies. | |
20623 | (__gnat_get_specific_dispatching): Add this routine that returns the | |
20624 | priority specific dispatching policy, as set by a | |
20625 | Priority_Specific_Dispatching pragma appearing anywhere in the current | |
20626 | partition. The input argument is the priority number, and the result | |
20627 | is the upper case first character of the policy name. | |
20628 | (__gnat_set_globals): Now a dummy function. | |
20629 | (__gnat_handle_vms_condition): Feed adjust_context_for_raise with | |
20630 | mechargs instead of sigargs, as the latter can be retrieved from the | |
20631 | former and sigargs is not what we want on ia64. | |
20632 | (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the | |
20633 | mechargs argument. | |
20634 | (__gnat_adjust_context_for_raise, ia64-vms): New function. | |
20635 | (tasking_error): Remove unused symbol. | |
20636 | (_abort_signal): Move this symbol to the IRIX specific part since this | |
20637 | is the only target that uses this definition. | |
20638 | (Check_Abort_Status): Move this symbol to the IRIX specific part since | |
20639 | this is the only target that uses this definition. | |
20640 | (Lock_Task): Remove unused symbol. | |
20641 | (Unlock_Task): Remove unused symbol. | |
20642 | ||
20643 | * lib-writ.adb (Write_ALI): Output new S lines for | |
20644 | Priority_Specific_Dispatching pragmas. | |
20645 | Implement new flag BD for elaborate body desirable | |
20646 | ||
20647 | * lib-writ.ads: Document S lines for Priority Specific Dispatching. | |
20648 | (Specific_Dispatching): Add this table for storing the entries | |
20649 | corresponding to Priority_Specific_Dispatching pragmas. | |
20650 | Document new BD flag for elaborate body desirable | |
20651 | ||
20652 | * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list | |
20653 | of known pragmas. | |
20654 | ||
20655 | 2006-10-31 Javier Miranda <miranda@adacore.com> | |
20656 | ||
7c066666 | 20657 | * a-tags.ads, a-tags.adb: |
6b95ae38 | 20658 | (Predefined_DT): New function that improves readability of the code. |
20659 | (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address, | |
20660 | Inherit_DT): Use the new function Predefined_DT to improve code | |
20661 | readability. | |
20662 | (Register_Interface_Tag): Update assertion. | |
20663 | (Set_Interface_Table): Update assertion. | |
20664 | (Interface_Ancestor_Tags): New subprogram required to implement AI-405: | |
20665 | determining progenitor interfaces in Tags. | |
20666 | (Inherit_CPP_DT): New subprogram. | |
20667 | ||
d4c15061 | 20668 | * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the |
6b95ae38 | 20669 | analysis of the thunk code. |
d4c15061 | 20670 | (Expand_Interface_Conversion): Handle run-time conversion of |
20671 | access to class wide types. | |
6b95ae38 | 20672 | (Expand_Dispatching_Call): When generating the profile for the |
20673 | subprogram itype for a dispatching operation, properly terminate the | |
20674 | formal parameters chaind list (set the Next_Entity of the last formal | |
20675 | to Empty). | |
20676 | (Collect_All_Interfaces): Removed. This routine has been moved to | |
20677 | sem_util and renamed as Collect_All_Abstract_Interfaces. | |
20678 | (Set_All_DT_Position): Hidden entities associated with abstract | |
20679 | interface primitives are not taken into account in the check for | |
20680 | 3.9.3(10); this check is done with the aliased entity. | |
20681 | (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for | |
20682 | interfacing with CPP by default. | |
20683 | (Expand_Interface_Conversion): Add missing support for static conversion | |
20684 | from an interface to a tagged type. | |
20685 | (Collect_All_Interfaces): Add new out formal containing the list of | |
20686 | abstract interface types to cleanup the subprogram Make_DT. | |
20687 | (Make_DT): Update the code to generate the table of interfaces in case | |
20688 | of abstract interface types. | |
20689 | (Is_Predefined_Dispatching_Alias): New function that returns true if | |
20690 | a primitive is not a predefined dispatching primitive but it is an | |
20691 | alias of a predefined dispatching primitive. | |
20692 | (Make_DT): If the ancestor of the type is a CPP_Class and we are | |
20693 | compiling under full ABI compatibility mode we avoid the generation of | |
20694 | calls to run-time services that fill the dispatch tables because under | |
20695 | this mode we currently inherit the dispatch tables in the IP subprogram. | |
20696 | (Write_DT): Emit an "is null" indication for a null procedure primitive. | |
20697 | (Expand_Interface_Conversion): Use an address as the type of the formal | |
20698 | of the internally built function that handles the case in which the | |
20699 | target type is an access type. | |
20700 | ||
20701 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
20702 | ||
20703 | * binde.adb (Better_Choice, Worse_Choice): Implement new preferences. | |
20704 | ||
20705 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
20706 | ||
20707 | * bindusg.ads, bindusg.adb: | |
20708 | Change to package and rename procedure as Display, which | |
20709 | now ensures that it only outputs usage information once. | |
20710 | ||
20711 | 2006-10-31 Jose Ruiz <ruiz@adacore.com> | |
20712 | ||
20713 | * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when | |
20714 | using RTPs. | |
20715 | ||
20716 | * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater | |
20717 | when using RTPs. | |
20718 | ||
20719 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
20720 | Ed Schonberg <schonberg@adacore.com> | |
20721 | ||
20722 | * treepr.adb: Use new subtype N_Membership_Test | |
20723 | ||
d4c15061 | 20724 | * checks.ads, checks.adb: Add definition for Validity_Check |
20725 | (Range_Or_Validity_Checks_Suppressed): New function | |
20726 | (Ensure_Valid): Test Validity_Check suppressed | |
20727 | (Insert_Valid_Check): Test Validity_Check suppressed | |
20728 | (Insert_Valid_Check): Preserve Do_Range_Check flag | |
6b95ae38 | 20729 | (Validity_Check_Range): New procedure |
20730 | (Expr_Known_Valid): Result of membership test is always valid | |
20731 | (Selected_Range_Checks): Range checks cannot be applied to discriminants | |
20732 | by themselves. Disabling those checks must also be done for task types, | |
20733 | where discriminants may be used for the bounds of entry families. | |
20734 | (Apply_Address_Clause_Check): Remove side-effects if address expression | |
20735 | is non-static and is not the name of a declared constant. | |
20736 | (Null_Exclusion_Static_Checks): Extend to handle Function_Specification. | |
20737 | Code cleanup and new error messages. | |
20738 | (Enable_Range_Check): Test for some cases of suppressed checks | |
20739 | (Generate_Index_Checks): Suppress index checks if index checks are | |
20740 | suppressed for array object or array type. | |
20741 | (Apply_Selected_Length_Checks): Give warning for compile-time detected | |
20742 | length check failure, even if checks are off. | |
20743 | (Ensure_Valid): Do not generate a check on an indexed component whose | |
20744 | prefix is a packed boolean array. | |
20745 | * checks.adb: (Alignment_Checks_Suppressed): New function | |
20746 | (Apply_Address_Clause_Check): New procedure, this is a completely | |
20747 | rewritten replacement for Apply_Alignment_Check | |
20748 | (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that | |
20749 | we request a discriminal value only in case of discriminants. | |
20750 | (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for | |
20751 | assignments where the target subtype is unconstrained and the target | |
20752 | object is a parameter or dereference (other aliased cases are known | |
20753 | to be unconstrained). | |
20754 | ||
20755 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
20756 | ||
20757 | * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads, | |
20758 | prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads, | |
20759 | vms_conv.adb: Fix bad table increment values (much too small) | |
20760 | ||
20761 | * table.adb (Realloc): Make sure we get at least some new elements | |
20762 | Defends against silly small values for table increment | |
20763 | ||
20764 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
20765 | Ed Schonberg <schonberg@adacore.com> | |
20766 | Bob Duff <duff@adacore.com> | |
20767 | ||
20768 | * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all | |
20769 | entities. Move other fields around to make this possible | |
20770 | (Is_Derived_Type): Add missing call to Is_Type. | |
20771 | (Extra_Formals): New function for subprograms, entries, subprogram | |
20772 | types. | |
20773 | (Set_Extra_Formals): New procedure for subprograms, entries, subp types. | |
20774 | (First_Formal_With_Extras): New function for subprogs, entries, subp | |
20775 | types. | |
20776 | (Write_Field28_Name): New procedure for node display of "Extra_Formals". | |
20777 | Add node information for E_Return_Statement. | |
20778 | (Elaborate_Body_Desirable): New flag | |
20779 | (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type | |
20780 | to be Is_Inherently_Limited_Type, because return-by-reference has | |
20781 | no meaning in Ada 2005. | |
20782 | (E_Return_Statement): New entity kind. | |
20783 | (Return_Applies_To): Field of E_Return_Statement. | |
20784 | (Is_Return_Object): New flag in object entities. | |
20785 | (Is_Dynamic_Scope): Make it True for E_Return_Statement. | |
20786 | (Must_Have_Preelab_Init): New flag | |
20787 | (Known_To_Have_Preelab_Init): New flag | |
20788 | (Is_Formal_Object): Move from Sem_Ch8 body to Einfo | |
20789 | (Is_Visible_Formal): New flag on entities in formal packages. | |
20790 | (Low_Bound_Known): New flag | |
20791 | (Non_Limited_View, Set_Non_Limited_View): Add membership test agains | |
20792 | Incomplete_Kind. | |
20793 | (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name | |
20794 | output when Id is an incomplete subtype. | |
20795 | ||
20796 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
20797 | ||
20798 | * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m | |
20799 | Avoid abbreviation Creat | |
20800 | (Finalize): List all sources in extended mail source if -gnatl | |
20801 | switch is active. | |
20802 | Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set | |
20803 | (Finalize): Implement new -gnatl=xxx switch to output listing to file | |
20804 | (Set_Specific_Warning_On): New procedure | |
20805 | (Set_Specific_Warning_Off): New procedure | |
20806 | Add implementation of new insertion \\ | |
20807 | (Error_Msg_Internal): Add handling for Error_Msg_Line_Length | |
20808 | (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram | |
20809 | types. | |
20810 | (Error_Msg_Internal): Make sure that we set Last_Killed to | |
20811 | True when a message from another package is suppressed. | |
20812 | Implement insertion character ~ (insert string) | |
20813 | (First_Node): Minor adjustments to get better placement. | |
20814 | ||
7c066666 | 20815 | * frontend.adb: |
6b95ae38 | 20816 | Implement new -gnatl=xxx switch to output listing to file |
20817 | ||
7c066666 | 20818 | * gnat1drv.adb: |
6b95ae38 | 20819 | Implement new -gnatl=xxx switch to output listing to file |
20820 | ||
d4c15061 | 20821 | * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch |
6b95ae38 | 20822 | (Commands_To_Stdout): New flag |
20823 | Implement new -gnatl=xxx switch to output listing to file | |
20824 | New switch Dump_Source_Text | |
20825 | (Warn_On_Deleted_Code): New warning flag for -gnatwt | |
20826 | Define Error_Msg_Line_Length | |
20827 | (Warn_On_Assumed_Low_Bound): New switch | |
20828 | ||
20829 | * osint.ads, osint.adb | |
20830 | (Normalize_Directory_Name): Fix bug. | |
20831 | Implement new -gnatl=xxx switch to output listing to file | |
20832 | (Concat): Removed, replaced by real concatenation | |
20833 | Make use of concatenation now allowed in compiler | |
20834 | (Executable_Prefix.Get_Install_Dir): First get the full path, so that | |
20835 | we find the 'lib' or 'bin' directory even when the tool has been | |
20836 | invoked with a relative path. | |
20837 | (Executable_Name): New function taking string parameters. | |
20838 | ||
7c066666 | 20839 | * osint-c.ads, osint-c.adb: |
6b95ae38 | 20840 | Implement new -gnatl=xxx switch to output listing to file |
20841 | ||
20842 | * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File | |
20843 | ||
7c066666 | 20844 | * switch-c.adb: |
6b95ae38 | 20845 | Implement new -gnatl=xxx switch to output listing to file |
20846 | Recognize new -gnatL switch | |
20847 | (no longer keep in old warning about old style usage) | |
20848 | Use concatenation to simplify code | |
20849 | Recognize -gnatjnn switch | |
20850 | (Scan_Front_End_Switches): Clean up handling of -gnatW | |
20851 | (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg | |
20852 | ||
20853 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
20854 | ||
20855 | * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure | |
20856 | (Set_Specific_Warning_Off): New procedure | |
20857 | (Warning_Specifically_Suppressed): New function | |
20858 | (Validate_Specific_Warnings): New procedure | |
20859 | (Output_Msg_Text): Complete rewrite to support -gnatjnn | |
20860 | ||
20861 | * err_vars.ads: Implement insertion character ~ (insert string) | |
20862 | ||
20863 | 2006-10-31 Bob Duff <duff@adacore.com> | |
20864 | Ed Schonberg <schonberg@adacore.com> | |
20865 | ||
20866 | * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if | |
20867 | the parent part is a build-in-place function call, generate assignments. | |
20868 | (Expand_Record_Aggregate): Call Convert_To_Assignments if any components | |
20869 | are build-in-place function calls. | |
20870 | (Replace_Self_Reference): New subsidiary of | |
20871 | Make_OK_Assignment_Statement, to replace an access attribute that is a | |
20872 | self-reference into an access to the appropriate component of the | |
20873 | target object. Generalizes previous mechanism to handle self-references | |
20874 | nested at any level. | |
20875 | (Is_Self_Referential_Init): Remove, not needed. | |
20876 | (Is_Self_Referential_Init): New predicate to simplify handling of self | |
20877 | referential components in record aggregates. | |
20878 | (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to | |
20879 | check for presence of entity before checking for self-reference. | |
20880 | (Has_Default_Init_Comps): Return True if a component association is a | |
20881 | self-reference to the enclosing type, which can only come from a | |
20882 | default initialization. | |
20883 | (Make_OK_Assignment_Statement): If the expression is of the form | |
20884 | Typ'Acc, where Acc is an access attribute, the expression comes from a | |
20885 | default initialized self-referential component. | |
20886 | (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type | |
20887 | that has been derived from several abstract interfaces we must also | |
20888 | initialize the tags of the secondary dispatch tables. | |
20889 | ||
20890 | 2006-10-31 Ed Schonberg <schonberg@adacore.com> | |
20891 | Thomas Quinot <quinot@adacore.com> | |
20892 | Javier Miranda <miranda@adacore.com> | |
20893 | Robert Dewar <dewar@adacore.com> | |
d4c15061 | 20894 | |
7c066666 | 20895 | * exp_attr.adb: |
d4c15061 | 20896 | (Expand_Access_To_Protected_Op): If the context indicates that an access |
20897 | to a local operation may be transfered outside of the object, create an | |
20898 | access to the wrapper operation that must be used in an external call. | |
6b95ae38 | 20899 | (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP |
20900 | target, pass the Valid attribute applied to a floating-point prefix on | |
20901 | to the back end without expansion. | |
20902 | (Storage_Size): Use the new run-time function Storage_Size to retrieve | |
20903 | the allocated storage when it is specified by a per-object expression. | |
20904 | (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type. | |
20905 | Nothing to do here, the attribute has been rewritten during semantic | |
20906 | analysis. | |
20907 | (Expand_Attribute_Reference): Handle expansion of the new Priority | |
20908 | attribute | |
20909 | (Find_Fat_Info): Handle case of universal real | |
20910 | (Expand_Access_To_Protected_Op): Fix use of access to protected | |
20911 | subprogram from inside the body of a protected entry. | |
20912 | (Expand_Access_To_Protected_Op): Common procedure for the expansion of | |
20913 | 'Access and 'Unrestricted_Access, to transform the attribute reference | |
20914 | into a fat pointer. | |
20915 | (Is_Constrained_Aliased_View): New predicate to help determine whether a | |
20916 | subcomponent's enclosing variable is aliased with a constrained subtype. | |
20917 | (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05, | |
20918 | test Is_Constrained_Aliased_View rather than Is_Aliased_View, because | |
20919 | an aliased prefix must be known to be constrained in order to use True | |
20920 | for the attribute value, and now it's possible for some aliased views | |
20921 | to be unconstrained. | |
20922 | ||
20923 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
20924 | ||
20925 | * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue | |
20926 | (Expand_Entity_Reference): Correct error of not handling subprogram | |
20927 | formals in current_value processing. | |
20928 | ||
20929 | 2006-10-31 Javier Miranda <miranda@adacore.com> | |
20930 | Robert Dewar <dewar@adacore.com> | |
20931 | Ed Schonberg <schonberg@adacore.com> | |
20932 | Gary Dismukes <dismukes@adacore.com> | |
20933 | ||
d4c15061 | 20934 | * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not |
6b95ae38 | 20935 | register in the final list objects containing class-wide interfaces; |
20936 | otherwise we incorrectly register the tag of the interface in the final | |
20937 | list. | |
d4c15061 | 20938 | (Make_Controlling_Function_Wrappers): Add missing barrier to do not |
20939 | generate the wrapper if the parent primitive is abstract. This is | |
20940 | required to report the correct error message. | |
20941 | (Expand_N_Subtype_Indication): Do validity checks on range | |
6b95ae38 | 20942 | (Clean_Task_Names): If an initialization procedure includes a call to |
20943 | initialize a task (sub)component, indicate that the procedure will use | |
20944 | the secondary stack. | |
20945 | (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI | |
20946 | compatibility for interfacing with CPP by default. | |
20947 | (Expand_N_Object_Declaration): Only build an Adjust call when the | |
20948 | object's type is a nonlimited controlled type. | |
20949 | * exp_ch3.adb: Add with and use of Exp_Ch6. | |
20950 | (Expand_N_Object_Declaration): Check for object initialization that is a | |
20951 | call to build-in-place function and apply Make_Build_In_Place_Call_In_ | |
20952 | Object_Declaration to the call. | |
20953 | (Freeze_Type): When the designated type of an RACW was not frozen at the | |
20954 | point where the RACW was declared, validate the primitive operations | |
20955 | with respect to E.2.2(14) when it finally is frozen. | |
20956 | (Build_Initialization_Call,Expand_Record_Controller): Rename | |
20957 | Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because | |
20958 | return-by-reference has no meaning in Ada 2005. | |
20959 | (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top | |
20960 | to register tag of the immediate ancestor interfaces in the | |
20961 | run-time structure. | |
20962 | (Init_Secondary_Tags): Moved to the specification to allow the | |
20963 | initialization of extension aggregates with abstract interfaces. | |
20964 | (Build_Master_Renaming): Make public, for use by function declarations | |
20965 | whose return type is an anonymous access type. | |
20966 | (Freeze_Record_Type): Replace call to Insert_List_Before by call to | |
20967 | Insert_List_Before_And_Analyze after the generation of the specs | |
20968 | associated with null procedures. | |
20969 | (Expand_Tagged_Root): Update documentation in its specification. | |
20970 | (Init_Secondary_Tags): Update documentation. | |
20971 | (Build_Init_Procedure): If we are compiling under CPP full ABI compa- | |
20972 | tibility mode and the immediate ancestor is a CPP_Pragma tagged type | |
20973 | then generate code to inherit the contents of the dispatch table | |
20974 | directly from the ancestor. | |
20975 | (Expand_Record_Controller): Insert controller component after tags of | |
20976 | implemented interfaces. | |
20977 | (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to | |
20978 | create null procedure overridings when null procedures are inherited | |
20979 | from interfaces. | |
20980 | (Make_Null_Procedure_Specs): New procedure to generate null procedure | |
20981 | declarations for overriding null primitives inherited from interfaces. | |
20982 | (Is_Null_Interface_Procedure): New function in | |
20983 | Make_Null_Procedure_Specs. | |
20984 | (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the | |
20985 | immediate ancestor of a tagged type is an abstract interface type we | |
20986 | must generate the specification of the predefined primitives associated | |
20987 | with controlled types (because the dispatch table of the ancestor is | |
20988 | null and hence these entries cannot be inherited). This is required to | |
20989 | elaborate well the dispatch table. | |
20990 | ||
20991 | 2006-10-31 Javier Miranda <miranda@adacore.com> | |
20992 | Ed Schonberg <schonberg@adacore.com> | |
20993 | Bob Duff <duff@adacore.com> | |
20994 | Gary Dismukes <dismukes@adacore.com> | |
20995 | Robert Dewar <dewar@adacore.com> | |
d4c15061 | 20996 | |
20997 | * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type | |
6b95ae38 | 20998 | conversion. |
d4c15061 | 20999 | (Expand_N_In): Do validity checks on range |
6b95ae38 | 21000 | (Expand_Selected_Component): Use updated for of Denotes_Discriminant. |
21001 | (Expand_N_Allocator): For "new T", if the object is constrained by | |
21002 | discriminant defaults, allocate the right amount of memory, rather than | |
21003 | the maximum for type T. | |
21004 | (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects | |
21005 | when the allocator is initialized by a build-in-place call, since the | |
21006 | allocator is already rewritten as a reference to the function result, | |
21007 | and this prevents an unwanted duplication of the function call. | |
21008 | Add with and use of Exp_Ch6. | |
21009 | (Expand_Allocator_Expresssion): Check for an allocator whose expression | |
21010 | is a call to build-in-place function and apply | |
21011 | Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and | |
21012 | untagged designated types). | |
21013 | (Expand_N_Unchecked_Type_Conversion): Do not do integer literal | |
21014 | optimization if source or target is biased. | |
21015 | (Expand_N_Allocator): Add comments for case of an allocator within a | |
21016 | function that returns an anonymous access type designating tasks. | |
21017 | (Expand_N_Allocator): apply discriminant checks for access | |
21018 | discriminants of anonymous access types (AI-402, AI-416) | |
21019 | ||
21020 | 2006-10-31 Bob Duff <duff@adacore.com> | |
21021 | Robert Dewar <dewar@adacore.com> | |
21022 | Gary Dismukes <dismukes@adacore.com> | |
21023 | Ed Schonberg <schonberg@adacore.com> | |
21024 | ||
21025 | * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure. | |
21026 | ||
d4c15061 | 21027 | * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range |
6b95ae38 | 21028 | (Expand_N_Assignment_Statement): Call |
21029 | Make_Build_In_Place_Call_In_Assignment if the right-hand side is a | |
21030 | build-in-place function call. Currently, this can happen only for | |
21031 | assignments that come from aggregates. | |
21032 | Add -gnatd.l --Use Ada 95 semantics for limited function returns, | |
21033 | in order to alleviate the upward compatibility introduced by AI-318. | |
21034 | (Expand_N_Extended_Return_Statement): Add support for handling the | |
21035 | return object as a build-in-place result. | |
21036 | (Expand_Non_Function_Return): Implement simple return statements nested | |
21037 | within an extended return. | |
21038 | (Enable_New_Return_Processing): Turn on the new processing of return | |
21039 | statements. | |
21040 | (Expand_Non_Function_Return): For a return within an extended return, | |
21041 | don't raise Program_Error, because Sem_Ch6 now gives a warning. | |
21042 | (Expand_N_Extended_Return_Statement): Implement AI-318 | |
21043 | (Expand_Simple_Function_Return): Ditto. | |
21044 | (Expand_N_If_Statement): Handle new -gnatwt warning | |
21045 | (Expand_N_Case_Statement): Handle new -gnatwt warning | |
21046 | (Expand_N_Assignment): Handle assignment to the Priority attribute of | |
21047 | a protected object. | |
21048 | (Expand_N_Assignment_Statement): Implement -gnatVe/E to control | |
21049 | validity checking of assignments to elementary record components. | |
21050 | (Expand_N_Return_Statement): return Class Wide types on the secondary | |
21051 | stack independantly of their controlled status since with HIE runtimes, | |
21052 | class wide types are not potentially controlled anymore. | |
21053 | ||
21054 | * expander.adb (Expand): Add case for new N_Extended_Return_Statement | |
21055 | node kind. | |
21056 | ||
21057 | * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid | |
21058 | Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because | |
21059 | it expects a block, procedure, or task. The return statement will get | |
21060 | turned into a block, and Expand_Cleanup_Actions will happen then. | |
21061 | ||
21062 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
21063 | Ed Schonberg <schonberg@adacore.com> | |
21064 | Bob Duff <duff@adacore.com> | |
21065 | Gary Dismukes <dismukes@adacore.com> | |
21066 | ||
21067 | * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression | |
21068 | capability. | |
21069 | (Expand_Inlined_Call): Tagged types are by-reference types, and | |
21070 | therefore should be replaced by a renaming declaration in the expanded | |
21071 | body, as is done for limited types. | |
21072 | (Expand_Call): If this is a call to a function with dispatching access | |
21073 | result, propagate tag from context. | |
21074 | (Freeze_Subprogram): Enable full ABI compatibility for interfacing with | |
21075 | CPP by default. | |
21076 | (Make_Build_In_Place_Call_In_Assignment): New procedure to do | |
21077 | build-in-place when the right-hand side of an assignment is a | |
21078 | build-in-place function call. | |
21079 | (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion | |
21080 | of the explicit dereference of the allocator to the result subtype of | |
21081 | the build-in-place function. This is needed to satisfy type checking | |
21082 | in cases where the caller's return object is created by an allocator for | |
21083 | a class-wide access type and the type named in the allocator is a | |
21084 | specific type. | |
21085 | (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked | |
21086 | conversion of the reference to the declared object to the result subtype | |
21087 | of the build-in-place function. This is needed to satisfy type checking | |
21088 | in cases where the declared object has a class-wide type. Also, in the | |
21089 | class-wide case, change the type of the object entity to the specific | |
21090 | result subtype of the function, to avoid passing a class-wide object | |
21091 | without explicit initialization to the back end. | |
21092 | (Register_Interface_DT_Entry): Moved outside the body of | |
21093 | Freeze_Subprogram because this routine is now public; it is called from | |
21094 | Check_Dispatching_Overriding to handle late overriding of abstract | |
21095 | interface primitives. | |
21096 | (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for | |
21097 | adding an implicit access actual on a call to a build-in-place function. | |
21098 | (Expand_Actuals): Test for an actual parameter that is a call to a | |
21099 | build-in-place function and apply | |
21100 | Make_Build_In_Place_Call_In_Anonymous_Context to the call. | |
21101 | (Is_Build_In_Place_Function): New function to determine whether an | |
21102 | entity is a function whose calls should be handled as build-in-place. | |
21103 | (Is_Build_In_Place_Function_Call): New function to determine whether an | |
21104 | expression is a function call that should handled as build-in-place. | |
21105 | (Make_Build_In_Place_Call_In_Allocator): New procedure for handling | |
21106 | calls to build-in-place functions as the initialization of an allocator. | |
21107 | (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for | |
21108 | handling calls to build-in-place functions in contexts that do not | |
21109 | involve init of a separate object (for example, actuals of subprogram | |
21110 | calls). | |
21111 | (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for | |
21112 | handling calls to build-in-place functions as the initialization of an | |
21113 | object declaration. | |
21114 | (Detect_Infinite_Recursion): Add explicit parameter Process to | |
21115 | instantiation of Traverse_Body to avoid unreferenced warning. | |
21116 | (Check_Overriding_Inherited_Interfaces): Removed. | |
21117 | (Register_Interface_DT_Entry): Code cleanup. | |
21118 | (Register_Predefined_DT_Entry): Code cleanup. | |
21119 | (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around | |
21120 | inlined statements if within a transient scope. | |
21121 | (Expand_Inlined_Call.Process_Formals): When replacing occurrences of | |
21122 | formal parameters with occurrences of actuals in inlined body, establish | |
21123 | visibility on the proper view of the actual's subtype for the body's | |
21124 | context. | |
21125 | (Freeze_Subprogram): Do nothing if we are compiling under full ABI | |
21126 | compatibility mode and we have an imported CPP subprogram because | |
21127 | for now we assume that imported CPP primitives correspond with | |
21128 | objects whose constructor is in the CPP side (and therefore we | |
21129 | don't need to generate code to register them in the dispatch table). | |
21130 | (Expand_Actuals): Introduce copy of actual, only if it might be a bit- | |
21131 | aligned selected component. | |
21132 | (Add_Call_By_Copy_Node): Add missing code to handle the case in which | |
21133 | the actual of an in-mode parameter is a type conversion. | |
21134 | (Expand_Actuals): If the call does not come from source and the actual | |
21135 | is potentially misaligned, let gigi handle it rather than rejecting the | |
21136 | (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning | |
21137 | Class Wide types as returning by reference independantly of their | |
21138 | controlled status since with HIE runtimes class wide types are not | |
21139 | potentially controlled anymore. | |
21140 | ||
d4c15061 | 21141 | 2006-10-31 Ed Schonberg <schonberg@adacore.com> |
6b95ae38 | 21142 | |
d4c15061 | 21143 | * exp_ch9.adb (Update_Prival_Types): Simplify code for entity |
6b95ae38 | 21144 | references that are private components of the protected object. |
21145 | (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function | |
21146 | (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc | |
21147 | instantiation to deal with warnings. | |
21148 | (Initialize_Protection): If expression for priority is non-static, use | |
21149 | System_Priority as its expected type, in case the expression has not | |
21150 | been analyzed yet. | |
21151 | ||
21152 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
21153 | ||
21154 | * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing | |
21155 | initialization of Homonym_Len. | |
21156 | (Fully_Qualify_Name): Remove kludge to eliminate anonymous block | |
21157 | names from fully qualified name. Fixes problem of duplicate | |
21158 | external names differing only in the presence of such a block name. | |
21159 | ||
21160 | 2006-10-31 Thomas Quinot <quinot@adacore.com> | |
21161 | Pablo Oliveira <oliveira@adacore.com> | |
d4c15061 | 21162 | |
21163 | * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign | |
6b95ae38 | 21164 | subprogram Ids, even if they are not yet assigned. |
21165 | (Build_Subprogram_Id): It is now this function that will take care of | |
21166 | calling Assign_Subprogram_Ids if necessary. | |
21167 | (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids | |
21168 | should be done only once they are assigned. | |
21169 | (Build_From_Any_Function, case of tagged types): Add missing call to | |
21170 | Allocate_Buffer. | |
21171 | (Corresponding_Stub_Type): New subprogram. Returns the associated stub | |
21172 | type for an RACW type. | |
21173 | (Add_RACW_Features): When processing an RACW declaration for which the | |
21174 | designated type is already frozen, enforce E.2.2(14) rules immediately. | |
21175 | (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any | |
21176 | special reordering of controlling formals. | |
21177 | ||
21178 | * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the | |
21179 | associated stub type for an RACW type. | |
21180 | ||
21181 | 2006-10-31 Ed Schonberg <schonberg@adacore.com> | |
21182 | ||
21183 | * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of | |
21184 | fixed-point operations in an integer context, i.e. as operands of a | |
21185 | conversion to an integer type, indicate that result must be rounded. | |
21186 | ||
21187 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
21188 | ||
21189 | * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character | |
21190 | cases, pass the encoding method, since it is now required by the run | |
21191 | time. | |
21192 | ||
21193 | * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid | |
21194 | assumption that Str'First = 1. | |
21195 | (Value_Wide_Character): Takes EM (encoding method) parameter and passes | |
21196 | it on to the Value_Wide_Wide_Character call. | |
21197 | (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and | |
21198 | properly handles a string of the form quote-encoded_wide_char-quote. | |
21199 | ||
21200 | * s-wchcnv.adb: Minor reformatting | |
21201 | ||
21202 | 2006-10-31 Javier Miranda <miranda@adacore.com> | |
d4c15061 | 21203 | |
6b95ae38 | 21204 | * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing |
21205 | run-time membership test to ensure that the constructed object | |
21206 | implements the target abstract interface. | |
21207 | ||
21208 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
21209 | ||
21210 | * exp_prag.adb (Expand_Pragma_Common_Object): Use a single | |
21211 | Machine_Attribute pragma internally to implement the user pragma. | |
21212 | Add processing for pragma Interface so that it is now completely | |
21213 | equivalent to pragma Import. | |
21214 | ||
21215 | * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma | |
21216 | so that it can be applied to all entities, including record components | |
21217 | and enumeration literals. | |
21218 | (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether | |
21219 | priority ranges are correct, verify compatibility against task | |
21220 | dispatching and locking policies, and if everything is correct an entry | |
21221 | is added to the table containing priority specific dispatching entries | |
21222 | for this compilation unit. | |
21223 | (Delay_Config_Pragma_Analyze): Delay processing | |
21224 | Priority_Specific_Dispatching pragmas because when processing the | |
21225 | pragma we need to access run-time data, such as the range of | |
21226 | System.Any_Priority. | |
21227 | (Sig_Flags): Add Pragma_Priority_Specific_Dispatching. | |
21228 | Allow pragma Unreferenced as a context item | |
21229 | Add pragma Preelaborable_Initialization | |
21230 | (Analyze_Pragma, case Interface): Interface is extended so that it is | |
21231 | now syntactically and semantically equivalent to Import. | |
21232 | (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on | |
21233 | insertion characters. | |
21234 | Add handling for Pragma_Wide_Character_Encoding | |
21235 | (Process_Restrictions_Restriction_Warnings): Ensure that a warning | |
21236 | never supercedes a real restriction, and that a real restriction | |
21237 | always supercedes a warning. | |
21238 | (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of | |
21239 | appropriate form. | |
21240 | ||
21241 | 2006-10-31 Bob Duff <duff@adacore.com> | |
21242 | Ed Schonberg <schonberg@adacore.com> | |
21243 | Robert Dewar <dewar@adacore.com> | |
21244 | ||
21245 | * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs, | |
21246 | Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be | |
21247 | Is_Inherently_Limited_Type, because return-by-reference has no meaning | |
21248 | in Ada 2005. | |
21249 | (Find_Node_To_Be_Wrapped): Use new method of determining the result | |
21250 | type of the function containing a return statement, because the | |
21251 | Return_Type field was removed. We now use the Return_Applies_To field. | |
21252 | ||
d4c15061 | 21253 | * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test |
6b95ae38 | 21254 | (Build_Task_Image_Decl): If procedure is not called from an |
21255 | initialization procedure, indicate that function that builds task name | |
21256 | uses the sec. stack. Otherwise the enclosing initialization procedure | |
21257 | will carry the indication. | |
21258 | (Insert_Actions): Remove N_Return_Object_Declaration. We now use | |
21259 | N_Object_Declaration instead. | |
21260 | (Kill_Dead_Code): New interface to implement -gnatwt warning for | |
21261 | conditional dead code killed, and change implementation accordingly. | |
21262 | (Insert_Actions): Add N_Return_Object_Declaration case. | |
21263 | Correct comment to mention N_Extension_Aggregate node. | |
21264 | (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad | |
21265 | attempts to save information for global variables which cannot be | |
21266 | safely tracked. | |
21267 | (Get_Current_Value_Condition): Handle conditions the other way round | |
21268 | (constant on left). Also handle right operand of AND and AND THEN | |
21269 | (Set_Current_Value_Condition): Corresponding changes | |
21270 | (Append_Freeze_Action): Remove unnecessary initialization of Fnode. | |
21271 | (Get_Current_Value_Condition): Handle simple boolean operands | |
21272 | (Get_Current_Value_Condition): Handle left operand of AND or AND THEN | |
21273 | (Get_Current_Value_Condition): If the variable reference is within an | |
21274 | if-statement, does not appear in the list of then_statments, and does | |
21275 | not come from source, treat it as being at unknown location. | |
21276 | (Get_Current_Value_Condition): Enhance to allow while statements to be | |
21277 | processed as well as if statements. | |
21278 | (New_Class_Wide_Subtype): The entity for a class-wide subtype does not | |
21279 | come from source. | |
21280 | (OK_To_Do_Constant_Replacement): Allow constant replacement within body | |
21281 | of loop. This is safe now that we fixed Kill_Current_Values. | |
21282 | (OK_To_Do_Constant_Replacement): Check whether current scope is | |
21283 | Standard, before examining outer scopes. | |
21284 | ||
21285 | 2006-10-31 Vincent Celier <celier@adacore.com> | |
21286 | ||
21287 | * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target. | |
21288 | When True, apply VMS treatment to children of packages A, G, I and S. | |
21289 | For F320-016 | |
21290 | ||
21291 | * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target | |
21292 | ||
21293 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
21294 | Ed Schonberg <schonberg@adacore.com> | |
21295 | ||
21296 | * freeze.adb: Add handling of Last_Assignment field | |
21297 | (Warn_Overlay): Supply missing continuation marks in error msgs | |
21298 | (Freeze_Entity): Add check for Preelaborable_Initialization | |
21299 | ||
21300 | * g-comlin.adb: Add Warnings (Off) to prevent new warning | |
21301 | ||
21302 | * g-expect.adb: Add Warnings (Off) to prevent new warning | |
21303 | ||
21304 | * lib-xref.adb: Add handling of Last_Assignment field | |
21305 | (Generate_Reference): Centralize handling of pragma Obsolescent here | |
21306 | (Generate_Reference): Accept an implicit reference generated for a | |
21307 | default in an instance. | |
21308 | (Generate_Reference): Accept a reference for a node that is not in the | |
21309 | main unit, if it is the generic body corresponding to an subprogram | |
21310 | instantiation. | |
21311 | ||
21312 | * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings | |
21313 | ||
d4c15061 | 21314 | * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for |
6b95ae38 | 21315 | -gnatwq/Q. |
21316 | (Warn_On_Useless_Assignment): Suppress warning if enclosing inner | |
21317 | exception handler. | |
21318 | (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on | |
21319 | use clauses, to avoid messages on packages used to qualify, and also | |
21320 | to avoid messages from obsolescent units. | |
21321 | (Warn_On_Useless_Assignments): Don't generate messages for imported | |
21322 | and exported variables. | |
21323 | (Warn_On_Useless_Assignments): New procedure | |
21324 | (Output_Obsolescent_Entity_Warnings): New procedure | |
21325 | (Check_Code_Statement): New procedure | |
21326 | ||
d4c15061 | 21327 | * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag |
6b95ae38 | 21328 | Change name Is_Ada_2005 to Is_Ada_2005_Only |
21329 | (Last_Assignment): New field for useless assignment warning | |
21330 | ||
21331 | 2006-10-31 Olivier Hainque <hainque@adacore.com> | |
21332 | ||
21333 | * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the | |
21334 | closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16. | |
21335 | ||
21336 | 2006-10-31 Bob Duff <duff@adacore.com> | |
21337 | Robert Dewar <dewar@adacore.com> | |
21338 | Ed Schonberg <schonberg@adacore.com> | |
21339 | ||
21340 | * g-awk.adb (Default_Session, Current_Session): Compile this file in | |
21341 | Ada 95 mode, because it violates the new rules for AI-318. | |
21342 | ||
21343 | * g-awk.ads: Use overloaded subprograms in every case where we used to | |
21344 | have a default of Current_Session. This makes the code closer to be | |
21345 | correct for both Ada 95 and 2005. | |
21346 | ||
21347 | * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005 | |
21348 | code, relying on the fact that the compiler generates a warning | |
21349 | instead of an error in -gnatg mode. | |
21350 | ||
21351 | * lib-xref.ads (Xref_Entity_Letters): Add entry for new | |
21352 | E_Return_Statement entity kind. | |
21353 | Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters. | |
21354 | ||
21355 | * par.adb (P_Interface_Type_Definition): Addition of one formal to | |
21356 | report an error if the reserved word abstract has been previously found. | |
21357 | (SS_End_Type): Add E_Return for new extended_return_statement syntax. | |
d4c15061 | 21358 | |
21359 | * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for | |
6b95ae38 | 21360 | parenthesized range attribute usage |
21361 | (P_Expression_No_Right_Paren): Add missing comment about error recovery. | |
21362 | ||
21363 | * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant" | |
21364 | in the syntax for extended_return_statement. This is not in the latest | |
21365 | RM, but the ARG is expected to issue an AI allowing this. | |
21366 | (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove | |
21367 | N_Return_Object_Declaration. We now use N_Object_Declaration instead. | |
21368 | (P_Return_Object_Declaration, P_Return_Subtype_Indication, | |
21369 | P_Return_Statement): Parse the new syntax for extended_return_statement. | |
21370 | ||
21371 | * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected, | |
21372 | Output_End_Missing): Add error-recovery code for the new | |
21373 | extended_return_statement syntax; that is, the new E_Return entry on | |
21374 | the scope stack. | |
21375 | ||
21376 | * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from | |
21377 | limited to nonlimited, because otherwise we violate the new Ada 2005 | |
21378 | rules about returning limited types in function Create_AST_Handler in | |
21379 | s-asthan.adb. | |
21380 | ||
21381 | * sem.adb (Analyze): Add cases for new node kinds | |
21382 | N_Extended_Return_Statement and N_Return_Object_Declaration. | |
21383 | ||
21384 | * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component | |
21385 | type is in the same category as type of context before applying check, | |
21386 | to prevent anomalies in instantiations. | |
21387 | (Resolve_Aggregate): Remove test for limited components in aggregates. | |
21388 | It's unnecessary in Ada 95, because if it has limited components, then | |
21389 | it must be limited. It's wrong in Ada 2005, because limited aggregates | |
21390 | are now allowed. | |
21391 | (Resolve_Record_Aggregate): Move check for limited types later, because | |
21392 | OK_For_Limited_Init requires its argument to have been resolved. | |
21393 | (Get_Value): When copying the component default expression for a | |
21394 | defaulted association in an aggregate, use the sloc of the aggregate | |
21395 | and not that of the original expression, to prevent spurious | |
21396 | elaboration errors, when the expression includes function calls. | |
21397 | (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates | |
21398 | were missing. We also didn't handle qualified expressions. Now also | |
21399 | allow function calls. Use new common routine OK_For_Limited_Init. | |
21400 | (Resolve_Extension_Aggregate): Minor fix to bad error message (started | |
21401 | with space can upper case letter). | |
21402 | ||
d4c15061 | 21403 | * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set |
6b95ae38 | 21404 | Has_Static_Discriminants flag |
d4c15061 | 21405 | (Record_Type_Declaration): Diagnose an attempt to declare an interface |
21406 | type with discriminants. | |
21407 | (Process_Range_Expr_In_Decl): Do validity checks on range | |
6b95ae38 | 21408 | (Build_Discriminant_Constraints): Use updated form of |
21409 | Denotes_Discriminant. | |
21410 | (Process_Subtype): If the subtype is a private subtype whose full view | |
21411 | is a concurrent subtype, introduce an itype reference to prevent scope | |
21412 | anomalies in gigi. | |
21413 | (Build_Derived_Record_Type, Collect_Interface_Primitives, | |
21414 | Record_Type_Declaration): The functionality of the subprograms | |
21415 | Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces | |
21416 | is now performed by a single routine. | |
21417 | (Build_Derived_Record_Type): If the type definition includes an explicit | |
21418 | indication of limitedness, then the type must be marked as limited here | |
21419 | to ensure that any access discriminants will not be treated as having | |
21420 | a local anonymous access type. | |
21421 | (Check_Abstract_Overriding): Issue a detailed error message when an | |
21422 | abstract subprogram was not overridden due to incorrect mode of its | |
21423 | first parameter. | |
21424 | (Analyze_Private_Extension_Declaration): Add support for the analysis of | |
21425 | synchronized private extension declarations. Verify that the ancestor is | |
21426 | a limited or synchronized interface or in the generic case, the ancestor | |
21427 | is a tagged limited type or synchronized interface and all progenitors | |
21428 | are either limited or synchronized interfaces. | |
21429 | Derived_Type_Declaration): Check for presence of private extension when | |
21430 | dealing with synchronized formal derived types. | |
21431 | Process_Full_View): Enchance the check done on the usage of "limited" by | |
21432 | testing whether the private view is synchronized. | |
21433 | Verify that a synchronized private view is completed by a protected or | |
21434 | task type. | |
21435 | (OK_For_Limited_Init_In_05): New function. | |
21436 | (Analyze_Object_Declaration): Move check for limited types later, | |
21437 | because OK_For_Limited_Init requires its argument to have been resolved. | |
21438 | Add -gnatd.l --Use Ada 95 semantics for limited function returns, | |
21439 | in order to alleviate the upward compatibility introduced by AI-318. | |
21440 | (Constrain_Corresponding_Record): If the constraint is for a component | |
21441 | subtype, mark the itype as frozen, to avoid out-of-scope references to | |
21442 | discriminants in the back-end. | |
21443 | (Collect_Implemented_Interfaces): Protect the recursive algorithm of | |
21444 | this subprogram against wrong sources. | |
21445 | (Get_Discr_Value, Is_Discriminant): Handle properly references to a | |
21446 | discriminant of limited type completed with a protected type, when the | |
21447 | discriminant is used to constrain a private component of the type, and | |
21448 | expansion is disabled. | |
21449 | (Find_Type_Of_Object): Do not treat a return subtype that is an | |
21450 | anonymous subtype as a local_anonymous_type, because its accessibility | |
21451 | level is the return type of the enclosing function. | |
21452 | (Check_Initialization): In -gnatg mode, turn the error "cannot | |
21453 | initialize entities of limited type" into a warning. | |
21454 | (OK_For_Limited_Init): Return true for generated nodes, since it | |
21455 | sometimes violates the legality rules. | |
21456 | (Make_Incomplete_Declaration): If the type for which an incomplete | |
21457 | declaration is created happens to be the currently visible entity, | |
21458 | preserve the homonym chain when removing it from visibility. | |
21459 | (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of | |
21460 | inherited subprograms. | |
21461 | (Access_Definition): If this is an access to function that is the return | |
21462 | type of an access_to_function definition, context is a type declaration | |
21463 | and the scope of the anonymous type is the current one. | |
21464 | (Analyze_Subtype_Declaration): Add the defining identifier of a regular | |
21465 | incomplete subtype to the set of private dependents of the original | |
21466 | incomplete type. | |
21467 | (Constrain_Discriminated_Type): Emit an error message whenever an | |
21468 | incomplete subtype is being constrained. | |
21469 | (Process_Incomplete_Dependents): Transform an incomplete subtype into a | |
21470 | corresponding subtype of the full view of the original incomplete type. | |
21471 | (Check_Incomplete): Properly detect invalid usage of incomplete types | |
21472 | and subtypes. | |
21473 | ||
21474 | 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com> | |
21475 | ||
21476 | * g-catiio.ads, g-catiio.adb (Value): New function. | |
21477 | Given an input String, try and parse a valid Time value. | |
21478 | ||
21479 | 2006-10-31 Vincent Celier <celier@adacore.com> | |
21480 | ||
21481 | * g-debpoo.adb (Is_Valid): Correctly compute Offset using | |
21482 | Integer_Address arithmetic, as in Set_Valid. | |
21483 | ||
21484 | 2006-10-31 Arnaud Charlet <charlet@adacore.com> | |
21485 | Robert Dewar <dewar@adacore.com> | |
21486 | ||
21487 | * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of | |
21488 | handling executable extension manually and duplicating code. | |
21489 | ||
21490 | * make.adb: Implement new -S switch | |
21491 | (Gnatmake): Use new function Osint.Executable_Name instead | |
21492 | of handling executable extension manually. | |
21493 | ||
21494 | * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix | |
21495 | is specified, the executable name ends with this suffix. | |
21496 | Take advantage of Osint.Executable_Name instead of duplicating code. | |
21497 | ||
21498 | * switch-m.adb: Recognize new gnatmake -S switch | |
21499 | ||
21500 | * targparm.ads, targparm.adb (Executable_Extension_On_Target): New | |
21501 | variable. | |
21502 | (Get_Target_Parameters): Set Executable_Extension_On_Target if | |
21503 | available. | |
21504 | ||
21505 | * makeusg.adb: Add line for gnatmake -S switch | |
21506 | ||
21507 | 2006-10-31 Vincent Celier <celier@adacore.com> | |
21508 | ||
21509 | * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc, | |
21510 | call it with -static-libgcc, as there are some platforms, such as | |
21511 | Darwin, where one of these two switches is compulsory to link. | |
21512 | ||
21513 | 2006-10-31 Vincent Celier <celier@adacore.com> | |
d4c15061 | 21514 | |
6b95ae38 | 21515 | * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined, |
21516 | instead of ADA_PROJECT_PATH, for the project path. | |
21517 | (Gnatls): When displaying the project path directories, use host dir | |
21518 | specs. | |
21519 | ||
21520 | * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path | |
21521 | names in the project path, as absolute paths may correspond to | |
21522 | multi-valued VMS logical names. | |
21523 | ||
21524 | 2006-10-31 Vincent Celier <celier@adacore.com> | |
21525 | ||
21526 | * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an | |
21527 | absolute path name. | |
21528 | (Locate_Regular_File): Ditto | |
21529 | (Change_Dir): Remove, no longer used | |
21530 | (Normalize_Pathname): Do not use Change_Dir to get the drive letter | |
21531 | on Windows. Get it calling Get_Current_Dir. | |
21532 | (OpenVMS): Remove imported boolean, no longer needed. | |
21533 | (Normalize_Pathname)[VMS]: Do not resolve directory names. | |
21534 | (Pid_To_Integer): New function to convert a Process_Id to Integer | |
21535 | ||
21536 | 2006-10-31 Thomas Quinot <quinot@adacore.com> | |
21537 | ||
21538 | * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling | |
21539 | sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components | |
21540 | to No_Socket. | |
21541 | (Selector_Type): Add default value of No_Socket for R_Sig_Socket and | |
21542 | W_Sig_Socket. | |
21543 | ||
21544 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
21545 | ||
21546 | * g-speche.ads, g-speche.adb: Add special case to recognize misspelling | |
21547 | initial letter o as a zero. | |
21548 | ||
21549 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
21550 | ||
21551 | * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First | |
21552 | ||
21553 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
21554 | ||
d4c15061 | 21555 | * layout.adb (Layout_Record_Type): Deal with non-static subtypes of |
21556 | variant records | |
21557 | (Layout_Variant_Record): Retrieve the discriminants from the entity | |
6b95ae38 | 21558 | rather than from the type definition, because in the case of a full |
21559 | type for a private type we need to take the discriminants from the | |
21560 | partial view. | |
d4c15061 | 21561 | (Layout_Component_List): When applying the Max operator to variants with |
21562 | a nonstatic size, check whether either operand is static and scale that | |
21563 | operand from bits to storage units before applying Max. | |
6b95ae38 | 21564 | (Layout_Type): In VMS, if a C-convention access type has no explicit |
21565 | size clause (and does not inherit one in the case of a derived type), | |
21566 | then the size is reset to 32 from 64. | |
21567 | ||
21568 | 2006-10-31 Vincent Celier <celier@adacore.com> | |
21569 | ||
21570 | * lib-load.adb (Load_Unit): Skip the test for a unit not found when | |
21571 | its file has already been loaded, according to the unit being loaded, | |
21572 | not to the current value of Multiple_Unit_Index. | |
21573 | ||
21574 | 2006-10-31 Thomas Quinot <quinot@adacore.com> | |
21575 | Eric Botcazou <ebotcazou@adacore.com> | |
21576 | Arnaud Charlet <charlet@adacore.com> | |
21577 | ||
21578 | * Makefile.in: Set EH mechanism to ZCX for FreeBSD. | |
21579 | (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if | |
21580 | possible. | |
21581 | (a-except.o): Pass it to the compiler. | |
21582 | (gnatlib-shared-vms): Removed -nostartfiles switch in link step. | |
21583 | (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific | |
21584 | a-calend-mingw.adb version. | |
21585 | ||
d4c15061 | 21586 | * Makefile.rtl: Added s-dsaser. |
6b95ae38 | 21587 | Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones] |
21588 | (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and | |
21589 | Ada.Dispatching.Round_Robin. | |
21590 | Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists | |
21591 | ||
21592 | * Make-lang.in: Remove all references to gt-ada-decl.h. | |
21593 | Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler | |
21594 | sources. | |
21595 | Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects. | |
21596 | Update dependencies. | |
21597 | ||
21598 | * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD | |
21599 | ||
21600 | 2006-10-31 Vincent Celier <celier@adacore.com> | |
21601 | ||
21602 | * mlib-utl.adb (Initialized): Remove, no longer used | |
21603 | (Initialize): Remove, no longer used | |
21604 | (Ar): If Ar_Exec is null, get the location of the archive builder and, | |
21605 | if there is one, the archive indexer. Fail if the archive builder cannot | |
21606 | be found. | |
21607 | (Gcc): If the driver path is unknown, get it. Fail if the driver cannot | |
21608 | be found. | |
21609 | ||
21610 | 2006-10-31 Ed Schonberg <schonberg@adacore.com> | |
21611 | ||
21612 | * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs, | |
21613 | Process_Body_Clauses): If the context of a body includes a use clause | |
21614 | for P.Q then a with_clause for P in the same body is not redundant, | |
21615 | even if the spec also has a with_clause on P. | |
21616 | Add missing continuation mark to error msg | |
21617 | (Build_Limited_Views): A limited view of a type is tagged if its | |
21618 | declaration includes a record extension. | |
21619 | (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit | |
21620 | node, even if the subunit has errors. This avoids malfunction by | |
21621 | Lib.Check_Same_Extended_Unit in the presence of syntax errors. | |
21622 | (Analyze_Compilation_Unit): Add circuit to make sure we get proper | |
21623 | generation of obsolescent messages for with statements (cannot do | |
21624 | this too early, or we cannot implement avoiding the messages in the | |
21625 | case of obsolescent units withing obsolescent units). | |
21626 | (Install_Siblings): If the with_clause is on a remote descendant of | |
21627 | an ancestor of the current compilation unit, find whether there is | |
21628 | a sibling child unit that is immediately visible. | |
21629 | (Remove_Private_With_Clauses): New procedure, invoked after completing | |
21630 | the analysis of the private part of a nested package, to remove from | |
21631 | visibility the private with_clauses of the enclosing package | |
21632 | declaration. | |
21633 | (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is | |
21634 | now centralized in Generate_Reference. | |
21635 | (Install_Limited_Context_Clauses): Remove superfluous error | |
21636 | message associated with unlimited view visible through use | |
21637 | and renamings. In addition, at the point in which the error | |
21638 | is reported, we add the backslash to the text of the error | |
21639 | to ensure that it is reported as a single error message. | |
21640 | Use new // insertion for some continuation messages | |
21641 | (Expand_Limited_With_Clause): Use copy of name rather than name itself, | |
21642 | to create implicit with_clause for parent unit mentioned in original | |
21643 | limited_with_clause. | |
21644 | (Install_Limited_With_Unit): Set entity of parent identifiers if the | |
21645 | unit is a child unit. For ASIS queries. | |
21646 | (Analyze_Subunit): If the subunit appears within a child unit, make all | |
21647 | ancestor child units directly visible again. | |
21648 | ||
21649 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
21650 | ||
21651 | * par-ch10.adb (P_Context_Clause): Minor error message fix | |
21652 | ||
21653 | 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com> | |
21654 | Javier Miranda <miranda@adacore.com> | |
21655 | ||
21656 | * par-ch12.adb: Grammar update and cleanup. | |
21657 | (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add | |
21658 | support for synchronized derived type definitions. | |
21659 | Add the new actual Abstract_Present to every call to | |
21660 | P_Interface_Type_Definition. | |
21661 | (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of | |
21662 | a formal object declaration with an access definition or a subtype mark | |
21663 | with a null exclusion. | |
21664 | (P_Generic_Association): Handle association with box, and others_choice | |
21665 | with box, to support Ada 2005 partially parametrized formal packages. | |
21666 | ||
21667 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
21668 | Javier Miranda <miranda@adacore.com> | |
d4c15061 | 21669 | |
6b95ae38 | 21670 | * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses |
21671 | (P_Type_Declaration): Remove barrier against the reserved word "limited" | |
21672 | after "abstract" to give support to the new syntax of AARM 3.4 (2/2). | |
21673 | (P_Type_Declaration): Minor code cleanup. Add support for synchronized | |
21674 | private extensions. | |
21675 | (P_Type_Declaration): Add the new actual Abstract_Present to every call | |
21676 | to P_Interface_Type_Definition. | |
21677 | (P_Interface_Type_Definition): Addition of one formal to report an error | |
21678 | if the reserved word abstract has been previously found. | |
21679 | (P_Identifier_Declarations): Update grammar rules. Handle parsing of an | |
21680 | object renaming declaration with an access definition or subtype mark | |
21681 | with a possible null exclusion. | |
21682 | ||
21683 | * par-ch9.adb: Minor error msg fix | |
21684 | ||
21685 | * par-load.adb: Add missing continuation mark to error msg | |
21686 | ||
21687 | * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation | |
21688 | ||
21689 | 2006-10-31 Vincent Celier <celier@adacore.com> | |
21690 | ||
21691 | * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for | |
21692 | unknown attribute in unknown package or in package that does not need | |
21693 | to be checked. | |
21694 | (Parse_Package_Declaration): Do not issue warning for unknown package in | |
21695 | quiet output. | |
21696 | ||
21697 | 2006-10-31 Vincent Celier <celier@adacore.com> | |
21698 | ||
21699 | * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant | |
21700 | (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter | |
21701 | Packages_To_Check. | |
21702 | ||
21703 | 2006-10-31 Vincent Celier <celier@adacore.com> | |
21704 | ||
21705 | * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S | |
21706 | on VMS, change "__" to '.' before checking the name. | |
21707 | (Record_Ada_Source): Always add the source file name in the list of | |
21708 | of sources, even if it is not the first time, as it is for another | |
21709 | source index. | |
21710 | (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single | |
21711 | dot, instead of replacing only the first '_'. | |
21712 | ||
21713 | * prj-part.adb (Parse): Convert project file path to canonical form | |
21714 | ||
21715 | * prj-proc.adb (Recursive_Process): Make sure that, when a project is | |
21716 | extended, the project id of the project extending it is recorded in its | |
21717 | data, even when it has already been processed as an imported project. | |
21718 | ||
21719 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
21720 | ||
21721 | * repinfo.adb (List_Entities): Don't list entities from renaming | |
21722 | declarations. | |
21723 | ||
21724 | 2006-10-31 Arnaud Charlet <charlet@adacore.com> | |
21725 | Robert Dewar <dewar@adacore.com> | |
21726 | ||
21727 | * restrict.ads, restrict.adb (Restriction_Active): Now returns False if | |
21728 | only a restriction warning is active for the given restriction. This is | |
21729 | desirable because we do not want to modify code in the case where only | |
21730 | a warning is set. | |
21731 | (Set_Profile_Restrictions): Make sure that a Profile_Warnings never | |
21732 | causes overriding of real restrictions. | |
21733 | Take advantage of new No_Restrictions constant. | |
21734 | ||
21735 | * raise.h: (__gnat_set_globals): Change profile. | |
21736 | ||
21737 | 2006-10-31 Arnaud Charlet <charlet@adacore.com> | |
6b95ae38 | 21738 | |
d4c15061 | 21739 | * rtsfind.adb: Remove s-polint from comment as it exists no more. |
21740 | ||
7c066666 | 21741 | * rtsfind.ads: |
d4c15061 | 21742 | Move entity RE_Get_Active_Partition_Id to package System.DSA_Services. |
21743 | Move all the entities in obsolete package System.PolyORB_Interface to | |
21744 | System.Partition_Interface. | |
6b95ae38 | 21745 | (RE_Storage_Size): New function in System.Tasking. |
21746 | (RE_Get_Ceiling): New entity. | |
21747 | (RE_Set_Ceiling): New entity. | |
21748 | (RO_PE_Get_Ceiling): New entity. | |
21749 | (RO_RE_Set_Ceiling): New entity. | |
21750 | (Inherit_CPP_DT): New entity | |
21751 | ||
21752 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
21753 | ||
21754 | * scng.adb (Scan, case of numeric literal): Better msg for identifier | |
21755 | starting with a digit. | |
21756 | ||
21757 | 2006-10-31 Ed Schonberg <schonberg@adacore.com> | |
21758 | Thomas Quinot <quinot@adacore.com> | |
21759 | Javier Miranda <miranda@adacore.com> | |
21760 | Gary Dismukes <dismukes@adacore.com> | |
21761 | ||
21762 | * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose | |
21763 | properly an attempt to apply Unchecked_Access to a protected operation. | |
21764 | (OK_Self_Reference): New subprogram to check the legality of an access | |
21765 | attribute whose prefix is the type of an enclosing aggregate. | |
21766 | Generalizes previous mechanism to handle attribute references nested | |
21767 | arbitrarily deep within the aggregate. | |
21768 | (Analyze_Access_Attribute): An access attribute whose prefix is a type | |
21769 | can appear in an aggregate if this is a default-initialized aggregate | |
21770 | for a self-referential type. | |
21771 | (Resolve_Attribute, case Access): Ditto. | |
21772 | Add support for new implementation defined attribute Stub_Type. | |
21773 | (Eval_Attribute, case Attribute_Stub_Type): New case. | |
21774 | (Analyze_Attribute, case Attribute_Stub_Type): New case. | |
21775 | (Stream_Attribute_Available): Implement using new subprogram from | |
21776 | sem_cat, Has_Stream_Attribute_Definition, instead of incorrect | |
21777 | Has_Specified_Stream_Attribute flag. | |
21778 | Disallow Storage_Size and Storage_Pool for access to subprogram | |
21779 | (Resolve_Attribute, case 'Access et al): Take into account anonymous | |
21780 | access types of return subtypes in extended return statements. Remove | |
21781 | accessibility checks on anonymous access types when Unchecked_Access is | |
21782 | used. | |
21783 | (Analyze_Attribute): Add support for the use of 'Class to convert | |
21784 | a class-wide interface to a tagged type. | |
21785 | Add support for the attribute Priority. | |
21786 | (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for | |
21787 | whether the designated type is discriminated with a constrained partial | |
21788 | view and require static matching in that case. | |
21789 | Add local variable Des_Btyp. The Designated_Type | |
21790 | of an access to incomplete subtype is either its non-limited view if | |
21791 | coming from a limited with or its etype if regular incomplete subtype. | |
21792 | ||
21793 | * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type): | |
21794 | Fix predicate to identify and allow cases of (expander-generated) | |
21795 | references to tag of designated object of a RACW. | |
21796 | (Validate_Static_Object_Name): In Ada 2005, a formal object is | |
21797 | non-static, and therefore cannot appear as a primary in a preelaborable | |
21798 | package. | |
21799 | (Has_Stream_Attribute_Definition): New subprogram, abstracted from | |
21800 | Has_Read_Write_Attributes. | |
21801 | (Has_Read_Write_Attributes): Reimplement in termes of | |
21802 | Has_Stream_Attribute_Definition. | |
21803 | (Missing_Read_Write_Attributes): When checking component types in a | |
21804 | record, unconditionally call Missing_Read_Write_Attributes recursively | |
21805 | (remove guard checking for Is_Record_Type / Is_Access_Type). | |
21806 | ||
21807 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
21808 | ||
21809 | * sem_ch11.adb (Analyze_Handled_Statements): Move final test for | |
21810 | useless assignments here and conditionalize it on absence of exception | |
21811 | handlers. | |
21812 | (Analyze_Exception_Handlers): Small code reorganization of error | |
21813 | detection code, for new handling of formal packages. | |
21814 | ||
21815 | 2006-10-31 Ed Schonberg <schonberg@adacore.com> | |
21816 | Hristian Kirtchev <kirtchev@adacore.com> | |
d4c15061 | 21817 | |
21818 | * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator | |
6b95ae38 | 21819 | that has been constant-folded, preserve information of original tree, |
21820 | for ASIS uses. | |
21821 | (Analyze_Formal_Derived_Type): Set the limited present flag of the newly | |
21822 | generated private extension declaration if the formal derived type is | |
21823 | synchronized. Carry synchronized present over to the generated private | |
21824 | extension. | |
21825 | (Validate_Derived_Type_Instance): Ensure that the actual of a | |
21826 | synchronized formal derived type is a synchronized tagged type. | |
21827 | (Instantiate_Formal_Package): When creating the instantiation used to | |
21828 | validate the actual package of a formal declared without a box, check | |
21829 | whether the formal itself depends on a prior actual. | |
21830 | (Instantiate_Formal_Subprogram): Create new entities for the defining | |
21831 | identifiers of the formals in the renaming declaration, for ASIS use. | |
21832 | (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating | |
21833 | a renaming declaration or a subtype declaration for an actual in an | |
21834 | instance, capture location information of declaration in generic, for | |
21835 | ASIS use. | |
21836 | (Instantiate_Formal_Package): Add comments on needed additional tests. | |
21837 | AI-317 (partial parametrization) is fully implemented. | |
21838 | (Validate_Private_Type_Instance): Add check for actual which | |
21839 | must have preelaborable initialization | |
21840 | Use new // insertion for some continuation messages | |
21841 | (Analyze_Formal_Object_Declaration): Change usage of Expression to | |
21842 | Default_Expression. Add type retrieval when the declaration has an | |
21843 | access definition. Update premature usage of incomplete type check. | |
21844 | (Check_Access_Definition): New subsidiary routine. Check whether the | |
21845 | current compilation version is Ada 05 and the supplied node has an | |
21846 | access definition. | |
21847 | (Instantiate object): Alphabetize local variables. Handle the creation | |
21848 | of new renaming declarations with respect to the kind of definition | |
21849 | used - either an access definition or a subtype mark. Guard against | |
21850 | unnecessary error message in the context of anonymous access types after | |
21851 | they have been resolved. Add check for required null exclusion in a | |
21852 | formal object declaration. | |
21853 | (Switch_View): A private subtype of a non-private type needs to be | |
21854 | switched (the base type can have been switched without its private | |
21855 | dependents because of the last branch of Check_Private_View. | |
21856 | (Check_Private_View): Do not recompute Base_Type (T), instead use cached | |
21857 | value from BT. | |
21858 | (Instantiate_Type): Emit an error message whenever a class-wide type of | |
21859 | a tagged incomplete type is used as a generic actual. | |
21860 | (Find_Actual_Type): Extend routine to handle a component type in a child | |
21861 | unit that is imported from a formal package in a parent. | |
21862 | (Validate_Derived_Type_Instance): Check that analyzed formal and actual | |
21863 | agree on constrainedness, rather than checking against ultimate ancestor | |
21864 | (Instantiate_Subprogram_Body): Create a cross-reference link to the | |
21865 | generic body, for navigation purposes. | |
21866 | ||
21867 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
21868 | Thomas Quinot <quinot@adacore.com> | |
21869 | ||
21870 | * sem_ch13.adb: Storage pool cannot be given for access to subprogram | |
21871 | type. | |
21872 | (New_Stream_Subprogram): When processing an attribute definition clause | |
21873 | for a stream-oriented subprogram, record an entity node occurring at | |
21874 | the point of clause to use for checking the visibility of the clause, | |
21875 | as defined by 8.3(23) as amended by AI-195. | |
21876 | (New_Stream_Subprogram): New procedure, factoring behaviour from both | |
21877 | New_Stream_Function and New_Stream_Procedure. | |
21878 | (New_Stream_Function, New_Stream_Procedure): Removed. | |
21879 | (Analyze_Attribute_Definition_Clause, case Address): Check new | |
21880 | Alignment_Check check | |
21881 | ||
21882 | 2006-10-31 Ed Schonberg <schonberg@adacore.com> | |
21883 | Javier Miranda <miranda@adacore.com> | |
21884 | Robert Dewar <dewar@adacore.com> | |
21885 | ||
21886 | * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we | |
21887 | generate the same errors compiling under -gnatc. | |
21888 | (Try_Object_Operation): If no candidate interpretation succeeds, but | |
21889 | there is at least one primitive operation with the right name, report | |
21890 | error in call rather than on a malformed selected component. | |
21891 | (Analyze_Selected_Component): If the prefix is an incomplete type from | |
21892 | a limited view, and the full view is available, use the full view to | |
21893 | determine whether this is a prefixed call to a primitive operation. | |
21894 | (Operator_Check): Verify that a candidate interpretation is a binary | |
21895 | operation before checking the type of its second formal. | |
21896 | (Analyze_Call): Add additional warnings for function call contexts not | |
21897 | yet supported. | |
21898 | (Analyze_Allocator): Move the check for "initialization not allowed for | |
21899 | limited types" after analyzing the expression. This is necessary, | |
21900 | because OK_For_Limited_Init looks at the structure of the expression. | |
21901 | Before analysis, we don't necessarily know what sort of expression it | |
21902 | is. For example, we don't know whether F(X) is a function call or an | |
21903 | indexed component; the former is legal in Ada 2005; the latter is not. | |
21904 | (Analyze_Allocator): Correct code for AI-287 -- extension aggregates | |
21905 | were missing. We also didn't handle qualified expressions. Now also | |
21906 | allow function calls. Use new common routine OK_For_Limited_Init. | |
21907 | (Analyze_Type_Conversion): Do not perform some legality checks in an | |
21908 | instance, because the error message will be redundant or spurious. | |
21909 | (Analyze_Overloaded_Selected_Component): Do not do style check when | |
21910 | setting an entity, since we do not know it is the right entity yet. | |
21911 | (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res | |
21912 | (Analyze_Overloaded_Selected_Component): Same change | |
21913 | (Analyze_Selected_Component): Remove unnecessary prefix type retrieval | |
21914 | since regular incomplete subtypes are transformed into corresponding | |
21915 | subtypes of their full views. | |
21916 | (Complete_Object_Operation): Treat name of transformed subprogram call | |
21917 | as coming from source, for browsing purposes. | |
21918 | (Try_Primitive_Operation): If formal is an access parameter, compare | |
21919 | with base type of object to determine whether it is a primitive | |
21920 | operation. | |
21921 | (Operator_Check): If no interpretation of the operator matches, check | |
21922 | whether a use clause on any candidate might make the operation legal. | |
21923 | (Try_Class_Wide_Operation): Check whether the first parameter is an | |
21924 | access type whose designated type is class-wide. | |
21925 | ||
21926 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
21927 | Ed Schonberg <schonberg@adacore.com> | |
21928 | Gary Dismukes <dismukes@adacore.com> | |
21929 | ||
21930 | * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to | |
21931 | warn on infinite loops. | |
21932 | Add \\ to some continuation messages | |
21933 | (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment | |
21934 | (Process_Bounds): If the bounds are integer literals that result from | |
21935 | constant-folding, and they carry a user-defined type, preserve that type | |
21936 | rather than treating this as an integer range. | |
21937 | (Analyze_Exit_Statement): Test for E_Return_Statement in legality check. | |
21938 | (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check. | |
21939 | (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for | |
21940 | left hand side of assignment. | |
21941 | (Analyze_Assignment): Add suport to manage assigments to the attribute | |
21942 | priority of a protected object. | |
21943 | (Check_Possible_Current_Value_Condition): Allow fully qualified names | |
21944 | not just identifiers. | |
21945 | (Check_Possible_Current_Value_Condition): Acquire left operand of AND | |
21946 | or AND THEN for possible tracking. | |
21947 | (Analyze_Iteration_Scheme): Check for setting Current_Value for the | |
21948 | case of while loops so we can track values in the loop body. | |
21949 | ||
21950 | 2006-10-31 Ed Schonberg <schonberg@adacore.com> | |
21951 | Hristian Kirtchev <kirtchev@adacore.com> | |
21952 | Bob Duff <duff@adacore.com> | |
d4c15061 | 21953 | |
6b95ae38 | 21954 | * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null |
21955 | procedure cannot be a protected operation (it is a basic_declaration, | |
21956 | not a subprogram_declaration). | |
21957 | (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_ | |
21958 | Subp. Add logic for entry processing. | |
21959 | (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity. | |
21960 | Determine whether an entry or subprogram of a protected or task type | |
21961 | override an inherited primitive of an implemented interface. | |
21962 | (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding. | |
21963 | Update the actual used in calls to Check_Overriding_Indicator. | |
21964 | (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit, | |
21965 | generate the proper reference to the parent unit, for cross-reference. | |
21966 | (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with | |
21967 | Is_Formal. | |
21968 | Add -gnatd.l --Use Ada 95 semantics for limited function returns, | |
21969 | (Add_Extra_Formal): Revise procedure to allow passing in associated | |
21970 | entity, scope, and name suffix, and handle setting of the new | |
21971 | Extra_Formals field. | |
21972 | (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to | |
21973 | pass new parameters. Add support for adding the new extra access formal | |
21974 | for functions whose calls are treated as build-in-place. | |
21975 | (Analyze_A_Return_Statement): Correct casing in error message. | |
21976 | Move Pop_Scope to after Analyze_Function_Return, because an extended | |
21977 | return statement really is a full-fledged scope. Otherwise, visibility | |
21978 | doesn't work right. Correct use of "\" for continuation messages. | |
21979 | (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than | |
21980 | evilly trying to call Analyze_Object_Declaration directly. Otherwise, | |
21981 | the node doesn't get properly marked as analyzed. | |
21982 | (Analyze_Subprogram_Body): If subprogram is a function that returns | |
21983 | an anonymous access type that denotes a task, build a Master Entity | |
21984 | for it. | |
21985 | (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify | |
21986 | proper usage of null exclusion in a result definition. | |
21987 | (Process_Formals): Code cleanup and new error message. | |
21988 | (Process_Formals): Detect incorrect application of null exclusion to | |
21989 | non-access types. | |
21990 | (Conforming_Types): Handle conformance between [sub]types and itypes | |
21991 | generated for entities that have null exclusions applied to them. | |
21992 | (Maybe_Primitive_Operation): Add an additional type retrieval when the | |
21993 | base type is an access subtype. This case arrises with null exclusions. | |
21994 | (New_Overloaded_Entity): Do not remove the overriden entity from the | |
21995 | homonym chain if it corresponds with an abstract interface primitive. | |
21996 | (Process_Formals): Replace membership test agains Incomplete_Kind with a | |
21997 | call to the synthesized predicate Is_Incomplete_Type. | |
21998 | (Analyze_Subprogram_Body): Check wrong placement of abstract interface | |
21999 | primitives. | |
22000 | (Analyze_Subprogram_Declaration): Check that abstract interface | |
22001 | primitives are abstract or null. | |
22002 | (Analyze_Subprogram_Specification): Remove previous check for abstract | |
22003 | interfaces because it was not complete. | |
22004 | (Has_Interface_Formals): Removed. | |
22005 | ||
22006 | 2006-10-31 Ed Schonberg <schonberg@adacore.com> | |
22007 | Javier Miranda <miranda@adacore.com> | |
22008 | ||
22009 | * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary | |
22010 | of Analyze_Package_Body, to create Itype references for anonymous | |
22011 | access types created in the package declaration, whose designated types | |
22012 | may have only a limited view. | |
22013 | (Analyze_Package_Specification): For the private part of a nested | |
22014 | package, install private_with_clauses of enclosing compilation unit if | |
22015 | we are in its visible part. | |
22016 | (Declare_Inherited_Private_Subprograms): Complete barrier | |
22017 | to ensure that the primitive operation has an alias to some parent | |
22018 | primitive. This is now required because, after the changes done for the | |
22019 | implementation of abstract interfaces, the contents of the list of | |
22020 | primitives has entities whose alias attribute references entities of | |
22021 | such list of primitives. | |
22022 | (Analyze_Package_Specification): Simplify code that handles parent units | |
22023 | of instances and formal packages. | |
22024 | (Uninstall_Declarations): Check the convention consistency among | |
22025 | primitive overriding operations of a tagged record type. | |
22026 | ||
22027 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
22028 | Hristian Kirtchev <kirtchev@adacore.com> | |
22029 | Javier Miranda <miranda@adacore.com> | |
22030 | Ed Schonberg <schonberg@adacore.com> | |
d4c15061 | 22031 | |
6b95ae38 | 22032 | * sem_ch8.adb: Minor error msg rewording |
22033 | (Undefined): When checking for misspellings, invert arguments (to get | |
22034 | expected and found set right) | |
22035 | (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated | |
22036 | (Analyze_Generic_Renaming): Same fix | |
22037 | (Use_One_Package): Do not take into account the internal entities of | |
22038 | abstract interfaces during the analysis of entities that are marked | |
22039 | as potentially use-visible. | |
22040 | (Find_Type): Handle the case of an attribute reference for | |
22041 | implementation defined attribute Stub_Type (simply let the analysis of | |
22042 | the attribute reference rewrite it). | |
22043 | (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a | |
22044 | type that appears in a Use_Type clause. | |
22045 | (Analyze_Object_Renaming): Add support for renaming of the Priority | |
22046 | attribute. | |
22047 | (Find_Type): In Ada 2005, a task type can be used within its own body, | |
22048 | when it appears in an access definition. | |
22049 | (Analyze_Object_Renaming): Remove warning on null_exclusion. | |
22050 | (Analyze_Object_Renaming): Introduce checks for required null exclusion | |
22051 | in a formal object declaration or in a subtype declaration. | |
22052 | (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion. | |
22053 | (Check_Null_Exclusion): New local routine to | |
22054 | Analyze_Subprogram_Renaming. Check whether the formals and return | |
22055 | profile of a renamed subprogram have required null exclusions when | |
22056 | their counterparts of the renaming already impose them. | |
22057 | (In_Generic_Scope): New local routine to Analyze_Object_Renaming. | |
22058 | Determine whether an entity is inside a generic scope. | |
22059 | (In_Open_Scope): First pass of documentation update. | |
22060 | (Find_Expanded_Name): Add support for shadow entities associated with | |
22061 | limited withed packages. This is required to handle nested packages. | |
22062 | (Analyze_Package_Renaming): Remove the restriction imposed by AI-217 | |
22063 | that makes a renaming of a limited withed package illegal. | |
22064 | ||
22065 | 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com> | |
22066 | Ed Schonberg <schonberg@adacore.com> | |
22067 | ||
22068 | * sem_ch9.adb (Analyze_Protected_Definition): Remove call to | |
22069 | Check_Overriding_Indicator. | |
22070 | (Analyze_Task_Definition): Ditto. | |
22071 | (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup. | |
22072 | (Check_Overriding_Indicator): To find overridden interface operation, | |
22073 | examine only homonyms that have an explicit subprogram declaration, not | |
22074 | inherited operations created by an unrelated type derivation. | |
22075 | (Check_Overriding_Indicator): When checking for the presence of "null" | |
22076 | in a procedure, ensure that the queried node is a procedure | |
22077 | specification. | |
22078 | (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter | |
22079 | type when the formal is an access to variable. | |
22080 | (Analyze_Protected_Type): Add check for Preelaborable_Initialization | |
22081 | (Analyze_Task_Type): Same addition | |
22082 | (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to | |
22083 | provide navigation capabilities for entries. | |
22084 | ||
22085 | 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com> | |
22086 | Ed Schonberg <schonberg@adacore.com> | |
22087 | Javier Miranda <miranda@adacore.com> | |
22088 | Gary Dismukes <dismukes@adacore.com> | |
22089 | ||
22090 | * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms | |
22091 | inherited from an interface ancestor by another interface in the | |
22092 | context of an instance as 'late'. | |
22093 | (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference | |
22094 | of a call to a function that dispatches on access result. | |
22095 | (Check_Dispatching_Operation): In case of late overriding of a primitive | |
22096 | that covers abstract interface subprograms we register it in all the | |
22097 | secondary dispatch tables associated with abstract interfaces. | |
22098 | (Check_Dispatching_Call): Add check that a dispatching call is not made | |
22099 | to a function with a controlling result of a limited type. This is a | |
22100 | current implementation restriction. | |
22101 | (Check_Controlling_Formal): Remove bogus checks for E.2.2(14). | |
22102 | (Check_Dispatching_Operation): Do no emit a warning if the controlling | |
22103 | argument is an interface type that is a generic formal. | |
22104 | (Is_Interface_Subprogram): Removed. | |
22105 | (Check_Dispatching_Operation): If the subprogram is not a dispatching | |
22106 | operation, check the formals to handle the case in which it is | |
22107 | associated with an abstract interface type. | |
22108 | ||
22109 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
22110 | Ed Schonberg <schonberg@adacore.com> | |
22111 | ||
22112 | * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure | |
22113 | Add new calls to this procedure during traversal | |
22114 | (Activate_Elaborate_All_Desirable): Do not set elaboration flag on | |
22115 | another unit if expansion is disabled. | |
22116 | ||
22117 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
22118 | ||
22119 | * sem_eval.adb (Compile_Time_Compare): Make use of information from | |
22120 | Current_Value in the conditional case, to evaluate additional | |
22121 | comparisons at compile time. | |
22122 | ||
22123 | 2006-10-31 Ed Schonberg <schonberg@adacore.com> | |
22124 | Hristian Kirtchev <kirtchev@adacore.com> | |
22125 | Javier Miranda <miranda@adacore.com> | |
22126 | ||
22127 | * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve | |
22128 | subprogram type to provide better diagnostics in case of ambiguity. | |
22129 | (Covers): Handle coverage of formal and actual anonymous access types in | |
22130 | the context of generic instantiation. | |
22131 | (Covers/Interface_Present_In_Ancestors): Use the base type to manage | |
22132 | abstract interface types; this is required to handle concurrent types | |
22133 | with discriminants and abstract interface types. | |
22134 | (Covers): Include type coverage of both regular incomplete subtypes and | |
22135 | incomplete subtypes of incomplete type visibles through a limited with | |
22136 | clause. | |
22137 | ||
22138 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
22139 | Hristian Kirtchev <kirtchev@adacore.com> | |
22140 | Ed Schonberg <schonberg@adacore.com> | |
d4c15061 | 22141 | |
22142 | * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning | |
6b95ae38 | 22143 | messages for entities in packages which are not used. |
22144 | (Collect_Synchronized_Interfaces): New procedure. | |
22145 | (Overrides_Synchronized_Primitive): New function. | |
22146 | (Denotes_Discriminant): Extend predicate to apply to task types. | |
22147 | Add missing continuation marks in error msgs | |
22148 | (Unqualify): New function for removing zero or more levels of | |
22149 | qualification from an expression. There are numerous places where this | |
22150 | ought to be used, but we currently only deal properly with zero or one | |
22151 | level. | |
22152 | (In_Instance); The analysis of the actuals in the instantiation of a | |
22153 | child unit is not within an instantiation, even though the parent | |
22154 | instance is on the scope stack. | |
22155 | (Safe_To_Capture_Value): Exclude the case of variables that are | |
22156 | renamings. | |
22157 | (Check_Obsolescent): Removed | |
22158 | (Is_Aliased_View): A reference to an enclosing instance in an aggregate | |
22159 | is an aliased view, even when rewritten as a reference to the target | |
22160 | object in an assignment. | |
22161 | (Get_Subprogram_Entity): New function | |
22162 | (Known_To_Be_Assigned): New function | |
22163 | (Type_Access_Level): Compute properly the access level of a return | |
22164 | subtype that is an anonymous access type. | |
22165 | (Explain_Limited_Type): Correct use of "\" for continuation messages. | |
22166 | (Is_Transfer): The new extended_return_statement causes a transfer of | |
22167 | control. | |
22168 | (Has_Preelaborable_Initialization): New function | |
22169 | (Has_Null_Exclusion): New function. Given a node N, determine whether it | |
22170 | has a null exclusion depending on its Nkind. | |
22171 | Change Is_Lvalue to May_Be_Lvalue | |
22172 | (May_Be_Lvalue): Extensive additional code to deal with subprogram | |
22173 | arguments (IN parameters are not Lvalues, IN OUT parameters are). | |
22174 | (Safe_To_Capture_Value): Extend functionality so it can be used for | |
22175 | the current value condition case. | |
22176 | (Has_Compatible_Alignment): New function | |
22177 | (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable | |
22178 | objects to handle the Ada 2005 case, where aliasedness no longer implies | |
22179 | that the object is constrained. In particular, for dereferenced names, | |
22180 | the designated object must be assumed to be unconstrained. | |
22181 | (Kill_Current_Values): Properly deal with the case where we encounter | |
22182 | a loop in the scope chain. | |
22183 | (Safe_To_Capture_Value): Do not let a loop stop us from capturing | |
22184 | a value. | |
22185 | (Compile_Time_Constraint_Error): Improve error message in error case | |
22186 | ||
22187 | * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node | |
22188 | associated with entities of abstract interface primitives. | |
22189 | Call Apply_Address_Clause_Check instead of Apply_Alignment_Check | |
22190 | ||
22191 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
22192 | ||
7c066666 | 22193 | * s-osinte-tru64.adb: |
6b95ae38 | 22194 | Mark Asm statements Volatile to prevent warnings (seems a |
22195 | reasonable change anyway) | |
22196 | Fixes new warnings | |
22197 | ||
22198 | * s-mastop-irix.adb: Add Volatile to Asm statements | |
22199 | Suppresses warning, and seems appropriate in any case | |
22200 | ||
22201 | * s-osinte-vms.adb: Add Volatile to Asm statement | |
22202 | ||
22203 | * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements | |
22204 | ||
22205 | * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be | |
22206 | returned. | |
22207 | Add call to Check_Code_Statement | |
22208 | ||
22209 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
22210 | Ed Schonberg <schonberg@adacore.com> | |
22211 | Bob Duff <duff@adacore.com> | |
22212 | ||
22213 | * sinfo.ads, sinfo.adb (Set_Synchronized_Present, | |
22214 | Synchronized_Present): Add Formal_Derived_Type_Definition and | |
22215 | Private_Extension_Declaration to the list of assertions. | |
22216 | (Is_Entry_Barrier_Function): New flag | |
22217 | (Has_Self_Reference): New flag on aggregates, to indicate that they | |
22218 | contain a reference to the enclosing type, inserted through a default | |
22219 | initialization. | |
22220 | (Next_Rep_Item): Move from Node4 to Node5. | |
22221 | (Entity): Add this field for N_Attribute_Definition_Clause. | |
22222 | (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement | |
22223 | (N_Return_Object_Declaration): Remove this node kind. We now use | |
22224 | N_Object_Declaration instead. | |
22225 | (Actual_Designated_Subtype): Move to a different place to make room in | |
22226 | N_Extended_Return_Statement. | |
22227 | (Procedure_To_Call): Move to a different place to make room in | |
22228 | N_Extended_Return_Statement. | |
22229 | (Return_Type): Removed this field to make room in return statements | |
22230 | (both kinds). | |
22231 | (Return_Statement_Entity): New field in return statements, in part to | |
22232 | replace Return_Type, and in part to support the fact that return | |
22233 | statements are now pushed on the scope stack during semantic analysis. | |
22234 | (Return_Object_Declarations): New field to support extended return | |
22235 | statements. | |
22236 | (N_Extended_Return_Statement): New node for extended_return_statement | |
22237 | nonterminal. | |
22238 | (N_Return_Object_Declaration): New node for part of | |
22239 | extended_return_statement nonterminal. Needed because all the necessary | |
22240 | fields won't fit in N_Extended_Return_Statement. | |
22241 | Generic_associations now carry the Box_Present flag, to indicate a | |
22242 | default for an actual in a partially parametrized formal package. | |
22243 | ||
d4c15061 | 22244 | * snames.h, snames.ads, snames.adb: Add definition for Validity_Check |
6b95ae38 | 22245 | (Preset_Names): Add entries for Priority_Specific_Dispatching pragma |
22246 | and for the new predefined dispatching policies: EDF_Across_Priorities, | |
22247 | Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities. | |
22248 | Introduce new name Stub_Type for implementation defined attribute. | |
22249 | Add pragma Preelaborable_Initialization | |
22250 | Add entry for Priority attribute. | |
22251 | Add Pragma_Wide_Character_Encoding | |
22252 | (Get_Convention_Name): Given a convention id, this function returns the | |
22253 | corresponding name id from the names table. | |
22254 | ||
22255 | 2006-10-31 Ed Schonberg <schonberg@adacore.com> | |
22256 | Robert Dewar <dewar@adacore.com> | |
22257 | Bob Duff <duff@adacore.com> | |
22258 | ||
22259 | * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not | |
22260 | print null exclusion twice in the case of an access definition, | |
22261 | Implement new -gnatL switch | |
22262 | Remove N_Return_Object_Declaration. We now use | |
22263 | N_Object_Declaration instead. Implement the case for | |
22264 | N_Extended_Return_Statement. Alphabetize the cases. | |
22265 | Add cases for new nodes N_Extended_Return_Statement and | |
22266 | N_Return_Object_Declaration. The code is not yet written. | |
22267 | Update the output for N_Formal_Object_Declaration | |
22268 | and N_Object_Renaming_Declaration. | |
22269 | (Write_Itype): Account for the case of a modular integer subtype whose | |
22270 | base type is private. | |
22271 | ||
22272 | 2006-10-31 Arnaud Charlet <charlet@adacore.com> | |
22273 | ||
22274 | * s-restri.ads, s-restri.adb: Mark this package as Preelaborate. | |
22275 | Remove elaboration code, now done in the binder. | |
22276 | ||
22277 | * s-rident.ads: Make this unit Preelaborate. | |
22278 | (No_Restrictions): New constant used to clean up code and follow | |
22279 | preelaborate constraints. | |
22280 | ||
7c066666 | 22281 | * s-stalib.adb: |
6b95ae38 | 22282 | Add System.Restrictions dependence, referenced directly from the |
22283 | binder generated file. | |
22284 | ||
22285 | 2006-10-31 Gary Dismukes <dismukes@adacore.com> | |
22286 | ||
22287 | * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set | |
22288 | True when AAMP extended floating-point is in use (48-bit). Change type | |
22289 | ByteLF to ByteLLF, add new array type ByteLF and condition the size of | |
22290 | the two byte array types on AFloat. Change type of IV_Ilf overlay | |
22291 | variable from Byte8 to ByteLF. Add appropriate initializations of | |
22292 | floating-point overlays for AAMP cases. | |
22293 | ||
22294 | 2006-10-31 Javier Miranda <miranda@adacore.com> | |
22295 | ||
22296 | * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb | |
22297 | (Get_Ceiling): New subprogram that returns | |
22298 | the ceiling priority of the protected object. | |
22299 | (Set_Ceiling): New subprogram that sets the new ceiling priority of | |
22300 | the protected object. | |
22301 | ||
22302 | * s-tarest.adb: (Create_Restricted_Task): Fix potential CE. | |
22303 | ||
22304 | * s-taskin.ads, s-taskin.adb: (Storage_Size): New function. | |
22305 | ||
22306 | 2006-10-31 Jose Ruiz <ruiz@adacore.com> | |
22307 | ||
22308 | * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when | |
22309 | requeuing to the same protected object to give higher priority tasks | |
22310 | the opportunity to execute. | |
22311 | ||
22312 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
22313 | ||
22314 | * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding, | |
22315 | add more precise check for the character sequence that follows '[' to | |
22316 | avoid possible confusion in case if '[' is the last character of a | |
22317 | string literals. | |
22318 | (Scan_Wide): Always allow brackets encoding | |
22319 | ||
22320 | 2006-10-31 Olivier Hainque <hainque@adacore.com> | |
22321 | ||
22322 | * s-stchop.ads: make this unit preelaborate. This is desirable in | |
22323 | general and made mandatory by the use of this unit by s-taprop which | |
22324 | is itself preelaborate. | |
22325 | ||
22326 | * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add | |
22327 | Td_Events component. | |
22328 | ||
22329 | 2006-10-31 Vincent Celier <celier@adacore.com> | |
22330 | ||
22331 | * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed | |
22332 | in file names. | |
22333 | ||
22334 | 2006-10-31 Vincent Celier <celier@adacore.com> | |
22335 | ||
22336 | * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005 | |
22337 | ||
22338 | 2006-10-31 Vincent Celier <celier@adacore.com> | |
22339 | ||
22340 | * makegpr.adb (Check_Compilation_Needed): Take into account path names | |
22341 | with spaces. | |
22342 | (Check_Compilation_Needed): When checking a C or C++ source, do not | |
22343 | resolve symbolic links. | |
22344 | (Display_Command): New Boolean parameter Ellipse, defaulted to False. | |
22345 | When not in verbose mode and Ellipse is True, display "..." for the | |
22346 | first argument with Display set to False. | |
22347 | (Build_Global_Archive): Always set Display True for the first object | |
22348 | file. Call Display_Command with Ellipse set to True. | |
22349 | ||
22350 | 2006-10-31 Matt Heaney <heaney@adacore.com> | |
22351 | ||
22352 | * a-crbtgo.ads: Commented each subprogram | |
22353 | ||
22354 | * a-crbtgo.adb: Added reference to book from which algorithms were | |
22355 | adapted. | |
22356 | ||
d4c15061 | 22357 | * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to |
6b95ae38 | 22358 | indicate which child. |
22359 | (Generic_Conditional_Insert): changed parameter name from "Success" to | |
22360 | "Inserted". | |
22361 | (Generic_Unconditional_Insert_With_Hint): improved algorithm | |
22362 | ||
22363 | * a-coorse.adb (Replace_Element): changed parameter name in call to | |
22364 | conditional insert operation. | |
22365 | ||
22366 | * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment | |
22367 | ||
22368 | * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in | |
22369 | Generic_Iteration | |
22370 | ||
22371 | * a-ciorse.adb (Replace_Element): changed parameter name in call to | |
22372 | conditional insert operation. | |
22373 | ||
22374 | * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in | |
22375 | Generic_Iteration. | |
22376 | ||
22377 | * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in | |
22378 | instead of mode inout. | |
22379 | ||
22380 | * a-chtgop.adb (Adjust): modified comments to reflect current AI-302 | |
22381 | draft | |
22382 | (Generic_Read): preserve existing buckets array if possible | |
22383 | (Generic_Write): don't send buckets array length anymore | |
22384 | ||
22385 | * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in | |
22386 | instead of mode inout. | |
22387 | ||
22388 | * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets | |
22389 | (Iterate): manipulate busy-bit here, instead of in Generic_Iteration | |
22390 | ||
22391 | * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets | |
22392 | (Iterate): manipulate busy-bit here, instead of in Generic_Iteration | |
22393 | (Replace_Element): local operation is now an instantiation | |
22394 | ||
22395 | * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually | |
22396 | check current length. | |
22397 | (Generic_Replace_Element): new operation | |
22398 | ||
22399 | 2006-10-31 Doug Rupp <rupp@adacore.com> | |
22400 | ||
22401 | * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function. | |
22402 | Call TBK$SYMBOLIZE without omitting parameters. | |
22403 | ||
22404 | 2006-10-31 Vincent Celier <celier@adacore.com> | |
22405 | ||
22406 | * symbols-processing-vms-ia64.adb, | |
22407 | symbols-processing-vms-alpha.adb (Process): Do not include symbols | |
22408 | that come from generic instantiations in bodies. | |
22409 | ||
22410 | 2006-10-31 Pat Rogers <rogers@adacore.com> | |
22411 | ||
7c066666 | 22412 | * a-rttiev.ads, a-rttiev.adb: |
6b95ae38 | 22413 | This is a significant redesign primarily for the sake of automatic |
22414 | timer task termination but also to fix a design flaw. | |
22415 | Therefore we are now using an RTS lock, instead of a protected | |
22416 | object, to provide mutual exclusion to the queue of pending events | |
22417 | and the type Timing_Event is no longer a protected type. | |
22418 | ||
22419 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
22420 | Cyrille Comar <comar@adacore.com> | |
22421 | Ben Brosgol <brosgol@adacore.com> | |
22422 | ||
22423 | * debug.adb: Update flags documentation | |
22424 | ||
d4c15061 | 22425 | * gnat_ugn.texi: Add documentation for new -gnatwq switch |
22426 | Clean up documentation for several other warning switches | |
22427 | Clarify how task stack size can be specified with various | |
22428 | versions of Windows. | |
22429 | Add note that -gnatVo includes ranges including loops | |
6b95ae38 | 22430 | Add documentation for -gnatL switch |
22431 | Add note on elaboration warning for initializing variables | |
22432 | Add documentation for new -gnatwt warning switch | |
22433 | Document new form of pragma Warnings (On|Off, string) | |
22434 | Add comment on use of pragma Warnings to control warnings | |
22435 | Add documentation for -gnatjnn switch | |
22436 | Modify section on interfacing with C for VMS 64-bit. | |
22437 | Add doc for -gnatVe/E | |
22438 | Add documentation of new warning flags -gnatww/-gnatwW | |
22439 | Add warnings about address clause overlays to list of warnings | |
22440 | (Exception Handling Control): Document that the option --RTS must be | |
22441 | used consistently for gcc and gnatbind. | |
22442 | Clarify that inlining is not always possible | |
22443 | Update documentation on pragma Unchecked_Union. | |
22444 | ||
7c066666 | 22445 | * gnat_rm.texi: |
6b95ae38 | 22446 | Add documentation for new extended version of pragma Obsolescent |
22447 | Add documentation for implementation defined attribute 'Stub_Type. | |
22448 | Add note on use of Volatile in asm statements | |
22449 | Add documentation on use of pragma Unreferenced in context clause | |
22450 | Document new form of pragma Warnings (On|Off, pattern) | |
22451 | Document pragma Wide_Character_Encoding | |
22452 | Add note that pragma Restrictions (No_Elaboration_Code) is only fully | |
22453 | enforced if code generation is active. | |
22454 | Add section on pragma Suppress to document GNAT specific check | |
22455 | Alignment_Check | |
22456 | Clarify difference between No_Dispatching_Calls & No_Dispatch. | |
22457 | Add documentation for pragma Restrictions (No_Elaboration_Code) | |
22458 | ||
7c066666 | 22459 | * gnat-style.texi: |
6b95ae38 | 22460 | Add comments on layout of subprogram local variables in the |
22461 | presence of nested subprograms. | |
22462 | ||
d4c15061 | 22463 | * ug_words: Resync. |
6b95ae38 | 22464 | |
22465 | * elists.ads: Minor reformatting | |
22466 | Node returns Node_Or_Entity_Id (doc change only) | |
22467 | ||
22468 | * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION | |
22469 | ||
22470 | * g-arrspl.ads (Create): Update comments. | |
22471 | ||
22472 | * sem.ads: Add details on the handling of the scope stack. | |
22473 | ||
d4c15061 | 22474 | * usage.adb: Update documentation. |
6b95ae38 | 22475 | |
7c066666 | 22476 | * validsw.ads, validsw.adb: |
6b95ae38 | 22477 | Add definition of Validity_Check_Components and implement -gnatVe/E |
22478 | ||
d4c15061 | 22479 | * vms_data.ads: Add missing VMS qualifiers. |
6b95ae38 | 22480 | |
22481 | * s-addope.ads: Add documentation on overflow and divide by zero | |
22482 | ||
22483 | 2006-10-31 Robert Dewar <dewar@adacore.com> | |
22484 | Thomas Quinot <quinot@adacore.com> | |
22485 | Arnaud Charlet <charlet@adacore.com> | |
22486 | ||
22487 | * fmap.adb: Put routines in alpha order | |
22488 | ||
22489 | * g-boumai.ads: Remove redundant 'in' keywords | |
22490 | ||
22491 | * g-cgi.adb: Minor reformatting | |
22492 | ||
22493 | * g-cgi.ads: Remove redundant 'in' keywords | |
22494 | ||
22495 | * get_targ.adb: Put routines in alpha order | |
22496 | ||
22497 | * prj-attr.ads: Minor reformatting | |
22498 | ||
22499 | * s-atacco.ads: Minor reformatting | |
22500 | ||
22501 | * scn.adb: Put routines in alpha order | |
22502 | ||
22503 | * sinput-l.adb: Minor comment fix | |
22504 | ||
22505 | * sinput-p.adb: Minor comment fix | |
22506 | ||
22507 | * s-maccod.ads: Minor reformatting | |
22508 | ||
22509 | * s-memory.adb: Minor reformatting | |
22510 | ||
22511 | * s-htable.adb: Fix typo in comment. | |
22512 | ||
22513 | * s-secsta.adb: Minor comment update. | |
22514 | ||
22515 | * s-soflin.adb: Minor reformatting | |
22516 | ||
7c066666 | 22517 | * s-stoele.ads: |
6b95ae38 | 22518 | Add comment about odd qualification in Storage_Offset declaration |
22519 | ||
7c066666 | 22520 | * s-strxdr.adb: |
6b95ae38 | 22521 | Remove unnecessary 'in' keywords for formal parameters. |
22522 | ||
22523 | * treeprs.adt: Minor reformatting | |
22524 | ||
22525 | * urealp.adb: Put routines in alpha order | |
22526 | ||
22527 | * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version | |
22528 | taking string. | |
22529 | ||
22530 | * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords | |
22531 | ||
22532 | * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords | |
22533 | ||
22534 | * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so | |
22535 | workaround as on other platforms. | |
22536 | ||
22537 | * g-eacodu-vms.adb: Remove redundant 'in' keywords | |
22538 | * g-expect-vms.adb: Remove redundant 'in' keywords | |
22539 | ||
22540 | * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a | |
22541 | clear error message if the list-of-files file cannot be opened. | |
22542 | ||
22543 | * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the | |
22544 | equality operator is always visible. | |
22545 | ||
22546 | * lang.opt: Woverlength-strings: New option. | |
22547 | ||
7c066666 | 22548 | * nmake.adt: |
6b95ae38 | 22549 | Update copyright, since nmake.ads and nmake.adb have changed. |
22550 | ||
22551 | * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function . | |
22552 | (Binder_Output_Time_Stamps_Set): removed. | |
22553 | (Old_Binder_Output_Time_Stamp): idem. | |
22554 | (New_Binder_Output_Time_Stamp): idem. | |
22555 | (Recording_Time_From_Last_Bind): idem. | |
22556 | (Recording_Time_From_Last_Bind): Make constant. | |
22557 | ||
22558 | * output.ads, output.adb (Write_Str): Allow LF characters | |
22559 | (Write_Spaces): New procedure | |
22560 | ||
22561 | * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100% | |
22562 | ||
22563 | * inline.adb: Minor reformatting | |
22564 | ||
22565 | * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords | |
22566 | ||
22567 | * s-mastop-vms.adb: Remove redundant 'in' keywords | |
22568 | ||
22569 | * s-osprim-vms.adb: Remove redundant 'in' keywords | |
22570 | ||
22571 | * s-trafor-default.adb: Remove redundant 'in' keywords | |
22572 | ||
22573 | * 9drpc.adb: Remove redundant 'in' keywords | |
22574 | ||
22575 | * s-osinte-mingw.ads: Minor reformatting | |
22576 | ||
22577 | * s-inmaop-posix.adb: Minor reformatting | |
22578 | ||
22579 | * a-direio.ads: Remove quotes from Compile_Time_Warning message | |
22580 | ||
22581 | * a-exexda.adb: Minor code reorganization | |
22582 | ||
22583 | * a-filico.adb: Minor reformatting | |
22584 | ||
22585 | * a-finali.adb: Minor reformatting | |
22586 | ||
22587 | * a-nudira.ads: Remove quote from Compile_Time_Warning message | |
22588 | ||
22589 | * a-numeri.ads: Minor reformatting | |
22590 | ||
22591 | * a-sequio.ads: Remove quotes from Compile_Time_Warning message | |
22592 | ||
22593 | * exp_pakd.ads: Fix obsolete comment | |
22594 | ||
22595 | * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb, | |
22596 | a-wtenio.adb (Put): Avoid assuming low bound of string is 1. | |
22597 | Probably not a bug, but certainly neater and more efficient. | |
22598 | ||
22599 | * a-tienio.adb: Minor reformatting | |
22600 | ||
22601 | * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start | |
22602 | Avoid assuming low bound of string is 1. | |
22603 | ||
22604 | * gnatbind.adb: Change Bindusg to package and rename procedure as | |
22605 | Display, which now ensures that it only outputs usage information once. | |
22606 | (Scan_Bind_Arg): Avoid assuming low bound of string is 1. | |
22607 | ||
22608 | * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by | |
22609 | Table'First. | |
22610 | ||
22611 | * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill | |
22612 | warning. | |
22613 | (Match): Add pragma Assert to ensure that Matches'First is zero | |
22614 | ||
22615 | * g-regpat.ads (Match): Document that Matches lower bound must be zero | |
22616 | ||
22617 | * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check | |
22618 | documented preconditions (also kills warnings about bad indexes). | |
22619 | ||
22620 | * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First | |
22621 | is 1. | |
22622 | (Build_Import_Library): Ditto; | |
22623 | ||
22624 | * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1 | |
22625 | ||
22626 | * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1. | |
22627 | ||
22628 | * sem_case.adb (Analyze_Choices): Add pragma Assert to check that | |
22629 | lower bound of choice table is 1. | |
22630 | ||
22631 | * sem_case.ads (Analyze_Choices): Document that lower bound of | |
22632 | Choice_Table is 1. | |
22633 | ||
22634 | * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of | |
22635 | string is 1. | |
22636 | ||
22637 | * uintp.adb (Init_Operand): Document that low bound of Vec is always 1, | |
22638 | and add appropriate Assert pragma to suppress warnings. | |
22639 | ||
22640 | * atree.h, atree.ads, atree.adb | |
22641 | Change Elist24 to Elist25 | |
22642 | Add definitions of Field28 and Node28 | |
22643 | (Traverse_Field): Use new syntactic parent table in sinfo. | |
22644 | ||
22645 | * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only | |
22646 | ||
22647 | * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only | |
22648 | ||
22649 | * exp_tss.adb: Put routines in alpha order | |
22650 | ||
22651 | * fe.h: Remove redundant declarations. | |
22652 | ||
d3eff7bb | 22653 | 2006-10-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com> |
0f6d65ea | 22654 | |
54be5d7e | 22655 | * utils.c (builtin_function): Rename to gnat_builtin_function. |
22656 | Move common code to add_builtin_function. | |
22657 | * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as | |
22658 | gnat_builtin_function. | |
22659 | * gigi.h (builtin_function): Rename to gnat_builtin_function. | |
22660 | Change the signature. | |
22661 | ||
0274b253 | 22662 | 2006-10-16 Brooks Moses <bmoses@stanford.edu> |
22663 | ||
22664 | * Makefile.in: Add TEXI2PDF definition. | |
22665 | * Make-lang.in: Add "ada.pdf" target. | |
22666 | ||
7a4cf63c | 22667 | 2006-10-03 Kazu Hirata <kazu@codesourcery.com> |
22668 | ||
22669 | * decl.c, utils.c: Fix comment typos. | |
d2f37bed | 22670 | * utils.c: Fix a typo. |
22671 | ||
386cc2cd | 22672 | 2006-09-28 Eric Botcazou <ebotcazou@adacore.com> |
22673 | ||
22674 | * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag | |
22675 | on "pure" Ada subprograms if SJLJ exceptions are used. | |
22676 | * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING | |
22677 | on the declaration node of JMPBUF_SAVE. | |
22678 | * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes | |
22679 | of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception. | |
22680 | * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS. | |
22681 | ||
8a67bb47 | 22682 | 2006-08-20 Laurent Guerby <laurent@guerby.net> |
682b4c7a | 22683 | |
4e1762ee | 22684 | PR ada/28716 |
22685 | g-socket.adb (Bind_Socket): Call Set_Address. | |
22686 | ||
6828c3bf | 22687 | 2006-09-15 Eric Botcazou <ebotcazou@adacore.com> |
22688 | ||
22689 | PR ada/15802 | |
22690 | * decl.c (same_discriminant_p): New static function. | |
22691 | (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent | |
22692 | subtype and we have discriminants, fix up the COMPONENT_REFs | |
22693 | for the discriminants to make them reference the corresponding | |
22694 | fields of the parent subtype after it has been built. | |
22695 | ||
e7cfe3db | 22696 | 2006-09-15 Roger Sayle <roger@eyesopen.com> |
22697 | ||
22698 | PR ada/18817 | |
22699 | * utils.c (max_size): Perform constant folding of (A ? B : C) - D | |
22700 | into A ? B - D : C - D when calculating the size of a MINUS_EXPR. | |
22701 | ||
f55abd0a | 22702 | 2006-09-13 Olivier Hainque <hainque@adacore.com> |
22703 | ||
22704 | PR ada/29025 | |
22705 | * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address | |
22706 | of a SAVE_EXPR, just make the operand addressable/not-readonly and | |
22707 | let the common gimplifier code make and propagate a temporary copy. | |
22708 | (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable | |
22709 | out/in-out actuals and defer setting the addressable/readonly bits | |
22710 | to the gimplifier. | |
22711 | ||
9f31d8d2 | 22712 | 2006-09-13 Eric Botcazou <ebotcazou@adacore.com> |
22713 | ||
22714 | PR ada/28591 | |
22715 | * decl.c (components_to_record): Defer emitting debug info for the | |
22716 | record type associated with the variant until after we are sure to | |
22717 | actually use it. | |
22718 | ||
60c83899 | 22719 | 2006-09-13 Eric Botcazou <ebotcazou@adacore.com> |
22720 | ||
22721 | PR ada/21952 | |
22722 | * gigi.h (gnat_internal_attribute_table): Declare. | |
22723 | * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above. | |
22724 | * utils.c (gnat_internal_attribute_table): New global variable. | |
22725 | (builtin_function): Always call decl_attributes on the builtin. | |
22726 | (handle_const_attribute): New static function. | |
22727 | (handle_nothrow_attribute): Likewise. | |
22728 | ||
e85b0b9f | 22729 | 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de> |
22730 | ||
22731 | * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies. | |
22732 | ||
1aae8b87 | 22733 | 2006-06-23 Olivier Hainque <hainque@adacore.com> |
22734 | ||
22735 | * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have | |
22736 | not been able to get a constant upper bound from TYPE_SIZE_UNIT. | |
22737 | ||
4326cf8e | 22738 | 2006-06-20 James A. Morrison <phython@gcc.gnu.org> |
d4c15061 | 22739 | Eric Botcazou <ebotcazou@adacore.com> |
4326cf8e | 22740 | |
22741 | PR ada/18692 | |
22742 | * Make-lang.in: Add check-gnat to lang_checks. Rename existing | |
22743 | check-gnat into check-acats. | |
22744 | ||
1d7cc7cd | 22745 | 2006-06-17 Karl Berry <karl@gnu.org> |
22746 | ||
d4c15061 | 22747 | * gnat-style.texi (@dircategory): Use "Software development" |
1d7cc7cd | 22748 | instead of "Programming", following the Free Software Directory. |
22749 | ||
541fe6f4 | 22750 | 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
22751 | ||
22752 | PR ada/27944 | |
22753 | * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'. | |
22754 | ||
8a67bb47 | 22755 | 2006-06-06 Laurent Guerby <laurent@guerby.net> |
b5e09f30 | 22756 | |
d4c15061 | 22757 | PR ada/27769 |
22758 | mlib-utl.adb: Use Program_Name. | |
22759 | ||
3c8148a6 | 22760 | 2006-05-28 Kazu Hirata <kazu@codesourcery.com> |
22761 | ||
22762 | * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c, | |
22763 | sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c, | |
22764 | trans.c, utils.c: Fix comment typos. Follow spelling | |
22765 | conventions. | |
22766 | * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling | |
22767 | conventions. | |
22768 | ||
557e4662 | 22769 | 2006-05-19 Nicolas Setton <setton@adacore.com> |
22770 | ||
22771 | * misc.c (gnat_dwarf_name): New function. | |
22772 | (LANG_HOOKS_DWARF_NAME): Define to it. | |
22773 | ||
49b338fd | 22774 | 2006-05-14 H.J. Lu <hongjiu.lu@intel.com> |
22775 | ||
22776 | * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H). | |
22777 | (ada/misc.o): Likewise. | |
22778 | (ada/utils.o): Likewise. | |
22779 | ||
916f3b2a | 22780 | 2006-04-08 Aurelien Jarno <aurel32@debian.org> |
22781 | ||
22782 | * Makefile.in: Add Ada support for GNU/kFreeBSD. | |
22783 | * s-osinte-kfreebsd-gnu.ads: New file. | |
22784 | ||
77a85ce7 | 22785 | 2006-03-29 Carlos O'Donell <carlos@codesourcery.com> |
22786 | ||
22787 | * Make-lang.in: Rename docdir to gcc_docdir. | |
22788 | ||
cd6ebd54 | 22789 | 2006-03-04 Eric Botcazou <ebotcazou@adacore.com> |
22790 | ||
22791 | * gigi.h (get_ada_base_type): Delete. | |
22792 | * utils2.c (get_ada_base_type): Likewise. | |
22793 | * trans.c (convert_with_check): Operate in the real base type. | |
22794 | ||
d505b92e | 22795 | 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> |
22796 | ||
22797 | * uintp.adb (Num_Bits): Handle Uint_Int_First specially. | |
22798 | ||
102e3995 | 22799 | 2006-03-02 Richard Sandiford <richard@codesourcery.com> |
22800 | ||
22801 | * utils.c (create_var_decl): Use have_global_bss_p when deciding | |
22802 | whether to make the decl common. | |
22803 | ||
d3eff7bb | 22804 | 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com> |
d505b92e | 22805 | |
0f6d65ea | 22806 | * Make-lang.in (Ada): Remove. |
9f30f9e7 | 22807 | (.PHONY): Remove Ada |
22808 | ||
2b50ab11 | 22809 | 2006-02-17 Ed Schonberg <schonberg@adacore.com> |
22810 | ||
22811 | * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an | |
22812 | aggregate, check the interpretations of the other operand to find one | |
22813 | that may be a boolean array. | |
22814 | ||
22815 | (Analyze_Selected_Component): Fix flow-of-control typo in case where | |
22816 | the prefix is a private extension. | |
22817 | ||
22818 | 2006-02-17 Eric Botcazou <botcazou@adacore.com> | |
22819 | ||
22820 | PR ada/26315 | |
2b50ab11 | 22821 | * utils2.c (find_common_type): If both input types are BLKmode and |
22822 | have the same constant size, keep using the first one. | |
22823 | ||
22824 | * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround. | |
22825 | ||
22826 | * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant. | |
22827 | ||
22828 | * misc.c (gnat_handle_option): New case for -Woverlength-strings. | |
22829 | ||
22830 | 2006-02-17 Jose Ruiz <ruiz@adacore.com> | |
22831 | ||
7c066666 | 22832 | * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb, |
22833 | s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, | |
22834 | s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb, | |
2b50ab11 | 22835 | s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add |
22836 | Abort_Defer/Undefer pairs to avoid the possibility of a task being | |
22837 | aborted while owning a lock. | |
22838 | ||
22839 | 2006-02-17 Javier Miranda <miranda@adacore.com> | |
22840 | Robert Dewar <dewar@adacore.com> | |
22841 | ||
22842 | * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed | |
22843 | through an access to class-wide interface we force the displacement of | |
22844 | the pointer to the allocated object to reference the corresponding | |
22845 | secondary dispatch table. | |
22846 | (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2, | |
22847 | if Long_Shifts are supported on the target, even if 64 bit divides | |
22848 | are not supported (configurable run time mode). | |
22849 | (Expand_N_Type_Conversion): Do validity check if validity checks on | |
22850 | operands are enabled. | |
22851 | (Expand_N_Qualified_Expression): Do validity check if validity checks | |
22852 | on operands are enabled. | |
22853 | ||
22854 | 2006-02-17 Ed Schonberg <schonberg@adacore.com> | |
22855 | ||
22856 | * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity | |
22857 | must be materialized when the renamed expression is an explicit | |
22858 | dereference. | |
22859 | ||
22860 | 2006-02-17 Ed Schonberg <schonberg@adacore.com> | |
22861 | ||
22862 | * freeze.adb (Statically_Discriminated_Components): Return false if | |
22863 | the bounds of the type of the discriminant are not static expressions. | |
22864 | ||
22865 | * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if | |
22866 | the bounds of the discriminant type are not static. | |
22867 | ||
22868 | 2006-02-17 Robert Dewar <dewar@adacore.com> | |
22869 | ||
22870 | * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD, | |
22871 | then we close To if it is valid. | |
22872 | ||
22873 | 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com> | |
22874 | ||
22875 | * init.c (facility_resignal_table): new array | |
22876 | (__gnat_default_resignal_p): enhance default predicate to resignal if | |
22877 | VMS condition has one of the predefined facility codes. | |
22878 | ||
22879 | 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com> | |
22880 | ||
22881 | * Makefile.in: Use VMS64 specialized versions of several units in | |
22882 | Interfaces.C hierarchy to be compatible with HP C default size choices. | |
22883 | Use the default version of Ada.Synchronous_Task_Control for VxWorks 653. | |
22884 | ||
22885 | 2006-02-17 Ed Schonberg <schonberg@adacore.com> | |
22886 | ||
22887 | * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram | |
22888 | instantiation, the corresponding entity is the related_instance of the | |
22889 | wrapper package created for the instance. | |
22890 | ||
22891 | 2006-02-17 Ed Schonberg <schonberg@adacore.com> | |
22892 | ||
22893 | * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if | |
22894 | the current instance is nested within another instance in a child unit. | |
22895 | ||
22896 | 2006-02-17 Javier Miranda <miranda@adacore.com> | |
22897 | Ed Schonberg <schonberg@adacore.com> | |
22898 | ||
22899 | * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent | |
22900 | type we cannot inherit the primitive operations; we inherit the | |
22901 | Corresponding_Record_Type (which has the list of primitive operations). | |
22902 | (Check_Anonymous_Access_Types): When creating anonymous access types for | |
22903 | access components, use Rewrite in order to preserve the tree structure, | |
22904 | for ASIS use. | |
22905 | (Analyze_Object_Declaration): For limited types with access | |
22906 | discriminants with defaults initialized by an aggregate, obtain | |
22907 | subtype from aggregate as for other mutable types. | |
22908 | (Derived_Type_Declaration): If the derived type is a limited interface, | |
22909 | set the corresponding flag (Is_Limited_Record is not sufficient). | |
22910 | ||
22911 | 2006-02-17 Ed Schonberg <schonberg@adacore.com> | |
22912 | ||
22913 | * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order | |
22914 | to inline a function that returns an unconstrained type, the return | |
22915 | expression must be the first variable declared in the body of the | |
22916 | function. | |
22917 | ||
22918 | 2006-02-17 Javier Miranda <miranda@adacore.com> | |
22919 | ||
22920 | * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an | |
22921 | abstract interface type, the static analysis is not enough to know if | |
22922 | the interface is implemented or not by the source tagged type. Hence | |
22923 | we must pass the work to the expander to generate the required code to | |
22924 | evaluate the conversion at run-time. | |
22925 | (Resolve_Equality_Op): Do not apply previous | |
22926 | transformation if expansion is disasbled, to prevent anomalies when | |
22927 | locating global references in a generic unit. | |
22928 | ||
22929 | 2006-02-17 Vincent Celier <celier@adacore.com> | |
22930 | ||
22931 | * snames.ads, snames.adb: New standard names for new project attributes: | |
22932 | archive_builder, archive_indexer, compiler_pic_option, | |
22933 | config_body_file_name, config_body_file_name_pattern, | |
22934 | config_file_switches, config_file_unique, config_spec_file_name, | |
22935 | config_spec_file_name_pattern, default_builder_switches, | |
22936 | default_global_compiler_switches, default_language, | |
22937 | dependency_file_kind, global_compiler_switches, include_path, | |
22938 | include_path_file, language_kind, linker_executable_option, | |
22939 | linker_lib_dir_option, linker_lib_name_option, mapping_file_switches, | |
22940 | roots, runtime_project. | |
22941 | ||
22942 | 2006-02-17 Matthew Heaney <heaney@adacore.com> | |
22943 | ||
7c066666 | 22944 | * a-convec.ads, a-convec.adb: |
2b50ab11 | 22945 | (operator "&"): handle potential overflow for large index types |
22946 | (Insert): removed Contraint_Error when using large index types | |
22947 | (Insert_Space): removed Constraint_Error for large index types | |
22948 | (Length): moved constraint check from Length to Insert | |
22949 | ||
22950 | * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared | |
22951 | as not null access. | |
22952 | Explicit raise statements now include an exception message. | |
22953 | (operator "&"): handle potential overflow for large index types | |
22954 | (Insert): removed Contraint_Error when using large index types | |
22955 | (Insert_Space): removed Constraint_Error for large index types | |
22956 | (Length): moved constraint check from Length to Insert | |
22957 | ||
22958 | 2006-02-17 Robert Dewar <dewar@adacore.com> | |
22959 | ||
22960 | * s-wchcnv.adb: Document handling of [ on output (we do not change | |
22961 | this to ["5B"] and the new comments say why not. | |
22962 | ||
7c066666 | 22963 | * gnat_ugn.texi: |
2b50ab11 | 22964 | Add note for -gnatVo that this now includes the cases of type |
22965 | conversions and qualified expressions. | |
22966 | Add comments on handling of brackets encoding for Text_IO | |
22967 | ||
22968 | 2006-02-17 Ramon Fernandez <fernandez@adacore.com> | |
22969 | Thomas Quinot <quinot@adacore.com> | |
22970 | Robert Dewar <dewar@adacore.com> | |
22971 | Javier Miranda <miranda@adacore.com> | |
22972 | ||
22973 | * expander.adb: Fix typo in comment | |
22974 | ||
22975 | * exp_pakd.adb: Fix typo | |
22976 | Minor comment reformatting. | |
22977 | ||
22978 | * g-dyntab.adb: Minor reformatting | |
22979 | ||
22980 | * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of | |
22981 | aliased subprograms to look for the abstract interface subprogram. | |
22982 | ||
360a49ca | 22983 | 2006-02-16 Eric Botcazou <ebotcazou@adacore.com> |
22984 | ||
22985 | * env.c (__gnat_setenv): Use size_t. | |
22986 | (__gnat_unsetenv): Likewise. | |
22987 | (__gnat_clearenv): Likewise. | |
22988 | ||
417553a1 | 22989 | 2006-02-16 Arnaud Charlet <charlet@adacore.com> |
22990 | ||
22991 | * opt.ads (Ada_Version_Default): Set to Ada 2005 by default. | |
22992 | ||
d9b25247 | 22993 | 2006-02-13 Arnaud Charlet <charlet@adacore.com> |
22994 | ||
22995 | * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads, | |
22996 | g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads, | |
22997 | i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb, | |
22998 | s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb, | |
22999 | s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb, | |
23000 | s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb, | |
23001 | s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb, | |
23002 | s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads, | |
23003 | s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed, | |
23004 | no longer used. | |
23005 | ||
23006 | 2006-02-13 Jose Ruiz <ruiz@adacore.com> | |
23007 | ||
23008 | * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit | |
23009 | protection against race conditions is not needed. | |
23010 | (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the | |
23011 | fallback handler. | |
23012 | (Set_Specific_Handler): Add mutual exclusive access to the specific | |
23013 | handler. | |
23014 | (Specific_Handler): Add mutual exclusive access for retrieving the | |
23015 | specific handler. | |
23016 | ||
23017 | * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall | |
23018 | back handler. | |
23019 | ||
23020 | * s-taskin.ads (Common_ATCB): Remove pragma Atomic for | |
23021 | Fall_Back_Handler and Specific_Handler. | |
23022 | ||
23023 | * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task | |
23024 | termination handlers. | |
23025 | Set two different owerflow depending on the maximal stack size. | |
23026 | ||
23027 | * s-solita.adb (Task_Termination_Handler_T): Document why explicit | |
23028 | protection against race conditions is not needed when executing the | |
23029 | task termination handler. | |
23030 | ||
23031 | 2006-02-13 Robert Dewar <dewar@adacore.com> | |
23032 | ||
23033 | * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb, | |
23034 | a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb, | |
23035 | a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads, | |
23036 | a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb, | |
23037 | a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb, | |
23038 | a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads, | |
23039 | a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads, | |
23040 | a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb, | |
23041 | a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads, | |
23042 | a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb, | |
23043 | a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb, | |
23044 | a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads, | |
23045 | a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb, | |
23046 | a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb, | |
23047 | a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb, | |
23048 | a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb, | |
23049 | a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, | |
23050 | a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb, | |
23051 | a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads, | |
23052 | a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb, | |
23053 | g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb, | |
23054 | g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb, | |
23055 | mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb, | |
23056 | prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb, | |
23057 | s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb, | |
23058 | s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads, | |
23059 | s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb, | |
23060 | s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb, | |
23061 | s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads, | |
23062 | s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb, | |
23063 | a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb, | |
23064 | fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb, | |
23065 | par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb, | |
23066 | system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor | |
23067 | reformatting. | |
23068 | ||
23069 | 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com> | |
23070 | ||
23071 | * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb, | |
23072 | s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb, | |
23073 | s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb, | |
23074 | s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb, | |
23075 | a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb, | |
23076 | s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb, | |
23077 | a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb, | |
23078 | s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb, | |
23079 | s-tataat.adb, s-tpobop.adb: Remove redundant with clauses. | |
23080 | ||
23081 | 2006-02-13 Arnaud Charlet <charlet@adacore.com> | |
23082 | ||
7c066666 | 23083 | * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads, |
23084 | s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads, | |
23085 | s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads, | |
23086 | s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads, | |
23087 | s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads, | |
d9b25247 | 23088 | s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed, |
23089 | replaced by anonymous access type. | |
23090 | (pthread_sigmask): Now take an access sigset_t | |
23091 | ||
23092 | * s-osinte-hpux.ads: Ditto. | |
23093 | (pthread_mutex_t, pthread_cond_t): Update definitions to support | |
23094 | properly 32 and 64 bit ABIs. | |
23095 | ||
23096 | 2006-02-13 Pascal Obry <obry@adacore.com> | |
23097 | ||
7c066666 | 23098 | * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb, |
23099 | s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb, | |
d9b25247 | 23100 | s-taprop-linux.adb, s-taprop-solaris.adb, |
23101 | s-taprop-vms.adb (Create_Task): Remove task adjustment code. This | |
23102 | adjustement is already done when calling this routine. | |
23103 | ||
23104 | 2006-02-13 Pascal Obry <obry@adacore.com> | |
23105 | ||
23106 | * system-mingw.ads (Underlying_Priorities): Update the priority mapping | |
23107 | table to take advantage of the 16 priority levels available on Windows | |
23108 | 2000 and XP. On NT4 there are only 7 priority levels, this is properly | |
23109 | supported by this new mapping. | |
23110 | ||
23111 | 2006-02-13 Nicolas Setton <setton@adacore.com> | |
23112 | ||
23113 | * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types. | |
23114 | (get_encoding): New subprogram. Extracts the encodings from an encoded | |
23115 | Ada name. | |
23116 | ||
23117 | 2006-02-13 Pascal Obry <obry@adacore.com> | |
23118 | Nicolas Roche <roche@adacore.com> | |
23119 | Arnaud Charlet <charlet@adacore.com> | |
23120 | ||
23121 | * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode | |
23122 | support. | |
23123 | (__gnat_try_lock): Add unicode support by using a specific section on | |
23124 | Windows. | |
23125 | (__gnat_get_current_dir): Idem. | |
23126 | (__gnat_open_read): Idem. | |
23127 | (__gnat_open_rw): Idem. | |
23128 | (__gnat_open_create): Idem. | |
23129 | (__gnat_create_output_file): Idem. | |
23130 | (__gnat_open_append): Idem. | |
23131 | (__gnat_open_new): Idem. | |
23132 | (__gnat_file_time_name): Idem. | |
23133 | (__gnat_set_file_time_name): Idem. | |
23134 | (__gnat_stat): Idem. | |
23135 | (win32_no_block_spawn): Idem. | |
23136 | (__gnat_locate_exec_on_path): Idem. | |
23137 | (__gnat_opendir): New routine. | |
23138 | (__gnat_closedir): Idem. | |
23139 | (__gnat_readdir): Add new parameter length (pointer to int). Update | |
23140 | implementation to use it and add specific Win32 code for Unicode | |
23141 | support. | |
23142 | (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c | |
23143 | (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c | |
23144 | (convert_addresses): Do not define this dummy routine on VMS. | |
23145 | ||
23146 | * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT | |
23147 | runtime Unicode support will be activated. | |
23148 | (S2WS): String to Wide-String conversion. This version just copy a | |
23149 | string in non Unicode version. | |
23150 | (WS2S): Wide-String to String conversion. This version just copy a | |
23151 | string in non Unicode version. | |
23152 | ||
23153 | * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c. | |
23154 | (Open): Now import __gnat_opendir from adaint.c. | |
23155 | (Read): Change the implementation to support unicode characters. It is | |
23156 | not possible to use strlen() on Windows as this version supports only | |
23157 | standard ASCII characters. So the length of the directory entry is now | |
23158 | returned from the imported __gnat_readdir routine. | |
23159 | Update copyright notice. | |
23160 | ||
23161 | * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c. | |
23162 | (opendir): Moved to adaint.c. | |
23163 | ||
23164 | * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation. | |
23165 | (Get_Directory): Fix wrong indexing. | |
23166 | (Getenv): replace __gnat_get_env_value_ptr from adaint.c by | |
23167 | __gnat_getenv from env.c | |
23168 | (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv | |
23169 | from env.c | |
23170 | ||
23171 | * env.h, env.c: New file. | |
23172 | ||
23173 | * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from | |
23174 | adaint.c by __gnat_getenv from env.c | |
23175 | ||
23176 | * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from | |
23177 | adaint.c by __gnat_getenv from env.c | |
23178 | ||
23179 | * Make-lang.in: Add env.o in the list of C object needed by gnat1 | |
23180 | and gnatbind. | |
23181 | Update dependencies. | |
23182 | ||
23183 | 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
23184 | Olivier Hainque <hainque@adacore.com> | |
23185 | Eric Botcazou <ebotcazou@adacore.com> | |
23186 | ||
23187 | * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted. | |
7c066666 | 23188 | |
d9b25247 | 23189 | * gigi.h (value_factor_p): Add prototype and description, now public. |
23190 | ||
23191 | * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type | |
23192 | promotion for field with rep clause if the associated size was proven | |
23193 | to be in error. | |
23194 | Expand comments describing attempts to use a packable type. | |
23195 | (gnat_to_gnu_entity) <E_Signed_Integer_Subtype, | |
23196 | E_Floating_Point_Subtype>: Inherit alias set of what we are making a | |
23197 | subtype of to ensure conflicts amongst all subtypes in a hierarchy, | |
23198 | necessary since these are not different types and pointers may | |
23199 | actually designate any subtype in this hierarchy. | |
23200 | (gnat_to_gnu_entity, case E_Record_Type): Always make fields for | |
23201 | discriminants but put them into record only if not Unchecked_Union; | |
23202 | pass flag to components_to_record showing Unchecked_Union. | |
23203 | (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no | |
23204 | components before variants; don't set TYPE_UNCHECKED_UNION_P. | |
23205 | (components_to_record): New argument UNCHECKED_UNION. | |
23206 | Remove special case code for Unchecked_Union and instead use main code | |
23207 | with small changes. | |
23208 | ||
23209 | PR ada/26096 | |
0f6d65ea | 23210 | (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning |
23211 | variable with the expression being built, only its inner field. | |
d9b25247 | 23212 | |
23213 | * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to | |
23214 | emit_sequence_entry_statements. | |
23215 | (emit_sequence_entry_statements, body_with_handlers_p): Delete. | |
23216 | (establish_gnat_vms_condition_handler): Move before | |
23217 | Subprogram_Body_to_gnu. | |
23218 | (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler | |
23219 | for a subprogram if it has a foreign convention or is exported. | |
23220 | (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is | |
23221 | substituted for a CONST_DECL. | |
23222 | (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass | |
23223 | Etype to assoc_to_constructor. | |
23224 | (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore | |
23225 | discriminants of Unchecked_Union. | |
23226 | (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses | |
23227 | don't need cluttering preprocessor directives. | |
23228 | (establish_gnat_vms_condition_handler): New function. Establish the GNAT | |
23229 | condition handler as current in the compiled function. | |
23230 | (body_with_handlers_p): New function. Tell whether a given sequence of | |
23231 | statements node is attached to a package or subprogram body and involves | |
23232 | exception handlers possibly nested within inner block statements. | |
23233 | (emit_sequence_entry_statements): New function, to emit special | |
23234 | statements on entry of sequences when necessary. Establish GNAT | |
23235 | condition handler in the proper cases for VMS. | |
23236 | (Handled_Sequence_Of_Statements_to_gnu): Start block code with | |
23237 | emit_sequence_entry_statements. | |
23238 | ||
23239 | * utils2.c (find_common_type): If both input types are BLKmode and | |
23240 | have a constant size, use the smaller one. | |
23241 | (build_simple_component_ref): Also match if FIELD and NEW_FIELD are | |
23242 | the same. | |
23243 | ||
23244 | * utils.c (value_factor_p): Make public, to allow uses from other gigi | |
23245 | units. | |
23246 | (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types. | |
23247 | (convert, case UNION_TYPE): Remove special treatment for unchecked | |
23248 | unions. | |
23249 | ||
23250 | PR ada/18659 | |
0f6d65ea | 23251 | (update_pointer_to): Update variants of pointer types to unconstrained |
23252 | arrays by attaching the list of fields of the main variant. | |
d9b25247 | 23253 | |
23254 | 2006-02-13 Arnaud Charlet <charlet@adacore.com> | |
23255 | Robert Dewar <dewar@adacore.com> | |
23256 | ||
23257 | * a-exexpr.adb, a-exexpr-gcc.adb | |
23258 | (Process_Raise_Exception): Removed, merged with Propagate_Exception. | |
23259 | (Propagate_Exception): Now take extra From_Signal_Handler parameter. | |
23260 | Remove code unused for exception propagation for the compiler itself | |
23261 | from a-except.adb and update to still share separate packages. | |
23262 | ||
23263 | * a-except.ads, a-except.adb: Ditto. | |
23264 | Add comments that this version is now used only by the compiler and | |
23265 | other basic tools. The full version that includes the Ada 2005 stuff | |
23266 | is in separate files a-except-2005.ads/adb. The reason is that we do | |
23267 | not want to cause bootstrap problems with compilers not recognizing | |
23268 | Wide_Wide_String. | |
23269 | Add exception reason code PE_Implicit_Return | |
23270 | Add new exception reason code (Null Exception_Id) | |
23271 | ||
23272 | * a-except-2005.adb, a-except-2005.ads: New files. | |
23273 | ||
23274 | * s-wchcon.ads: (Get_WC_Encoding_Method): New function. | |
23275 | ||
23276 | * s-wchcon.adb: New file. | |
23277 | ||
23278 | * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c. | |
23279 | (traceback.o deps): Likewise. | |
23280 | (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris. | |
23281 | Activate build of GMEM instrumentation library on VMS targets. | |
23282 | (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib. | |
23283 | Use a-except-2005.ads/adb for all run-time library builds unless | |
23284 | specified otherwise. | |
23285 | [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to | |
23286 | s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads. | |
23287 | Use s-parame.adb on all native platforms. | |
23288 | Use s-parame-vxworks.adb on all vxworks platforms. | |
23289 | Add env.c env.h in LIBGNAT_SRCS | |
23290 | Add env.o in LIBGNAT_OBJS | |
23291 | (GNATMAKE_OBJS): Remove ctrl_c.o object. | |
23292 | (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of | |
23293 | s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that | |
23294 | supports VxWorks 6 RTPs. | |
23295 | (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of | |
23296 | i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs. | |
23297 | ||
23298 | * types.h, types.ads (Terminate_Program): New exception | |
23299 | Add comment on modifying multiple versions of a-except.adb when the | |
23300 | table of exception reasons is modified. | |
23301 | Add exception reason code PE_Implicit_Return | |
23302 | Add new exception reason code (Null Exception_Id) | |
23303 | ||
d4c15061 | 23304 | * clean.adb (Initialize): Get the target parameters before checking |
23305 | if target is OpenVMS. Move the OpenVMS specific code here from package | |
23306 | body elaboration code. | |
d9b25247 | 23307 | |
23308 | 2006-02-13 Thomas Quinot <quinot@adacore.com> | |
23309 | Vincent Celier <celier@adacore.com> | |
23310 | Robert Dewar <dewar@adacore.com> | |
23311 | ||
23312 | * ali-util.adb (Get_File_Checksum): Update to account for change in | |
23313 | profile of Initialize_Scanner. | |
23314 | ||
23315 | * gprep.adb (Gnatprep): Update to account for change in profile of | |
23316 | Initialize_Scanner. | |
23317 | (Process_One_File): Same. | |
23318 | ||
23319 | * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the | |
23320 | common code between Get_Code_Unit and Get_Source_Unit. Reimplement | |
23321 | that behaviour using the new Unit information recorded in the source | |
23322 | files table, rather than going through all units every time. | |
23323 | (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit. | |
23324 | (Get_Source_Unit): Same. | |
23325 | ||
23326 | * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for | |
23327 | change in profile of Initialize_Scanner. | |
23328 | (Prepare_To_Preprocess): Same. | |
23329 | ||
23330 | * lib.ads: Fix typo in comment (templace -> template). | |
23331 | ||
23332 | * prj-part.adb (Parse_Single_Project): Update to account for change in | |
23333 | profile of Initialize_Scanner. | |
23334 | ||
23335 | * scn.adb (Initialize_Scanner): Account for change in profile of | |
23336 | Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng. | |
23337 | Also record the association of the given Source_File_Index to the | |
23338 | corresponding Unit_Number_Type. | |
23339 | ||
23340 | * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove | |
23341 | procedure. | |
23342 | (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords. | |
23343 | Remove Unit formal for generic scanner: this formal | |
23344 | is only relevant to Scn (the scanner instance used to parse Ada source | |
23345 | files), not to other instances. Update comment accordingly. | |
23346 | (Scan): Use new function Snames.Is_Keyword_Name. | |
23347 | ||
23348 | * sinfo-cn.adb: Fix typo in comment. | |
23349 | ||
23350 | * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute | |
23351 | Unit. | |
23352 | ||
23353 | * sinput.ads (Source_File_Record): New component Unit, used to capture | |
23354 | the unit identifier (if any) associated to a source file. | |
23355 | ||
23356 | * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component | |
23357 | Unit in Source_File_Record. | |
23358 | ||
23359 | * sinput-p.adb (Source_File_Is_Subunit): Update to account for change | |
23360 | in profile of Initialize_Scanner. | |
23361 | ||
23362 | * scans.adb (Initialize_Ada_Keywords): New procedure | |
23363 | ||
23364 | * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the | |
23365 | Ada keywords in the Namet table, without the need to call | |
23366 | Initialize_Scanner. | |
23367 | ||
23368 | * snames.adb: Add pragma Ada_2005 (synonym for Ada_05) | |
23369 | (Is_Keyword_Name): New function | |
23370 | ||
23371 | * snames.ads: Add subtype Configuration_Pragma_Names | |
23372 | Add pragma Ada_2005 (synonym for Ada_05) | |
23373 | (Is_Keyword_Name): New function | |
23374 | ||
23375 | * snames.h: Add pragma Ada_2005 (synonym for Ada_05) | |
23376 | ||
23377 | 2006-02-13 Arnaud Charlet <charlet@adacore.com> | |
23378 | ||
23379 | * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice | |
23380 | index. | |
23381 | ||
23382 | * a-stwima.adb (To_Set): Add extra check when N = 0. | |
23383 | ||
23384 | * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow. | |
23385 | ||
23386 | 2006-02-13 Arnaud Charlet <charlet@adacore.com> | |
23387 | ||
23388 | * s-parame-mingw.adb, s-parame-linux.adb, | |
23389 | s-parame-solaris.adb: Removed, replaced by s-parame.adb | |
23390 | ||
23391 | * s-parame-vxworks.ads: Fix typo. | |
23392 | ||
23393 | * s-parame-vxworks.adb: New file. | |
23394 | ||
23395 | * s-parame.adb: Version now used by all native platforms. | |
23396 | (Default_Stack_Size): Use 2 megs for default stack size and use | |
23397 | __gl_default_stack_size when available. | |
23398 | (Minimum_Stack_Size): Use 12K. | |
23399 | ||
23400 | * s-taprop-mingw.adb: Set default stack size linker switch to 2megs. | |
23401 | (Create_Task): Refine implementation taking advantage of the XP stack | |
23402 | size support. On XP, we now create the thread using the flag | |
23403 | STACK_SIZE_PARAM_IS_A_RESERVATION. | |
23404 | ||
23405 | * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant. | |
23406 | ||
23407 | * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows | |
23408 | XP and 0 on older Windows versions. | |
23409 | ||
23410 | * interfac-vms.ads: Removed, no longer used. | |
23411 | ||
23412 | 2006-02-13 Matthew Heaney <heaney@adacore.com> | |
23413 | ||
7c066666 | 23414 | * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb, |
23415 | a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb, | |
d9b25247 | 23416 | a-cohase.adb: All explicit raise statements now include an exception |
23417 | message. | |
23418 | ||
23419 | * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb | |
23420 | (Update_Element_Preserving_Key): renamed op to just Update_Element. | |
23421 | Explicit raise statements now include an exception message | |
23422 | ||
23423 | * a-cihase.ads, a-cohase.ads: Removed comment. | |
23424 | ||
23425 | * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb, | |
23426 | a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads, | |
23427 | a-szbzha.adb, a-szfzha.ads: New files. | |
23428 | ||
23429 | 2006-02-13 Matthew Heaney <heaney@adacore.com> | |
23430 | ||
23431 | * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of | |
23432 | quicksort. | |
23433 | ||
23434 | 2006-02-13 Eric Botcazou <ebotcazou@adacore.com> | |
23435 | ||
23436 | * lang.opt: Wvariadic-macros: New option. | |
23437 | Wold-style-definition: Likewise. | |
23438 | Wmissing-format-attribute: Likewise. | |
23439 | ||
23440 | * misc.c (gnat_handle_option): New cases for -Wvariadic-macros, | |
23441 | -Wold-style-definition and -Wmissing-format-attribute. | |
23442 | ||
23443 | 2006-02-13 Robert Dewar <dewar@adacore.com> | |
23444 | ||
23445 | * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec) | |
23446 | ||
23447 | * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files. | |
23448 | ||
23449 | 2006-02-13 Nicolas Roche <roche@adacore.com> | |
23450 | ||
23451 | * a-envvar.adb, a-envvar.ads: New files. | |
23452 | ||
23453 | 2006-02-13 Douglas Rupp <rupp@adacore.com> | |
23454 | ||
23455 | * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads | |
23456 | ||
23457 | * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files. | |
23458 | ||
23459 | 2006-02-13 Pat Rogers <rogers@adacore.com> | |
23460 | ||
23461 | * a-rttiev.adb, a-rttiev.ads: New files. | |
23462 | ||
23463 | 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com> | |
23464 | ||
23465 | * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb, | |
23466 | a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files. | |
23467 | ||
23468 | * impunit.adb, Makefile.rtl: Added new Ada 2005 units. | |
23469 | ||
23470 | 2006-02-13 Robert Dewar <dewar@adacore.com> | |
23471 | ||
7c066666 | 23472 | * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb, |
d9b25247 | 23473 | sem_case.adb: Minor code reorganization (not Present should be No) |
23474 | ||
23475 | 2006-02-13 Geert Bosch <bosch@adacore.com> | |
23476 | Gary Dismukes <dismukes@adacore.com> | |
23477 | ||
23478 | * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of | |
23479 | 0, since the lower bound of the actual string may be greater than one. | |
23480 | ||
23481 | PR ada/20753 | |
0f6d65ea | 23482 | * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid |
d9b25247 | 23483 | layout is requested. |
23484 | ||
23485 | 2006-02-13 Vincent Celier <celier@adacore.com> | |
23486 | ||
23487 | * back_end.adb (Scan_Compiler_Arguments): Check if | |
23488 | Search_Directory_Present is True and, if it is, add the argument in | |
23489 | the source search directory path. | |
23490 | ||
23491 | * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set | |
23492 | Search_Directory_Present to True. | |
23493 | ||
23494 | 2006-02-13 Joel Brobecker <brobecke@adacore.com> | |
23495 | ||
23496 | * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as | |
23497 | volatile, to tell the compiler to preserve this variable at any level | |
23498 | of optimization. | |
23499 | (Gen_Versions_Ada): Temporarily work around codegen bug. | |
23500 | ||
23501 | 2006-02-13 Vincent Celier <celier@adacore.com> | |
23502 | ||
23503 | * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke | |
23504 | gcc to link with option -shared-libgcc. | |
23505 | (Gnatlink): Remove duplicate switches -shared-libgcc | |
23506 | ||
23507 | 2006-02-13 Robert Dewar <dewar@adacore.com> | |
23508 | ||
23509 | * gnatvsn.ads (Current_Year): New constant, used to easily update | |
23510 | copyright on all GNAT tools. | |
23511 | ||
23512 | * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed | |
23513 | copyright notice. | |
23514 | ||
23515 | 2006-02-13 Robert Dewar <dewar@adacore.com> | |
23516 | ||
23517 | * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space | |
23518 | after hyphen (small aesthetic change useful for a range of numbers | |
23519 | using ^-^. | |
23520 | Suppress range checks for a couple of assignments which otherwise | |
23521 | cause validity checks with validity checking turned on. | |
23522 | ||
23523 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size): | |
23524 | Improvement in error message for object. | |
23525 | (Rep_Item_Too_Late): Remove '!' in warning message. | |
23526 | ||
23527 | 2006-02-13 Robert Dewar <dewar@adacore.com> | |
23528 | Eric Botcazou <ebotcazou@adacore.com> | |
23529 | ||
23530 | * err_vars.ads: Suppress range checks for a couple of assignments | |
23531 | which otherwise cause validity checks with validity checking turned on. | |
23532 | Update comments. | |
23533 | ||
23534 | * errout.adb (Error_Msg_Internal): Do not suppress warning messages. | |
23535 | Make message unconditional if it is a warning. | |
23536 | (Error_Msg_NEL): Always output warning messages. | |
23537 | Suppress range checks for a couple of assignments which otherwise | |
23538 | cause validity checks with validity checking turned on. | |
23539 | ||
23540 | * errout.ads (Message Insertion Characters): Document that '!' is | |
23541 | implied by '?' in error messages. | |
23542 | ||
23543 | * gnat1drv.adb: (Bad_Body): Remove '!' in warning message. | |
23544 | (Gnat1drv): Use a goto to end of main subprogram instead of | |
23545 | Exit_Program (E_Success) so that finalization can occur normally. | |
23546 | ||
23547 | 2006-02-13 Eric Botcazou <ebotcazou@adacore.com> | |
23548 | ||
23549 | * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has | |
23550 | wrapped around. | |
23551 | ||
23552 | 2006-02-13 Vincent Celier <celier@adacore.com> | |
23553 | ||
23554 | * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New | |
23555 | Unchecked_Conversion functions. | |
23556 | (Modification_Time): Use direct conversion of OS_Time to Calendar time | |
23557 | when OpenVMS returns False. | |
23558 | ||
23559 | * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads, | |
23560 | a-dirval.adb (OpenVMS): New Boolean function | |
23561 | ||
23562 | 2006-02-13 Ed Schonberg <schonberg@adacore.com> | |
23563 | Thomas Quinot <quinot@adacore.com> | |
23564 | ||
23565 | * checks.adb (Build_Discriminant_Checks): If the expression being | |
23566 | checks is an aggregate retrieve the values of its discriminants to | |
23567 | generate the check, rather than creating a temporary and a reference | |
23568 | to it. | |
23569 | (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag | |
23570 | (Install_Null_Excluding_Check): Ditto | |
23571 | (Selected_Length_Checks): Build actual subtype for the original Ck_Node, | |
23572 | not for the renamed object, so that the actual itype is attached in the | |
23573 | proper context. | |
23574 | ||
23575 | 2006-02-13 Robert Dewar <dewar@adacore.com> | |
23576 | Vincent Celier <celier@adacore.com> | |
23577 | ||
23578 | * debug.adb: Eliminate numeric switches for binder/gnatmake | |
23579 | ||
23580 | * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug | |
23581 | switches for the compiler. | |
23582 | (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake | |
23583 | (Scan_Make_Switches): When failing with an illegal switch, output an | |
23584 | error message with the full switch. | |
23585 | Eliminate numeric switches for binder/gnatmake | |
23586 | ||
23587 | * switch.ads, switch.adb (Bad_Switch): New procedure | |
23588 | ||
23589 | * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches. | |
23590 | Remove 0-9 as debug flag character possibilities | |
23591 | -d is now controlling the primary stack size when its value is a | |
23592 | positive. Also add checks against invalid values, and support for kb, | |
23593 | mb. Ditto for -D switch. | |
23594 | ||
23595 | 2006-02-13 Robert Dewar <dewar@adacore.com> | |
23596 | Serguei Rybin <rybin@adacore.com> | |
23597 | ||
23598 | * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with | |
23599 | save/restore routines. | |
23600 | Properly handle Ada_Version_Explicit and Ada_Version_Config, which | |
23601 | were not always properly handled previously. | |
23602 | Since we are changing the tree format anyway, also get rid of the | |
23603 | junk obsolete Immediate_Errors flag. | |
23604 | (Tree_Read): Change the way of reading Tree_Version_String - now we | |
23605 | read the version string from the tree even if its length is not the | |
23606 | same as the length of the version string computed from Gnatvsn. | |
23607 | (Search_Directory_Present): New Boolean flag for the compiler. | |
23608 | Define Tree_Version_String as a dynamic string. | |
23609 | (Default_Stack_Size): new variable, used to handle switch -d. | |
23610 | ||
7c066666 | 23611 | * par-prag.adb: |
d9b25247 | 23612 | For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit |
23613 | only for main unit. | |
23614 | Add pragma Ada_2005 (synonym for Ada_05) | |
23615 | Properly handle Ada_Version_Explicit and Ada_Version_Config, which | |
23616 | were not always properly handled previously. | |
23617 | ||
23618 | * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change | |
23619 | explicit Ada_95 to Ada_2005. | |
23620 | ||
23621 | 2006-02-13 Javier Miranda <miranda@adacore.com> | |
23622 | Robert Dewar <dewar@adacore.com> | |
23623 | Ed Schonberg <schonberg@adacore.com> | |
23624 | ||
23625 | * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend | |
23626 | against errors in the source program: a private types for which the | |
23627 | corresponding full type declaration is missing and pragma CPP_Virtual | |
23628 | is used. | |
23629 | (Is_Unchecked_Union): Check flag on Implementation_Base_Type. | |
23630 | (Is_Known_Null): New flag | |
23631 | (Has_Pragma_Pure): New flag | |
23632 | (No_Return): Present in all entities, set only for procedures | |
23633 | (Is_Limited_Type): A type whose ancestor is an interface is limited if | |
23634 | explicitly declared limited. | |
23635 | (DT_Offset_To_Top_Func): New attribute that is present in E_Component | |
23636 | entities. Only used for component marked Is_Tag. If present it stores | |
23637 | the Offset_To_Top function used to provide this value in tagged types | |
23638 | whose ancestor has discriminants. | |
23639 | ||
23640 | * exp_ch2.adb: Update status of new Is_Known_Null flag | |
23641 | ||
23642 | * sem_ch7.adb: Maintain status of new Is_Known_Null flag | |
23643 | ||
23644 | * sem_cat.adb (Get_Categorization): Don't treat function as Pure in | |
23645 | the categorization sense if Is_Pure was set by pragma Pure_Function. | |
23646 | ||
23647 | 2006-02-13 Quentin Ochem <ochem@adacore.com> | |
23648 | Olivier Hainque <hainque@adacore.com> | |
23649 | ||
23650 | * bindusg.adb: Updated documentation for -d and -D switches. | |
23651 | ||
23652 | * raise.h (__gnat_set_globals): added new parameter for | |
23653 | Default_Stack_Size. | |
23654 | ||
23655 | * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement. | |
23656 | (__gnat_handle_vms_condition): Adjust context before raise. | |
23657 | (__gnat_install_handler): Restore the global vector setup for GCC | |
23658 | versions before 3.4, as the frame based circtuitry is not available | |
23659 | in this case. | |
23660 | (__gnat_set_globals): added a parameter default_stack_size | |
23661 | (__gl_default_stack_size): new variable. | |
23662 | ||
23663 | 2006-02-13 Ed Schonberg <schonberg@adacore.com> | |
23664 | ||
23665 | * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable | |
23666 | "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept | |
23667 | does not exist in the Ada RM. | |
23668 | (Compatible_Int_Bounds): Determine whether two integer range bounds | |
23669 | are of equal length and have the same start and end values. | |
23670 | (Is_Int_Range_Bounds): Determine whether a node is an integer range. | |
23671 | (Build_Record_Aggr_Code): Perform proper sliding of a nested array | |
23672 | aggregate when it is part of an object declaration. | |
23673 | (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that | |
23674 | constrains discriminants of its parent, add explicitly the discriminant | |
23675 | constraints of the ancestor by retrieving them from the | |
23676 | stored_constraint of the parent. | |
23677 | ||
23678 | 2006-02-13 Robert Dewar <dewar@adacore.com> | |
23679 | ||
23680 | * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If | |
23681 | attribute Mechanism_Code is applied to renamed subprogram, modify | |
23682 | prefix to point to base subprogram. | |
23683 | Max/Min attributes now violate Restriction No_Implicit_Conditionals | |
23684 | ||
23685 | * sinfo.ads: Document that Mechanism_Code cannot be applied to | |
23686 | renamed subprograms so that the front-end must replace the prefix | |
23687 | appropriately. | |
23688 | ||
23689 | 2006-02-13 Javier Miranda <miranda@adacore.com> | |
23690 | Gary Dismukes <dismukes@adacore.com> | |
23691 | ||
23692 | * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for | |
23693 | availability of RE_Interface_Tag. | |
23694 | (Build_Initialization_Call): Fix wrong access to the discriminant value. | |
23695 | (Freeze_Record_Type): Do not generate the tables associated with | |
23696 | timed and conditional dispatching calls through synchronized | |
23697 | interfaces if compiling under No_Dispatching_Calls restriction. | |
23698 | When compiling for Ada 2005, for a nonabstract | |
23699 | type with a null extension, call Make_Controlling_Function_Wrappers | |
23700 | and insert the wrapper function declarations and bodies (the latter | |
23701 | being appended as freeze actions). | |
23702 | (Predefined_Primitive_Bodies): Do not generate the bodies of the | |
23703 | predefined primitives associated with timed and conditional | |
23704 | dispatching calls through synchronized interfaces if we are | |
23705 | compiling under No_Dispatching_Calls. | |
23706 | (Build_Init_Procedure): Use RTE_Available to check if a run-time | |
23707 | service is available before generating a call. | |
23708 | (Make_Controlling_Function_Wrappers): New procedure. | |
23709 | (Expand_N_Full_Type_Declaration): Create a class-wide master for | |
23710 | access-to-limited-interfaces because they can be used to reference | |
23711 | tasks that implement such limited interface. | |
23712 | (Build_Offset_To_Top_Functions): Build the tree corresponding to the | |
23713 | procedure spec and body of the Offset_To_Top function that is generated | |
23714 | when the parent of a type with discriminants has secondary dispatch | |
23715 | tables. | |
23716 | (Init_Secondary_Tags): Handle the case in which the parent of the type | |
23717 | containing secondary dispatch tables has discriminants to generate the | |
23718 | correct arguments to call Set_Offset_To_Top. | |
23719 | (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions. | |
23720 | ||
23721 | * a-tags.ads, a-tags.adb: (Check_Index): Removed. | |
23722 | Add Wide_[Wide_]Expanded_Name. | |
23723 | (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly | |
23724 | the same functionality of Get_Prim_Op_Address but applied to predefined | |
23725 | primitive operations because the pointers to the predefined primitives | |
23726 | are now saved in a separate table. | |
23727 | (Parent_Size): Modified to get access to the separate table of primitive | |
23728 | operations or the parent type. | |
23729 | (Set_Predefined_Prim_Op_Address): New subprogram that provides the same | |
23730 | functionality of Set_Prim_Op_Address but applied to predefined primitive | |
23731 | operations. | |
23732 | (Set_Signature): New subprogram used to store the signature of a DT. | |
23733 | (Displace): If the Offset_To_Top value is not static then call the | |
23734 | function generated by the expander to get such value; otherwise use | |
23735 | the value stored in the table of interfaces. | |
23736 | (Offset_To_Top): The type of the actual has been changed to Address to | |
23737 | give the correct support to tagged types with discriminants. In this | |
23738 | case this value is stored just immediately after the tag field. | |
23739 | (Set_Offset_To_Top): Two new formals have been added to indicate if the | |
23740 | offset_to_top value is static and hence pass this value to the run-time | |
23741 | to store it in the table of interfaces, or else if this value is dynamic | |
23742 | and then pass to the run-time the address of a function that is | |
23743 | generated by the expander to provide this value for each object of the | |
23744 | type. | |
23745 | ||
23746 | * rtsfind.ads (Default_Prin_Op_Count): Removed. | |
23747 | (Default_Prim_Op_Count): New entity | |
23748 | (Get_Predefined_Prim_Op_Address): New entity | |
23749 | (Set_Predefined_Prim_Op_Address): New entity | |
23750 | (RE_Set_Signature): New entity | |
23751 | ||
23752 | 2006-02-13 Thomas Quinot <quinot@adacore.com> | |
23753 | Ed Schonberg <schonberg@adacore.com> | |
23754 | ||
23755 | * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to | |
23756 | Make_Adjust_Call done for a newly-allocated object. | |
23757 | ||
23758 | * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements | |
23759 | in a subprogram are wrapped in a cleanup block, indicate that the | |
23760 | subprogram contains an inner block with an exception handler. | |
23761 | (Make_Adjust_Call): New Boolean formal Allocator indicating whether the | |
23762 | Adjust call is for a newly-allocated object. In that case we must not | |
23763 | assume that the finalization list chain pointers are correct (since they | |
23764 | come from a bit-for-bit copy of the original object's pointers) so if | |
23765 | the attach level would otherwise be zero (no change), we set it to 4 | |
23766 | instead to cause the pointers to be reset to null. | |
23767 | ||
23768 | * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning | |
23769 | reset chain pointers to null. | |
23770 | ||
23771 | 2006-02-13 Ed Schonberg <schonberg@adacore.com> | |
23772 | ||
23773 | * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a | |
23774 | string, and the context requires a loop for the assignment (e.g. | |
23775 | because the left-hand side is packed), generate a unique name for the | |
23776 | temporary that holds the string, to prevent spurious name clashes. | |
23777 | ||
23778 | 2006-02-13 Ed Schonberg <schonberg@adacore.com> | |
23779 | Javier Miranda <miranda@adacore.com> | |
23780 | Robert Dewar <dewar@adacore.com> | |
23781 | Gary Dismukes <dismukes@adacore.com> | |
23782 | ||
23783 | * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that | |
23784 | return unconstrained arrays. | |
23785 | Update comments. | |
23786 | (Expand_Call): An indirect call through an access parameter of a | |
23787 | protected operation is not a protected call. | |
23788 | Add circuit to raise CE in Ada 2005 mode following call | |
23789 | to Raise_Exception. | |
23790 | (Register_DT_Entry): Do nothing if | |
23791 | the run-time does not give support to abstract interfaces. | |
23792 | (Freeze_Subprogram): In case of dispatching operations, do not generate | |
23793 | code to register the operation in the dispatch table if the source | |
23794 | is compiled with No_Dispatching_Calls. | |
23795 | (Register_Predefined_DT_Entry): Generate code that calls the new | |
23796 | run-time subprogram Set_Predefined_Prim_Op_Address instead of | |
23797 | Set_Prim_Op_Address. | |
23798 | ||
23799 | * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks | |
23800 | on array assignments if the right-hand side is a function call that has | |
23801 | been inlined. Check is performed on the assignment in the block. | |
23802 | (Process_Bounds): If bounds and range are overloaded, apply preference | |
23803 | rule for root operations to disambiguate, and diagnose true ambiguity. | |
23804 | (Analyze_Assignment): Propagate the tag for a class-wide assignment with | |
23805 | a tag-indeterminate right-hand side even when Expander_Active is True. | |
23806 | Needed to ensure that dispatching calls to T'Input are allowed and | |
23807 | get the tag of the target class-wide object. | |
23808 | ||
23809 | * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override | |
23810 | an inherited primitive operation that already overrides several | |
23811 | abstract interface primitives. For transitivity, the new entity must | |
23812 | also override all the abstract interface primitives covered by the | |
23813 | inherited overriden primitive. | |
23814 | Emit warning if new entity differs from homograph in same scope only in | |
23815 | that one has an access parameter and the other one has a parameter of | |
23816 | a general access type with the same designated type, at the same | |
23817 | position in the signature. | |
23818 | (Make_Inequality_Operator): Use source locations of parameters and | |
23819 | subtype marks from corresponding equality operator when creating the | |
23820 | tree structure for the implicit declaration of "/=". This does not | |
23821 | change anything in behaviour except that the decoration of the | |
23822 | components of the subtree created for "/=" allows ASIS to get the | |
23823 | string images of the corresponding identifiers. | |
23824 | (Analyze_Return_Statement): Remove '!' in warning message. | |
23825 | (Check_Statement_Sequence): Likewise. | |
23826 | (Analyze_Subprogram_Body): For an access parameter whose designated type | |
23827 | is an incomplete type imported through a limited_with clause, use the | |
23828 | type of the corresponding formal in the body. | |
23829 | (Check_Returns): Implicit return in No_Return procedure now raises | |
23830 | Program_Error with a compile time warning, instead of beging illegal. | |
23831 | (Has_Single_Return): Function returning unconstrained type cannot be | |
23832 | inlined if expression in unique return statement is not an identifier. | |
23833 | (Build_Body_To_Inline): It is possible to inline a function call that | |
23834 | returns an unconstrained type if all return statements in the function | |
23835 | return the same local variable. Subsidiary procedure Has_Single_Return | |
23836 | verifies that the body conforms to this restriction. | |
23837 | ||
23838 | * sem_res.adb (Resolve_Equality_Op): If the operands do not have the | |
23839 | same type, and one of them is of an anonymous access type, convert | |
23840 | the other operand to it, so that this is a valid binary operation for | |
23841 | gigi. | |
23842 | (Resolve_Type_Conversion): Handle subtypes of protected types and | |
23843 | task types when accessing to the corresponding record type. | |
23844 | (Resolve_Allocator): Add '\' in 2-line warning message. | |
23845 | Remove '!' in warning message. | |
23846 | (Resolve_Call): Add '\' in 2-line warning message. | |
23847 | (Valid_Conversion): Likewise. | |
23848 | (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the | |
23849 | resulting type may be an access type with an implicit dereference. | |
23850 | Obtain the proper component from the designated type. | |
23851 | (Make_Call_Into_Operator): Handle properly a call to predefined equality | |
23852 | given by an expanded name with prefix Standard, when the operands are | |
23853 | of an anonymous access type. | |
23854 | (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_ | |
23855 | Explicit_Dereference and Resolve_Selected_Component, to verify that the | |
23856 | prefix of the expression is not of an incomplete type. Allows full | |
23857 | diagnoses of all semantic errors. | |
23858 | (Resolve_Actuals): If the actual is an allocator whose directly | |
23859 | designated type is a class-wide interface we build an anonymous | |
23860 | access type to use it as the type of the allocator. Later, when | |
23861 | the subprogram call is expanded, if the interface has a secondary | |
23862 | dispatch table the expander will add a type conversion to force | |
23863 | the displacement of the pointer. | |
23864 | (Resolve_Call): If a function that returns an unconstrained type is | |
23865 | marked Inlined_Always and inlined, the call will be inlined and does | |
23866 | not require the creation of a transient scope. | |
23867 | (Check_Direct_Boolean_Op): Removed | |
23868 | (Resolve_Comparison_Op): Remove call to above | |
23869 | (Resolve_Equality_Op): Remove call to above | |
23870 | (Resolve_Logical_Op): Inline above, since this is only call. | |
23871 | (Valid_Conversion): Handle properly conversions between arrays of | |
23872 | convertible anonymous access types. | |
23873 | ||
23874 | PR ada/25885 | |
d9b25247 | 23875 | (Set_Literal_String_Subtype): If the lower bound is not static, wrap |
23876 | the literal in an unchecked conversion, because GCC 4.x needs a static | |
23877 | value for a string bound. | |
23878 | ||
23879 | 2006-02-13 Ed Schonberg <schonberg@adacore.com> | |
23880 | Hristian Kirtchev <kirtchev@adacore.com> | |
23881 | ||
23882 | * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the | |
23883 | components of the corresponding record, take into account component | |
23884 | definitions that are access definitions. | |
23885 | (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a | |
23886 | procedure is not considered a dispatching call and will be expanded | |
23887 | properly. | |
23888 | ||
23889 | 2006-02-13 Javier Miranda <miranda@adacore.com> | |
23890 | ||
23891 | * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the | |
23892 | controlling argument of the dispatching call is an abstract interface | |
23893 | class-wide type then we use it directly. | |
23894 | Check No_Dispatching_Calls restriction. | |
23895 | (Default_Prim_Op_Position): Remove the code that looks for the last | |
23896 | entity in the list of aliased subprograms. This code was wrong in | |
23897 | case of renamings. | |
23898 | (Fill_DT_Entry): Add assertion to avoid the use of this subprogram | |
23899 | when the source is compiled with the No_Dispatching_Calls restriction. | |
23900 | (Init_Predefined_Interface_Primitives): No need to inherit primitives | |
23901 | if we are compiling with restriction No_Dispatching_Calls. | |
23902 | (Make_Disp_XXX): Addition of assertion to avoid the use of all these | |
23903 | subprograms if we are compiling under No_Dispatching_Calls restriction. | |
23904 | (Make_DT): Generate a dispatch table with a single dummy entry if | |
23905 | we are compiling with the No_Dispatching_Calls restriction. In | |
23906 | addition, in this case we don't generate code that calls to the | |
23907 | following run-time subprograms: Set_Type_Kind, Inherit_DT. | |
23908 | (Make_Select_Specific_Data_Table): Add assertion to avoid the use | |
23909 | of this subprogram if compiling with the No_Dispatching_Calls | |
23910 | restriction. | |
23911 | (Expand_Type_Conversion): Instead of using the actual parameter, | |
23912 | the argument passed as parameter to the conversion function was | |
23913 | erroneously referenced by the expander. | |
23914 | (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address, | |
23915 | Set_Predefined_Primitive_Op_Address and Set_Signature. | |
23916 | (Expand_Dispatching_Call): Generate call to | |
23917 | Get_Predefined_Prim_Op_Address for predefined primitives. | |
23918 | (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for | |
23919 | predefined primitives. | |
23920 | (Make_DT, Make_Secondary_DT): If the tagged type has no user defined | |
23921 | primitives we reserve one dummy entry to ensure that the tag does not | |
23922 | point to some memory that is associated with some other object. In | |
23923 | addition, remove all the old code that generated the assignments | |
23924 | associated with the signature of the dispatch table and replace them | |
23925 | by a call to the new subprogram Set_Signature. | |
23926 | (Set_All_DT_Position): Change the algorithm because now we have a | |
23927 | separate dispatch table associated with predefined primitive operations. | |
23928 | (Expand_Interface_Conversion): In case of non-static offset_to_top | |
23929 | add explicit dereference to get access to the object after the call | |
23930 | to displace the pointer to the object. | |
23931 | (Expand_Interface_Thunk): Modify the generation of the actual used | |
23932 | in the calls to the run-time function Offset_To_Top to fulfil its | |
23933 | new interface. | |
23934 | (Make_DT): Add the new actuals required to call Set_Offset_To_Top. | |
23935 | ||
23936 | 2006-02-13 Ed Schonberg <schonberg@adacore.com> | |
23937 | ||
23938 | * exp_dist.adb (Copy_Specification): For access parameters, copy | |
23939 | Null_Exclusion flag, which will have been set for stream subprograms | |
23940 | in Ada2005 mode. | |
23941 | ||
23942 | 2006-02-13 Pascal Obry <obry@adacore.com> | |
23943 | ||
23944 | * expect.c (__gnat_expect_portable_execvp): New implementation. The | |
23945 | previous implementation was using the C runtime spawnve routine but | |
23946 | the corresponding wait was using directly the Win32 API. This was | |
23947 | causing some times a lock when waiting for an event using | |
23948 | WaitForSingleObject in __gnat_waitpid. This new implementation uses | |
23949 | the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32 | |
23950 | API fixes this problem. | |
23951 | ||
23952 | 2006-02-13 Robert Dewar <dewar@adacore.com> | |
23953 | ||
23954 | * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze | |
23955 | call. | |
23956 | ||
23957 | 2006-02-13 Thomas Quinot <quinot@adacore.com> | |
23958 | ||
23959 | * exp_pakd.ads: Fix typos in comments. | |
23960 | ||
23961 | * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed | |
23962 | array reference that is an explicit dereference, mark the converted | |
23963 | (packed) array reference as analyzed to prevent a forthcoming | |
23964 | reanalysis from resetting its type to the original (non-packed) array | |
23965 | type. | |
23966 | ||
23967 | 2006-02-13 Ed Schonberg <schonberg@adacore.com> | |
23968 | Javier Miranda <miranda@adacore.com> | |
23969 | Eric Botcazou <ebotcazou@adacore.com> | |
23970 | ||
23971 | * exp_util.ads, exp_util.adb (Find_Prim_Op, | |
23972 | Is_Predefined_Primitive_Operation): When | |
23973 | searching for the predefined equality operator, verify that operands | |
23974 | have the same type. | |
23975 | (Is_Predefined_Dispatching_Operation): Remove the code that looks | |
23976 | for the last entity in the list of aliased subprograms. This code | |
23977 | was wrong in case of renamings. | |
23978 | (Set_Renamed_Subprogram): New procedure | |
23979 | (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the | |
23980 | Exp_Type constant computed when entering this subprogram. | |
23981 | (Known_Null): New function | |
23982 | (OK_To_Do_Constant_Replacement): New function | |
23983 | (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag | |
23984 | (Side_Effect_Free): An attribute reference 'Input is not free of | |
23985 | side effect, unlike other attributes that are functions. (from code | |
23986 | reading). | |
23987 | (Remove_Side_Effects): Expressions that involve packed arrays or records | |
23988 | are copied at the point of reference, and therefore must be marked as | |
23989 | renamings of objects. | |
23990 | (Is_Predefined_Dispatching_Operation): Return false if the operation is | |
23991 | not a dispatching operation. | |
23992 | ||
23993 | PR ada/18819 | |
23994 | (Remove_Side_Effects): Lift enclosing type conversion nodes for | |
23995 | elementary types in all cases. | |
23996 | ||
23997 | 2006-02-13 Javier Miranda <miranda@adacore.com> | |
23998 | ||
23999 | * freeze.adb (Freeze_Entity): Handle subtypes of protected types and | |
24000 | task types when accessing to the corresponding record type. | |
24001 | Remove '!' in warning message. | |
24002 | ||
24003 | 2006-02-13 Olivier Hainque <hainque@adacore.com> | |
24004 | ||
24005 | * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment), | |
24006 | to avoid useless and space inefficient overalignments on targets where | |
24007 | Max_Alignment is larger than 16. | |
24008 | ||
24009 | 2006-02-13 Pascal Obry <obry@adacore.com> | |
24010 | ||
24011 | * g-catiio.adb (Sec_Number): New type used to compute the number of | |
24012 | seconds since 1-1-1970. | |
24013 | (Image) [Natural]: The parameter was an Integer, as we can't deal with | |
24014 | negative numbers (years, months...) it is better to have a Natural here. | |
24015 | Code clean-up. | |
24016 | (Image) [Number]: Change parameter from Long_Integer to Number. | |
24017 | (Image): Use Number type to compute the seconds since 1-1-1970 to fix an | |
24018 | overflow for dates past year 2038. | |
24019 | ||
24020 | 2006-02-13 Matthew Heaney <heaney@adacore.com> | |
24021 | ||
24022 | * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise | |
24023 | Constraint_Error. | |
24024 | ||
24025 | 2006-02-13 Arnaud Charlet <charlet@adacore.com> | |
24026 | ||
24027 | * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and | |
24028 | native platforms. | |
24029 | (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that | |
24030 | finalization can occur normally. | |
24031 | ||
24032 | 2006-02-13 Vincent Celier <celier@adacore.com> | |
24033 | ||
24034 | * gnatcmd.adb (Rules_Switches): New table | |
24035 | (Add_To_Rules_Switches): New procedure | |
24036 | (GNATCmd): For command CHECK, put all options following "-rules" in the | |
24037 | Rules_Switches table. Append these -rules switches after the -cargs | |
24038 | switches. | |
24039 | ||
24040 | 2006-02-13 Robert Dewar <dewar@adacore.com> | |
24041 | ||
24042 | * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM): | |
24043 | These two cases were generating incorrect output, and if this unit | |
24044 | was built with checks on, generated a discriminant mismatch constraint | |
24045 | error. | |
24046 | ||
24047 | 2006-02-13 Ed Schonberg <schonberg@adacore.com> | |
24048 | Robert Dewar <dewar@adacore.com> | |
24049 | ||
24050 | * lib-xref.adb (Get_Type_Reference): For a private type whose full | |
24051 | view is an array type, indicate the component type as well, for | |
24052 | navigation purposes. | |
24053 | (Generate_Reference): Don't consider array ref on LHS to be a case | |
24054 | of violating pragma Unreferenced. | |
24055 | Do not give Ada 2005 warning except on real reference. | |
24056 | ||
24057 | 2006-02-13 Vincent Celier <celier@adacore.com> | |
24058 | ||
24059 | * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the | |
24060 | main source, add switch -mdebug-main=_ada_ so that the executable can | |
24061 | be debugged by the standard VMS debugger. | |
24062 | (Gnatmake): Set No_Main_Subprogram to True when there is no main | |
24063 | subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly. | |
24064 | Exit the Multi_Main_Loop when Unique_Compile is True after compilation | |
24065 | of the last source, as the binding and linking phases are never | |
24066 | performed. | |
24067 | Set all executable obsolete when rebuilding a library. | |
24068 | ||
24069 | * makeutl.adb (Linker_Options_Switches): Do not process empty linker | |
24070 | options. | |
24071 | ||
24072 | 2006-02-13 Javier Miranda <miranda@adacore.com> | |
24073 | ||
24074 | PR ada/23973 | |
d9b25247 | 24075 | * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the |
24076 | code to improve the error message reported when the program has | |
24077 | declarations of abstract interface types and it is not compiled with | |
24078 | the -gnat05 switch. | |
24079 | (P_Access_Definition): Reorganize the code to improve the error | |
24080 | message reported when the new Ada 2005 syntax for anonymous | |
24081 | access types is used and the program is not compiled with the | |
24082 | -gnat05 switch. | |
24083 | ||
24084 | 2006-02-13 Robert Dewar <dewar@adacore.com> | |
24085 | ||
24086 | * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb, | |
24087 | stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch | |
24088 | (MODE_IN) | |
24089 | ||
24090 | 2006-02-13 Javier Miranda <miranda@adacore.com> | |
24091 | ||
24092 | * par-endh.adb (Explicit_Start_Label): Add code to protect the parser | |
24093 | against source containing syntax errors. | |
24094 | ||
24095 | 2006-02-13 Vincent Celier <celier@adacore.com> | |
24096 | ||
24097 | * prj.adb (Reset): Initialize the first element of table Namings with | |
24098 | the standard naming data. | |
24099 | ||
24100 | 2006-02-13 Vincent Celier <celier@adacore.com> | |
24101 | ||
24102 | * prj.ads (Error_Warning): New enumeration type | |
24103 | ||
24104 | * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is | |
24105 | unknown, use the location of the project to report the error. | |
24106 | (When_No_Sources): New global variable | |
24107 | (Report_No_Ada_Sources): New procedure | |
24108 | (Check): New parameter When_No_Sources. Set value of global variable | |
24109 | When_No_Sources, | |
24110 | (Find_Sources): Call Report_No_Ada_Sources when appropriate | |
24111 | (Get_Sources_From_File): Ditto | |
24112 | (Warn_If_Not_Sources): Better warning messages indicating the unit name | |
24113 | and the file name. | |
24114 | ||
24115 | * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources. | |
24116 | Call Prj.Proc.Process with parameter When_No_Sources. | |
24117 | ||
24118 | * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources. | |
24119 | Call Recursive_Check with parameter When_No_Sources. | |
24120 | (Recursive_Check): New parameter When_No_Sources. Call itself and | |
24121 | Prj.Nmsc.Check with parameter When_No_Sources. | |
24122 | (Process): New parameter When_No_Sources. Call Check with parameter | |
24123 | When_No_Sources. | |
24124 | (Copy_Package_Declarations): New procedure to copy renamed parameters | |
24125 | and setting the location of the declared attributes to the location | |
24126 | of the renamed package. | |
24127 | (Process_Declarative_Items): Call Copy_Package_Declarations for renamed | |
24128 | packages. | |
24129 | ||
24130 | 2006-02-13 Vincent Celier <celier@adacore.com> | |
24131 | ||
24132 | * prj-makr.adb (Make): Preserve the comments from the original project | |
24133 | file. | |
24134 | When removing nodes (attributes Source_Dirs, Source_Files, | |
24135 | Source_List_File and package Naming), save the comments and attach the | |
24136 | saved comments to the newly created nodes. | |
24137 | Do not add a with clause for the naming package if one already exists. | |
24138 | ||
24139 | 2006-02-13 Javier Miranda <miranda@adacore.com> | |
24140 | Gary Dismukes <dismukes@adacore.com> | |
24141 | Robert Dewar <dewar@adacore.com> | |
24142 | ||
24143 | * restrict.ads (No_Dispatching_Calls): New GNAT restriction. | |
24144 | ||
24145 | * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of | |
24146 | aliased entities to look for the overriden abstract interface | |
24147 | subprogram. | |
24148 | (Is_Interface_Subprogram): Complete documentation. | |
24149 | (Check_Dispatching_Operation): Do not generate code to register the | |
24150 | operation in the dispatch table if the source is compiled with | |
24151 | restriction No_Dispatching_Calls. | |
24152 | (Override_Dispatching_Operation): Check for illegal attempt to override | |
24153 | No_Return procedure with procedure that is not No_Return | |
24154 | (Check_Dispatching_Call): Suppress the check for an abstract operation | |
24155 | when the original node of an actual is a tag-indeterminate attribute | |
24156 | call, since the attribute, which must be 'Input, can never be abstract. | |
24157 | (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a | |
24158 | call to the Input attribute (even when rewritten). | |
24159 | (Propagate_Tag): Augment comment to indicate the possibility of a call | |
24160 | to an Input attribute. | |
24161 | ||
24162 | * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow | |
24163 | calling it from Exp_Ch3.Make_Controlling_Function_Wrappers. | |
24164 | ||
24165 | * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction. | |
24166 | No_Wide_Characters is no longer partition-wide | |
24167 | No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257) | |
24168 | rather than GNAT | |
24169 | ||
24170 | 2006-02-13 Douglas Rupp <rupp@adacore.com> | |
24171 | ||
24172 | * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type. | |
24173 | ||
24174 | 2006-02-13 Javier Miranda <miranda@adacore.com> | |
24175 | ||
24176 | * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that | |
24177 | handles default-initialized components to keep separate the management | |
24178 | of this feature but also avoid the unrequired resolution and | |
24179 | expansion of components that do not have partially initialized | |
24180 | values. | |
24181 | (Collect_Aggr_Bounds): Add '\' in 2-line warning message. | |
24182 | (Check_Bounds): Likewise. | |
24183 | (Check_Length): Likewise. | |
24184 | ||
24185 | 2006-02-13 Javier Miranda <miranda@adacore.com> | |
24186 | Ed Schonberg <schonberg@adacore.com> | |
24187 | ||
24188 | * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an | |
24189 | abstract interface type call analyze_and_resolve to expand the type | |
24190 | conversion into the corresponding displacement of the | |
24191 | reference to the base of the object. | |
24192 | (Eval_Attribute, case Width): For systems where IEEE extended precision | |
24193 | is supported, the maximum exponent occupies 4 decimal digits. | |
24194 | (Accessibility_Message): Add '\' in 2-line warning message. | |
24195 | (Resolve_Attribute): Likewise. | |
24196 | (case Attribute_Access): Significantly revise checks | |
24197 | for illegal access-to-subprogram Access attributes to properly enforce | |
24198 | the rules of 3.10.2(32/2). | |
24199 | Diagnose use of current instance with an illegal attribute. | |
24200 | ||
d4c15061 | 24201 | * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal |
24202 | to a Node_Id. | |
24203 | (Enclosing_Generic_Unit): New function to return a node's innermost | |
24204 | enclosing generic declaration node. | |
24205 | (Compile_Time_Constraint_Error): Remove '!' in warning messages. | |
24206 | (Type_Access_Level): The accessibility level of anonymous acccess types | |
24207 | associated with discriminants is that of the current instance of the | |
24208 | type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)). | |
24209 | (Compile_Time_Constraint_Error): Handle case of conditional expression. | |
24210 | (Kill_Current_Values_For_Entity): New function | |
24211 | (Enter_Name): Change formal type to Entity_Id | |
d9b25247 | 24212 | |
24213 | 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com> | |
24214 | Ed Schonberg <schonberg@adacore.com> | |
24215 | Gary Dismukes <dismukes@adacore.com> | |
24216 | ||
24217 | * sem_ch10.adb (Check_Redundant_Withs): New procedure in | |
24218 | Analyze_Compilation_Unit. | |
24219 | Detect and warn on redundant with clauses detected in a package spec | |
24220 | and/or body when -gnatwr is used. | |
24221 | (Analyze_Context): Analyze config pragmas before other items | |
24222 | (Install_Context_Items): Don't analyze config pragmas here | |
24223 | (Install_Limited_Withed_Unit): Set limited entity of package in | |
24224 | with_clause so that cross-reference information or warning messages on | |
24225 | unused packages can be properly generated | |
24226 | (Is_Visible_Through_Renamings): Return false if the limited_with_clause | |
24227 | has Error_Posted set. Prevent infinite loops in illegal programs. | |
24228 | (Check_Private_Child_Unit): Move test for a nonprivate with clause down | |
24229 | to the point of the error test requiring the current unit to be private. | |
24230 | This ensures that private with clauses are not exempted from the basic | |
24231 | checking for being a descendant of the same library unit parent as a | |
24232 | withed private descendant unit. | |
24233 | (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to | |
24234 | handle private with clauses properly, as well as to account for cases | |
24235 | where the withed unit is a public descendant of a private ancestor | |
24236 | (in which case the current unit must be a descendant of the private | |
24237 | ancestor's parent). The spec comments were updated accordingly. Also, | |
24238 | the old error message in this subprogram was replaced with error | |
24239 | messages that mirror the errors tested and reported by | |
24240 | Check_Private_Child_Unit. | |
24241 | Parameter and variable names improved for readability. | |
24242 | (Install_Limited_Context_Clauses): Remove test for a withed unit being | |
24243 | private as the precondition for calling | |
24244 | Check_Private_Limited_Withed_Unit since that subprogram has been | |
24245 | revised to test public units as well as private units. | |
24246 | ||
24247 | 2006-02-13 Thomas Quinot <quinot@adacore.com> | |
24248 | Robert Dewar <dewar@adacore.com> | |
24249 | Ed Schonberg <schonberg@adacore.com> | |
24250 | Javier Miranda <miranda@adacore.com> | |
24251 | ||
24252 | * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption | |
24253 | that Scope_Stack.First = 1. | |
24254 | Properly handle Ada_Version_Explicit and Ada_Version_Config, which | |
24255 | were not always properly handled previously. | |
24256 | (Formal_Entity): Complete rewrite, to handle properly some complex case | |
24257 | with multiple levels of parametrization by formal packages. | |
24258 | (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator | |
24259 | to the corresponding derived type declaration for proper semantics. | |
24260 | ||
24261 | * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message. | |
24262 | (Check_Component): Enforce restriction on components of | |
24263 | unchecked_unions: a component in a variant cannot contain tasks or | |
24264 | controlled types. | |
24265 | (Unchecked_Union): Allow nested variants and multiple discriminants, to | |
24266 | conform to AI-216. | |
24267 | Add pragma Ada_2005 (synonym for Ada_05) | |
24268 | Properly handle Ada_Version_Explicit and Ada_Version_Config, which | |
24269 | were not always properly handled previously. | |
24270 | Document that pragma Propagate_Exceptions has no effect | |
24271 | (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure | |
24272 | (Set_Convention_From_Pragma): Check that if a convention is | |
24273 | specified for a dispatching operation, then it must be | |
24274 | consistent with the existing convention for the operation. | |
24275 | (CPP_Class): Because of the C++ ABI compatibility, the programmer is no | |
24276 | longer required to specify an vtable-ptr component in the record. For | |
24277 | compatibility reasons we leave the support for the previous definition. | |
24278 | (Analyze_Pragma, case No_Return): Allow multiple arguments | |
24279 | ||
24280 | * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a | |
24281 | non-overrideen inherited operation with a controlling result as | |
24282 | illegal only its implicit declaration comes from the derived type | |
24283 | declaration of its result's type. | |
24284 | (Check_Possible_Deferred_Completion): Relocate the object definition | |
24285 | node of the subtype indication of a deferred constant completion rather | |
24286 | than directly analyzing it. The analysis of the generated subtype will | |
24287 | correctly decorate the GNAT tree. | |
24288 | (Record_Type_Declaration): Check whether this is a declaration for a | |
24289 | limited derived record before analyzing components. | |
24290 | (Analyze_Component_Declaration): Diagnose record types not explicitly | |
24291 | declared limited when a component has a limited type. | |
24292 | (Build_Derived_Record_Type): Code reorganization to check if some of | |
24293 | the inherited subprograms of a tagged type cover interface primitives. | |
24294 | This check was missing in case of a full-type associated with a private | |
24295 | type declaration. | |
24296 | (Constant_Redeclaration): Check that the subtypes of the partial and the | |
24297 | full view of a constrained deferred constant statically match. | |
24298 | (Mentions_T): A reference to the current type in an anonymous access | |
24299 | component declaration must be an entity name. | |
24300 | (Make_Incomplete_Type_Declaration): If type is tagged, set type of | |
24301 | class_wide type to refer to full type, not to the incomplete one. | |
24302 | (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not | |
24303 | available. Required to give support to the certified run-time. | |
24304 | (Analyze_Component_Declaration): In case of anonymous access components | |
24305 | perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2). | |
24306 | (Process_Discriminants): For an access discriminant, use the | |
24307 | discriminant specification as the associated_node_for_itype, to | |
24308 | simplify accessibility checks. | |
24309 | ||
24310 | 2006-02-13 Ed Schonberg <schonberg@adacore.com> | |
24311 | Javier Miranda <miranda@adacore.com> | |
24312 | ||
24313 | * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no | |
24314 | abstract interpretations on an operator, remove interpretations that | |
24315 | yield Address or a type derived from it, if one of the operands is an | |
24316 | integer literal. | |
24317 | (Try_Object_Operation.Try_Primitive_Operation, | |
24318 | Try_Object_Operation.Try_Class_Wide_Operation): Set proper source | |
24319 | location when creating the new reference to a primitive or class-wide | |
24320 | operation as a part of rewriting a subprogram call. | |
24321 | (Try_Primitive_Operations): If context requires a function, collect all | |
24322 | interpretations after the first match, because there may be primitive | |
24323 | operations of the same type with the same profile and different return | |
24324 | types. From code reading. | |
24325 | (Try_Primitive_Operation): Use the node kind to choose the proper | |
24326 | operation when a function and a procedure have the same parameter | |
24327 | profile. | |
24328 | (Complete_Object_Operation): If formal is an access parameter and prefix | |
24329 | is an object, rewrite as an Access reference, to match signature of | |
24330 | primitive operation. | |
24331 | (Find_Equality_Type, Find_One_Interp): Handle properly equality given | |
24332 | by an expanded name with prefix Standard, when the operands are of an | |
24333 | anonymous access type. | |
24334 | (Remove_Abstract_Operations): If the operation is abstract because it is | |
24335 | inherited by a user-defined type derived from Address, remove it as | |
24336 | well from the set of candidate interpretations of an overloaded node. | |
24337 | (Analyze_Membership_Op): Membership test not applicable to cpp-class | |
24338 | types. | |
24339 | ||
24340 | 2006-02-13 Bob Duff <duff@adacore.com> | |
24341 | ||
24342 | * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about | |
24343 | redundant use clauses. | |
24344 | In particular, if the scope of two use clauses overlaps, but one is not | |
24345 | entirely included in the other, we should not warn. This can happen | |
24346 | with nested packages. | |
24347 | (Analyze_Subprogram_Renaming): Protect the compiler against previously | |
24348 | reported errors. The bug was reported when the compiler was built | |
24349 | with assertions enabled. | |
24350 | (Find_Type): If the node is a 'Class reference and the prefix is a | |
24351 | synchronized type without a corresponding record, return the type | |
24352 | itself. | |
24353 | ||
24354 | 2006-02-13 Javier Miranda <miranda@adacore.com> | |
24355 | ||
24356 | * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that | |
24357 | if this is the full-declaration associated with a private declaration | |
24358 | that implement interfaces, then the private type declaration must be | |
24359 | limited. | |
24360 | (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object | |
24361 | as aliased. The use of the 'access attribute is not available for such | |
24362 | object (for this purpose the object should be explicitly marked as | |
24363 | aliased, but being an anonymous type this is not possible). | |
24364 | ||
24365 | 2006-02-13 Ed Schonberg <schonberg@adacore.com> | |
24366 | Robert Dewar <dewar@adacore.com> | |
24367 | ||
24368 | * sem_elab.adb (Same_Elaboration_Scope): A package that is a | |
24369 | compilation unit is an elaboration scope. | |
24370 | (Add_Task_Proc): Add '\' in 2-line warning message. | |
24371 | (Activate_All_Desirable): Deal with case of unit with'ed by parent | |
24372 | ||
24373 | 2006-02-13 Ed Schonberg <schonberg@adacore.com> | |
24374 | Javier Miranda <miranda@adacore.com> | |
24375 | ||
24376 | * sem_type.adb (Write_Overloads): Improve display of candidate | |
24377 | interpretations. | |
24378 | (Add_One_Interp): Do not add to the list of interpretations aliased | |
24379 | entities corresponding with an abstract interface type that is an | |
24380 | immediate ancestor of a tagged type; otherwise we have a dummy | |
24381 | conflict between this entity and the aliased entity. | |
24382 | (Disambiguate): The predefined equality on universal_access is not | |
24383 | usable if there is a user-defined equality with the proper signature, | |
24384 | declared in the same declarative part as the designated type. | |
24385 | (Find_Unique_Type): The universal_access equality operator defined under | |
24386 | AI-230 does not cover pool specific access types. | |
24387 | (Covers): If one of the types is a generic actual subtype, check whether | |
24388 | it matches the partial view of the other type. | |
24389 | ||
24390 | 2006-02-13 Thomas Quinot <quinot@adacore.com> | |
24391 | ||
24392 | * sinput-d.adb (Write_Line): Update the Source_Index_Table after each | |
24393 | line. This is necessary to allow In_Extended_Main_Unit to provide | |
24394 | correct results for itypes while writing out expanded source. | |
24395 | (Close_File): No need to update the source_index_table here since it's | |
24396 | now done for each line. | |
24397 | ||
24398 | 2006-02-13 Ed Schonberg <schonberg@adacore.com> | |
24399 | Robert Dewar <dewar@adacore.com> | |
24400 | ||
24401 | * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to | |
24402 | preserve the source unit where the itype is declared, and prevent a | |
24403 | backend abort. | |
24404 | (Note_Implicit_Run_Time_Call): New procedure | |
24405 | (Write_Itype): Handle missing cases (E_Class_Wide_Type and | |
24406 | E_Subprogram_Type) | |
24407 | ||
24408 | * sprint.ads: Document use of $ for implicit run time routine call | |
24409 | ||
24410 | 2006-02-13 Quentin Ochem <ochem@adacore.com> | |
24411 | ||
24412 | * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of | |
24413 | task name. | |
24414 | ||
24415 | 2006-02-13 Bob Duff <duff@adacore.com> | |
24416 | ||
24417 | * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of | |
24418 | Scan_Unsigned, so we do not scan leading blanks and sign twice. | |
24419 | Integer'Value("- 5") and Integer'Value("-+5") now correctly | |
24420 | raise Constraint_Error. | |
24421 | ||
24422 | * s-vallli.adb (Scan_Long_Long_Integer): Call | |
24423 | Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we | |
24424 | do not scan leading blanks and sign twice. | |
24425 | Integer'Value("- 5") and Integer'Value("-+5") now correctly | |
24426 | raise Constraint_Error. | |
24427 | ||
24428 | * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned, | |
24429 | Scan_Long_Long_Unsigned): Split out most of the processing from | |
24430 | Scan_Long_Long_Unsigned out into | |
24431 | Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version. | |
24432 | This prevents scanning leading blanks and sign twice. | |
24433 | Also fixed a bug: Modular'Value("-0") should raise Constraint_Error | |
24434 | See RM-3.5(44). | |
24435 | ||
24436 | * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split | |
24437 | out most of the processing from Scan_Unsigned out into | |
24438 | Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version. | |
24439 | This prevents scanning leading blanks and sign twice. | |
24440 | ||
24441 | * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for | |
24442 | use with Modular'Value attribute. | |
24443 | (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value | |
24444 | attribute. | |
24445 | ||
24446 | 2006-02-13 Robert Dewar <dewar@adacore.com> | |
24447 | ||
24448 | * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value | |
24449 | ||
24450 | 2006-02-13 Eric Botcazou <ebotcazou@adacore.com> | |
24451 | ||
24452 | * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1. | |
24453 | (PPC VxWorks): Likewise. | |
24454 | (Generic unwinder): Define FORCE_CALL to 0 if not already defined. | |
24455 | (forced_callee): Make non-inlinable and non-pure. | |
24456 | (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1. | |
24457 | ||
24458 | 2006-02-13 Arnaud Charlet <charlet@adacore.com> | |
24459 | Ben Brosgol <brosgol@adacore.com> | |
24460 | Robert Dewar <dewar@adacore.com> | |
24461 | ||
24462 | * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64 | |
24463 | support. | |
24464 | Document that gnatbind -M option is for cross environments only. | |
24465 | Added description of using gnatmem to trace gnat rtl allocs and deallocs | |
24466 | Add note on use of $ to label implicit run time calls | |
24467 | Add documentation for -gnatyI (check mode IN) | |
24468 | Updated chapter on compatibility with HP Ada | |
24469 | VMS-oriented edits. | |
24470 | Ran spell and corrected errors | |
24471 | Add documentation for gnatbind -d and rework documentation of -D | |
24472 | at the same time. | |
24473 | Add subprogram/data elimination section. | |
24474 | Minor editing of annex A. | |
24475 | Add section for gnatcheck. | |
24476 | Add documentation for restriction No_Dispatching_Calls | |
24477 | Add documentation for pragma Ada_2005 | |
24478 | Remove mention of obsolete pragma Propagate_Exceptions | |
24479 | Document that pragma Unreferenced can appear after DO in ACCEPT | |
24480 | Clarify Pure_Function for library level units | |
24481 | Mention Max/Min in connection with No_Implicit_Conditionals | |
24482 | No_Wide_Characters restriction is no longer partition-wide | |
24483 | Add a nice example for Universal_Literal_String attribute | |
24484 | Document that pragma No_Return can take multiple arguments | |
24485 | ||
24486 | * ug_words: Added entry for gnatcheck | |
24487 | ||
24488 | * g-ctrl_c.ads (Install_Handler): Enhance comments | |
24489 | ||
24490 | * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination | |
24491 | ||
24492 | * g-trasym.ads: Add documentation on how to do off line symbolic | |
24493 | traceback computation. | |
24494 | ||
24495 | * s-fatgen.adb: Add comments for Unaligned_Valid | |
24496 | ||
24497 | * stand.ads: Fix typo in comment | |
24498 | ||
11d1469b | 24499 | 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
24500 | ||
24501 | * Make-lang.in (check-gnat): Run run_acats with $(SHELL). | |
24502 | ||
1edaf743 | 24503 | 2006-02-06 Roger Sayle <roger@eyesopen.com> |
24504 | ||
24505 | * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE. | |
24506 | ||
974320de | 24507 | 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
24508 | ||
24509 | PR target/25926 | |
24510 | * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target | |
24511 | implementation that calls __main. | |
24512 | ||
9e4d2f47 | 24513 | 2006-01-25 Peter O'Gorman <peter@pogma.com> |
24514 | ||
24515 | PR bootstrap/25859 | |
24516 | * Makefile.in (GCC_LINK): Remove quotes. | |
24517 | (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)" | |
24518 | or $(GCC_LINK). | |
24519 | ||
24520 | (powerpc-darwin): Pass -shared-libgcc when building shared library. | |
24521 | ||
1a788acd | 24522 | 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
24523 | ||
24524 | PR ada/24533 | |
24525 | * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8. | |
24526 | ||
11b56424 | 24527 | 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
24528 | ||
24529 | * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t. | |
24530 | ||
506f64da | 24531 | 2005-12-12 Arnaud Charlet <charlet@adacore.com> |
24532 | ||
24533 | * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer | |
24534 | needed. | |
24535 | ||
ddb58721 | 24536 | 2005-12-12 Arnaud Charlet <charlet@adacore.com> |
24537 | ||
24538 | * Make-lang.in: Update dependencies | |
24539 | ||
c48cef44 | 24540 | 2005-12-12 Arnaud Charlet <charlet@adacore.com> |
24541 | ||
24542 | * Make-lang.in: Add rule for ada/exp_sel.o | |
24543 | ||
c310cb0f | 24544 | 2005-12-12 Arnaud Charlet <charlet@adacore.com> |
24545 | ||
24546 | * Makefile.in (mingw section): Remove EH_MECHANISM setting. | |
24547 | ||
1adcdfbf | 24548 | 2005-12-09 Arnaud Charlet <charlet@adacore.com> |
24549 | ||
24550 | * gnatvsn.ads (Library_Version): Bump to version 4.2 | |
24551 | (ASIS_Version_Number): Bumped. | |
24552 | ||
24553 | 2005-12-09 Doug Rupp <rupp@adacore.com> | |
24554 | ||
24555 | * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change | |
24556 | Ada bind file prefix on VMS from b$ to b__. | |
24557 | (Build_Dynamic_Library): Change Init file suffix on VMS from $init to | |
24558 | __init. | |
24559 | ||
24560 | * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to | |
24561 | Targparm.OpenVMS_On_Target. | |
24562 | (Object_Suffix): Initialize with target object suffix. | |
24563 | (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__. | |
24564 | ||
24565 | * butil.adb: Change some Hostparm.OpenVMS checks to | |
24566 | Targparm.OpenVMS_On_Target. | |
24567 | ||
24568 | * clean.adb: Change some Hostparm.OpenVMS checks to | |
24569 | Targparm.OpenVMS_On_Target. | |
24570 | (Object_Suffix): Initialize with call to Get_Target_Object_Suffix. | |
24571 | ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change | |
24572 | Ada bind file prefix on VMS from b$ to b__. | |
24573 | ||
24574 | * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in | |
24575 | --GCC so that Get_Target_Parameters can find system.ads. | |
24576 | (Gnatlink): Call Get_Target_Parameters in mainline. | |
24577 | Initialize standard packages for Targparm. | |
24578 | Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target. | |
24579 | (Process_Args): Also Check for object files with target object | |
24580 | extension. | |
24581 | (Make_Binder_File_Names): Create with target object extension. | |
24582 | (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$ | |
24583 | to b__. | |
24584 | ||
24585 | * mlib-prj.adb: Change some Hostparm.OpenVMS checks to | |
24586 | Targparm.OpenVMS_On_Target. | |
24587 | ({declaration},Build_Library,Check_Library): Change Ada bind file | |
24588 | prefix on VMS from b$ to b__. | |
24589 | ||
24590 | * osint-b.adb: Change some Hostparm.OpenVMS checks to | |
24591 | Targparm.OpenVMS_On_Target. | |
24592 | (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to | |
24593 | b__. | |
24594 | ||
24595 | * targext.c: New file. | |
24596 | ||
24597 | * Makefile.in: add support for vxworks653 builds | |
24598 | (../../vxaddr2line): gnatlink with targext.o. | |
24599 | (TOOLS_LIBS): Move targext.o to precede libgnat. | |
24600 | (init.o, initialize.o): Minor clean up in dependencies. | |
24601 | (GNATLINK_OBJS): Add targparm.o, snames.o | |
24602 | Add rules fo building targext.o and linking it explicitly with all | |
24603 | tools. | |
24604 | Also add targext.o to gnatlib. | |
24605 | ||
24606 | * Make-lang.in: Add rules for building targext.o and linking it in | |
24607 | with gnat1 and gnatbind. | |
24608 | Add entry for exp_sel.o. | |
24609 | ||
24610 | * osint.adb Change some Hostparm.OpenVMS checks to | |
24611 | Targparm.OpenVMS_On_Target. | |
24612 | (Object_File_Name): Use target object suffix. | |
24613 | ||
24614 | * osint.ads (Object_Suffix): Remove, no longer used. | |
24615 | (Target_Object_Suffix): Initialize with target object suffix. | |
24616 | ||
24617 | * rident.ads: Add special exception to license. | |
24618 | ||
24619 | * targparm.adb (Get_Target_Parameters): Set the value of | |
24620 | Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive | |
24621 | value. | |
24622 | (Get_Target_Parameters): Set OpenVMS_On_Target if openvms. | |
7c066666 | 24623 | |
1adcdfbf | 24624 | * targparm.ads: Add special exception to license. |
24625 | ||
24626 | * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New | |
24627 | function. | |
24628 | (Copy_File): Make sure from file is closed if error on to file | |
24629 | (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions. | |
24630 | ||
24631 | * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix. | |
24632 | (Executable_Suffix): Intialize with Get_Target_Executable_Suffix. | |
24633 | ||
24634 | * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with | |
24635 | target object suffix. | |
24636 | ||
24637 | 2005-12-09 Jose Ruiz <ruiz@adacore.com> | |
24638 | Quentin Ochem <ochem@adacore.com> | |
24639 | Florian Villoing <villoing@adacore.com> | |
24640 | ||
d4c15061 | 24641 | * a-taster.ads, a-taster.adb: New files. |
1adcdfbf | 24642 | |
24643 | * a-elchha.adb (Last_Chance_Handler): Change the task termination soft | |
24644 | link to the version that does nothing. This way the task termination | |
24645 | routine is not executed twice for the environment task when finishing | |
24646 | because of an unhandled exception. | |
24647 | ||
24648 | * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination | |
24649 | handler because of an unhandled exception. | |
24650 | ||
24651 | * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from | |
24652 | System.Tasking.Utilities instead of that in System.Tasking.Stages. | |
24653 | ||
24654 | * s-finimp.adb (initialization code): Modify the soft link for the | |
24655 | finalization of the global list instead of Adafinal. | |
24656 | ||
24657 | * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this | |
24658 | non-tasking version of the soft link for task termination. We do | |
24659 | nothing since if we are using the non-tasking version it | |
24660 | means that the task termination functionality is not used. | |
24661 | (Null_Finalize_Global_List): Add this null version for the procedure | |
24662 | in charge of finalizing the global list for controlled objects. | |
24663 | (Null_Adafinal): Remove this procedure. Adafinal_NT has been created | |
24664 | instead for handling run-time termination in a more flexible way. | |
24665 | (Adafinal_NT): This new procedure will take care of finalizing the | |
24666 | global list for controlled objects if needed, but no tasking | |
24667 | finalization. | |
24668 | ||
24669 | * s-tarest.adb (Task_Lock): Do not try to lock again the | |
24670 | Global_Task_Lock if we already own it. Otherwise, we get blocked in | |
24671 | some run-time operations. | |
24672 | (Task_Unlock): Do not try to actually unlock the Global_Task_Lock | |
24673 | until all nested locks have been released. | |
24674 | (Task_Wrapper): Call the fall-back task termination handler. It | |
24675 | applies to all tasks but the environment task. | |
24676 | (Finalize_Global_Tasks): Add the call for the task termination | |
24677 | procedure for the environment task. | |
24678 | (Task_Wrapper): suppress warnings around declaration of | |
24679 | Secondary_Stack_Address. | |
24680 | ||
24681 | * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been | |
24682 | moved to the Common_ATCB record. | |
24683 | (Task_Lock): Global_Task_Lock_Nesting has been moved to the | |
24684 | Common_ATCB record. | |
24685 | (Task_Unlock): Global_Task_Lock_Nesting has been moved to the | |
24686 | Common_ATCB record. | |
24687 | ||
24688 | * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting, | |
24689 | Fall_Back_Handler, and Specific_Handler. | |
24690 | ||
24691 | * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already | |
24692 | defined in Ada.Task_Termination, to avoid circular dependencies. | |
24693 | (Termination_Handler): Redefine this type here, alredy defined in | |
24694 | Ada.Task_Termination, for avoiding circular dependencies. | |
24695 | (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required | |
24696 | for storing task termination handlers. In addition, | |
24697 | Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to | |
24698 | Common_ATCB because it is used by both the regular and the restricted | |
24699 | run times. | |
24700 | (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to | |
24701 | Common_ATCB because it is used by both the regular and the restricted | |
24702 | run times. | |
24703 | (Common_ATCB): Added a dynamic task analyzer field. | |
24704 | ||
24705 | * s-tassta.adb (Abort_Tasks): Move the code in charge of checking | |
24706 | potentially blocking operations to System.Tasking.Utilities.Abort_Tasks. | |
24707 | (Task_Wrapper): Call the task termination handler. It applies to all | |
24708 | tasks but the environment task. | |
24709 | (Finalize_Global_Tasks): Call the task termination procedure for the | |
24710 | environment task. The call to Finalize_Global_List is now performed | |
24711 | using the soft links mechanism. | |
24712 | (Task_Wrapper): added dynamic stack analysis. | |
24713 | ||
24714 | * s-tasuti.adb (Abort_Tasks): The code in charge of checking | |
24715 | potentially blocking operations has been moved from | |
24716 | System.Tasking.Stages.Abort_Tasks to this procedure. There can be | |
24717 | direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass | |
24718 | through System.Tasking.Stages.Abort_Tasks, and we do not want to miss | |
24719 | this run-time check. | |
24720 | ||
24721 | * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version | |
24722 | of task termination procedure. | |
24723 | (Init_Tasking_Soft_Links): Install the task-safe version of the soft | |
24724 | link for the task termination procedure. | |
24725 | ||
24726 | * bindusg.adb: (Bindusg): Added documentation for -u option. | |
24727 | ||
24728 | * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis. | |
24729 | (Get_Main_C): Add handling of dynamic stack analysis. | |
24730 | (Gen_Output_File_C): Add external functions for dynamic stack analysis. | |
24731 | ||
24732 | * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination). | |
24733 | (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis | |
24734 | (GNATRTL_NONTASKING_OBJS): Add AltiVec files. | |
24735 | ||
24736 | * opt.ads: Added flags used by dynamic stack measurement. | |
24737 | (Max_Line_Length): Remove (not used anymore) | |
24738 | ||
24739 | * s-io.ads, s-io.adb (Standard_Error): new subprogram | |
24740 | (Standart_Output): new subprogram | |
24741 | (Set_Output): new subprogram | |
24742 | (Put): now uses the value of Current_Out to know if the output has to be | |
24743 | send to stderr or stdout. | |
7c066666 | 24744 | |
1adcdfbf | 24745 | * s-stausa.ads: Complete implementation. |
24746 | ||
24747 | * switch-b.adb: Added handling of -u switch for dynamic stack analysis. | |
7c066666 | 24748 | |
1adcdfbf | 24749 | * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the |
24750 | list of Ada 05 files. | |
24751 | (GNAT Library Units): Add AltiVec files. | |
24752 | ||
24753 | * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb, | |
24754 | g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads | |
24755 | g-alvety.ads, g-alvevi.ads: New files providing altivec API. | |
24756 | ||
24757 | 2005-12-09 Nicolas Setton <setton@adacore.com> | |
24758 | ||
24759 | * adaint.c (__gnat_locate_regular_file): Return immediately if | |
24760 | file_name is empty. | |
24761 | ||
24762 | 2005-12-09 Javier Miranda <miranda@adacore.com> | |
24763 | Hristian Kirtchev <kirtchev@adacore.com> | |
24764 | ||
24765 | * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body | |
24766 | to the specification because the frontend generates code that uses this | |
24767 | subprogram. | |
24768 | (Set_Interface_Table): Add missing assertion. | |
24769 | Update documentation describing the run-time structure. | |
24770 | (Displace): New subprogram that displaces the pointer to the object | |
24771 | to reference one of its secondary dispatch tables. | |
24772 | (IW_Membership): Modified to use the new table of interfaces. | |
24773 | (Inherit_TSD): Modified to use the new table of interfaces. | |
24774 | (Register_Interface_Tag): Use the additional formal to fill the | |
24775 | contents of the new table of interfaces. | |
24776 | (Set_Interface_Table): New subprogram that stores in the TSD the | |
24777 | pointer to the table of interfaces. | |
24778 | (Set_Offset_To_Top): Use the additional formal to save copy of | |
24779 | the offset value in the table of interfaces. | |
24780 | Update structure of GNAT Primary and Secondary dispatch table diagram. | |
24781 | Add comment section on GNAT dispatch table prologue. | |
24782 | (Offset_To_Signature): Update the constant value of the Signature field. | |
24783 | (Dispatch_Table): Update comment on hidden fields in the prologue. | |
24784 | (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD, | |
24785 | Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change | |
24786 | the type of formal parameter T to Tag, introduce additional assertions. | |
24787 | (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type | |
24788 | conversion. | |
24789 | (Get_Tagged_Kind, Set_Tagged_Kind): New bodies. | |
24790 | ||
24791 | * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual | |
24792 | in all the calls to Expand_Interface_Thunk. Instead of referencing the | |
24793 | record component containing the tag of the secondary dispatch table we | |
24794 | have to use the Offset_To_Top run-time function to get this information; | |
24795 | otherwise if the pointer to the base of the object has been displace | |
24796 | we get a wrong value if we use the 'position attribute. | |
24797 | ||
24798 | * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in | |
24799 | all the calls to Expand_Interface_Thunk. | |
24800 | (Make_Secondary_DT): Secondary dispatch tables do not have a table of | |
24801 | interfaces; hence the call to Set_Interface_Table was clearly wrong. | |
24802 | (Collect_All_Interfaces): Modify the internal subprogram Collect to | |
24803 | ensure that the interfaces implemented by the ancestors are placed | |
24804 | at the header of the generated list. | |
24805 | (Expand_Interface_Conversion): Handle the case in which the displacement | |
24806 | associated with the interface conversion is not statically known. In | |
24807 | this case we generate a call to the new run-time subprogram Displace. | |
24808 | (Make_DT): Generate and fill the new table of interfaces. | |
24809 | (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for | |
24810 | Get_Tagged_Kind and Set_Tagged_Kind. | |
24811 | (Tagged_Kind): New function that determines the tagged kind of a type | |
24812 | with respect to limitedness and concurrency and returns a reference to | |
24813 | RE_Tagged_Kind. | |
24814 | (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body, | |
24815 | Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the | |
24816 | primary dispatch table for a type. | |
24817 | (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and | |
24818 | secondary dispatch table respectively of a tagged type. | |
24819 | ||
24820 | * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal. | |
24821 | (Expand_Interface_Conversion): New subprogram to indicate if the | |
24822 | displacement of the type conversion is statically known. | |
24823 | (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind. | |
24824 | ||
24825 | * rtsfind.ads (RE_Offset_To_Top): New entity | |
24826 | (RTU_Id): Add Ada_Task_Termination to the list so that it is made | |
24827 | accessible to users. | |
24828 | (Re_Displace): New entity | |
24829 | (RE_Interface_Data): New entity | |
24830 | (RE_Set_Interface_Data): New_Entity | |
24831 | (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind, | |
24832 | Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged, | |
24833 | RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected, | |
24834 | RE_TK_Tagged, RE_TK_Task. | |
24835 | ||
24836 | * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram | |
24837 | Init_Secondary_Tags_Internal to allow its use with interface types and | |
24838 | also to generate the code for the new additional actual required | |
24839 | by Set_Offset_To_Top. | |
24840 | (Build_Init_Statements): In case of components associated with abstract | |
24841 | interface types there is no need to generate a call to its IP. | |
24842 | (Freeze_Record_Type): Generate Select Specific Data tables only for | |
24843 | concurrent types. | |
24844 | (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate | |
24845 | the bodies and specifications of the predefined primitive operations | |
24846 | dealing with dispatching selects and abort, 'Callable, 'Terminated only | |
24847 | for concurrent types. | |
24848 | ||
d4c15061 | 24849 | * exp_sel.ads, exp_sel.adb: New files. |
1adcdfbf | 24850 | |
24851 | * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body, | |
24852 | Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle | |
24853 | properly protected objects and attach handler in the case of the | |
24854 | restricted profile. | |
24855 | Move embeded package Select_Expansion_Utilities into a separate external | |
24856 | package. | |
24857 | (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select, | |
24858 | Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel. | |
24859 | (Build_K, Build_S_Assignment): New subprograms, part of the select | |
24860 | expansion utilities. | |
24861 | (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call, | |
24862 | Expand_N_Timed_Entry_Call): Optimize expansion of select statements | |
24863 | where the trigger is a dispatching procedure of a limited tagged type. | |
24864 | ||
24865 | 2005-12-09 Olivier Hainque <hainque@adacore.com> | |
24866 | ||
24867 | * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand | |
24868 | pointer initialization values. Make a SAVE_EXPR instead. Add comments | |
24869 | about the use and expansion of SAVE_EXPRs in the various possible | |
24870 | renaming handling cases. | |
24871 | (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by | |
24872 | abusing DECL_FCONTEXT. | |
24873 | ||
24874 | 2005-12-09 Matthew Heaney <heaney@adacore.com> | |
24875 | ||
24876 | * a-convec.adb (Merge): Added assertions to check whether vector params | |
24877 | are sorted. | |
24878 | ||
24879 | * a-coinve.adb (Merge): Added assertions to check whether vector params | |
24880 | are sorted. | |
24881 | ||
24882 | * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302 | |
24883 | draft. | |
24884 | (Cursor'Read): raises PE | |
24885 | ||
24886 | * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem | |
24887 | to its default value. | |
24888 | ||
24889 | * a-cihama.adb: Manually check whether cursor's key and elem are | |
24890 | non-null | |
24891 | ||
24892 | * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode | |
24893 | (Merge): Assert that target and source lists are in order | |
24894 | (Swap): Declare non-const temporaries, to pass to Splice | |
24895 | ||
24896 | * a-cdlili.ads: (Splice): Changed param name and param mode | |
24897 | ||
24898 | * a-cdlili.adb: (Splice): Changed param name and param mode | |
24899 | (Merge): Assert that target and source lists are in order | |
24900 | (Swap): Declare non-const temporaries, to pass to Splice | |
24901 | ||
24902 | * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null | |
24903 | (Write): declare Stream param as not null | |
24904 | ||
24905 | * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include | |
24906 | an exception message. | |
24907 | ||
24908 | 2005-12-09 Thomas Quinot <quinot@adacore.com> | |
24909 | Robert Dewar <dewar@adacore.com> | |
24910 | ||
24911 | * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1, | |
24912 | which is the absolute maximum length we can support. | |
24913 | ||
24914 | * frontend.adb: For the processing of configuration pragma files, | |
24915 | remove references to Opt.Max_Line_Length, which is not checked anymore. | |
24916 | ||
24917 | * namet.ads (Name_Buffer): Adjust size to reflect increase on max line | |
24918 | length. | |
24919 | ||
7c066666 | 24920 | * scn.adb, scng.adb: |
1adcdfbf | 24921 | Always check line length against the absolute supported maximum, |
24922 | Hostparm.Max_Line_Length. | |
24923 | ||
24924 | * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported | |
24925 | value for the maximum line length is Max_Line_Length (not | |
24926 | Column_Number'Last). | |
24927 | Minor error msg update | |
24928 | (Set_Style_Check_Options): New interface returning error msg | |
24929 | Minor code reorganization (processing for 'M' was out of alpha order) | |
24930 | ||
24931 | * switch-c.adb: New interface for Set_Style_Check_Options | |
24932 | ||
24933 | * stylesw.ads (Set_Style_Check_Options): New interface returning error | |
24934 | msg. | |
24935 | ||
24936 | 2005-12-09 Javier Miranda <miranda@adacore.com> | |
24937 | ||
24938 | * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records | |
24939 | with IP subprogram were only supported if there were limited types. | |
24940 | ||
24941 | * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized | |
24942 | records with IP subprogram were only supported if there were limited | |
24943 | types. | |
24944 | ||
24945 | 2005-12-09 Olivier Hainque <hainque@adacore.com> | |
24946 | Eric Botcazou <ebotcazou@adacore.com> | |
24947 | ||
24948 | * trans.c (tree_transform, emit_check): Adjust calls to | |
24949 | build_call_raise, passing the now expected GNAT_NODE argument. | |
24950 | ||
24951 | * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better | |
24952 | source line information than what the current global locus indicates | |
24953 | when appropriate. | |
24954 | ||
24955 | * utils2.c (build_simple_component_ref): Return 0 if the offset of the | |
24956 | field has overflowed. | |
24957 | (build_call_raise): Add a GNAT_NODE argument to convey better source | |
24958 | line information than what the current global locus indicates when | |
24959 | appropriate. | |
24960 | (build_component_ref): Adjust call to build_call_raise. | |
24961 | ||
24962 | 2005-12-09 Pascal Obry <obry@adacore.com> | |
24963 | ||
24964 | * g-diopit.adb (Find): Fix test to exit the iterator and make sure that | |
24965 | the iterator is quitting iteration on parent directory. | |
24966 | ||
24967 | 2005-12-09 Javier Miranda <miranda@adacore.com> | |
24968 | ||
24969 | * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types | |
24970 | and the assignment to a class-wide object, before the assignment we | |
24971 | generate a run-time check to ensure that the tag of the Target is | |
24972 | covered by the tag of the source. | |
24973 | ||
24974 | 2005-12-09 Robert Dewar <dewar@adacore.com> | |
24975 | ||
24976 | * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean | |
24977 | parameter in call to Image_Wide_Character. | |
24978 | ||
24979 | * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean | |
24980 | parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency. | |
24981 | (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with | |
24982 | annoying FFFE/FFFF inconsistency. | |
24983 | ||
24984 | 2005-12-09 Robert Dewar <dewar@adacore.com> | |
24985 | Javier Miranda <miranda@adacore.com> | |
24986 | Ed Schonberg <schonberg@adacore.com> | |
24987 | ||
24988 | * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case | |
24989 | of type conversion. | |
24990 | (Find_Interface): New subprogram that given a tagged type and one of its | |
24991 | component associated with the secondary table of an abstract interface | |
24992 | type, return the entity associated with such abstract interface type. | |
24993 | (Make_Subtype_From_Expr): If type has unknown discriminants, always use | |
24994 | base type to create anonymous subtype, because entity may be a locally | |
24995 | declared subtype or generic actual. | |
24996 | (Find_Interface): New subprogram that given a tagged type and one of its | |
24997 | component associated with the secondary table of an abstract interface | |
24998 | type, return the entity associated with such abstract interface type. | |
24999 | ||
25000 | * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the | |
25001 | conversion cannot be handled at compile time. In this case we pass this | |
25002 | information to the expander to generate the appropriate code. | |
25003 | ||
25004 | 2005-12-09 Robert Dewar <dewar@adacore.com> | |
25005 | Ed Schonberg <schonberg@adacore.com> | |
25006 | Gary Dismukes <dismukes@adacore.com> | |
25007 | Javier Miranda <miranda@adacore.com> | |
25008 | Hristian Kirtchev <kirtchev@adacore.com> | |
25009 | ||
25010 | * einfo.adb (Itype_Printed): New flag | |
25011 | (Is_Limited_Type): Derived types do not inherit limitedness from | |
25012 | interface progenitors. | |
25013 | (Is_Return_By_Reference_Type): Predicate does not apply to limited | |
25014 | interfaces. | |
25015 | ||
25016 | * einfo.ads (Itype_Printed): New flag | |
25017 | Move Is_Wrapper_Package to proper section | |
25018 | Add missing Inline for Is_Volatile | |
25019 | ||
25020 | * output.ads, output.adb (Write_Erase_Char): New procedure | |
25021 | (Save/Restore_Output_Buffer): New procedures | |
25022 | (Save/Restore_Output_Buffer): New procedures | |
25023 | ||
25024 | * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes | |
25025 | Add missing support for anonymous access type | |
25026 | (Write_Id): Insert calls to Write_Itype | |
25027 | (Write_Itype): New procedure to output itypes | |
25028 | ||
25029 | * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle | |
25030 | use of "limited" in declaration. | |
25031 | ||
7c066666 | 25032 | * sinfo.ads, sinfo.adb: |
1adcdfbf | 25033 | Formal derived types can carry an explicit "limited" indication. |
25034 | ||
25035 | * sem_ch3.adb: Add with and use of Targparm. | |
25036 | (Create_Component): If Frontend_Layout_On_Target is True and the | |
25037 | copied component does not have a known static Esize, then reset | |
25038 | the size and positional fields of the new component. | |
25039 | (Analyze_Component_Declaration): A limited component is | |
25040 | legal within a protected type that implements an interface. | |
25041 | (Collect_Interfaces): Do not add to the list the interfaces that | |
25042 | are implemented by the ancestors. | |
25043 | (Derived_Type_Declaration): If the parent of the full-view is an | |
25044 | interface perform a transformation of the tree to ensure that it has | |
25045 | the same parent than the partial-view. This simplifies the job of the | |
25046 | expander in order to generate the correct object layout, and it is | |
25047 | needed because the list of interfaces of the full-view can be given in | |
25048 | any order. | |
25049 | (Process_Full_View): The parent of the full-view does not need to be | |
25050 | a descendant of the parent of the partial view if both parents are | |
25051 | interfaces. | |
25052 | (Analyze_Private_Extension_Declaration): If declaration has an explicit | |
25053 | "limited" the parent must be a limited type. | |
25054 | (Build_Derived_Record_Type): A derived type that is explicitly limited | |
25055 | must have limited ancestor and progenitors. | |
25056 | (Build_Derived_Type): Ditto. | |
25057 | (Process_Full_View): Verify that explicit uses of "limited" in partial | |
25058 | and full declarations are consistent. | |
25059 | (Find_Ancestor_Interface): Remove function. | |
25060 | (Collect_Implemented_Interfaces): New procedure used to gather all | |
25061 | implemented interfaces by a type. | |
25062 | (Contain_Interface): New function used to check whether an interface is | |
25063 | present in a list. | |
25064 | (Find_Hidden_Interface): New function used to determine whether two | |
25065 | lists of interfaces constitute a set equality. If not, the first | |
25066 | differing interface is returned. | |
25067 | (Process_Full_View): Improve the check for the "no hidden interface" | |
25068 | rule as defined by AI-396. | |
25069 | ||
25070 | 2005-12-09 Robert Dewar <dewar@adacore.com> | |
25071 | ||
25072 | * freeze.adb (Freeze_Record_Type): Only test for useless pack on record | |
25073 | types, not on record subtypes. | |
25074 | (Freeze_Entity): Code cleanup. Add barrier to the loop | |
25075 | that generates the references for primitive operations. This allows to | |
25076 | remove an unnecessary exception handler. | |
25077 | Code reformatting and comment clean ups. | |
25078 | ||
25079 | 2005-12-09 Vincent Celier <celier@adacore.com> | |
25080 | ||
25081 | * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U | |
25082 | If GNAT CHECK is called with a project file, but with no | |
25083 | source on the command line, call gnatcheck with all the compilable | |
25084 | sources of the project. | |
25085 | Take into account the new command Check, for gnatcheck. Treat as for | |
25086 | other ASIS tools: take into account project, specific package Check and | |
25087 | Compiler switches. | |
25088 | For ASIS tools, add the switches in package Compiler for | |
25089 | the invocation of the compiler. | |
25090 | ||
25091 | * prj-attr.adb: Add package Check and its attributes | |
25092 | ||
25093 | * vms_conv.ads (Command_Type): New command Check, for gnatcheck | |
25094 | ||
25095 | * vms_conv.adb (Initialize): Change Params of command Check to | |
25096 | unlimited files. | |
25097 | Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target. | |
25098 | Add data for new command Check | |
25099 | ||
25100 | * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT | |
25101 | ELIM. | |
25102 | Add qualifiers for Check command options | |
25103 | (Command_Type): New command Check | |
25104 | ||
25105 | 2005-12-09 Thomas Quinot <quinot@adacore.com> | |
25106 | ||
25107 | * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a | |
25108 | command line switch overruns the output buffer. | |
25109 | ||
25110 | 2005-12-09 Robert Dewar <dewar@adacore.com> | |
25111 | ||
25112 | * sem_prag.adb: Processing for new pragma Complete_Representation | |
25113 | (Analyze_Pragma, case Debug): Implement two argument form. | |
25114 | ||
25115 | * par-prag.adb: Entry for new pragma Complete_Representation | |
25116 | (Prag, case Debug): Recognize two argument form of pragma Debug | |
25117 | New interface for Set_Style_Check_Options. | |
25118 | ||
25119 | * sem_ch13.adb: Implement new pragma Complete_Representation. | |
25120 | ||
25121 | * snames.adb, snames.ads, snames.h: Entry for new pragma | |
25122 | Complete_Representation. | |
25123 | ||
25124 | 2005-12-09 Gary Dismukes <dismukes@adacore.com> | |
25125 | ||
25126 | * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for | |
25127 | available user-specified stream attributes on limited parameters to | |
25128 | also test the type directly rather than only its underlying type (for | |
25129 | Ada 95) and, in the case of Ada 2005, to check that the user-specified | |
25130 | attributes are visible at the point of the subprogram declaration. | |
25131 | For Ada 2005, the error message is modified to indicate that the | |
25132 | type's stream attributes must be visible (again, only for -gnat05). | |
25133 | ||
25134 | 2005-12-09 Ed Schonberg <schonberg@adacore.com> | |
25135 | ||
25136 | * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of | |
25137 | anonymous access types. | |
25138 | ||
25139 | * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for | |
25140 | matching of anonymous access types and anonymous access to subprogram | |
25141 | types. 'R'M 4.9.1 (2/2). | |
25142 | ||
25143 | 2005-12-09 Ed Schonberg <schonberg@adacore.com> | |
25144 | ||
25145 | * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference | |
25146 | rule prematurely when operands are universal, remaining ambiguities | |
25147 | will be removed during resolution. | |
25148 | Code cleanup. | |
25149 | ||
25150 | * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations | |
25151 | that are Ada 2005 functions. | |
25152 | (Has_Abstract_Interpretation): Subsidiary to | |
25153 | Remove_Conversions, to remove ambiguities caused by abstract operations | |
25154 | on numeric types when operands are universal. | |
25155 | ||
25156 | 2005-12-09 Robert Dewar <dewar@adacore.com> | |
25157 | ||
25158 | * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization | |
25159 | for case where spec is categorized. | |
25160 | ||
25161 | 2005-12-09 Javier Miranda <miranda@adacore.com> | |
25162 | ||
25163 | * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent | |
25164 | types use the corresponding record type. This was not needed before | |
25165 | the implementation of Ada 2005 synchronized types because | |
25166 | concurrent types were never tagged types in Ada 95. | |
25167 | ||
25168 | 2005-12-09 Ed Schonberg <schonberg@adacore.com> | |
25169 | ||
25170 | * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the | |
25171 | first subtype of the type of the expression to verify that it is a | |
25172 | legal Time type. | |
25173 | ||
25174 | 2005-12-09 Robert Dewar <dewar@adacore.com> | |
25175 | ||
25176 | * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides | |
25177 | decoded names. | |
25178 | ||
25179 | 2005-12-09 Quentin Ochem <ochem@adacore.com> | |
25180 | Robert Dewar <dewar@adacore.com> | |
25181 | Ed Falis <falis@adacore.com> | |
25182 | Florian Villoing <villoing@adacore.com> | |
25183 | Thomas Quinot <quinot@adacore.com> | |
25184 | Arnaud Charlet <charlet@adacore.com> | |
25185 | ||
25186 | * gnat_ugn.texi: Created section "Stack Related Tools" | |
25187 | Moved "Stack Overflow Checking" subsection from "Switches for gcc" to | |
25188 | "Stack Related Tools" | |
25189 | Added subsection "Static Stack Usage Analysis" | |
25190 | Added subsection "Dynamic Stack Usage Analysis" | |
25191 | Include documentation of itypes in sprint listing (-gnatG) | |
25192 | Documented gnatbind -D switch (default sec stack size for fixed sec | |
25193 | stacks). | |
25194 | Added Interrupt_State and Persistent_BSS to list of configuration | |
25195 | pragmas. | |
25196 | Add missing doc for maximum value of nnn in -gnatyMnnn | |
25197 | ||
25198 | * gnat_rm.texi: Document the AltiVec binding. | |
25199 | Add documentation for pragma Complete_Representation | |
25200 | Shortened an overly long line (> 79 chars) | |
25201 | Clarify documentation of unchecked conversion in implementation | |
25202 | defined cases. | |
25203 | Document two argument form of pragma Debug | |
25204 | ||
25205 | * types.ads (Column_Number): Update documentation. | |
25206 | ||
25207 | * exp_ch7.ads (Make_Adjust_Call): Document the special processing for | |
25208 | library level Finalize_Storage_Only objects (these are not attached to | |
25209 | any finalization list). | |
25210 | ||
25211 | * system-mingw.ads: (Underlying_Priorities): Update comment. | |
25212 | ||
25213 | 2005-12-09 Robert Dewar <dewar@adacore.com> | |
25214 | ||
25215 | * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads, | |
d4c15061 | 25216 | i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads, |
1adcdfbf | 25217 | inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, |
25218 | i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads, | |
25219 | krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb, | |
25220 | lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb, | |
25221 | interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads, | |
25222 | s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor | |
25223 | reformatting. | |
25224 | ||
25225 | 2005-12-09 Robert Dewar <dewar@adacore.com> | |
25226 | ||
25227 | * s-vaflop-vms-alpha.adb: (Ne_F): New function | |
25228 | (Ne_G): New function | |
25229 | ||
25230 | * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code | |
25231 | for tag assignment. | |
25232 | (Rewrite_Comparison): Handle case where operation is not a comparison | |
25233 | and ignore, and also handle type conversion case. | |
25234 | ||
25235 | 2005-12-09 Thomas Quinot <quinot@adacore.com> | |
25236 | ||
25237 | * exp_aggr.ads: Fix typo in comment. | |
25238 | ???-mark Convert_Aggr_In_Assignment as needing documentation. | |
25239 | ||
25240 | 2005-12-09 Gary Dismukes <dismukes@adacore.com> | |
25241 | ||
25242 | * layout.adb: Replace various uses of byte by storage unit throughout. | |
25243 | (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a | |
25244 | static size, convert to storage units before returning, to conform to | |
25245 | spec. | |
25246 | ||
25247 | 2005-12-09 Matthew Gingell <gingell@adacore.com> | |
25248 | ||
25249 | * g-exctra.ads: Fix typo in comment. | |
25250 | ||
25251 | 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
25252 | ||
25253 | * utils.c: Minor reformatting. | |
25254 | ||
25255 | 2005-12-09 Robert Dewar <dewar@adacore.com> | |
25256 | ||
7c066666 | 25257 | * g-soccon.ads: |
1adcdfbf | 25258 | Further comment fixes to make the status of the default file clear |
25259 | ||
25260 | * s-bitops.adb: Clarify comment for Bits_Array | |
25261 | ||
d3eff7bb | 25262 | 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com> |
ae6555f9 | 25263 | |
25264 | * Make-lang.in (ada.install-normal): Remove. | |
25265 | ||
d3eff7bb | 25266 | 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com> |
758e52e0 | 25267 | |
25268 | * Make-lang.in: Remove all dependencies on s-gtype. | |
25269 | ||
e981b30d | 25270 | 2005-12-05 Richard Guenther <rguenther@suse.de> |
25271 | ||
25272 | * utils.c (convert): Use fold_convert where appropriate. | |
25273 | ||
782bd3b1 | 25274 | 2005-12-05 Paolo Bonzini <bonzini@gnu.org> |
25275 | ||
d4c15061 | 25276 | * Makefile.in (gnatlib): Fix regex, using \. instead of . when |
782bd3b1 | 25277 | a period is meant. |
25278 | ||
c76187f7 | 25279 | 2005-12-02 Richard Guenther <rguenther@suse.de> |
25280 | ||
25281 | * trans.c (gnat_gimplify_expr): Use buildN instead of build. | |
25282 | ||
05812c7f | 25283 | 2005-12-01 Roger Sayle <roger@eyesopen.com> |
25284 | ||
25285 | * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST | |
25286 | nodes. | |
25287 | ||
8a67bb47 | 25288 | 2005-11-23 Laurent Guerby <laurent@guerby.net> |
ecfdc88d | 25289 | |
d4c15061 | 25290 | * mlib-prj.adb (Build_Library): Initialize Delete. |
ecfdc88d | 25291 | |
8a67bb47 | 25292 | 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com> |
526eec38 | 25293 | |
25294 | * socket.c: Add extern int h_errno for rtems since networking header | |
25295 | files are not available at this point in a tool bootstrap. Newlib | |
25296 | only has basic C library header files. | |
25297 | ||
e3f517d3 | 25298 | 2005-11-19 Richard Guenther <rguenther@suse.de> |
25299 | Roger Sayle <roger@eyesopen.com> | |
25300 | ||
25301 | PR ada/23717 | |
25302 | * misc.c (internal_error_function): Don't use vsprintf to format | |
25303 | the error message text, instead use pp_format_text and the new | |
25304 | pretty printer APIs. This allows handling of %qs, %w, etc. | |
25305 | ||
8a67bb47 | 25306 | 2005-11-18 Laurent Guerby <laurent@guerby.net> |
4a148d52 | 25307 | |
d4c15061 | 25308 | PR ada/24857 |
25309 | * Makefile.in: Use s-auxdec-empty for RTEMS. | |
4a148d52 | 25310 | |
d3c9b877 | 25311 | 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> |
25312 | ||
25313 | PR ada/22333 | |
25314 | * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make | |
25315 | a temporary if taking the address of something that is neither | |
25316 | reference, declaration, or constant, since the gimplifier | |
25317 | can't handle that case. | |
25318 | ||
8a67bb47 | 25319 | 2005-11-17 Laurent Guerby <laurent@guerby.net> |
3eef7b63 | 25320 | |
25321 | PR ada/24857 | |
25322 | * s-auxdec-empty.ads, s-auxdec-empty.adb: New files. | |
d4c15061 | 25323 | |
25e54dba | 25324 | 2005-11-16 Richard Guenther <rguenther@suse.de> |
25325 | ||
25326 | * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux. | |
25327 | ||
8a67bb47 | 25328 | 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com> |
282bef7a | 25329 | |
d4c15061 | 25330 | PR ada/24855 |
25331 | * raise-gcc.c: Add missing stdarg.h include. | |
7c066666 | 25332 | |
68619bde | 25333 | 2005-11-16 Richard Guenther <rguenther@suse.de> |
25334 | ||
25335 | * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency. | |
25336 | (ada/misc.o): Likewise. | |
25337 | ||
a05b87fd | 25338 | 2005-11-14 Thomas Quinot <quinot@adacore.com> |
25339 | ||
25340 | * g-soccon.ads: Minor reformatting. Update comments. | |
25341 | ||
25342 | * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to | |
25343 | gain visibility on the declaration of struct timeval. | |
25344 | ||
25345 | * g-soccon-freebsd.ads, | |
25346 | g-soccon-darwin.ads, | |
25347 | g-soccon-tru64.ads, | |
25348 | g-soccon-aix.ads, | |
25349 | g-soccon-irix.ads, | |
25350 | g-soccon-hpux.ads, | |
25351 | g-soccon-solaris.ads, | |
25352 | g-soccon-vms.ads, | |
25353 | g-soccon-mingw.ads, | |
25354 | g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants. | |
25355 | ||
25356 | * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads, | |
25357 | g-soccon-solaris-64.ads, g-soccon-linux-64.ads, | |
25358 | g-soccon-linux-x86.ads: New files. | |
25359 | ||
7c066666 | 25360 | * g-socthi-mingw.adb: |
a05b87fd | 25361 | (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants |
25362 | ||
25363 | * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads | |
25364 | (time_t, suseconds_t): New types constructed to match the tv_sec | |
25365 | and tv_usec fields of C struct timeval. | |
25366 | (Timeval): Construct structure in terms of the new types. | |
25367 | (Host_Errno): New function (imported from socket.c), returns last hosts | |
25368 | database error. | |
25369 | ||
25370 | * g-socthi-vxworks.adb: Add error handling circuitry. | |
25371 | ||
25372 | * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for | |
25373 | components of struct timeval. | |
25374 | (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry. | |
25375 | (Check_Selector): In error conditions, clear internal socket sets to | |
25376 | avoid a memory leak. | |
25377 | (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If, | |
25378 | Send_Timeout, Receive_Timeout. | |
25379 | ||
25380 | * g-socthi.ads (time_t, suseconds_t): New types constructed to match | |
25381 | the tv_sec and tv_usec fields of C struct timeval. | |
25382 | (Timeval): Construct structure in terms of the new types. | |
25383 | (Host_Errno): New function (imported from socket.c), returns last hosts | |
25384 | database error. | |
25385 | ||
25386 | * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the | |
25387 | hosts database last error code. | |
25388 | ||
25389 | * gen-soccon.c: Complete value expansion should not be performed on | |
25390 | TARGET, as it has the form of a math expression, and some components | |
25391 | may be platform-defined macros. | |
25392 | For VxWorks, generate the OK and ERROR values. | |
25393 | New constants giving the sizes of the components of C struct timeval. | |
25394 | ||
25395 | 2005-11-14 Robert Dewar <dewar@adacore.com> | |
25396 | Ed Schonberg <schonberg@adacore.com> | |
25397 | ||
25398 | PR ada/18434 | |
a05b87fd | 25399 | * types.ads: Include All_Checks in Suppress_Array |
25400 | ||
25401 | * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as | |
25402 | not(a=b), since we no longer do this rewriting, and hence it is not | |
25403 | needed. | |
25404 | (Elaboration_Checks_Suppressed): Add special casing to | |
25405 | deal with different cases of static and dynamic elaboration checks (all | |
25406 | checks does not count in the first case, but does in the second). | |
25407 | (Expr_Known_Valid): Do not assume that the result of any arbitrary | |
25408 | function call is valid, since this is not the case. | |
25409 | (Ensure_Valid): Do not apply validity check to a real literal | |
25410 | in a universal or fixed context | |
25411 | ||
25412 | * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for | |
25413 | elementary types using the operator in standard. It is cleaner not to | |
25414 | modify the programmers intent, especially in the case of floating-point. | |
25415 | (Rewrite_Comparison): Fix handling of /= (this was always wrong, but | |
25416 | it did not matter because we always rewrote a/=b to not(a=b). | |
25417 | (Expand_Allocator_Expression): For an allocator expression whose nominal | |
25418 | subtype is an unconstrained packed type, convert the expression to its | |
25419 | actual constrained subtype. | |
25420 | Implement warning for <= or >= where < or > not possible | |
25421 | Fix to Vax_Float tests (too early in many routines, causing premature | |
25422 | Vax_Float expansions. | |
25423 | ||
25424 | * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma | |
25425 | to be used with packages and generic packages as well as with | |
25426 | subprograms. | |
25427 | (Suppress): Set All_Checks, but not Elaboration_Check, for case | |
25428 | of pragma Suppress (All_Checks) | |
25429 | (Analyze_Pragma, case Warnings): Implement first argument allowed to be | |
25430 | a string literal for precise control over warnings. | |
25431 | Avoid raise of pragma in case of unrecognized pragma and just return | |
25432 | instead. | |
25433 | ||
25434 | * sem_prag.ads: Minor reformatting | |
25435 | ||
25436 | * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;" | |
25437 | with call to new procedure Bad_Switch. Call Scan_Pos with new parameter | |
25438 | Switch. Do not handle any exception. | |
25439 | Include -gnatwx as part of -gnatg (warn on redundant parens) | |
25440 | Allow optional = after -gnatm | |
25441 | (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no | |
25442 | longer sets Elaboration_Checks. | |
25443 | Code to set warning mode moved to Sem_Warn | |
25444 | so that it can be shared by pragma processing. | |
25445 | ||
25446 | * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if | |
25447 | statement. | |
25448 | ||
7c066666 | 25449 | * s-taprop-solaris.adb: |
a05b87fd | 25450 | Change some <= to =, to avoid new warning |
25451 | ||
7c066666 | 25452 | * a-exexda.adb, prj-proc.adb: |
a05b87fd | 25453 | Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0) |
25454 | Fix obvious typo (Total_Errors_Detected <= 0 should be = 0) | |
25455 | ||
25456 | 2005-11-14 Robert Dewar <dewar@adacore.com> | |
25457 | ||
25458 | * exp_vfpt.adb: Handle /= case | |
25459 | (Expand_Vax_Conversion): Properly recognize Conversion_OK flag | |
25460 | so that we do not get duplicate scaling for fixed point conversions. | |
25461 | ||
25462 | * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function | |
25463 | ||
25464 | 2005-11-14 Matthew Gingell <gingell@adacore.com> | |
25465 | ||
7c066666 | 25466 | * system-lynxos-ppc.ads, system-lynxos-x86.ads: |
a05b87fd | 25467 | Increase default priority on Lynx from 15 to 17, and meet the Ada |
25468 | requirement that Default_Priority be ((Priority'First + | |
25469 | Priority'Last) / 2) by increasing the range of Interrupt_Priority. | |
25470 | ||
25471 | 2005-11-14 Vincent Celier <celier@adacore.com> | |
25472 | ||
25473 | * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, | |
25474 | mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb, | |
25475 | mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, | |
25476 | mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, | |
25477 | mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads, | |
25478 | mlib-tgt-lynxos.adb (DLL_Prefix): New function | |
25479 | ||
25480 | 2005-11-14 Doug Rupp <rupp@adacore.com> | |
25481 | ||
25482 | * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in | |
25483 | private part. | |
25484 | ||
25485 | 2005-11-14 Arnaud Charlet <charlet@adacore.com> | |
25486 | ||
25487 | * s-traces-default.adb, s-trafor-default.ads, | |
25488 | s-tratas-default.adb: Fix compilation errors. | |
25489 | ||
25490 | 2005-11-14 Jose Ruiz <ruiz@adacore.com> | |
25491 | ||
25492 | * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before | |
25493 | raising the exception so the memory used is freed. | |
25494 | ||
25495 | 2005-11-14 Arnaud Charlet <charlet@adacore.com> | |
25496 | ||
25497 | * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant. | |
25498 | (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used. | |
25499 | (convert_address): Update comments and list of platforms using this. | |
25500 | ||
25501 | * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed, | |
25502 | no longer used. | |
25503 | ||
25504 | 2005-11-14 Pascal Obry <obry@adacore.com> | |
25505 | Vincent Celier <celier@adacore.com> | |
25506 | ||
25507 | * gnatdll.adb (Parse_Command_Line): Remove redundant use of | |
25508 | GNAT.Command_Line. | |
25509 | ||
25510 | * memroot.adb: Remove redundant with/use clause on | |
25511 | System.Storage_Elements. | |
25512 | ||
25513 | 2005-11-14 Arnaud Charlet <charlet@adacore.com> | |
25514 | ||
25515 | * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used. | |
25516 | (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp | |
25517 | related code to a-exexpr.adb | |
25518 | (Save_Occurrence_And_Private): Move GCC EH related code to | |
25519 | a-exexpr-gcc.adb | |
25520 | (Raise_Current_Excep): Add new variable Id with pragma | |
d4c15061 | 25521 | volatile, to ensure that the variable lives on stack. |
a05b87fd | 25522 | |
25523 | * a-exexpr-gcc.adb, raise-gcc.c: New file. | |
25524 | ||
25525 | * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code | |
25526 | from a-except.adb. | |
25527 | Move GCC EH related code to a-exexpr-gcc.adb | |
25528 | ||
25529 | * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and | |
25530 | 64-bit Solaris | |
25531 | Split the Linux version of g-soccon into separate variants for 32 and 64 | |
25532 | bit platforms. | |
25533 | (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET) | |
25534 | vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS). | |
25535 | install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use | |
25536 | of host variable $(RANLIB_FLAGS). | |
25537 | (alpha64-dec-*vms*): Fix translations for 64 bit compiler. | |
25538 | Code clean up: remove unused/obsolete targets. | |
25539 | (EH_MECHANISM): New variable introduced to differenciate between the | |
25540 | two EH mechanisms statically. | |
25541 | (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually. | |
25542 | (LIBGNAT_OBJS): Add raise-gcc.o | |
25543 | (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of | |
25544 | s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that | |
25545 | supports VxWorks 6 RTPs. | |
25546 | (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of | |
25547 | i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs. | |
25548 | ||
25549 | * raise.c: Move all GCC EH-related routines to raise-gcc.c | |
25550 | ||
25551 | 2005-11-14 Jose Ruiz <ruiz@adacore.com> | |
25552 | ||
25553 | * s-tassta.adb (Create_Task): Move the code in charge of resetting the | |
25554 | deferral level, when abort is not allowed, to a later stage (the | |
25555 | Task_Wrapper). | |
25556 | (Task_Wrapper): If Abort is not allowed, reset the deferral level since | |
25557 | it will not get changed by the generated code. It was previously done | |
25558 | in Create_Task. | |
25559 | ||
25560 | 2005-11-14 Thomas Quinot <quinot@adacore.com> | |
25561 | Olivier Hainque <hainque@adacore.com> | |
25562 | Eric Botcazou <ebotcazou@adacore.com> | |
25563 | ||
25564 | * decl.c: | |
25565 | Factor common code to build a storage type for an unconstrained object | |
25566 | from a fat or thin pointer type and a constrained object type. | |
25567 | (annotate_value): Handle BIT_AND_EXPR. | |
25568 | (annotate_rep): Don't restrict the back annotation of inherited | |
25569 | components to the type_annotate_only case. | |
25570 | (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if | |
25571 | we are not defining the type. | |
25572 | <E_Record_Type>: Likewise. | |
25573 | (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure | |
25574 | to get advantage of the new maybe_stabilize_reference interface, to | |
25575 | ensure that what we reference is indeed stabilized instead of relying | |
25576 | on assumptions on what the stabilizer does. | |
25577 | (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete | |
25578 | type imported through a limited_with clause, use its non-limited view. | |
25579 | (Has_Stdcall_Convention): New macro, to centralize the Windows vs others | |
25580 | differentiation. | |
25581 | (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix | |
25582 | of #if sections + explicit comparisons of convention identifiers. | |
25583 | (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary | |
25584 | before early-returning for certain types when code generation is | |
25585 | disabled. | |
25586 | (gnat_to_gnu_entity) <object>: Adjust comment attached to the | |
25587 | nullification of gnu_expr we do for objects with address clause and | |
25588 | that we are not defining. | |
25589 | (elaborate_expression_1): Do not create constants when creating | |
25590 | variables needed by the debug info: the dwarf2 writer considers that | |
25591 | CONST_DECLs is used only to represent enumeration constants, and emits | |
25592 | nothing for them. | |
25593 | (gnat_to_gnu_entity) <object>: When turning a non-definition of an | |
25594 | object with an address clause into an indirect reference, drop the | |
25595 | initializing expression. | |
25596 | Include "expr.h". | |
25597 | (STACK_CHECK_BUILTIN): Delete. | |
25598 | (STACK_CHECK_PROBE_INTERVAL): Likewise. | |
25599 | (STACK_CHECK_MAX_FRAME_SIZE): Likewise. | |
25600 | (STACK_CHECK_MAX_VAR_SIZE): Likewise. | |
25601 | (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree | |
25602 | corresponding to the renamed object as ignored for debugging purposes. | |
25603 | ||
25604 | * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size & | |
25605 | related): For a prefix that is a dereference of a fat or thin pointer, | |
25606 | if there is an actual subtype provided by the front-end, use that | |
25607 | subtype to build an actual type with bounds template. | |
25608 | (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype | |
25609 | is provided by the front-end, use that subtype to compute the size of | |
25610 | the deallocated object. | |
25611 | (gnat_to_gnu): When adding a statement into an elaboration procedure, | |
25612 | check for a potential violation of a No_Elaboration_Code restriction. | |
25613 | (maybe_stabilize_reference): New function, like gnat_stabilize_reference | |
25614 | with extra arguments to control whether to recurse through non-values | |
25615 | and to let the caller know if the stabilization has succeeded. | |
25616 | (gnat_stabilize_reference): Now a simple wrapper around | |
25617 | maybe_stabilize, for common uses without restriction on lvalues and | |
25618 | without need to check for the success indication. | |
25619 | (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to | |
25620 | pass false instead of 0 as the FORCE argument which is a bool. | |
25621 | (Identifier_to_gnu): Remove checks ensuring that an renamed object | |
25622 | attached to a renaming pointer has been properly stabilized, as no such | |
25623 | object is attached otherwise. | |
25624 | (call_to_gnu): Invoke create_var_decl to create the temporary when the | |
25625 | function uses the "target pointer" return mechanism. | |
25626 | Reinstate conversion of the actual to the type of the formal | |
25627 | parameter before any other specific treatment based on the passing | |
25628 | mechanism. This turns out to be necessary in order for PLACEHOLDER | |
25629 | substitution to work properly when the latter type is unconstrained. | |
25630 | ||
25631 | * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a | |
25632 | common pattern. | |
25633 | (maybe_stabilize_reference): New function, like gnat_stabilize_reference | |
25634 | with extra arguments to control whether to recurse through non-values | |
25635 | and to let the caller know if the stabilization has succeeded. | |
25636 | ||
25637 | * utils2.c (gnat_build_constructor): Only sort the fields for possible | |
25638 | static output of record constructor if all the components are constant. | |
25639 | (gnat_build_constructor): For a record type, sort the list of field | |
25640 | initializers in increasing bit position order. | |
25641 | Factor common code to build a storage type for an unconstrained object | |
25642 | from a fat or thin pointer type and a constrained object type. | |
25643 | (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between | |
25644 | types variants, and process special cases of VIEW_CONVERT expressions | |
25645 | as their NOP_EXPR counterpart to ensure we get to the | |
25646 | CORRESPONDING_VARs associated with CONST_DECls. | |
25647 | (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs | |
25648 | on the right-hand side. | |
25649 | ||
25650 | * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring | |
25651 | a common pattern. | |
25652 | (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we | |
25653 | are converting back to its original type. | |
25654 | (convert) <JM input>: Fallthrough regular conversion code instead of | |
25655 | extracting the object if converting to a type variant. | |
25656 | (create_var_decl): When a variable has an initializer requiring code | |
25657 | generation and we are at the top level, check for a potential violation | |
25658 | of a No_Elaboration_Code restriction. | |
25659 | (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN | |
25660 | SIZE and SIZE_UNIT which we need for later back-annotations. | |
25661 | * utils.c: (convert) <STRING_CST>: Remove obsolete code. | |
25662 | <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type | |
25663 | is an unchecked union. | |
25664 | (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions. | |
25665 | (convert) <VIEW_CONVERT_EXPR>: When the types have the same | |
25666 | main variant, just replace the VIEW_CONVERT_EXPR. | |
25667 | <UNION_TYPE>: Revert 2005-03-02 change. | |
25668 | ||
25669 | * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR. | |
25670 | ||
25671 | * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions. | |
25672 | ||
25673 | 2005-11-14 Matthew Heaney <heaney@adacore.com> | |
25674 | ||
7c066666 | 25675 | * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads, |
25676 | a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb, | |
25677 | a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads, | |
25678 | a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb, | |
25679 | a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, | |
25680 | a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb: | |
a05b87fd | 25681 | Compiles against the spec for ordered maps described in sections |
25682 | A.18.6 of the most recent (August 2005) AI-302 draft. | |
25683 | ||
25684 | 2005-11-14 Olivier Hainque <hainque@adacore.com> | |
25685 | ||
25686 | * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations | |
25687 | to ensure bias adjustments take place when need be and to prevent | |
25688 | occurrences of intermediate overflows. | |
25689 | ||
25690 | 2005-11-14 Matthew Gingell <gingell@adacore.com> | |
25691 | Olivier Hainque <hainque@adacore.com> | |
25692 | ||
25693 | * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on | |
25694 | ia64 HP-UX. | |
25695 | ||
25696 | * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven | |
25697 | tracebacks on ia64 HP-UX and provide explanatory comment. | |
25698 | Enable backtraces on ia64 GNU/Linux. | |
25699 | (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real | |
25700 | base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly. | |
25701 | ||
25702 | 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com> | |
25703 | Javier Miranda <miranda@adacore.com> | |
25704 | ||
25705 | * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads, | |
25706 | exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads, | |
25707 | exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads, | |
25708 | einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces. | |
25709 | ||
25710 | * a-tags.ads, a-tags.adb: Major rewrite and additions to implement | |
25711 | properly new Ada 2005 interfaces (AI-345) and add run-time checks (via | |
25712 | assertions). | |
25713 | ||
25714 | * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New | |
25715 | subprogram that generates the external name associated with a | |
25716 | secondary dispatch table. | |
25717 | (Get_Secondary_DT_External_Name): New subprogram that generates the | |
25718 | external name associated with a secondary dispatch table. | |
25719 | ||
25720 | 2005-11-14 Emmanuel Briot <briot@adacore.com> | |
25721 | ||
25722 | * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity | |
25723 | line in the ALI file to include both an instantiation reference, and a | |
25724 | returned value. | |
25725 | ||
25726 | 2005-11-14 Vincent Celier <celier@adacore.com> | |
25727 | ||
25728 | * clean.adb (Check_Project): Look for Ada code in extending project, | |
25729 | even if Ada is not specified as a language. | |
25730 | Use new function DLL_Prefix for DLL_Name | |
25731 | (Clean_Interface_Copy_Directory): New procedure | |
25732 | (Clean_Library_Directory): New procedure | |
25733 | (Clean_Directory): Remove procedure, no longer used | |
25734 | (Clean_Project): Do not delete any file in an externally built project | |
25735 | ||
25736 | * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object | |
25737 | directory of an extending project, even when there are no Ada source | |
25738 | present. | |
25739 | (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path | |
25740 | (Set_Ada_Paths.Add.Recursive_Add): Ditto | |
25741 | ||
25742 | * mlib-prj.adb (Check_Library): For all library projects, get the | |
25743 | library file timestamp. | |
25744 | (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir | |
25745 | (Build_Library): Use new function DLL_Prefix for the DLL_Name | |
25746 | (Clean): Remove procedure, no longer used | |
25747 | (Ultimate_Extension_Of): New function | |
25748 | (Build_Library): When cleaning the library directory, only remove an | |
25749 | existing library file and any ALI file of a source of the project. | |
25750 | When cleaning the interface copy directory, remove any source that | |
25751 | could be a source of the project. | |
25752 | ||
25753 | * prj.ads, prj.adb (Project_Empty): Add values of new components | |
25754 | Library_TS and All_Imported_Projects. | |
25755 | (Project_Empty): Add values for new components of Project_Data: | |
25756 | Library_ALI_Dir and Display_Library_ALI_Dir | |
25757 | ||
25758 | * prj-attr.adb: New project level attribute name Library_ALI_Dir | |
25759 | ||
25760 | * prj-nmsc.adb (Check_Library_Attributes): Take into account new | |
25761 | attribute Library_ALI_Dir. | |
25762 | (Check_Library_Attributes): The library directory cannot be the same as | |
25763 | any source directory of the project tree. | |
25764 | (Check_Stand_Alone_Library): The interface copy directory cannot be | |
25765 | the same as any source directory of the project tree. | |
25766 | ||
25767 | * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete | |
25768 | all temporary files. | |
25769 | ||
25770 | 2005-11-14 Robert Dewar <dewar@adacore.com> | |
25771 | Ed Schonberg <schonberg@adacore.com> | |
25772 | ||
25773 | * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package | |
25774 | (Check_Elab_Call): A call within a protected body is never an | |
25775 | elaboration call, and does not require checking. | |
25776 | (Same_Elaboration_Scope): Take into account protected types for both | |
25777 | entities. | |
25778 | (Activate_Elaborate_All_Desirable): New procedure | |
25779 | ||
25780 | * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate | |
25781 | desirable | |
25782 | ||
25783 | * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable | |
25784 | (Elab_Error_Msg): Use -da to include internal unit links, not -de. | |
25785 | ||
7c066666 | 25786 | * lib-writ.ads, lib-writ.adb: |
a05b87fd | 25787 | Implement new AD/ED for Elaborate_All/Elaborate desirable |
25788 | Use new Elaborate_All_Desirable flag in N_With_Clause node | |
25789 | ||
25790 | * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for | |
25791 | N_Free_Statement nodes. | |
25792 | Define new class N_Subprogram_Instantiation | |
25793 | Add Elaborate_Desirable flag to N_With_Clause node | |
25794 | Add N_Delay_Statement (covering two kinds of delay) | |
25795 | ||
25796 | * debug.adb: Introduce d.f flag for compiler | |
25797 | Add -da switch for binder | |
25798 | ||
25799 | 2005-11-14 Ed Schonberg <schonberg@adacore.com> | |
25800 | Cyrille Comar <comar@adacore.com> | |
25801 | ||
25802 | * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity | |
25803 | for task component, in the case of a limited aggregate. The enclosed | |
25804 | object declaration will create it earlier. Otherwise, in the case of a | |
25805 | nested aggregate, the object may appear in the wrong scope. | |
25806 | (Convert_Aggr_In_Object_Decl): Create a transient scope when needed. | |
25807 | (Gen_Assign): If the component being assigned is an array type and the | |
25808 | expression is itself an aggregate, wrap the assignment in a block to | |
25809 | force finalization actions on the temporary created for each row of the | |
25810 | enclosing object. | |
25811 | (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl | |
25812 | structures are initialized after all discriminants are set so that | |
25813 | they can be accessed even when their offset is dynamic. | |
25814 | ||
25815 | 2005-11-14 Robert Dewar <dewar@adacore.com> | |
25816 | Hristian Kirtchev <kirtchev@adacore.com> | |
25817 | ||
25818 | * sem_attr.adb: Implement Machine_Rounding attribute | |
25819 | (Analyze_Access_Attribute): The access attribute may appear within an | |
25820 | aggregate that has been expanded into a loop. | |
25821 | (Check_Task_Prefix): Add semantic check for attribute 'Callable and | |
25822 | 'Terminated whenever the prefix is of a task interface class-wide type. | |
25823 | (Analyze_Attribute): Add semantic check for attribute 'Identity whenever | |
25824 | the prefix is of a task interface class-wide type. | |
25825 | ||
25826 | * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant | |
25827 | to avoid warnings. | |
25828 | ||
25829 | * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function | |
25830 | Remove pragma Inline for [Unaligned_]Valid. | |
25831 | Add comments that Valid routines do not work for Vax_Float | |
25832 | ||
25833 | * exp_attr.adb: Implement Machine_Rounding attribute | |
25834 | ||
25835 | * snames.h: Add entry for Machine_Rounding attribute | |
25836 | ||
25837 | 2005-11-14 Javier Miranda <miranda@adacore.com> | |
25838 | Robert Dewar <dewar@adacore.com> | |
25839 | Hristian Kirtchev <kirtchev@adacore.com> | |
25840 | ||
25841 | * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size | |
25842 | and related): For a prefix that is an explicit dereference of an | |
25843 | access to unconstrained packed array type, annotate the dereference | |
25844 | with an actual subtype so GIGI can make a correct size computation. | |
25845 | (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and | |
25846 | 'Unrestricted_Access, if the designated type is an interface we | |
25847 | add a type conversion to force the displacement of the pointer | |
25848 | to the secondary dispatch table. | |
25849 | Use Universal_Real instead of Long_Long_Float when we need a high | |
25850 | precision float type for the generated code (prevents gratuitous | |
25851 | Vax_Float stuff when pragma Float_Representation (Vax_Float) used) | |
25852 | (Expand_N_Attribute_Reference): Add support for attribute 'Callable and | |
25853 | 'Terminated for task interface class-wide objects. Generate a call to | |
25854 | the predefined dispatching routine used to retrieve the _task_id from | |
25855 | a task corresponding record. | |
25856 | (Expand_Fpt_Attribute): Major change to properly handle Vax_Float | |
25857 | ||
25858 | * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package | |
25859 | (Check_Dispatching_Operation): Protect the frontend againts | |
25860 | previously detected errors. | |
25861 | ||
25862 | * Makefile.rtl: Add new instantiations of system.fat_gen | |
25863 | ||
7c066666 | 25864 | * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads: |
a05b87fd | 25865 | Change name of instantiated package for better consistency |
25866 | with newly added system.fat_gen instantiations. | |
25867 | ||
25868 | * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads, | |
25869 | s-fvagfl.ads: New files. | |
25870 | ||
25871 | 2005-11-14 Cyrille Comar <comar@adacore.com> | |
25872 | Thomas Quinot <quinot@adacore.com> | |
25873 | ||
25874 | * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an | |
25875 | assignment of a value of a tagged type that has been rewritten to a | |
25876 | block statement, it is known by construction that no checks are | |
25877 | necessary for the statements within the block: analyze it with checks | |
25878 | suppressed. | |
25879 | (Expand_N_If_Statement): When killing a dead then-branch in an | |
25880 | if-statement that has elsif_parts, recompute the Current_Value node | |
25881 | for any entity whose value is known from the condition of the first | |
25882 | elsif_part. | |
25883 | (Expand_N_Return_Statement): When returning a mutable record, convert | |
25884 | the return value into its actual subtype in order to help the backend | |
25885 | to return the actual size instead of the maximum. This is another | |
25886 | aftermath of not returning mutable records on the sec-stack anymore. | |
25887 | ||
25888 | * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to | |
25889 | handling of error msg for suspicious reverse range iteration. | |
25890 | (Check_Possible_Current_Value_Condition): Move declaration from body to | |
25891 | spec, to allow this subprogram to be called from exp_ch5. | |
25892 | ||
25893 | 2005-11-14 Thomas Quinot <quinot@adacore.com> | |
25894 | ||
25895 | * exp_dist.adb (Append_Array_Traversal): Modify constrained case to | |
25896 | generate a set of nested array aggregates instead of a single flat | |
25897 | aggregate for multi-dimensional arrays. | |
25898 | ||
25899 | 2005-11-14 Pascal Obry <obry@adacore.com> | |
25900 | ||
25901 | * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned | |
25902 | by spawnve is a process handle, no need to convert. Add a parameter | |
25903 | close to control wether the process handle must be closed. | |
25904 | (__gnat_waitpid): Fix implementation, the pid returned by spawnve is | |
25905 | a process handle, not need to convert. | |
25906 | (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec. | |
25907 | ||
25908 | * g-expect.adb: (Kill): Document the new close parameter. | |
25909 | (Close): Do not release the process handle in the kill there as | |
25910 | waitpid() is using it. | |
25911 | (Send_Signal): Release the process handle. | |
25912 | ||
25913 | 2005-11-14 Robert Dewar <dewar@adacore.com> | |
25914 | ||
25915 | * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we | |
25916 | need a high precision float type for the generated code (prevents | |
25917 | gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float) | |
25918 | used). | |
25919 | ||
25920 | * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we | |
25921 | need a high precision float type for the generated code (prevents | |
25922 | gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float) | |
25923 | used). | |
25924 | (Expand_Width_Attribute): In configurable run-time, the attribute is not | |
25925 | allowed on non-static enumeration subtypes. Force a load error to emit | |
25926 | the correct diagnostic. | |
25927 | ||
25928 | 2005-11-14 Thomas Quinot <quinot@adacore.com> | |
25929 | Robert Dewar <dewar@adacore.com> | |
25930 | Ed Schonberg <schonberg@adacore.com> | |
25931 | ||
25932 | * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual | |
25933 | subtype to compute the size of the designated object at run-time, | |
25934 | create such a subtype and store it in the Actual_Designated_Subtype | |
25935 | attribute of the N_Free_Statement. | |
25936 | Generate itype for classwide designated object in both cases of | |
25937 | user-specified storage pool: specific and class-wide, not only in the | |
25938 | specific case. | |
25939 | Raise CE when trying to set a not null access type object to null. | |
25940 | (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with | |
25941 | an explicit loop, because freeze nodes make its position variable. | |
25942 | ||
25943 | * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not | |
25944 | null object. | |
25945 | ||
25946 | 2005-11-14 Javier Miranda <miranda@adacore.com> | |
25947 | ||
25948 | * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function, | |
25949 | Build_Stream_Procedure): Add the null-excluding attribute to the first | |
25950 | formal. | |
25951 | This has no semantic meaning under Ada95 mode but it is a | |
25952 | requirement under Ada05 mode. | |
25953 | ||
25954 | * par-ch3.adb (P_Access_Definition): Addition of warning message if | |
25955 | the null exclusion is used under Ada95 mode | |
25956 | (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95. | |
25957 | (P_Access_Definition): Remove assertion that forbids the use of | |
25958 | the null-exclusion feature in Ada95. | |
25959 | ||
25960 | 2005-11-14 Robert Dewar <dewar@adacore.com> | |
25961 | ||
25962 | * impunit.adb: Exclude container helper units not intended for use by | |
25963 | users. | |
25964 | ||
25965 | 2005-11-14 Ed Schonberg <schonberg@adacore.com> | |
25966 | ||
25967 | * freeze.adb (Freeze_Entity): For an access formal that is an access | |
25968 | to subprogram, freeze the anonymous subprogram type at the same time, | |
25969 | to prevent later freezing in the wrong scope, such as the enclosing | |
25970 | subprogram body. | |
25971 | (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_ | |
25972 | subprogram whenever available. | |
25973 | ||
25974 | 2005-11-14 Arnaud Charlet <charlet@adacore.com> | |
25975 | ||
25976 | PR ada/23732 | |
25977 | * gnatvsn.ads (Library_Version): Bump to 4.1 | |
25978 | ||
25979 | 2005-11-14 Robert Dewar <dewar@adacore.com> | |
25980 | ||
25981 | * g-debpoo.adb (Set_Valid): Use Integer_Address instead of | |
25982 | Storage_Offset to avoid wrap around causing invalid results. | |
25983 | ||
25984 | 2005-11-14 Pascal Obry <obry@adacore.com> | |
25985 | ||
25986 | * gnatbind.adb (Is_Cross_Compiler): New function returning True for | |
25987 | cross-compiler. | |
25988 | (Scan_Bind_Arg): Fail with an error message if -M option is used | |
25989 | on a native compiler. | |
25990 | ||
25991 | 2005-11-14 Robert Dewar <dewar@adacore.com> | |
25992 | Vincent Celier <celier@adacore.com> | |
25993 | ||
25994 | * gprep.adb: Implement -C switch to scan comments | |
25995 | ||
25996 | * scng.adb: Scan comment symbol separately if Replace_In_Comments set | |
25997 | ||
25998 | * scans.ads: Comment updates (including new use of Tok_Comment in | |
25999 | preprocessing) | |
26000 | ||
26001 | * opt.ads: Add documentation for flags that are used by gprmake, | |
26002 | currently and in the next version of gprmake. | |
26003 | (Verbosity_Level): New variable | |
26004 | Add Replace_In_Comments switch | |
26005 | ||
26006 | * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm | |
26007 | and -vm. | |
26008 | Add /REPLACE_IN_COMMENTS for gnatprep -C switch | |
26009 | ||
26010 | 2005-11-14 Arnaud Charlet <charlet@adacore.com> | |
26011 | ||
26012 | * g-regpat.adb (Fail): raise Expression_Error including the diagnostic | |
26013 | message, friendlier. | |
26014 | ||
26015 | 2005-11-14 Robert Dewar <dewar@adacore.com> | |
26016 | ||
26017 | * g-spitbo.adb: (Hash): Rotate by 3 instead of 1 | |
26018 | ||
26019 | 2005-11-14 Doug Rupp <rupp@adacore.com> | |
26020 | ||
26021 | * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined. | |
26022 | ||
26023 | 2005-11-14 Robert Dewar <dewar@adacore.com> | |
26024 | ||
26025 | * interfac.ads: Change declarations of IEEE float types so that we no | |
26026 | longer need a separate version of this package for VMS. | |
26027 | ||
26028 | 2005-11-14 Ed Schonberg <schonberg@adacore.com> | |
26029 | ||
26030 | * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the | |
26031 | internal entity created for the declaration of a child subprogram body | |
26032 | with no spec as coming from source, to generate proper cross-reference | |
26033 | information. | |
26034 | ||
26035 | 2005-11-14 Vincent Celier <celier@adacore.com> | |
26036 | ||
26037 | * make.adb (Compile_Sources): Change verbose message to minimum | |
26038 | verbosity level High for "is in an Ada library", "is a read-only | |
26039 | library" and "is an internal library", | |
26040 | (Create_Binder_Mapping_File): Path name of ALI file for library project | |
26041 | must include the library directory, not the object directory. | |
26042 | (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called | |
26043 | for new switches -vl, -vm and -vh. | |
26044 | (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity | |
26045 | (Check): Use minimum verbosity Medium for some Verbose_Msg calls | |
26046 | (Compile_Sources): Do not attempt to compile if an ALI file is missing | |
26047 | in a project that is externally built. | |
26048 | (Compute_All_Imported_Projects): New procedure | |
26049 | (Gnatmake): Check if importing libraries should be regenerated because | |
26050 | at least an imported library is more recent. | |
26051 | (Initialize): For each project compute the list of the projects it | |
26052 | imports directly or indirectly. | |
26053 | (Add_Library_Search_Dir): New procedure, used in place of | |
26054 | Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are | |
26055 | put in the search paths. | |
26056 | (Add_Source_Search_Dir): New procedure, used in place of | |
26057 | Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are | |
26058 | put in the search paths. | |
26059 | (Mark_Directory): Resolve the absolute path the directory before marking | |
26060 | it. | |
26061 | ||
26062 | * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with | |
26063 | call to new procedure Bad_Switch. Call Scan_Pos with new parameter | |
26064 | Switch. Do not handle any exception. | |
26065 | (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh | |
26066 | so that the switch is recognized as valid. | |
26067 | (Scan_Make_Switches): Implement new switches -vl, -vm and -vh. | |
26068 | ||
26069 | 2005-11-14 GNAT Script <nobody@adacore.com> | |
26070 | ||
26071 | * Make-lang.in: Makefile automatically updated | |
26072 | ||
26073 | 2005-11-14 Pascal Obry <obry@adacore.com> | |
26074 | ||
26075 | * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is | |
26076 | used. | |
26077 | (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used. | |
26078 | In both cases the last argument was dropped. | |
26079 | ||
26080 | 2005-11-14 Eric Botcazou <ebotcazou@adacore.com> | |
26081 | ||
26082 | * namet.h: (Column_Numbe): New type. | |
26083 | (Get_Column_Number): Define to sinput__get_column_number. | |
26084 | (Instantiation): Define to sinput__instantiation. | |
26085 | (Get_Column_Number): Declare. | |
26086 | (Instantiation): Likewise. | |
26087 | ||
26088 | 2005-11-14 Robert Dewar <dewar@adacore.com> | |
26089 | ||
26090 | * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit | |
26091 | syntax, which could cause compiler hangs. | |
26092 | ||
26093 | 2005-11-14 Vincent Celier <celier@adacore.com> | |
26094 | ||
26095 | * prj-ext.adb: Take into account new environment variable | |
26096 | GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH | |
26097 | are defined. | |
26098 | (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH, | |
26099 | normalize its path name, making it absolute and resolving symbolic | |
26100 | links, and replace the original if resolved path is different. | |
26101 | ||
26102 | 2005-11-14 Vincent Celier <celier@adacore.com> | |
26103 | ||
26104 | * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project | |
26105 | into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS. | |
26106 | ||
26107 | 2005-11-14 Emmanuel Briot <briot@adacore.com> | |
26108 | ||
26109 | * prj-pp.adb (Print): Do not output the with statement if the | |
26110 | associated name is empty, which happens for virtual extending projects. | |
26111 | (Print): Preserve the "extends all" attribute when printing the project. | |
26112 | ||
26113 | * prj-tree.ads (String_Value_Of): Add comment about returned value for | |
26114 | a virtual extending project. | |
26115 | ||
26116 | 2005-11-14 Ed Schonberg <schonberg@adacore.com> | |
26117 | ||
26118 | * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the | |
26119 | rhs of an assignment even if the type is unconstrained, when the | |
26120 | context is non-expanding. | |
26121 | In an inlined body, if the context type is private, | |
26122 | resolve with its full view, which must be a composite type. | |
26123 | ||
26124 | 2005-11-14 Robert Dewar <dewar@adacore.com> | |
26125 | Ed Schonberg <schonberg@adacore.com> | |
26126 | ||
26127 | * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package | |
26128 | Do not give obsolescent warning on with of subprogram (since we | |
26129 | diagnose calls) | |
26130 | (Analyze_With_Clause): Add test for obsolescent package | |
26131 | (Install_Context_Clauses): If the unit is the body of a child unit, do | |
26132 | not install twice the private declarations of the parents, to prevent | |
26133 | circular lists of Use_Clauses in a parent. | |
26134 | (Implicit_With_On_Parent): Do add duplicate with_clause on parent when | |
26135 | compiling body of child unit. | |
26136 | Use new class N_Subprogram_Instantiation | |
26137 | (Expand_With_Clause): If this is a private with_clause for a child unit, | |
26138 | appearing in the context of a package declaration, then the implicit | |
26139 | with_clauses generated for parent units are private as well. | |
26140 | (License_Check): Do not generate message if with'ed unit is internal | |
26141 | ||
26142 | 2005-11-14 Gary Dismukes <dismukes@adacore.com> | |
26143 | Ed Schonberg <schonberg@adacore.com> | |
26144 | Thomas Quinot <quinot@adacore.com> | |
26145 | ||
26146 | * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose | |
26147 | names are internal, because they will not have a corresponding partner | |
26148 | in the actual package. | |
26149 | (Analyze_Formal_Package): Move the setting of the formal package spec's | |
26150 | Generic_Parent field so that it occurs prior to analyzing the package, | |
26151 | to allow proper operation of Install_Parent_Private_Declarations. | |
26152 | (Analyze_Package_Instantiation): Set the instantiated package entity's | |
26153 | Package_Instantiation field. | |
26154 | (Get_Package_Instantiation_Node): Move declaration to package spec. | |
26155 | Retrieve the N_Package_Instantiation node when the Package_Instantiation | |
26156 | field is present. | |
26157 | (Check_Generic_Child_Unit): Within an inlined call, the only possible | |
26158 | instantiation is Unchecked_Conversion, for which no parents are needed. | |
26159 | (Inline_Instance_Body): Deinstall and record the use_clauses for all | |
26160 | parent scopes of a scope being removed prior to inlining an instance | |
26161 | body. | |
26162 | (Analyze_Package_Instantiation): Do not perform front-end inlining when | |
26163 | the current context is itself an instance within a non-instance child | |
26164 | unit, to prevent scope stack errors. | |
26165 | (Save_References): If the node is an aggregate that is an actual in a | |
26166 | call, rewrite as a qualified expression to preserve some type | |
26167 | information, to resolve possible ambiguities in the instance. | |
26168 | (Instance_Parent_Unit): New global variable to record the ultimate | |
26169 | parent unit associated with a generic child unit instance (associated | |
26170 | with the existing Parent_Unit_Visible flag). | |
26171 | (type Instance_Env): New component Instance_Parent_Unit for stacking | |
26172 | parents recorded in the global Instance_Parent_Unit. | |
26173 | (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env | |
26174 | stack. | |
26175 | (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when | |
26176 | it's not a top-level unit, and only do this if Instance_Parent_Unit is | |
26177 | not already set. Replace test of Is_Child_Unit with test of parent's | |
26178 | scope against package Standard. Add comments and a ??? comment. | |
26179 | (Remove_Parent): Revise condition for resetting Is_Immediately_Visible | |
26180 | on a child instance parent to test that the parent equals | |
26181 | Instance_Parent rather than simply checking that the unit is not a | |
26182 | child unit. | |
26183 | (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env. | |
26184 | (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of | |
26185 | a formal interface are ancestors of the corresponding actual. | |
26186 | (Validate_Formal_Interface_Type): Additional legality checks. | |
26187 | (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal | |
26188 | interface types with ancestors. | |
26189 | (Analyze_Formal_Package): If formal is a renaming, use renamed entity | |
26190 | to diagnose attempts to use generic within its own declaration. | |
26191 | ||
26192 | 2005-11-14 Ed Schonberg <schonberg@adacore.com> | |
26193 | Javier Miranda <miranda@adacore.com> | |
26194 | ||
26195 | * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original | |
26196 | discriminant. | |
26197 | (Build_Private_Derived_Type): The entity of the created full view of the | |
26198 | derived type does not come from source. If after installing the private | |
26199 | declarations of the parent scope the parent is still private, use its | |
26200 | full view to construct the full declaration of the derived type. | |
26201 | (Build_Derived_Record_Type): Relax the condition that controls the | |
26202 | execution of the check that verifies that the partial view and | |
26203 | the full view agree in the set of implemented interfaces. In | |
26204 | addition, this test now only takes into account the progenitors. | |
26205 | (Derive_Interface_Subprograms): No need to derive subprograms | |
26206 | of ancestors that are interfaces. | |
26207 | (Derive_Subprograms): Remove formal No_Predefined_Prims and the | |
26208 | associated code. | |
26209 | Change name Is_Package to Is_Package_Or_Generic_Package | |
26210 | (Complete_Subprograms_Derivation): Handle the case in which the full | |
26211 | view is a transitive derivation of the ancestor of the partial view. | |
26212 | (Process_Full_View): Rename local subprogram Find_Interface_In_ | |
26213 | Descendant to Find_Ancestor_Interface to leave the code more clear. | |
26214 | Remove wrong code that avoids the generation of an error message | |
26215 | when the immediate ancestor of the partial view is an interface. | |
26216 | In addition some minor reorganization of the code has been done to | |
26217 | leave it more clear. | |
26218 | (Analyze_Type_Declaration): If type has previous incomplete tagged | |
26219 | partial view, inherit properly its primitive operations. | |
26220 | (Collect_Interfaces): Make public, for analysis of formal | |
26221 | interfaces. | |
26222 | (Analyze_Interface_Declaration): New procedure for use for regular and | |
26223 | formal interface declarations. | |
26224 | (Build_Derived_Record_Type): Add support for private types to the code | |
26225 | that checks if a tagged type implements abstract interfaces. | |
26226 | (Check_Aliased_Component_Type): The test applies in the spec of an | |
26227 | instance as well. | |
26228 | (Access_Type_Declaration): Clean up declaration of malformed type | |
26229 | declared as an access to its own classwide type, to prevent cascaded | |
26230 | crash. | |
26231 | (Collect_Interfaces): For private extensions and for derived task types | |
26232 | and derived protected types, the parent may be an interface that must | |
26233 | be included in the interface list. | |
26234 | (Access_Definition): If the designated type is an interface that may | |
26235 | contain tasks, create Master_Id for it before analyzing the expression | |
26236 | of the declaration, which may be an allocator. | |
26237 | (Record_Type_Declaration): Set properly the interface kind, for use | |
26238 | in allocators, the creation of master id's for task interfaces, etc. | |
26239 | ||
26240 | 2005-11-14 Javier Miranda <miranda@adacore.com> | |
26241 | Ed Schonberg <schonberg@adacore.com> | |
26242 | ||
26243 | * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be | |
26244 | omitted in case of stream attribute subprograms. | |
26245 | (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that | |
26246 | appear immediately after a subprogram body, when there is no previous | |
26247 | subprogram declaration. | |
26248 | Change name Is_Package to Is_Package_Or_Generic_Package | |
26249 | (Process_Formals): A non null qualifier on a non null named access | |
26250 | type is not an error, and is a warning only if Redundant_Constructs | |
26251 | are flagged. | |
26252 | ||
26253 | 2005-11-14 Gary Dismukes <dismukes@adacore.com> | |
26254 | Ed Schonberg <schonberg@adacore.com> | |
26255 | ||
26256 | * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure | |
26257 | nested within Analyze_Package_Specification to install the private | |
26258 | declarations and use clauses within each of the parent units of a | |
26259 | package instance of a generic child package. | |
26260 | (Analyze_Package_Specification): When entering a private part of a | |
26261 | package associated with a generic instance or formal package, the | |
26262 | private declarations of the parent must be installed (by calling new | |
26263 | procedure Install_Parent_Private_Declarations). | |
26264 | Change name Is_Package to Is_Package_Or_Generic_Package | |
26265 | (Preserve_Full_Attributes): For a synchronized type, the corresponding | |
26266 | record is absent in a generic context, which does not indicate a | |
26267 | compiler error. | |
26268 | ||
26269 | 2005-11-14 Ed Schonberg <schonberg@adacore.com> | |
26270 | ||
26271 | * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do | |
26272 | not try to rewrite a renamed stream attribute, because the operations | |
26273 | on the type may not have been generated. | |
26274 | Handle properly a renaming_as_body generated for a stream operation | |
26275 | whose default is abstract because the object type itself is abstract. | |
26276 | (Find_Type): If the type is incomplete and appears as the prefix of a | |
26277 | 'Class reference, it is tagged, and its list of primitive operations | |
26278 | must be initialized properly. | |
26279 | (Chain_Use_Clauses): When chaining the use clauses that appear in the | |
26280 | private declaration of a parent unit, prior to compiling the private | |
26281 | part of a child unit, find on the scope stack the proper parent entity | |
26282 | on which to link the use clause. | |
26283 | (Note_Redundant_Use): Emit a warning when a redundant use clause is | |
26284 | detected. | |
26285 | (Analyze_Object_Renaming): An attribute reference is not a legal object | |
26286 | if it is not a function call. | |
26287 | ||
26288 | 2005-11-14 Robert Dewar <dewar@adacore.com> | |
26289 | Ed Schonberg <schonberg@adacore.com> | |
26290 | ||
26291 | * sem_eval.adb: Implement d.f flag | |
26292 | (Subtype_Statically_Match): A generic actual type has unknown | |
26293 | discriminants when the corresponding actual has a similar partial view. | |
26294 | If the routine is called to validate the signature of an inherited | |
26295 | operation in a child instance, the generic actual matches the full view, | |
26296 | ||
26297 | 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com> | |
26298 | Ed Schonberg <schonberg@adacore.com> | |
26299 | Robert Dewar <dewar@adacore.com> | |
26300 | Thomas Quinot <quinot@adacore.com> | |
26301 | ||
26302 | * sem_res.adb (Resolve_Call): Provide a better error message whenever | |
26303 | a procedure call is used as a select statement trigger and is not an | |
26304 | entry renaming or a primitive of a limited interface. | |
26305 | (Valid_Conversion): If the operand has a single interpretation do not | |
26306 | remove address operations. | |
26307 | (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise | |
26308 | statement to inhibit warning. | |
26309 | (Resolve_Unary_Op): Do not produce a warning when | |
26310 | processing an expression of the form -(A mod B) | |
26311 | Use Universal_Real instead of Long_Long_Float when we need a high | |
26312 | precision float type for the generated code (prevents gratuitous | |
26313 | Vax_Float stuff when pragma Float_Representation (Vax_Float) used) | |
26314 | (Resolve_Concatenation_Arg): Improve error message when argument is an | |
26315 | ambiguous call to a function that returns an array. | |
26316 | (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that | |
26317 | there is an implicit operator in the given scope if we are within an | |
26318 | instance: legality check has been performed on the generic. | |
26319 | (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator | |
26320 | after resolving operand, to avoid false warnings on overloaded calls. | |
26321 | ||
26322 | 2005-11-14 Ed Schonberg <schonberg@adacore.com> | |
26323 | Javier Miranda <miranda@adacore.com> | |
26324 | ||
26325 | PR ada/15604 | |
a05b87fd | 26326 | * sem_type.adb (Covers): In an inlined body, a composite type matches |
26327 | a private type whose full view is a composite type. | |
26328 | (Interface_Present_In_Ancestor): Protect the frontend against | |
26329 | previously detected errors to ensure that its compilation | |
26330 | with assertions enabled gives the same output that its | |
26331 | compilation without assertions. | |
26332 | (Interface_Present_In_Ancestor): Add support for private types. | |
26333 | Change name In_Actual to In_Generic_Actual (clean up) | |
26334 | (Disambiguate): New predicate In_Actual, to recognize expressions that | |
26335 | appear in the renaming declaration generated for generic actuals, and | |
26336 | which must be resolved in the outer context. | |
26337 | ||
26338 | 2005-11-14 Robert Dewar <dewar@adacore.com> | |
26339 | Thomas Quinot <quinot@adacore.com> | |
26340 | Hristian Kirtchev <kirtchev@adacore.com> | |
26341 | Ed Schonberg <schonberg@adacore.com> | |
26342 | ||
26343 | * sem_util.ads, sem_util.adb: Change name Is_Package to | |
26344 | Is_Package_Or_Generic_Package. | |
26345 | (Check_Obsolescent): New procedure. | |
26346 | (Set_Is_Public): Remove obsolete junk test. | |
26347 | (Set_Public_Status): Do not set Is_Public on an object whose declaration | |
26348 | occurs within a handled_sequence_of_statemets. | |
26349 | (Is_Controlling_Limited_Procedure): Factor some of the logic, account | |
26350 | for a parameterless procedure. | |
26351 | (Enter_Name): Recognize renaming declarations created for private | |
26352 | component of a protected type within protected operations, so that | |
26353 | the source name of the component can be used in the debugger. | |
26354 | ||
26355 | 2005-11-14 Ed Schonberg <schonberg@adacore.com> | |
26356 | Robert Dewar <dewar@adacore.com> | |
26357 | ||
26358 | * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals | |
26359 | of a generic subprogram are not visible outside the body. | |
26360 | (Set_Warning_Switch): New procedure (code to set warning mode moved | |
26361 | here from Switch.C so that it can be shared by pragma processing. | |
26362 | (Check_References): Special case warning for non-modified non-imported | |
26363 | volatile objects. | |
26364 | * par-prag.adb: Modify processing of pragma Warnings to accomodate new | |
26365 | form with a string literal argument | |
26366 | ||
26367 | 2005-11-14 Javier Miranda <miranda@adacore.com> | |
26368 | ||
26369 | * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the | |
26370 | anonymous access. | |
26371 | (Write): Addition of "not null" to the anonymous access. | |
26372 | (Read): Addition of "not null" to the anonymous access. | |
26373 | (Write): Addition of "not null" to the anonymous access. | |
26374 | ||
26375 | * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F, | |
26376 | I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU, | |
26377 | I_SU, I_U, I_WC): Addition of "not null" to the anonymous access. | |
26378 | (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU, | |
26379 | W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of | |
26380 | "not null" to the anonymous access. | |
26381 | ||
26382 | 2005-11-14 Robert Dewar <dewar@adacore.com> | |
26383 | ||
26384 | * s-stoele.adb: Fix code for Address mod Storage_Offset for negative | |
26385 | offset values | |
26386 | ||
26387 | 2005-11-14 Vincent Celier <celier@adacore.com> | |
26388 | ||
26389 | * switch.adb (Bad_Switch): New procedure | |
26390 | (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate | |
26391 | message when in error. | |
26392 | ||
26393 | * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value, | |
26394 | Too_Many_Output_Files): Remove declarations, no longer used. | |
26395 | (Scan_Nat): New parameter Switch | |
26396 | (Scan_Pos): Ditto | |
26397 | (Bad_Switch): New procedure | |
26398 | ||
26399 | * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;" | |
26400 | with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith | |
26401 | new parameter Switch. Replace "raise Too_Many_Output_Files;" with call | |
26402 | to Osint.Fail. Do not handle any exception. | |
26403 | ||
26404 | 2005-11-14 Vincent Celier <celier@adacore.com> | |
26405 | ||
26406 | * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it | |
26407 | designates a non existent directory. | |
26408 | ||
26409 | 2005-11-14 Robert Dewar <dewar@adacore.com> | |
26410 | ||
26411 | * xgnatugn.adb: Replace invalid membership test by 'Valid | |
26412 | ||
26413 | 2005-11-14 Vincent Celier <celier@adacore.com> | |
26414 | ||
26415 | * makegpr.adb (Gprmake): Do not attempt to build the global archive if | |
26416 | there is no object directory. | |
26417 | ||
26418 | 2005-11-14 Robert Dewar <dewar@adacore.com> | |
26419 | ||
26420 | * usage.adb: Minor adjustment to output format, use nn instead of nnn | |
26421 | (so that -gnateInnn does not run into next column) | |
26422 | ||
26423 | 2005-11-14 Ed Falis <falis@adacore.com> | |
26424 | ||
26425 | * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" => | |
26426 | "constrained" | |
26427 | ||
26428 | 2005-11-14 Cyrille Comar <comar@adacore.com> | |
26429 | ||
26430 | * s-chepoo.ads: Add comments on Dereference. | |
26431 | Remove unnecessary inherited abstract primitives. | |
26432 | Cosmetic cleanup. | |
26433 | ||
26434 | 2005-11-14 Robert Dewar <dewar@adacore.com> | |
26435 | ||
26436 | * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration | |
26437 | node parameter, not needed, since it is available as Declaration_Node. | |
26438 | ||
26439 | 2005-11-14 Geert Bosch <bosch@adacore.com> | |
26440 | ||
26441 | * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and | |
26442 | grammatically correct. | |
26443 | ||
26444 | 2005-11-14 Vincent Celier <celier@adacore.com> | |
26445 | ||
26446 | * s-fileio.ads: Correct spelling error in comment | |
26447 | ||
26448 | 2005-11-14 Cyrille Comar <comar@adacore.com> | |
26449 | Robert Dewar <dewar@adacore.com> | |
26450 | Vincent Celier <celier@adacore.com> | |
26451 | Ben Brosgol <brosgol@adacore.com> | |
26452 | Jose Ruiz <ruiz@adacore.com> | |
26453 | Pascal Obry <obry@adacore.com> | |
26454 | ||
7c066666 | 26455 | * gnat_ugn.texi: |
a05b87fd | 26456 | Document that -fstack-check is needed for strict compliance with the |
26457 | Ada 95 Reference Manual. | |
26458 | Correct reference to VAX systems to meet HP guidelines | |
26459 | Add documentation for new gnatmake switches -vl, -vm and -vh | |
26460 | Replace DEC Ada by HP Ada | |
26461 | Replace DIGITAL by HP | |
26462 | Remove empty section on tools in compatibility section | |
26463 | Clarify the Windows convention semantics. | |
26464 | Document the Win32 calling convention. | |
26465 | The Stdcall, Win32 and DLL convention are synonyms. | |
26466 | Add a note in -gnatR description about zero size record components | |
26467 | Note on new >= and <= warnings for -gnatwc | |
26468 | Document that equal sign after -gnatm is optional. | |
26469 | Note that strip is working fine on DLL built with a Library | |
26470 | Project. The restriction apply only to DLL built with gnatdll. | |
26471 | Update section about the way to debug a DLL. | |
26472 | Update information about the DLL convention. | |
26473 | Document -C switch for gnatprep | |
26474 | Document new attribute Library_ALI_Dir | |
26475 | Update elaboration doc to include implicit Elaborate pragmas now | |
26476 | generated for subprogram instantiations. | |
26477 | Document limitation on executable names that include spaces for --GCC, | |
26478 | --GNATBIND, and --GNATLINK switches. | |
26479 | Document that -w causes -gnatws to be added at start of gcc switches | |
26480 | ||
26481 | * gnat_rm.texi: Document that -mieee is needed for generating infinite | |
26482 | and NaN values in case of overflow on machines that are not fully | |
26483 | compliant with the IEEE floating-point standard. | |
26484 | Create a section describing the set of compiler options needed for | |
26485 | strict compliance with the Ada 95 Reference Manual. | |
26486 | Add documentation for pragma Obsolescent applied to a package | |
26487 | Clarify potential issues of mixed language programs related to the | |
26488 | I/O buffering enabling in the elaboration of the GNAT runtime. | |
26489 | Add extra documentation for pragma Restrictions (No_Elaboration_Code) | |
26490 | This documentation only patch adds extra documentsion for pragma | |
26491 | Restrictions (No_Elaboration_Code), explaining why it is not possible | |
26492 | to document this restriction in terms of allowed source constructs. | |
26493 | Document string literal form of pragma Warnings | |
26494 | Document new attribute Library_ALI_Dir | |
26495 | Add documentation on stable attributes in project files that was missing | |
26496 | ||
26497 | * gnat-style.texi: Indicate that paragraphs within a single comment | |
26498 | should be separated by empty comment lines | |
26499 | ||
26500 | * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and | |
26501 | /05 respectively) | |
26502 | ||
26503 | * bindusg.adb: Minor cleanup, put -m before -M for consistency | |
26504 | ||
26505 | 2005-11-14 Robert Dewar <dewar@adacore.com> | |
26506 | ||
26507 | * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb, | |
26508 | a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb, | |
26509 | a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads, | |
26510 | a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb, | |
26511 | a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads, | |
26512 | a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads, | |
26513 | a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb, | |
26514 | a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb, | |
26515 | a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, | |
26516 | a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb, | |
26517 | a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, | |
26518 | a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb, | |
26519 | g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads, | |
26520 | a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb, | |
26521 | a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb, | |
26522 | system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads, | |
26523 | g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb, | |
26524 | g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads, | |
26525 | a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads, | |
26526 | a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads, | |
26527 | a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads, | |
26528 | a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads, | |
26529 | a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads, | |
26530 | a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads, | |
26531 | system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads, | |
26532 | system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb, | |
26533 | a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb, | |
26534 | a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb, | |
26535 | a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads, | |
26536 | system-tru64.ads, system-aix.ads, system-solaris-x86.ads, | |
26537 | system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads, | |
26538 | s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb, | |
26539 | system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads, | |
26540 | system-interix.ads, system-solaris-sparc.ads, | |
26541 | system-solaris-sparcv9.ads, s-inmaop-vms.adb, | |
26542 | s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb, | |
26543 | system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb, | |
26544 | s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads, | |
26545 | a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads, | |
26546 | a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb, | |
26547 | a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads, | |
26548 | a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads, | |
26549 | a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads, | |
26550 | a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads, | |
26551 | a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb, | |
26552 | a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb, | |
26553 | a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb, | |
26554 | a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads, | |
26555 | a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb, | |
26556 | a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb, | |
26557 | a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads, | |
26558 | a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads, | |
26559 | a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb, | |
26560 | a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb, | |
26561 | a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb, | |
26562 | a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, | |
26563 | a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb, | |
26564 | a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads, | |
26565 | a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb, | |
26566 | a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb, | |
26567 | a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb, | |
26568 | a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads, | |
26569 | a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb, | |
26570 | a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, | |
26571 | a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb, | |
26572 | a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb, | |
26573 | a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb, | |
26574 | a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb, | |
26575 | bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb, | |
26576 | csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb, | |
26577 | errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads, | |
26578 | errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads, | |
26579 | exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb, | |
26580 | exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb, | |
26581 | freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads, | |
26582 | g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads, | |
26583 | g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads, | |
26584 | g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads, | |
26585 | g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb, | |
26586 | g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads, | |
26587 | g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads, | |
26588 | g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads, | |
26589 | g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb, | |
26590 | gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb, | |
26591 | gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb, | |
26592 | g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb, | |
26593 | g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb, | |
26594 | g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads, | |
26595 | g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads, | |
26596 | g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb, | |
26597 | layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb, | |
26598 | mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads, | |
26599 | mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads, | |
26600 | nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb, | |
26601 | osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads, | |
26602 | par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb, | |
26603 | par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb, | |
26604 | par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads, | |
26605 | prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads, | |
26606 | prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb, | |
26607 | prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb, | |
26608 | prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb, | |
26609 | sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb, | |
26610 | sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads, | |
26611 | sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads, | |
26612 | sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads, | |
26613 | s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb, | |
26614 | sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, | |
26615 | s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, | |
26616 | s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, | |
26617 | s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, | |
26618 | s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, | |
26619 | s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, | |
26620 | s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, | |
26621 | s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, | |
26622 | s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, | |
26623 | s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, | |
26624 | s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, | |
26625 | s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, | |
26626 | s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, | |
26627 | s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, | |
26628 | s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, | |
26629 | s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, | |
26630 | s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, | |
26631 | s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, | |
26632 | s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, | |
26633 | s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, | |
26634 | s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, | |
26635 | s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads, | |
26636 | s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb, | |
26637 | s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads, | |
26638 | s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads, | |
26639 | s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads, | |
26640 | s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads, | |
26641 | styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads, | |
26642 | s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads, | |
26643 | s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb, | |
26644 | s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads, | |
26645 | s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads, | |
26646 | s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads, | |
26647 | s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads, | |
26648 | s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb, | |
26649 | s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads, | |
26650 | s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, | |
26651 | s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads, | |
26652 | table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c, | |
26653 | tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads, | |
26654 | ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads, | |
26655 | usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads, | |
26656 | xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, | |
26657 | xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, | |
26658 | a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads, | |
26659 | a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads, | |
26660 | a-numaux-darwin.ads, a-numaux-darwin.adb, | |
26661 | a-swuwha.ads, a-stunha.ads: Minor reformatting | |
26662 | ||
5f12dcd9 | 26663 | 2005-11-14 Robert Dewar <dewar@adacore.com> |
26664 | ||
26665 | PR ada/18434 | |
26666 | * osint-m.adb: Add pragma Elaborate_All for Osint | |
26667 | ||
45c55567 | 26668 | 2005-11-10 Eric Botcazou <ebotcazou@adacore.com> |
26669 | ||
26670 | PR ada/23995 | |
26671 | * trans.c (call_to_gnu): Restore statement lost in translation. | |
26672 | ||
74cb2989 | 26673 | 2005-11-08 Eric Botcazou <ebotcazou@adacore.com> |
26674 | ||
26675 | * init.c: Use the Linux-specific section for the IA-64/Linux target. | |
26676 | (__gnat_adjust_context_for_raise): Add conditional code so that the | |
26677 | IA-64 is also supported. | |
26678 | ||
cfd96fcf | 26679 | 2005-11-03 James E Wilson <wilson@specifix.com> |
26680 | ||
26681 | PR ada/23427 | |
74cb2989 | 26682 | * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in |
26683 | TREE_OVERFLOW check. | |
cfd96fcf | 26684 | |
cb68166e | 26685 | 2005-09-21 Olivier Hainque <hainque@adacore.com> |
26686 | ||
26687 | PR ada/22418 | |
26688 | * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects, | |
26689 | as we create them to store a size in bits. | |
26690 | ||
3ee3365e | 26691 | 2005-10-21 Eric Botcazou <ebotcazou@adacore.com> |
26692 | ||
26693 | PR ada/21937 | |
26694 | PR ada/22328 | |
26695 | PR ada/22381 | |
26696 | PR ada/22383 | |
26697 | PR ada/22419 | |
26698 | PR ada/22420 | |
26699 | * utils2.c (build_return_expr): New helper function. | |
26700 | * gigi.h (build_return_expr): Declare it. | |
26701 | * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead | |
26702 | of manually building the RETURN_EXPR tree. | |
26703 | (call_to_gnu): Pass MODIFY_EXPR through build_binary_op. | |
26704 | (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through | |
cb68166e | 26705 | build_binary_op for the "target pointer" case. Use build_return_expr |
3ee3365e | 26706 | instead of manually building the RETURN_EXPR tree. |
26707 | ||
8a67bb47 | 26708 | 2005-09-16 Laurent Guerby <laurent@guerby.net> |
879454b4 | 26709 | |
26710 | PR ada/23788 | |
26711 | * s-tpinop.ads: Make this unit Preelaborate. | |
26712 | ||
86aca445 | 26713 | 2005-09-16 Andreas Jaeger <aj@suse.de> |
26714 | ||
26715 | * socket.c: Add string.h for memcpy. | |
26716 | ||
ca857517 | 26717 | 2005-09-05 Arnaud Charlet <charlet@adacore.com> |
26718 | ||
26719 | * dec-io.ads, dec-io.adb: Removed, no longer used. | |
26720 | ||
26721 | 2005-09-01 Arnaud Charlet <charlet@adacore.com> | |
26722 | ||
26723 | * a-calend-mingw.adb: Add call to OS_Primitives.Initialize; | |
26724 | ||
26725 | * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb, | |
26726 | s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb, | |
26727 | s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb, | |
26728 | s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that | |
26729 | dependent units are Preelaborate. | |
26730 | (Initialize): Call Interrupt_Managemeent.Initialize and | |
26731 | OS_Primitives.Initialize to ensure proper initialization of this unit. | |
26732 | Remove use of System.Soft_Links | |
26733 | Make this unit Preelaborate. | |
26734 | ||
26735 | * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads, | |
26736 | s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads, | |
26737 | s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads, | |
26738 | s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads, | |
26739 | s-proinf-irix-athread.adb, s-proinf-irix-athread.ads, | |
26740 | s-tratas.ads, s-tasinf.ads: Minor reformatting. | |
26741 | Add pragma Preelaborate, since these packages are suitable for this | |
26742 | categorization. | |
26743 | Update comments. | |
26744 | ||
26745 | * s-traent-vms.ads, s-intman-dummy.adb, | |
26746 | s-taprop-dummy.adb: Make this unit Preelaborate. | |
26747 | ||
26748 | * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads, | |
86aca445 | 26749 | s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb, |
ca857517 | 26750 | s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads, |
26751 | s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb, | |
26752 | s-intman-solaris.adb, s-intman-irix-athread.adb, | |
26753 | s-intman-irix.adb: Mark this unit Preelaborate. | |
26754 | (Initialize): New procedure. | |
26755 | Update comments. | |
26756 | ||
26757 | * s-taspri-linux.ads: Removed. | |
26758 | ||
26759 | * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure, | |
26760 | as done by other implementations (e.g. posix). | |
26761 | ||
26762 | * s-taprop.ads (Timed_Delay): Update spec since the caller now is | |
26763 | responsible for deferring abort. | |
26764 | Mark this unit Preelaborate. | |
26765 | ||
26766 | * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure | |
26767 | proper initialization of the tasking run-time. | |
26768 | ||
26769 | * s-tasdeb.ads: Mark this unit Preelaborate. | |
26770 | (Known_Tasks): Add explicit default value to avoid elaboration code. | |
26771 | ||
26772 | * s-inmaop-vms.adb (Elaboration code): Add call to | |
26773 | Interrupt_Management.Initialize since the elaboration code depends on | |
26774 | proper initialization of this package. | |
26775 | ||
26776 | * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb, | |
26777 | s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads, | |
26778 | s-osprim-posix.adb: Make this unit Preelaborate. | |
26779 | ||
26780 | * a-calend.adb: Add call to OS_Primitives.Initialize | |
26781 | ||
26782 | * a-elchha.adb: Update use of Except.Id.Full_Name. | |
26783 | Minor reformatting. | |
26784 | Remove use of Ada.Exceptions.Traceback when possible, cleaner. | |
26785 | ||
26786 | * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads: | |
26787 | Move with clauses outside Warnings Off now that dependent units are | |
26788 | Preelaborate. | |
26789 | Use raise xxx with "..."; Ada 2005 form. | |
26790 | ||
86aca445 | 26791 | * a-taside.ads, a-taside.adb: |
ca857517 | 26792 | Remove some dependencies, to make it easier to make this unit truly |
26793 | Preelaborate. | |
26794 | Rewrite some code to be conformant with Preelaborate rules. | |
26795 | ||
26796 | * g-os_lib.adb: Remove non-preelaborate code so that this unit can be | |
26797 | marked Preelaborate in the future. | |
26798 | ||
26799 | * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make | |
26800 | these units Preelaborate. | |
26801 | ||
26802 | * s-exctab.adb: Update use of Except.Id.Full_Name. | |
26803 | ||
26804 | * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05. | |
26805 | (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT, | |
26806 | Set_Exc_Stack_Addr): Removed, no longer used. | |
26807 | Remove reference to *Machine_State_Addr*, no longer needed. | |
26808 | ||
26809 | * s-stalib.ads: Mark this unit as Preelaborate[_05]. | |
26810 | (Exception_Data): Full_Name is now a System.Address so that this unit | |
26811 | can be made Preelaborate. | |
26812 | Clean up/simplify code thanks to Full_Name being a System.Address. | |
26813 | Remove obsolete pragma Suppress (All_Checks), no longer needed. | |
26814 | ||
86aca445 | 26815 | * s-taskin.ads, s-taskin.adb: |
ca857517 | 26816 | Move with clauses outside Warnings Off now that dependent units are |
26817 | Preelaborate. | |
26818 | Make this unit Preelaborate. | |
26819 | (Initialize): New proceduure, replace elaboration code and makes the | |
26820 | set up of the tasking run-time cleaner. | |
26821 | (Detect_Blocking): Now a function instead of a deferred boolean, to | |
26822 | obey Preelaborate rules. | |
26823 | ||
26824 | * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr | |
26825 | soft links, no longer used. | |
26826 | ||
26827 | * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these | |
26828 | packages are suitable for this categorization. | |
26829 | ||
26830 | * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..." | |
26831 | since we compile run-time sources in Ada 2005 mode. | |
26832 | (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to | |
26833 | avoid having s-taprop*.adb depend on s-soflin and to avoid code | |
26834 | duplication. | |
26835 | Remove reference to *Machine_State_Addr*, no longer needed. | |
26836 | ||
26837 | 2005-09-01 Arnaud Charlet <charlet@adacore.com> | |
26838 | ||
26839 | * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb | |
26840 | (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used. | |
26841 | Remove reference to System.Exceptions. | |
26842 | ||
26843 | * s-mastop-x86.adb: Removed, no longer used. | |
26844 | ||
26845 | * s-traceb-mastop.adb: Adjust calls to Pop_Frame. | |
26846 | ||
26847 | * a-excach.adb: Minor reformatting. | |
26848 | ||
26849 | * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and | |
26850 | instead fix new warnings that were hidden by this change. | |
26851 | (AAA, ZZZ): Removed, replaced by... | |
26852 | (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who | |
26853 | are used instead of constants, to help make Ada.Exception truly | |
26854 | preelaborate. | |
26855 | (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error, | |
26856 | Raise_Storage_Error): File is now a System.Address, to simplify code. | |
26857 | (Elab code): Removed, no longer used. | |
26858 | (Null_Occurrence): Remove Warnings Off and make this construct | |
26859 | preelaborate. | |
26860 | Remove code related to front-end zero cost exception handling, since | |
26861 | it is no longer used. | |
26862 | Remove -gnatL/-gnatZ switches. | |
26863 | ||
26864 | * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg): | |
26865 | Update use of Except.Msg. | |
26866 | ||
26867 | * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads, | |
26868 | freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related | |
26869 | to front-end zero cost exception handling, since it is no longer used. | |
26870 | Remove -gnatL/-gnatZ switches. | |
26871 | ||
26872 | * lib-writ.ads: Minor reformatting | |
26873 | Remove doc of UX | |
26874 | ||
26875 | * Makefile.rtl: Remove references to s-except*, s-mastop-x86* | |
26876 | ||
26877 | * Make-lang.in: Remove references to s-except.ads | |
26878 | ||
26879 | * s-except.ads: Removed, no longer used. | |
26880 | ||
86aca445 | 26881 | * s-mastop.ads, s-mastop.adb: |
ca857517 | 26882 | (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used. |
26883 | Remove reference to System.Exceptions. | |
26884 | ||
26885 | * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb, | |
26886 | switch-b.adb: Remove code related to front-end zero cost exception | |
26887 | handling, since it is no longer used. | |
26888 | Remove -gnatL/-gnatZ switches. | |
26889 | ||
26890 | 2005-09-01 Robert Dewar <dewar@adacore.com> | |
26891 | Gary Dismukes <dismukes@adacore.com> | |
26892 | Javier Miranda <miranda@adacore.com> | |
26893 | ||
26894 | * exp_ch4.adb (Expand_N_In): Replace test of expression in its own | |
26895 | type by valid test and generate warning. | |
26896 | (Tagged_Membership): Generate call to the run-time | |
26897 | subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class" | |
26898 | Change formal name Subtype_Mark to Result_Definition in several calls to | |
26899 | Make_Function_Specification. | |
26900 | (Expand_Allocator_Expression): Add tests for suppression of the AI-344 | |
26901 | check for proper accessibility of the operand of a class-wide allocator. | |
26902 | The check can be left out if checks are suppressed or if the expression | |
26903 | has a specific tagged type whose level is known to be safe. | |
26904 | ||
26905 | * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that | |
26906 | generates the run-time check associated with null-excluding entities. | |
26907 | (Expand_N_Return_Statement): Add tests to determine if the accessibility | |
26908 | check on the level of the return expression of a class-wide function | |
26909 | can be elided. The check usually isn't needed if the expression has a | |
26910 | specific type (unless it's a conversion or a formal parameter). Also | |
26911 | add a test for whether accessibility checks are suppressed. Augment | |
26912 | the comments to describe the conditions for performing the check. | |
26913 | ||
26914 | 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com> | |
26915 | Javier Miranda <miranda@adacore.com> | |
26916 | Gary Dismukes <dismukes@adacore.com> | |
26917 | Ed Schonberg <schonberg@adacore.com> | |
26918 | ||
26919 | * a-tags.adb (IW_Membership): Give support to | |
26920 | "Iface_CW_Typ in T'Class". For this purpose the functionality of this | |
26921 | subprogram has been extended to look for the tag in the ancestors tag | |
26922 | table. | |
26923 | Update the structure of the GNAT Dispatch Table to reflect the | |
26924 | additional two tables used in dispatching selects. | |
26925 | Introduce appropriate array types and record components in | |
26926 | Type_Specific_Data to reflect the two tables. | |
26927 | (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in | |
26928 | the TSD of a tag, indexed by position. | |
26929 | (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive | |
26930 | operation kind in the TSD of a tag, indexed by position. | |
26931 | ||
26932 | * a-tags.ads: Introduce an enumeration type to capture different | |
26933 | primitive operation kinds. Define a constant reflecting the number of | |
26934 | predefined primitive operations. | |
26935 | (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index | |
26936 | of an entry wrapper. | |
26937 | (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of | |
26938 | callable entity of a primitive operation. | |
26939 | ||
26940 | * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the | |
26941 | primitive operations used in dispatching selects for limited | |
26942 | interfaces, limited tagged, task and protected types what implement a | |
26943 | limited interface. | |
26944 | (Freeze_Type): Generate the bodies of the primitive operations used in | |
26945 | dispatching selects for limited tagged, task and protected types that | |
26946 | implement a limited interface. Generate statements to populate the two | |
26947 | auxiliary tables used for dispatching in select statements. | |
26948 | (Freeze_Record_Type): Add call to initialize the dispatch table entries | |
26949 | associated with predefined interface primitive operations. | |
26950 | (Build_Dcheck_Function): Change Set_Subtype_Mark to | |
26951 | Set_Result_Definition. | |
26952 | (Build_Variant_Record_Equality): Change Subtype_Mark to | |
26953 | Result_Definition. | |
26954 | (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition. | |
26955 | (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition. | |
26956 | (Build_Assignment): Simplify the code that adds the run-time-check. | |
26957 | (Expand_N_Object_Declaration): Code cleanup. | |
26958 | ||
26959 | * exp_ch7.adb (Make_Clean): Select the appropriate type for locking | |
26960 | entries when there is a protected type that implements a limited | |
26961 | interface. | |
26962 | ||
26963 | * exp_ch9.adb: Add package Select_Expansion_Utilities that contains | |
26964 | common routines used in expansion of dispatching selects. | |
26965 | (Add_Private_Declarations): Select the appropriate protection type when | |
26966 | there is a protected type that implements a limited interface. | |
26967 | (Build_Parameter_Block): Generate a wrapped parameter block. | |
26968 | (Build_Protected_Subprogram_Body): Select the appropriate type for | |
26969 | locking entries when there is a protected type that implements a | |
26970 | limited interface. | |
26971 | (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures | |
26972 | classified as entry wrappers. | |
26973 | (Expand_N_Asynchronous_Select): Add support for expansion of dispatching | |
26974 | asynchronous selects. | |
26975 | (Expand_N_Conditional_Entry_Call): Add support for expansion of | |
26976 | dispatching conditional selects. | |
26977 | (Expand_N_Protected_Type_Declaration): Select the appropriate type for | |
26978 | protection when there is a protected type that implements limited | |
26979 | interfaces. | |
26980 | (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching | |
26981 | timed selects. | |
26982 | (Extract_Dispatching_Call): Extract the entity of the name of a | |
26983 | dispatching call, the object parameter, actual parameters and | |
26984 | corresponding formals. | |
26985 | (Make_Initialize_Protection): Correct logic of protection initialization | |
26986 | when there is a protected type that implements a limited interface. | |
26987 | (Parameter_Block_Pack): Populate a wrapped parameter block with the | |
26988 | values of actual parameters. | |
26989 | (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter | |
26990 | block and assign them to the original actual parameters. | |
26991 | ||
26992 | * exp_ch9.ads (Subprogram_Protection_Mode): New type. | |
26993 | (Build_Protected_Sub_Specification): Change the type and name of the | |
26994 | last formal to account for the increased variety of protection modes. | |
26995 | ||
26996 | * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all | |
26997 | entities. Used to save the value of the Is_Hidden attribute when the | |
26998 | limited-view is installed. | |
26999 | (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change | |
27000 | the attribute of procedures classified as entry wrappers. | |
27001 | (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped | |
27002 | entity of a primitive wrapper. | |
27003 | (Write_Entity_Flags): Output the name and value of the | |
27004 | Is_Primitive_Wrapper attribute. | |
27005 | (Write_Field27_Name): Output the name and entity of the field Wrapped_ | |
27006 | Entity. | |
27007 | (Underlying_Type): If we have an incomplete entity that comes from | |
27008 | the limited view then we return the Underlying_Type of its non-limited | |
27009 | view if it is already available. | |
27010 | (Abstract_Interface_Alias): Flag applies to all subrogram kinds, | |
27011 | including operators. | |
27012 | (Write_Field26_Name): Add entry for Overridden_Operation | |
27013 | (Overridden_Operation): New attribute of functions and procedures. | |
27014 | ||
27015 | * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a | |
27016 | predefined position in the dispatch table for the primitive operations | |
27017 | used in dispatching selects. | |
27018 | (Init_Predefined_Interface_Primitives): Remove the hardcoded number of | |
27019 | predefined primitive operations and replace it with | |
27020 | Default_Prim_Op_Count. | |
27021 | (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec, | |
27022 | Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update | |
27023 | the names of the generated primitive operations used in dispatching | |
27024 | selects. | |
27025 | (Init_Predefined_Interface_Primitives): No need to inherit primitives in | |
27026 | case of abstract interface types. They will be inherit by the objects | |
27027 | implementing the interface. | |
27028 | (Make_DT): There is no need to inherit the dispatch table of the | |
27029 | ancestor interface for the elaboration of abstract interface types. | |
27030 | The dispatch table will be inherited by the object implementing the | |
27031 | interface. | |
27032 | (Copy_Secondary_DTs): Add documentation. | |
27033 | (Validate_Position): Improve this static check in case of | |
27034 | aliased subprograms because aliased subprograms must have | |
27035 | the same position. | |
27036 | (Init_Predefined_Interface_Primitives): New subprogram that initializes | |
27037 | the entries associated with predefined primitives of all the secondary | |
27038 | dispatch tables. | |
27039 | (Build_Anonymous_Access_Type): Removed. | |
27040 | (Expand_Interface_Actuals): With the previous cleanup there is no need | |
27041 | to build an anonymous access type. This allows further cleanup in the | |
27042 | code generated by the expander. | |
27043 | (Expand_Interface_Conversion): If the actual is an access type then | |
27044 | build an internal function to handle the displacement. If the actual | |
27045 | is null this function returns null because no displacement is | |
27046 | required; otherwise performs a type conversion that will be | |
27047 | expanded in the code that returns the value of the displaced actual. | |
27048 | (Expand_Interface_Actuals): Avoid the generation of unnecessary type | |
27049 | conversions that have no effect in the generated code because no | |
27050 | displacement is required. Code cleanup; use local variables to | |
27051 | avoid repeated calls to the subprogram directly_designated_type(). | |
27052 | ||
27053 | * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation): | |
27054 | Classify the primitive operations used in dispatching selects as | |
27055 | predefined. | |
27056 | (Implements_Limited_Interface): Determine whether some type either | |
27057 | directly implements a limited interface or extends a type that | |
27058 | implements a limited interface. | |
27059 | (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition. | |
27060 | (Expand_Subtype_From_Expr): Do not build actual subtype if the | |
27061 | expression is limited. | |
27062 | (Find_Interface_Tag): Add code to handle class-wide types and | |
27063 | entities from the limited-view. | |
27064 | ||
27065 | * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for | |
27066 | Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure, | |
27067 | POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure, | |
27068 | POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index, | |
27069 | Set_Prim_Op_Kind. | |
27070 | ||
27071 | * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type | |
27072 | of procedure name or prefix that appears as a trigger in a triggering | |
27073 | alternative. | |
27074 | ||
27075 | * uintp.ads: Introduce constants Uint_11 and Uint_13. | |
27076 | ||
27077 | 2005-09-01 Arnaud Charlet <charlet@adacore.com> | |
27078 | ||
27079 | * s-tataat.adb, a-tasatt.adb: | |
27080 | Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort. | |
27081 | ||
27082 | * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved | |
27083 | these procedures to body, and renamed Abort_Defer, Abort_Undefer. | |
27084 | (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no | |
27085 | longer used. | |
27086 | ||
27087 | 2005-09-01 Arnaud Charlet <charlet@adacore.com> | |
27088 | Jose Ruiz <ruiz@adacore.com> | |
27089 | ||
86aca445 | 27090 | * s-taprop-vxworks.adb: |
ca857517 | 27091 | Move with clauses outside Warnings Off now that dependent units are |
27092 | Preelaborate. | |
27093 | (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper | |
27094 | initialization of this unit. | |
27095 | (Specific): Add new procedures Initialize and Delete so that this | |
27096 | package can be used for VxWorks 5.x and 6.x | |
27097 | (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide | |
27098 | differences between VxWorks 5.x and 6.x | |
27099 | Minor reformatting. | |
27100 | (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by | |
27101 | caller. | |
27102 | Use only Preelaborate-compatible constructs. | |
27103 | ||
27104 | * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from | |
27105 | Primitives.Operations. | |
27106 | (Delete, Initialize): New procedures. | |
27107 | ||
27108 | * s-osinte-vxworks.adb: Body used to handle differences between | |
27109 | VxWorks 5.x and 6.x | |
27110 | (kill, Set_Time_Slice, VX_FP_TASK): New functions. | |
27111 | ||
27112 | * s-osinte-vxworks.ads: Minor reformatting. | |
27113 | Add VxWworks 6.x specific functions (only called from VxWorks 6 files). | |
27114 | (VX_FP_TASK): Now a function, to handle differences between VxWorks 5 | |
27115 | and 6. | |
27116 | (Set_Time_Slice): New function, replacing kerneltimeSlice to share code | |
27117 | between Vxworks 5 and 6. | |
27118 | (taskLock, taskUnlock): Removeed, no longer used. | |
27119 | ||
27120 | * adaint.c: The wait.h header is not located in the sys directory on | |
27121 | VxWorks when using RTPs. | |
27122 | (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when | |
27123 | using RTPs. | |
27124 | (__gnat_dup): dup is available on Vxworks when using RTPs. | |
27125 | (__gnat_dup2): dup2 is available on Vxworks when using RTPs. | |
27126 | ||
27127 | * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs. | |
27128 | ||
27129 | * expect.c: The wait.h header is not located in the sys directory on | |
27130 | VxWorks when using RTPs. | |
27131 | ||
27132 | 2005-09-01 Thomas Quinot <quinot@adacore.com> | |
27133 | ||
27134 | * g-soccon-vms.adb: Renamed to g-soccon-vms.ads | |
27135 | ||
27136 | * g-soccon-vms.ads: Renamed from g-soccon-vms.adb | |
27137 | ||
27138 | * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads, | |
27139 | g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads, | |
27140 | g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads, | |
27141 | g-soccon-freebsd.ads: Add new constants: | |
27142 | IP_MULTICAST_IF | |
27143 | SO_RCVTIMEO/SO_SNDTIMEO | |
27144 | IOV_MAX | |
27145 | ||
86aca445 | 27146 | * gen-soccon.c: |
ca857517 | 27147 | Move all target-specific file inclusions and macro definitions to |
27148 | gsocket.h, in order to ensure that any C code in socket.c will see a | |
27149 | set of constants that is consistent with the contents of g-soccon.ads. | |
27150 | ||
27151 | * gsocket.h: Code imported from gen-soccon.c: | |
27152 | Move all target-specific file inclusions and macro definitions to | |
27153 | gsocket.h, in order to ensure that any C code in socket.c will see a set | |
27154 | of constants that is consistent with the contents of g-soccon.ads. | |
27155 | This change also makes gen-soccon self-contained (removing dependencies | |
27156 | upon GCC internal headers). | |
27157 | ||
27158 | * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX | |
27159 | iovecs at a time. | |
27160 | (To_Inet_Addr): Now a procedure instead of a function, more efficient. | |
27161 | ||
27162 | * socket.c: Minor reformatting. | |
27163 | ||
27164 | 2005-09-01 Ed Schonberg <schonberg@adacore.com> | |
27165 | Thomas Quinot <quinot@adacore.com> | |
27166 | ||
27167 | * fname-sf.adb, mlib-tgt.ads, | |
27168 | back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb, | |
27169 | g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb, | |
27170 | osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads, | |
27171 | prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads, | |
27172 | prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb, | |
27173 | prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads, | |
27174 | sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads, | |
27175 | makegpr.adb: Remove redundant use_clauses. | |
27176 | ||
27177 | 2005-09-01 Arnaud Charlet <charlet@adacore.com> | |
27178 | ||
86aca445 | 27179 | * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads, |
27180 | s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads, | |
27181 | s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads, | |
27182 | s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads, | |
27183 | s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads, | |
27184 | s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads, | |
27185 | s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads, | |
27186 | table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads, | |
27187 | s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, | |
27188 | s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads, | |
27189 | a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads, | |
27190 | a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads, | |
27191 | a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads, | |
27192 | a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads, | |
27193 | system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads, | |
ca857517 | 27194 | system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads, |
86aca445 | 27195 | s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads, |
27196 | system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads, | |
27197 | s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads, | |
27198 | s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads, | |
27199 | s-vxwork-mips.ads, system-os2.ads, system-interix.ads, | |
27200 | s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads, | |
27201 | system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads, | |
27202 | s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads, | |
27203 | system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads, | |
27204 | s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads, | |
27205 | a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads, | |
27206 | a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads, | |
ca857517 | 27207 | a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb, |
27208 | a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads, | |
86aca445 | 27209 | a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads, |
27210 | a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads, | |
27211 | a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads, | |
27212 | a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads, | |
27213 | a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads, | |
27214 | a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads, | |
27215 | csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads, | |
27216 | g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads, | |
27217 | a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads, | |
27218 | a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads, | |
27219 | a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads, | |
27220 | a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads, | |
27221 | g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads, | |
27222 | i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads, | |
27223 | interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, | |
27224 | i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads, | |
27225 | s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads, | |
27226 | s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads, | |
27227 | s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads, | |
27228 | s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads, | |
27229 | s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads, | |
27230 | s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads, | |
27231 | s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads, | |
27232 | s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads, | |
27233 | s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads, | |
27234 | s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads, | |
27235 | s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads, | |
27236 | s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads, | |
27237 | s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads, | |
27238 | s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads, | |
27239 | s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads, | |
27240 | s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads, | |
27241 | s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads, | |
27242 | s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads, | |
27243 | s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads, | |
27244 | s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads, | |
27245 | s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads, | |
ca857517 | 27246 | s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate |
27247 | and always use the no parameter form for consistency. | |
27248 | ||
27249 | * gnat-style.texi: Document rules about Preelaborate/Pure pragmas. | |
27250 | ||
27251 | 2005-09-01 Robert Dewar <dewar@adacore.com> | |
27252 | ||
27253 | * binde.adb: Minor reformatting | |
27254 | (Find_Elab_Order): Output warning if -p used with static elab order | |
27255 | ||
27256 | 2005-09-01 Robert Dewar <dewar@adacore.com> | |
27257 | ||
27258 | * checks.adb (Check_Needed): New procedure, deals with removing checks | |
27259 | based on analysis of short-circuited forms. Also generates warnings for | |
27260 | improper use of non-short-circuited forms. | |
27261 | Code clean ups. | |
27262 | ||
27263 | 2005-09-01 Robert Dewar <dewar@adacore.com> | |
27264 | ||
27265 | * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks | |
27266 | with 'Valid tests. | |
27267 | ||
27268 | 2005-09-01 Robert Dewar <dewar@adacore.com> | |
27269 | ||
27270 | * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet | |
27271 | spec. | |
27272 | Implement new insertion char < (conditional warning) | |
27273 | * errutil.adb, erroutc.adb: Implement new insertion char < | |
27274 | (conditional warning). | |
27275 | * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads | |
27276 | (Error_Msg_Warn): New variable for < insertion char. | |
27277 | * prj-nmsc.adb: Implement new errout insertion char < (conditional | |
27278 | warning). | |
27279 | (Check_For_Source): Change value of Source_Id only after the current | |
27280 | source has been dealt with. | |
27281 | ||
27282 | 2005-09-01 Robert Dewar <dewar@adacore.com> | |
27283 | Doug Rupp <rupp@adacore.com> | |
27284 | ||
27285 | * exp_attr.adb: Handle vax fpt for 'Valid attribute | |
27286 | * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure | |
27287 | * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb | |
27288 | (Valid_D, Valid_F, Valid_G): New functions | |
27289 | ||
27290 | 2005-09-01 Ed Schonberg <schonberg@adacore.com> | |
27291 | Hristian Kirtchev <kirtchev@adacore.com> | |
27292 | Javier Miranda <miranda@adacore.com> | |
27293 | ||
27294 | * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten | |
27295 | from object notation, the original node is unanalyzed and carries no | |
27296 | semantic information, so that accessiblity checks must be performed on | |
27297 | the type of the actual itself. | |
27298 | (Expand_N_Subprogram_Declaration): Change last actual parameter for | |
27299 | compatibility with Build_Protected_Sub_Specification. | |
27300 | (Check_Overriding_Inherited_Interfaces): Add suport to handle | |
27301 | overloaded primitives. | |
27302 | (Register_Interface_DT_Entry): Use the new name of the formal | |
27303 | the the calls to Expand_Interface_Thunk | |
27304 | ||
27305 | * exp_dbug.ads: Augment comments on encoding of protected types to | |
27306 | include the generation of dispatching subprograms when the type | |
27307 | implements at least one interface. | |
27308 | ||
27309 | * lib.ads: Extend information in Load_Stack to include whether a given | |
27310 | load comes from a Limited_With_Clause. | |
27311 | ||
27312 | * lib-load.adb (From_Limited_With_Chain): New predicate to determine | |
27313 | whether a potential circularity is harmless, because it includes units | |
27314 | loaded through a limited_with clause. Extends previous treatment which | |
27315 | did not handle properly arbitrary combinations of limited and | |
27316 | non-limited clauses. | |
27317 | ||
27318 | 2005-09-01 Nicolas Setton <setton@adacore.com> | |
27319 | ||
27320 | * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types | |
27321 | to be encoded as typ___XBLU_lowerbound__upperbound instead of | |
27322 | typ___XB_lowerbound__upperbound. | |
27323 | ||
27324 | 2005-09-01 Thomas Quinot <quinot@adacore.com> | |
27325 | ||
27326 | * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate | |
27327 | dummy access formal for RACW/RAS TypeCode TSS. | |
27328 | (Build_TypeCode_Call): Do not generate dummy null access actual for | |
27329 | calls to the TypeCode TSS. | |
27330 | ||
27331 | 2005-09-01 Ed Schonberg <schonberg@adacore.com> | |
27332 | ||
27333 | * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate | |
27334 | fully qualified name, to distinguish instances with the same local name. | |
27335 | ||
27336 | * g-souinf.ads (Enclosing_Entity): Document that entity name is now | |
27337 | fully qualified. | |
27338 | ||
27339 | 2005-09-01 Robert Dewar <dewar@adacore.com> | |
27340 | ||
27341 | * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large | |
27342 | packed arrays. | |
27343 | ||
27344 | 2005-09-01 Jerome Lambourg <lambourg@adacore.com> | |
27345 | ||
27346 | * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to | |
27347 | (Free): New deallocation procedure for filter elements | |
27348 | (Close): Deallocate any existing filter for the concerned connection | |
27349 | ||
27350 | 2005-09-01 Laurent Pautet <pautet@adacore.com> | |
27351 | ||
27352 | * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character | |
27353 | position set is provided, we compute one in order to reduce the maximum | |
27354 | length of the keys. This computation first selects a character | |
27355 | position between 1 and the minimum length of the keys in order to | |
27356 | avoid reducing one of the keys to an empty string. | |
27357 | (Initialize, Compute): When the ratio V to K is too low, the algorithm | |
27358 | does not converge. The initialization procedure now comes with a | |
27359 | maximum number of iterations such that when exceeded, an exception is | |
27360 | raised in Compute. The user can initialize this ratio to another value | |
27361 | and try again | |
27362 | Reformating and updated headers. | |
27363 | ||
27364 | 2005-09-01 Javier Miranda <miranda@adacore.com> | |
27365 | ||
27366 | * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram | |
27367 | that given an entity T creates and returns an Itype that duplicates the | |
27368 | contents of T. The returned Itype has the null-exclusion | |
27369 | attribute set to True, and its Etype attribute references T | |
27370 | to keep the association between the two entities. | |
27371 | Update copyright notice | |
27372 | ||
27373 | * sem_aggr.adb (Check_Can_Never_Be_Null, | |
27374 | Aggregate_Constraint_Checks, Resolve_Aggregate, | |
27375 | Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup. | |
27376 | ||
27377 | * sem_ch5.adb (Analyze_Assignment): Code cleanup. | |
27378 | ||
27379 | 2005-09-01 Gary Dismukes <dismukes@adacore.com> | |
27380 | Robert Dewar <dewar@adacore.com> | |
27381 | Hristian Kirtchev <kirtchev@adacore.com> | |
27382 | ||
27383 | * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to | |
27384 | Result_Definition. | |
27385 | ||
27386 | * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in | |
27387 | function specs. | |
27388 | Call Set_Result_Definition instead of Set_Subtype_Mark. | |
27389 | (P_Subprogram_Specification): Add parsing of anonymous access result | |
27390 | plus null exclusions. Call Set_Result_Definition instead of | |
27391 | Set_Subtype_Mark. | |
27392 | ||
27393 | * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419 | |
27394 | (P_Access_Type_Definition): Add parsing for an anonymous access result | |
27395 | subtype, plus parsing for null exclusions. Call Set_Result_Definition | |
27396 | instead of Set_Subtype_Mark. | |
27397 | ||
27398 | * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419 | |
27399 | (Null_Exclusion_Present): Allow this flag for N_Function_Specification. | |
27400 | (Result_Definition): New function for N_Function_Specifications. | |
27401 | (Subtype_Mark): No longer allowed for N_Access_Function_Definition and | |
27402 | N_Function_Specification. | |
27403 | (Set_Null_Exclusion_Present): Allow this flag for | |
27404 | N_Function_Specification. | |
27405 | (Set_Result_Definition): New procedure for N_Function_Specifications. | |
27406 | (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition | |
27407 | and N_Function_Specification. | |
27408 | ||
27409 | * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative, | |
27410 | Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement. | |
27411 | Add support for LIMITED NEW for Ada 2005 AI-419 | |
27412 | Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new | |
27413 | syntax for anonymous access results. | |
27414 | Replace Subtype_Mark field by Result_Definition in | |
27415 | N_Function_Specification and N_Access_Definition specs. | |
27416 | Add Null_Exclusion_Present to spec of N_Function_Specification. | |
27417 | (Result_Definition): New function for N_Function_Specification and | |
27418 | N_Access_Function_Definition. | |
27419 | (Set_Result_Definition): New procedure for N_Function_Specification and | |
27420 | N_Access_Function_Definition. | |
27421 | ||
27422 | * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to | |
27423 | Result_Definition for cases of N_Access_Function_Definition and | |
27424 | N_Function_Specification. | |
27425 | Print "not null" if Null_Exclusion_Present on N_Function_Specification. | |
27426 | ||
27427 | 2005-09-01 Vincent Celier <celier@adacore.com> | |
27428 | ||
27429 | * lib-writ.adb: Update Copyright notice | |
27430 | (Write_With_Lines): On platforms where file names are case-insensitive, | |
27431 | record the file names in lower case. | |
27432 | (Write_ALI): For D lines, on platforms where file names are | |
27433 | case-insensitive, record the file names in lower case. | |
27434 | ||
27435 | 2005-09-01 Ed Schonberg <schonberg@adacore.com> | |
27436 | Emmanuel Briot <briot@adacore.com> | |
27437 | ||
27438 | * lib-xref.adb (Output_Overridden_Op): Display information on | |
27439 | overridden operation. | |
27440 | ||
27441 | * lib-xref.ads: Add documentation on overridden operations. | |
27442 | ||
27443 | * ali.ads (Xref_Entity_Record): Add support for storing the overriding | |
27444 | information. | |
27445 | ||
27446 | * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the | |
27447 | overriding entity information. | |
27448 | ||
27449 | 2005-09-01 Vincent Celier <celier@adacore.com> | |
27450 | ||
27451 | * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources, | |
27452 | including those that are inherited. | |
27453 | ||
27454 | 2005-09-01 Robert Dewar <dewar@adacore.com> | |
27455 | ||
27456 | * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config] | |
27457 | ||
27458 | * par-prag.adb: Implement new pragma Debug_Policy | |
27459 | ||
27460 | * sem_prag.adb Implement new pragma Debug_Policy | |
27461 | (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit | |
27462 | Component_Size attribute specification. Give warning for ignored pragma | |
27463 | Pack. | |
27464 | ||
27465 | * snames.h, snames.ads, snames.adb: Introduce entries in | |
27466 | Preset_Names for Name_Disp_Asynchronous_Select, | |
27467 | Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind, | |
27468 | Name_Disp_Timed_Select. | |
27469 | New pragma Debug_Policy | |
27470 | ||
27471 | * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode | |
27472 | explicitly. | |
27473 | Switch -gnata also sets Debug_Pragmas_Enabled | |
27474 | ||
27475 | * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to | |
27476 | handle an explicit -gnata when compiling predefined files. | |
27477 | ||
27478 | 2005-09-01 Vincent Celier <celier@adacore.com> | |
27479 | ||
27480 | * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object | |
27481 | directories of projects that have no Ada sources. | |
27482 | ||
27483 | 2005-09-01 Robert Dewar <dewar@adacore.com> | |
27484 | ||
27485 | * scng.adb (Check_End_Of_Line): Count characters, rather than bytes | |
27486 | (makes a difference for wide characters) | |
27487 | ||
86aca445 | 27488 | * widechar.adb, widechar.ads: |
ca857517 | 27489 | Add Wide_Char_Byte_Count feature to count chars vs bytes |
27490 | ||
27491 | 2005-09-01 Thomas Quinot <quinot@adacore.com> | |
27492 | Ed Schonberg <schonberg@adacore.com> | |
27493 | Robert Dewar <dewar@adacore.com> | |
27494 | ||
27495 | * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal | |
27496 | 'Address attribute reference with an overloaded prefix, use the | |
27497 | location of the prefix (not the location of the attribute reference) as | |
27498 | the error location. | |
27499 | (Analyze_Attribute, case 'Size): The name of an enumeration literal, or | |
27500 | a function renaming thereof, is a valid prefix for 'Size (where it is | |
27501 | intepreted as a function call). | |
27502 | (Statically_Denotes_Entity): New predicate to determine whether the | |
27503 | prefix of an array attribute can be considered static. | |
27504 | ||
27505 | PR ada/9087 | |
27506 | (Eval_Attr): Fix failure to evaluate Component_Size for | |
27507 | unconstrained arrays (resulted in wrong value in packed case, since | |
27508 | back end cannot handle this case) | |
27509 | ||
27510 | 2005-09-01 Robert Dewar <dewar@adacore.com> | |
27511 | ||
27512 | * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to | |
27513 | error msgs for most common cases. | |
27514 | Use new errout insertion char < (conditional warning) | |
27515 | ||
27516 | 2005-09-01 Javier Miranda <miranda@adacore.com> | |
27517 | Ed Schonberg <schonberg@adacore.com> | |
27518 | ||
27519 | * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to | |
27520 | become local to the whole package. | |
27521 | (Install_Limited_Withed_Unit): Instead of unchaining real entities if | |
27522 | the package was already analyzed the new algorithm "replaces" the | |
27523 | real entities by the shadow ones. This is required to ensure that | |
27524 | the order of these entities in the homonym chains does not change; | |
27525 | otherwise we can have undefined references at linking time because | |
27526 | in case of conflicts the external name of the entities will have | |
27527 | a suffix that depends on the order of the entities in the chain. | |
27528 | (Remove_Limited_With_Clause): Complementary code that completes the | |
27529 | new algorithm and replaces the shadow entities by the real ones. | |
27530 | (Install_Limited_Withed_Unit): When unchaining entities before the | |
27531 | installation of the shadow entities, only regular entities of the | |
27532 | public part must be taken into account. This is required to | |
27533 | keep this routine in synch with the work done by Remove_Limited_ | |
27534 | With_Clause | |
27535 | (Install_Limited_With_Clause): Introduce implicit limited_with_clause | |
27536 | even if unit is analyzed, because the analysis of the unit is | |
27537 | idempotent in any case, and the limited view of the unit may have to | |
27538 | be installed for proper visibility. | |
27539 | (Expand_Limited_With_Clause): Even if the unit in the implicit | |
27540 | with_clause has been analyzed already, a limited view of the package | |
27541 | must be built for the current context, if it does not exist yet. | |
27542 | ||
27543 | 2005-09-01 Ed Schonberg <schonberg@adacore.com> | |
27544 | Javier Miranda <miranda@adacore.com> | |
27545 | Gary Dismukes <dismukes@adacore.com> | |
27546 | ||
27547 | * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the | |
27548 | defining entity for the instance body, make a new defining identifier | |
27549 | rather than copying the entity of the spec, to prevent accidental | |
27550 | sharing of the entity list. | |
27551 | (Check_Private_View): When exchanging views of private types, build the | |
27552 | list of exchanged views as a stack, to ensure that on exit the exchanges | |
27553 | are undone in the proper order. | |
27554 | (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): | |
27555 | Restore the compilation environment in case of instantiation_error. | |
27556 | (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity | |
27557 | for an anonymous access result. | |
27558 | (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition | |
27559 | (Formal_Entity): Handle properly the case of a formal package that | |
27560 | denotes a generic package renaming. | |
27561 | ||
27562 | 2005-09-01 Thomas Quinot <quinot@adacore.com> | |
27563 | ||
27564 | * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the | |
27565 | clause if the array aggregate is surrounded by parentheses. | |
27566 | ||
27567 | 2005-09-01 Cyrille Comar <comar@adacore.com> | |
27568 | Gary Dismukes <dismukes@adacore.com> | |
27569 | Ed Schonberg <schonberg@adacore.com> | |
27570 | Javier Miranda <miranda@adacore.com> | |
27571 | ||
27572 | * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the | |
27573 | underlying type | |
27574 | to check if a type is Constrained in cases related to code generation | |
27575 | (rather than semantic checking) since otherwise we do not generate | |
27576 | similar code for mutable private types depending if their | |
27577 | discriminants are visible or not. | |
27578 | (Check_Abstract_Overriding): Do not complain about failure to override | |
27579 | the primitive operations used in dispatching selects since they will | |
27580 | always be overriden at the freeze point of the type. | |
27581 | (Access_Definition): Separate out handling for resetting the scope | |
27582 | of an anonymous access function result type. Retrieve the scope | |
27583 | of the associated function rather than using Current_Scope, which | |
27584 | does not have a consistent value (depends on whether we're in the | |
27585 | middle of analyzing formal parameters). Add ??? comment about | |
27586 | finding a cleaner way to handle the special cases of scope setting. | |
27587 | (Process_Incomplete_Dependents): A protected operation is never a | |
27588 | dispatching operation (only its wrapper may be). | |
27589 | (Build_Derived_Record_Type): In case of tagged private types that | |
27590 | implement interfaces add derivation of predefined primitive | |
27591 | operations. | |
27592 | (Derive_Subprograms): Replace the Is_Interface_Derivation parameter | |
27593 | by two parameters that are used in case of derivation from abstract | |
27594 | interface types: No_Predefined_Prims is used to avoid the derivation | |
27595 | of predefined primitives from the interface, and Predefined | |
27596 | Prims_Only is used to complete the derivation predefined primitives | |
27597 | in case of private tagged types implementing interfaces. | |
27598 | Fix typo in comments | |
27599 | (Find_Interface_In_Descendant): Protect the frontend against | |
27600 | wrong code with large circularity chains. | |
27601 | (Is_Private_Overriding): Add support for entities overriding interface | |
27602 | subprograms. The test failed because Entities associated with overriden | |
27603 | interface subprograms are always marked as hidden (and used to build | |
27604 | the secondary dispatch table); in this case the overriden entity is | |
27605 | available through the field abstract_interface_alias (cf. override_ | |
27606 | dispatching_operation) | |
27607 | (Access_Definition): Set the scope of the type to Current_Scope for the | |
27608 | case of a function with an anonymous access result type. | |
27609 | (Access_Subprogram_Declaration): Handle creation of the type entity for | |
27610 | an access-to-function type with an anonymous access result. | |
27611 | (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition | |
27612 | in handling for N_Access_Function_Definition. | |
27613 | (Analyze_Subtype_Declaration): Modify the text of error message. | |
27614 | (Derived_Type_Declaration): Modify the text of error message. | |
27615 | (Process_Subtype): Modify the text of error message plus cleanup | |
27616 | of one redundant error message. | |
27617 | (Analyze_Component_Declaration): Code cleanup. | |
27618 | (Analyze_Object_Declaration): Code cleanup. | |
27619 | (Analyze_Subtype_Declaration): Propagate the null-exclusion | |
27620 | attribute in case of access types. Code cleanup. | |
27621 | (Array_Type_Declaration): Code cleanup. | |
27622 | (Process_Discriminants): Create the new null-excluding itype | |
27623 | if required. Code cleanup. | |
27624 | (Process_Subtype): Create the new null-excluding itype if | |
27625 | required. Code cleanup. | |
27626 | (Build_Derived_Record_Type): Code cleanup to avoid calling | |
27627 | twice the subprogram derive_subprograms in case of private | |
27628 | types that implement interfaces. In this particular case the | |
27629 | subprogram Complete_Subprograms_Derivation already does the | |
27630 | job associated with the second call. | |
27631 | ||
d4c15061 | 27632 | * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit |
27633 | conversion to the full view when generating an operation for a | |
27634 | discriminant whose type may currently be private. | |
ca857517 | 27635 | |
27636 | 2005-09-01 Ed Schonberg <schonberg@adacore.com> | |
27637 | Javier Miranda <miranda@adacore.com> | |
27638 | ||
27639 | * sem_ch4.adb (Transform_Object_Operation): In a context off the form | |
27640 | V (Obj.F), the rewriting does not involve the indexed component, but | |
27641 | only the selected component itself. | |
27642 | Do not apply the transformation if the analyzed node is an actual of a | |
27643 | call to another subprogram. | |
27644 | (Complete_Object_Operation): Retain the entity of the | |
27645 | dispatching operation in the selector of the rewritten node. The | |
27646 | entity will be used in the expansion of dispatching selects. | |
27647 | (Analyze_One_Call): Improve location of the error message associated | |
27648 | with interface. | |
27649 | (Analyze_Selected_Component): No need to resolve prefix when it is a | |
27650 | function call, resolution is done when parent node is resolved, as | |
27651 | usual. | |
27652 | (Analyze_One_Call): Add a flag to suppress analysis of the first actual, | |
27653 | when attempting to resolve a call transformed from its object notation. | |
27654 | (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies | |
27655 | of the argument list for each interpretation of the operation. | |
27656 | (Try_Object_Operation): The designated type of an access parameter may | |
27657 | be an incomplete type obtained through a limited_with clause, in which | |
27658 | case the primitive operations of the type are retrieved from its full | |
27659 | view. | |
27660 | (Analyze_Call): If this is an indirect call, and the return type of the | |
27661 | access_to_subprogram is incomplete, use its full view if available. | |
27662 | ||
27663 | 2005-09-01 Javier Miranda <miranda@adacore.com> | |
27664 | Gary Dismukes <dismukes@adacore.com> | |
27665 | ||
27666 | * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous | |
27667 | access types the null-exclusion and access-to-constant attributes must | |
27668 | also match. | |
27669 | (Analyze_Return_Statement): When the result type is an anonymous access | |
27670 | type, apply a conversion of the return expression to the access type | |
27671 | to ensure that appropriate accessibility checks are performed. | |
27672 | (Analyze_Return_Type): For the case of an anonymous access result type, | |
27673 | generate the Itype and set Is_Local_Anonymous_Access on the type. | |
27674 | Add ??? placeholder for check to disallow returning a limited object | |
27675 | in Ada 2005 unless it's an aggregate or a result of a function call. | |
27676 | Change calls from Subtype_Mark to Result_Definition. | |
27677 | (Analyze_Subprogram_Body): Change formal Subtype_Mark to | |
27678 | Result_Definition in call to Make_Function_Specification. | |
27679 | (Build_Body_To_Inline): Change Set_Subtype_Mark to | |
27680 | Set_Result_Definition. | |
27681 | (Make_Inequality_Operator): Change formal Subtype_Mark to | |
27682 | Result_Definition in call to Make_Function_Specification. | |
27683 | (Process_Formals): Create the new null-excluding itype if required. | |
27684 | (New_Overloaded_Entity): For an entity overriding an interface primitive | |
27685 | check if the entity also covers other abstract subprograms in the same | |
27686 | scope. This is required to handle the general case, that is, overriding | |
27687 | other interface primitives and overriding abstract subprograms inherited | |
27688 | from some abstract ancestor type. | |
27689 | (New_Overloaded_Entity): For an overriding entity that comes from | |
27690 | source, note the operation that it overrides. | |
27691 | (Check_Conformance, Type_Conformant): Addition of one new formal | |
27692 | to skip controlling formals in the analysis. This is used to | |
27693 | handle overloading of abstract interfaces. | |
27694 | (Base_Types_Match): Add missing case for types imported from | |
27695 | limited-with clauses | |
27696 | (New_Overloaded_Entity): Add barrier to protect the use of | |
27697 | the "alias" attribute. | |
27698 | ||
27699 | 2005-09-01 Ed Schonberg <schonberg@adacore.com> | |
27700 | ||
27701 | * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration, | |
27702 | verify that the procedure and the entry are mode conformant. | |
27703 | (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed | |
27704 | as a different operator, which is often a cut-and-paste error. | |
27705 | ||
27706 | 2005-09-01 Javier Miranda <miranda@adacore.com> | |
27707 | Ed Schonberg <schonberg@adacore.com> | |
27708 | ||
27709 | * sem_disp.adb (Check_Controlling_Formals): Anonymous access types | |
27710 | used in controlling parameters exclude null because it is necessary to | |
27711 | read the tag to dispatch, and null has no tag. | |
27712 | (Override_Dispatching_Operation): If the previous operation is inherited | |
27713 | from an interface, it becomes hidden and does not participate in later | |
27714 | name resolution. | |
27715 | ||
27716 | 2005-09-01 Javier Miranda <miranda@adacore.com> | |
27717 | Ed Schonberg <schonberg@adacore.com> | |
27718 | Gary Dismukes <dismukes@adacore.com> | |
27719 | ||
27720 | * sem_res.adb (Resolve_Membership_Op): In case of the membership test | |
27721 | "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend; | |
27722 | the expander will generate the corresponding run-time check to evaluate | |
27723 | the expression. | |
27724 | (Resolve_Call): Check for legal type of procedure name or prefix that | |
27725 | appears as a trigger in a triggering alternative. | |
27726 | (Valid_Conversion): If expression is ambiguous and the context involves | |
27727 | an extension of System, remove System.Address interpretations. | |
27728 | (Resolve_Qualified_Expression): Reject the case of a specific-type | |
27729 | qualification applied to a class-wide argument. Enhance comment | |
27730 | to explain checking of Original_Node. | |
27731 | (Resolve_Type_Conversion): The location of the error message was not | |
27732 | general enough to handle the general case and hence it has been removed. | |
27733 | In addition, this patch improves the text of the message. | |
27734 | (Resolve_Type_Conversion): Add missing support for access to interface | |
27735 | types. | |
27736 | (Resolve_Type_Conversion): If the target is a class-wide interface type, | |
27737 | do not expand if the expression is the actual in a call, because proper | |
27738 | expansion will take place when the call itself is expanded. | |
27739 | (Resolve_Allocator): If the context is an unchecked conversion, the | |
27740 | allocator inherits its storage pool, if any, from the target type of | |
27741 | the conversion. | |
27742 | ||
27743 | 2005-09-01 Ed Schonberg <schonberg@adacore.com> | |
27744 | Javier Miranda <miranda@adacore.com> | |
27745 | ||
27746 | * sem_type.adb (Add_One_Interp): If a candidate operation is an | |
27747 | inherited interface operation that has an implementation, use the | |
27748 | implementation to avoid spurious ambiguities. | |
27749 | (Interface_Present_In_Ancestor): In case of concurrent types we can't | |
27750 | use the Corresponding_Record_Typ attribute to look for the interface | |
27751 | because it is set by the expander (and hence it is not always | |
27752 | available). For this reason we traverse the list of interfaces | |
27753 | (available in the parent of the concurrent type). | |
27754 | (Interface_Present_In_Ancestor): Handle entities from the limited view | |
27755 | ||
27756 | 2005-09-01 Ed Schonberg <schonberg@adacore.com> | |
27757 | ||
27758 | * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags | |
27759 | from the list of required components. | |
27760 | (Is_Controlling_Limited_Procedure): Determine whether an entity is a | |
27761 | primitive procedure of a limited interface with a controlling first | |
27762 | parameter. | |
27763 | (Is_Renamed_Entry): Determine whether an entry is a procedure renaming | |
27764 | of an entry. | |
27765 | (Safe_To_Capture_Value): A value (such as non_null) is not safe to | |
27766 | capture if it is generated in the second operand of a short-circuit | |
27767 | operation. | |
27768 | Do not capture values for variables with address clauses. | |
27769 | (Is_Object_Reference): Treat a function call as an object reference only | |
27770 | if its type is not Standard_Void_Type. | |
27771 | ||
27772 | 2005-09-01 Ed Schonberg <schonberg@adacore.com> | |
27773 | ||
27774 | * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied | |
27775 | to a variable that is statically known to be constant. | |
27776 | ||
27777 | 2005-09-01 Geert Bosch <bosch@adacore.com> | |
27778 | Robert Dewar <dewar@adacore.com> | |
27779 | ||
27780 | * ttypef.ads (VAXDF_Safe_First): Use correct value for constant. | |
27781 | (VAXGF_Safe_First): Idem. | |
27782 | ||
27783 | 2005-09-01 Robert Dewar <dewar@adacore.com> | |
27784 | Arnaud Charlet <charlet@adacore.com> | |
27785 | ||
27786 | * g-dirope.ads: Minor reformatting | |
27787 | Document that bounds of result of Base_Name match the input index | |
27788 | positions. | |
27789 | Add documentation on environment variable syntax for Expand_Path | |
27790 | ||
27791 | * gnat_ugn.texi: Update documentation to include mention of -m switches | |
27792 | Document new treatment of wide characters in max line length | |
27793 | style check. | |
27794 | Remove -gnatL/-gnatZ switches, no longer used. | |
27795 | Add note on pragmas Assertion_Policy and Debug_Policy in discussion | |
27796 | of -gnata switch. | |
27797 | ||
27798 | * gnat_rm.texi: Add doc for two argument form of pragma | |
27799 | Float_Representation. | |
27800 | Add documentation for pragma No_Strict_Aliasing | |
27801 | Add note that explicit component clause overrides pragma Pack. | |
27802 | Add documentation of pragma Debug_Policy | |
27803 | ||
27804 | 2005-09-01 Matthew Heaney <heaney@adacore.com> | |
27805 | ||
86aca445 | 27806 | * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb, |
27807 | a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb, | |
27808 | a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads, | |
ca857517 | 27809 | a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest |
27810 | draft (Draft 13, August 2005) of Ada Amendment 1. | |
27811 | ||
27812 | 2005-09-01 Arnaud Charlet <charlet@adacore.com> | |
27813 | ||
27814 | * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM. | |
27815 | Note that the platform-specific version of g-soccon.ads for VMS is now | |
27816 | named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it | |
27817 | really is a package spec). | |
27818 | Replace s-taspri-linux.ads by s-taspri-posix.ads | |
27819 | Remove references to s-mastop-x86.adb | |
27820 | ||
27821 | * system-vxworks-xscale.ads: Removed, no longer used. | |
27822 | * s-vxwork-xscale.ads: Removed, no longer used. | |
27823 | ||
27824 | 2005-09-01 Robert Dewar <dewar@adacore.com> | |
27825 | ||
27826 | * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb, | |
27827 | g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads, | |
27828 | g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb, | |
27829 | exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads, | |
27830 | g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads, | |
27831 | g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb, | |
27832 | g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads, | |
27833 | g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb, | |
27834 | g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads, | |
27835 | g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads, | |
27836 | sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb, | |
27837 | a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads, | |
27838 | g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads, | |
27839 | a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads, | |
27840 | a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb, | |
27841 | a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb, | |
27842 | g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads, | |
27843 | g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads, | |
27844 | g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb, | |
27845 | i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb, | |
27846 | a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting | |
27847 | ||
613e3755 | 27848 | 2005-08-29 Arnaud Charlet <charlet@adacore.com> |
27849 | ||
27850 | PR ada/23187 | |
27851 | * adaint.c | |
86aca445 | 27852 | (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined. |
613e3755 | 27853 | |
27854 | 2005-08-29 Arnaud Charlet <charlet@adacore.com> | |
27855 | Doug Rupp <rupp@adacore.com> | |
27856 | ||
27857 | * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings | |
27858 | when needed. | |
27859 | (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep | |
27860 | this code in the GNAT run-time. | |
27861 | ||
27862 | * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions. | |
27863 | ||
27864 | PR ada/21053 | |
27865 | * init.c (__gnat_error_handler [many]): Mark "msg" as const | |
27866 | (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused | |
27867 | ||
27868 | (__gnat_inside_elab_final_code): Moved here from | |
27869 | Standard_Library and only defined for the compiler. | |
27870 | __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL. | |
27871 | (__gnat_inum_to_ivec): Do not define this function on VxWorks when | |
27872 | using RTPs because directly vectored Interrupt routines are not | |
27873 | supported on this configuration. | |
27874 | (getpid): Do not redefine this function on VxWorks when using RTPs | |
27875 | because this primitive is well supported by the RTP libraries. | |
27876 | (copy_msg): Correct the code that checks for buffer overflow. | |
27877 | Discovered during code reading. | |
27878 | ||
27879 | 2005-08-29 Olivier Hainque <hainque@adacore.com> | |
27880 | ||
27881 | * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for | |
27882 | a library level mutable variable with an initializer, tell | |
27883 | build_allocator to ignore the initializer's size. It may not be large | |
27884 | enough for all the values that might be assigned to the variable later | |
27885 | on. | |
27886 | ||
27887 | 2005-08-29 Arnaud Charlet <charlet@adacore.com> | |
27888 | Eric Botcazou <ebotcazou@adacore.com> | |
27889 | ||
27890 | * trans.c: Protect < in error msg with quote | |
27891 | Replace GCC_ZCX by Back_End_Exceptions. | |
27892 | (addressable_p) <COMPONENT_REF>: Also return 1 if the field | |
27893 | has been sufficiently aligned in the record. | |
27894 | ||
d3cf0319 | 27895 | 2005-08-15 James E. Wilson <wilson@specifix.com> |
27896 | ||
27897 | * system-linux-alpha.ads: Change ia64 to alpha. | |
27898 | ||
256f6afd | 27899 | 2005-08-01 Kazu Hirata <kazu@codesourcery.com> |
27900 | ||
27901 | * decl.c, utils.c: Fix comment typos. | |
27902 | ||
76bc3d2b | 27903 | 2005-07-29 Kazu Hirata <kazu@codesourcery.com> |
27904 | ||
27905 | * decl.c, init.c, initialize.c: Fix comment typos. | |
27906 | ||
c75b4594 | 27907 | 2005-07-20 Giovanni Bajo <giovannibajo@libero.it> |
27908 | ||
27909 | Make CONSTRUCTOR use VEC to store initializers. | |
27910 | * decl.c (gnat_to_gnu_entity): Update to cope with VEC in | |
27911 | CONSTRUCTOR_ELTS. | |
27912 | * trans.c (extract_values): Likewise. | |
27913 | * utils.c (convert, remove_conversions): Likewise. | |
27914 | * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op, | |
27915 | gnat_build_constructor): Likewise. | |
27916 | ||
077dd17e | 27917 | 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu> |
27918 | ||
27919 | * decl.c (components_to_record): Use DECL_FCONTEXT instead of | |
27920 | DECL_SECTION_NAME. | |
27921 | (compare_field_bitpos): Likewise. | |
27922 | ||
4bbdfe64 | 27923 | 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu> |
27924 | ||
27925 | * utils.c (create_var_decl): Only set DECL_COMMON on | |
27926 | VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on | |
27927 | VAR_OR_FUNCTION_DECL_P. | |
27928 | ||
5ded8c6f | 27929 | 2005-07-08 Daniel Berlin <dberlin@dberlin.org> |
86aca445 | 27930 | |
5ded8c6f | 27931 | * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is |
27932 | removed. | |
27933 | ||
b8fa7c14 | 27934 | 2005-07-07 Pascal Obry <obry@adacore.com> |
27935 | ||
27936 | * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the | |
27937 | returned type on Windows. | |
27938 | ||
27939 | * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this | |
27940 | routine. | |
27941 | ||
27942 | * g-socket.adb (Inet_Addr): Check for empty Image and raises an | |
27943 | exception in this case. | |
27944 | Simplify the code as "Image (Image'Range)" = "Image". | |
27945 | ||
27946 | 2005-07-07 Vincent Celier <celier@adacore.com> | |
27947 | ||
27948 | * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put | |
27949 | the destructor/constructor attributes for <lib>final/<lib>init. | |
27950 | ||
27951 | * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C | |
27952 | ||
27953 | 2005-07-07 Eric Botcazou <ebotcazou@adacore.com> | |
27954 | ||
27955 | * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding | |
27956 | type if the parameter is not passed by copy but reference by default. | |
27957 | ||
27958 | 2005-07-07 Javier Miranda <miranda@adacore.com> | |
27959 | ||
27960 | * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type): | |
27961 | Reimplementation of the support for abstract interface types in order | |
27962 | to leave the code more clear and easy to maintain. | |
27963 | ||
27964 | * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for | |
27965 | abstract interface types in order to leave the code clearer and easier | |
27966 | to maintain. | |
27967 | ||
27968 | * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality | |
27969 | is now implemented by the new subprogram Fill_Secondary_DT_Entry. | |
27970 | (Fill_Secondary_DT_Entry): Generate the code necessary to fill the | |
27971 | appropriate entry of the secondary dispatch table. | |
27972 | (Make_DT): Add code to inherit the secondary dispatch tables of | |
27973 | the ancestors. | |
27974 | ||
27975 | * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of | |
27976 | implementing both functionalities by means of a common routine, each | |
27977 | routine has its own code. | |
27978 | ||
27979 | 2005-07-07 Javier Miranda <miranda@adacore.com> | |
27980 | ||
27981 | * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types. | |
27982 | ||
27983 | * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete | |
27984 | types: | |
27985 | -- | |
27986 | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED]; | |
27987 | -- | |
27988 | ||
27989 | * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong | |
27990 | use of tag incomplete types. | |
27991 | ||
27992 | * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to | |
27993 | give support to tagged incomplete types. | |
27994 | ||
27995 | * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the | |
27996 | expression is a discriminant reference and its type is private, as can | |
27997 | happen within a stream operation for a mutable record, use the full | |
27998 | view of the type to resolve the case alternatives. | |
27999 | (Analyze_Assignment): Check wrong dereference of incomplete types. | |
28000 | ||
28001 | * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete | |
28002 | types. | |
28003 | ||
28004 | * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged | |
28005 | incomplete types. | |
28006 | ||
28007 | * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to | |
28008 | N_Incomplete_Type_Declaration nodes. | |
28009 | ||
28010 | * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute | |
28011 | Tag_Present to give support to tagged incomplete types: | |
28012 | -- | |
28013 | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED]; | |
28014 | -- | |
28015 | ||
28016 | 2005-07-07 Olivier Hainque <hainque@adacore.com> | |
28017 | ||
28018 | PR ada/22301 | |
b8fa7c14 | 28019 | * raise.c: Only include unwind.h if IN_RTS, and provide dummy type |
28020 | definitions for the Unwind wrappers in the compiler case. | |
28021 | ||
28022 | 2005-07-07 Ed Schonberg <schonberg@adacore.com> | |
28023 | Javier Miranda <miranda@adacore.com> | |
28024 | ||
28025 | * par-load.adb (Load): If a child unit is loaded through a limited_with | |
28026 | clause, each parent must be loaded as a limited unit as well. | |
28027 | ||
28028 | * sem_ch10.adb (Previous_Withed_Unit): Better name for | |
28029 | Check_Withed_Unit. Return true if there is a previous with_clause for | |
28030 | this unit, whether limited or not. | |
28031 | (Expand_Limited_With_Clause): Do not generate a limited_with_clause on | |
28032 | the current unit. | |
28033 | (Is_Visible_Through_Renamings): New local subprogram of install_limited | |
28034 | _withed_unit that checks if some package installed through normal with | |
28035 | clauses has a renaming declaration of package whose limited-view is | |
28036 | ready to be installed. This enforces the check of the rule 10.1.2 (21/2) | |
28037 | of the current Draft document for Ada 2005. | |
28038 | (Analyze_Context): Complete the list of compilation units that | |
28039 | are allowed to contain limited-with clauses. It also contains | |
28040 | checks that were previously done by Install_Limited_Context_Clauses. | |
28041 | This makes the code more clear and easy to maintain. | |
28042 | (Expand_Limited_With_Clause) It is now a local subprogram of | |
28043 | Install_Limited_Context_Clauses, and contains the code that adds | |
28044 | the implicit limited-with clauses for parents of child units. | |
28045 | This functionality was prevously done by Analyze_Context. | |
28046 | ||
28047 | * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of | |
28048 | incomplete type. | |
28049 | ||
28050 | * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has | |
28051 | been erroneously named in a limited-with clause of its own context. | |
28052 | In this case the error has been previously notified by Analyze_Context. | |
28053 | ||
28054 | 2005-07-07 Ed Schonberg <schonberg@adacore.com> | |
28055 | ||
28056 | * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a | |
28057 | generic package that contains local declarations with the same name. | |
28058 | (Analyze_Object_Renaming): Check wrong renaming of incomplete type. | |
28059 | ||
28060 | 2005-07-07 Bernard Banner <banner@adacore.com> | |
28061 | ||
28062 | * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on | |
28063 | ia64 platform only on platforms that you the GCC unwind library | |
28064 | rather than the system unwind library. | |
28065 | ||
28066 | 2005-07-07 Thomas Quinot <quinot@adacore.com> | |
28067 | ||
28068 | * expect.c: Minor reformatting | |
28069 | ||
28070 | 2005-07-07 Sergey Rybin <rybin@adacore.com> | |
28071 | ||
28072 | * vms_data.ads: Add VMS qualifiers for new gnatpp switch | |
28073 | --no-separate-is | |
28074 | ||
28075 | * gnat_ugn.texi: Add description for new gnatpp option | |
28076 | (--no-separate-is) | |
28077 | ||
85a65a30 | 28078 | 2005-07-04 Thomas Quinot <quinot@adacore.com> |
28079 | ||
28080 | * g-expect-vms.adb, g-expect.ads, g-expect.adb | |
28081 | (Get_Command_Output): New subprogram to launch a process and get its | |
28082 | standard output as a string. | |
28083 | ||
28084 | 2005-07-04 Eric Botcazou <ebotcazou@adacore.com> | |
f57fa975 | 28085 | Olivier Hainque <hainque@adacore.com> |
85a65a30 | 28086 | |
28087 | * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to | |
28088 | fetch a code-range descriptor associated with the machine state. On | |
28089 | failure set the machine state's PC to 0; on success, pass the | |
28090 | descriptor to exc_virtual_unwind. | |
28091 | ||
28092 | * init.c (Tru64 section): New function __gnat_set_code_loc. | |
28093 | ||
28094 | 2005-07-04 Vincent Celier <celier@adacore.com> | |
28095 | ||
86aca445 | 28096 | * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, |
28097 | mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb, | |
85a65a30 | 28098 | mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library): |
28099 | Remove all auto-initialization code, as this is now done through the | |
28100 | constructor mechanism. | |
28101 | ||
28102 | * adaint.h, adaint.c (__gnat_binder_supports_auto_init, | |
28103 | __gnat_sals_init_using_constructors): New functions. | |
28104 | ||
28105 | * bindgen.adb (Gen_Output_File_Ada): Generate pragmas | |
28106 | Linker_Constructor and Linker_Destructor when switch -a is used. | |
28107 | ||
28108 | * bindusg.adb: Add line for new switch -a | |
28109 | ||
28110 | * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function | |
28111 | (Gnatbind): When switch -a is used, check if it is allowed | |
28112 | ||
28113 | * switch-b.adb (Scan_Binder_Switches): Process new switch -a | |
28114 | ||
28115 | 2005-07-04 Joel Brobecker <brobecker@adacore.com> | |
28116 | ||
28117 | * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array. | |
28118 | This prevents us from hitting a limitation during the debug info | |
28119 | generation when using stabs. | |
28120 | (Prims_Ptr): Likewise. | |
28121 | ||
28122 | 2005-07-04 Gary Dismukes <dismukes@adacore.com> | |
28123 | Ed Schonberg <schonberg@adacore.com> | |
28124 | Javier Miranda <miranda@adacore.com> | |
28125 | ||
28126 | * checks.adb (Null_Exclusion_Static_Checks): In the case of | |
28127 | N_Object_Declaration, only perform the checks if the Object_Definition | |
28128 | is not an Access_Definition. | |
28129 | ||
d4c15061 | 28130 | * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case |
28131 | where the parent of an the access definition is an N_Object_Declaration | |
28132 | when determining the Associated_Node_For_Itype and scope of an | |
28133 | anonymous access-to-subprogram type. | |
85a65a30 | 28134 | |
28135 | * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the | |
28136 | Corresponding_Spec on the body created for a null procedure. Add ??? | |
28137 | comment. Remove New_Copy_Tree call on body argument to | |
28138 | Set_Body_To_Inline. | |
28139 | ||
28140 | * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with | |
28141 | discriminants, use the type of the actual as well, because the | |
28142 | discriminants may be read by the called subprogram. | |
28143 | ||
28144 | * sem_ch3.adb (Access_Type_Declaration): If the designated type is an | |
28145 | access type we do not need to handle non-limited views. | |
28146 | (Build_Derived_Record_Type): Additional check to check that in case of | |
28147 | private types, interfaces are only allowed in private extensions. | |
28148 | ||
28149 | 2005-07-04 Eric Botcazou <ebotcazou@adacore.com> | |
28150 | ||
28151 | * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case. | |
28152 | <Pragma_Linker_Destructor>: Likewise. | |
28153 | ||
28154 | * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and | |
28155 | Pragma_Linker_Destructor. | |
28156 | ||
28157 | * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and | |
28158 | ATTR_LINK_DESTRUCTOR. | |
28159 | (static_ctors, static_dtors): New variables. | |
28160 | ||
28161 | * misc.c (gnat_expand_body): Output current function as constructor | |
28162 | and destructor if requested. | |
28163 | ||
28164 | * par-prag.adb: Add processing for pragma Linker_Constructor and | |
28165 | Linker_Destructor. | |
28166 | ||
28167 | * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function | |
28168 | extracted from Check_Interrupt_Or_Attach_Handler. | |
28169 | (Check_Interrupt_Or_Attach_Handler): Invoke it. | |
28170 | Implement pragma Linker_Constructor and Linker_Destructor with the | |
28171 | help of Find_Unique_Parameterless_Procedure. | |
28172 | Replace Name_Alias with Name_Target for pragma Linker_Alias. | |
28173 | ||
86aca445 | 28174 | * snames.h, snames.ads, snames.adb: |
85a65a30 | 28175 | Add Name_Linker_Constructor and Name_Linker_Destructor. |
28176 | Add Pragma_Linker_Constructor and Pragma_Linker_Destructor. | |
28177 | * snames.adb: Remove Name_Alias. | |
28178 | ||
28179 | * trans.c: Include cgraph.h. | |
28180 | (build_global_cdtor): New function. | |
28181 | (Compilation_Unit_to_gnu): Build global constructor and destructor if | |
28182 | needed. | |
28183 | (tree_transform) <N_Identifier>: Substitute renaming of view-conversions | |
28184 | of objects too. | |
28185 | (addressable_p) <COMPONENT_REF>: Unconditionally test | |
28186 | DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms. | |
28187 | ||
28188 | * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the | |
28189 | variable if it is external. | |
28190 | ||
28191 | (static_ctors, static_dtors): New global variables. | |
28192 | (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case. | |
28193 | <ATTR_LINK_DESTRUCTOR>: Likewise. | |
28194 | (end_subprog_body): Chain function as constructor and destructor | |
28195 | if requested. | |
28196 | ||
28197 | * exp_util.adb (Force_Evaluation): Unconditionally invoke | |
28198 | Remove_Side_Effects with Variable_Ref set to true. | |
28199 | (Remove_Side_Effects): Handle scalar types first. Use a renaming | |
28200 | for non-scalar types even if Variable_Ref is true and for class-wide | |
28201 | expressions. | |
28202 | ||
28203 | 2005-07-04 Ed Schonberg <schonberg@adacore.com> | |
28204 | ||
28205 | * exp_attr.adb (Mod): Evaluate condition expression with checks off, | |
28206 | to prevent spurious warnings. | |
28207 | ||
28208 | 2005-07-04 Thomas Quinot <quinot@adacore.com> | |
28209 | ||
28210 | * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for | |
28211 | Itypes. Itypes are really unexpected there. | |
28212 | (Build_TypeCode_Function): Generalise special processing for Itypes to | |
28213 | handle the case of numeric implicit base types as well as enumerated | |
28214 | ones. | |
28215 | ||
28216 | 2005-07-04 Ed Schonberg <schonberg@adacore.com> | |
28217 | ||
28218 | * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is | |
28219 | controlled, indicate the expected type of the dereference that is | |
28220 | created for the call to Deep_Finalize, to prevent spurious errors when | |
28221 | the designated type is private and completed with a derivation from | |
28222 | another private type. | |
28223 | ||
28224 | 2005-07-04 Vincent Celier <celier@adacore.com> | |
28225 | ||
28226 | * make.adb (Change_To_Object_Directory): When unable to change the | |
28227 | current dir to the object directory, output the full path of the | |
28228 | directory. | |
28229 | ||
28230 | 2005-07-04 Matthew Gingell <gingell@adacore.com> | |
28231 | ||
28232 | * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb | |
28233 | ||
28234 | * indepsw-linux.adb: Replace by... | |
28235 | ||
28236 | * indepsw-gnu.adb: ...this new file | |
28237 | ||
28238 | 2005-07-04 Vincent Celier <celier@adacore.com> | |
28239 | ||
28240 | * mlib-prj.adb (Auto_Initialize): New constant String | |
28241 | (SALs_Use_Constructors): New Boolean function | |
28242 | (Build_Library): Call gnatbind with Auto_Initialize switch when | |
28243 | SALs_Use_Constructors returns True. | |
28244 | ||
28245 | * mlib-tgt.ads: Minor reformatting | |
28246 | ||
28247 | * mlib-utl.ads: Minor reformatting | |
28248 | ||
28249 | * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag | |
28250 | ||
28251 | 2005-07-04 Ed Schonberg <schonberg@adacore.com> | |
28252 | ||
28253 | * par-ch9.adb (P_Task, P_Protected): Indicate that single task and | |
28254 | single protected declarations can have an interface list. | |
28255 | (P_Entry_Declaration): Add handler for Error_Resync, which can be raised | |
28256 | with seriously malformed entry declarations, and lead to compilation | |
28257 | abandoned messages. | |
28258 | ||
28259 | 2005-07-04 Javier Miranda <miranda@adacore.com> | |
28260 | ||
28261 | * par-load.adb: Load the context items in two rounds. | |
28262 | ||
28263 | 2005-07-04 Robert Dewar <dewar@adacore.com> | |
28264 | ||
28265 | * scng.adb: Do not consider Mod used as an attribute to be a keyword | |
28266 | ||
28267 | 2005-07-04 Ed Schonberg <schonberg@adacore.com> | |
28268 | Javier Miranda <miranda@adacore.com> | |
28269 | ||
28270 | * sem_ch10.adb (Build_Limited_Views): A type declared with a private | |
28271 | type extension needs a limited view. | |
28272 | Remove previous restriction on private types available through the | |
28273 | limited-view (only tagged private types were previously allowed). | |
28274 | (Install_Withed_Unit): In the code that implements the | |
28275 | legality rule given in AI-377, exclude a child unit with the name | |
28276 | Standard, because it is a homonym of the Standard environment package. | |
28277 | ||
28278 | 2005-07-04 Thomas Quinot <quinot@adacore.com> | |
28279 | ||
28280 | * sem_ch4.adb (Transform_Object_Operation): For an actual that is an | |
28281 | overloaded function call, carry interpretations from the original tree | |
28282 | to the copy. | |
28283 | ||
28284 | 2005-07-04 Ed Schonberg <schonberg@adacore.com> | |
28285 | ||
28286 | * sem_ch6.adb (Conforming_Types): If the types are anonymous access | |
28287 | types check whether some designated type is a limited view, and use | |
28288 | the non-limited view if available. | |
28289 | ||
28290 | 2005-07-04 Gary Dismukes <dismukes@adacore.com> | |
28291 | ||
28292 | * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant | |
28293 | constraint of full view of a private view T1 if present, when T2 is a | |
28294 | discriminated full view. | |
28295 | ||
28296 | 2005-07-04 Thomas Quinot <quinot@adacore.com> | |
28297 | ||
28298 | * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an | |
28299 | actual that is a view conversion of a bit packed array reference. | |
28300 | ||
28301 | 2005-07-04 Ed Schonberg <schonberg@adacore.com> | |
28302 | ||
28303 | * sem_type.adb (Covers): Verify that Corresponding_Record_Type is | |
28304 | present before checking whether an interface type covers a synchronized | |
28305 | type. | |
28306 | ||
28307 | 2005-07-04 Ed Schonberg <schonberg@adacore.com> | |
28308 | ||
28309 | * sem_util.adb (Is_Object_Reference): An indexed or selected component | |
28310 | whose prefix is an implicit dereference is an object reference. Removes | |
28311 | spurious errors when compiling with -gnatc. | |
28312 | ||
28313 | 2005-07-04 Robert Dewar <dewar@adacore.com> | |
28314 | ||
28315 | PR ada/22039 | |
85a65a30 | 28316 | * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix |
28317 | ||
28318 | 2005-07-04 Matthew Gingell <gingell@adacore.com> | |
28319 | ||
28320 | * tracebak.c: Enable tracebacks on ia64 platforms | |
28321 | ||
28322 | 2005-07-04 Vincent Celier <celier@adacore.com> | |
28323 | ||
28324 | * vms_conv.adb (Initialize): Allow multiple ALI files to be given to | |
28325 | the GNAT BIND command, as gnatbind accepts multiples ALI files with | |
28326 | the -L or -n switches. | |
28327 | ||
28328 | 2005-07-04 Vincent Celier <celier@adacore.com> | |
28329 | ||
28330 | * makegpr.adb (Build_Global_Archive): Make sure the list of sources is | |
28331 | correctly computed and the main project data is not modified while | |
28332 | doing so. | |
28333 | (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler | |
28334 | (Choose_C_Plus_Plus_Link_Process): Do not generate shell script | |
28335 | c++linker as this does not work on some platforms. | |
28336 | ||
28337 | 2005-07-04 Matthew Heaney <heaney@adacore.com> | |
28338 | ||
28339 | * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index | |
28340 | was changed. | |
28341 | * a-coinve.adb: Perform constraint checks explicitly. | |
28342 | ||
28343 | 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
28344 | Thomas Quinot <quinot@adacore.com> | |
28345 | ||
28346 | * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency. | |
28347 | new target gen-soccon. | |
28348 | ||
28349 | 2005-07-04 Robert Dewar <dewar@adacore.com> | |
28350 | ||
28351 | * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting | |
28352 | ||
28353 | 2005-07-04 Thomas Quinot <quinot@adacore.com> | |
28354 | ||
28355 | * g-socket.ads (Check_Selector): Minor rewording of comment. | |
28356 | ||
28357 | 2005-07-04 Vincent Celier <celier@adacore.com> | |
28358 | ||
28359 | * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol= | |
28360 | ||
28361 | 2005-07-04 Thomas Quinot <quinot@adacore.com> | |
28362 | ||
28363 | * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO. | |
28364 | ||
28365 | 2005-07-04 Sergey Rybin <rybin@adacore.com> | |
28366 | ||
d4c15061 | 28367 | * gnat_ugn.texi: Add description of --eol gnatpp option |
85a65a30 | 28368 | |
28369 | 2005-07-04 Eric Botcazou <ebotcazou@adacore.com> | |
28370 | Thomas Quinot <quinot@adacore.com> | |
28371 | ||
d4c15061 | 28372 | * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate |
85a65a30 | 28373 | if the user wants all calls of a subprogram to be flagged, |
28374 | independently of whether they are made from within the same unit or | |
28375 | another unit. | |
d4c15061 | 28376 | Mention restriction for pragma Linker_Alias on some platforms. |
28377 | Document pragma Linker_Constructor and Linker_Destructor. | |
28378 | Rewrite documentation of Weak_External, Linker_Section and | |
28379 | Linker_Alias pragmas. | |
85a65a30 | 28380 | |
f79adf86 | 28381 | 2005-07-04 Arnaud Charlet <charlet@adacore.com> |
28382 | ||
28383 | * s-stausa.ads, s-stausa.adb: New files. | |
28384 | ||
f27cea3a | 28385 | 2005-06-30 Kelley Cook |
28386 | ||
28387 | * all files: Update FSF address in copyright headers. | |
28388 | * gen-soccon.co (main): Output new FSF address in generated files. | |
28389 | ||
1774763d | 28390 | 2005-06-28 Paul Brook <paul@codesourcery.com> |
28391 | ||
28392 | * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc. | |
28393 | ||
9bc610b6 | 28394 | 2005-06-14 Olivier Hainque <hainque@adacore.com> |
28395 | Eric Botcazou <ebotcazou@adacore.com> | |
28396 | ||
28397 | * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to | |
28398 | exc_unwind, now that we are generating proper .debug_frame output for | |
28399 | that target. | |
28400 | ||
28401 | * tracebak.c: Remove the mips-irix section, as we are now using the | |
28402 | s-mastop based unwinder again. | |
28403 | Under SPARC/Solaris, take into account the stack bias to compute the | |
28404 | frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9 | |
28405 | ABI. | |
28406 | ||
28407 | 2005-06-14 Doug Rupp <rupp@adacore.com> | |
28408 | ||
28409 | * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb | |
28410 | ||
28411 | * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files | |
28412 | ||
28413 | 2005-06-14 Pascal Obry <obry@adacore.com> | |
28414 | ||
28415 | * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb, | |
28416 | a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads, | |
28417 | a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in | |
28418 | package name). | |
28419 | ||
86aca445 | 28420 | * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads, |
28421 | a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb, | |
28422 | a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads, | |
28423 | a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads, | |
9bc610b6 | 28424 | a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads, |
86aca445 | 28425 | a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads, |
28426 | a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb, | |
28427 | s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, | |
28428 | s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads, | |
28429 | s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb, | |
28430 | s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb, | |
28431 | s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads, | |
28432 | s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads, | |
28433 | s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb, | |
28434 | s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb, | |
28435 | s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads, | |
28436 | s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads, | |
28437 | s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb, | |
28438 | s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads, | |
28439 | s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb, | |
28440 | s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb, | |
28441 | s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb, | |
28442 | s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb, | |
28443 | s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads, | |
28444 | s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb, | |
28445 | s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb, | |
28446 | s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb, | |
28447 | s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb, | |
28448 | s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb, | |
9bc610b6 | 28449 | s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb, |
28450 | a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb, | |
28451 | a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb, | |
28452 | a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads, | |
28453 | a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb, | |
28454 | a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads, | |
28455 | a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads, | |
28456 | a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads, | |
28457 | a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads, | |
28458 | a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb, | |
28459 | a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, | |
28460 | a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, | |
28461 | a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads, | |
28462 | a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb, | |
28463 | a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads, | |
28464 | a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads, | |
28465 | a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb, | |
28466 | a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb, | |
28467 | a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb, | |
28468 | a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb, | |
28469 | a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, | |
28470 | a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb, | |
28471 | a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb, | |
28472 | a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads, | |
28473 | a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, | |
28474 | a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb, | |
28475 | a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb, | |
28476 | a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads, | |
28477 | dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb, | |
28478 | g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads, | |
28479 | g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads, | |
28480 | g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, | |
28481 | g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, | |
28482 | g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb, | |
28483 | gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb, | |
28484 | g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb, | |
28485 | i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads, | |
86aca445 | 28486 | s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads, |
28487 | s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb, | |
9bc610b6 | 28488 | s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads, |
86aca445 | 28489 | s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb, |
9bc610b6 | 28490 | s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb, |
28491 | s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads, | |
28492 | s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb, | |
28493 | s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads, | |
28494 | s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb, | |
28495 | s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads, | |
28496 | s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb, | |
28497 | s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads, | |
28498 | s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb, | |
28499 | s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads, | |
28500 | s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads | |
28501 | s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads, | |
28502 | s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb, | |
28503 | s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads, | |
28504 | s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb, | |
28505 | s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads, | |
28506 | s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb, | |
28507 | s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads, | |
28508 | s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb, | |
28509 | s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads, | |
28510 | s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb, | |
28511 | s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads, | |
28512 | s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb, | |
28513 | s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads, | |
28514 | s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb, | |
28515 | s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads, | |
28516 | s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb, | |
28517 | s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads, | |
28518 | s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb, | |
28519 | s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads, | |
28520 | s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb, | |
28521 | s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads, | |
28522 | s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb, | |
28523 | s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads, | |
28524 | s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb, | |
28525 | s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads, | |
28526 | s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb, | |
86aca445 | 28527 | s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb, |
28528 | s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads, | |
28529 | s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb, | |
28530 | s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads, | |
28531 | s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb, | |
28532 | s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads, | |
28533 | s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads, | |
9bc610b6 | 28534 | s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads, |
28535 | s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb, | |
28536 | s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads, | |
28537 | s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb, | |
28538 | s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads, | |
28539 | s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads, | |
86aca445 | 28540 | s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb, |
28541 | s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb, | |
9bc610b6 | 28542 | s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads, |
28543 | a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads, | |
28544 | a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads, | |
28545 | a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb, | |
28546 | a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb, | |
28547 | a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, | |
28548 | a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb, | |
28549 | a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb, | |
28550 | a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb, | |
28551 | a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style. | |
28552 | "GNU Ada" to GNAT, use proper casing for RUN-TIME. | |
28553 | ||
28554 | 2005-06-14 Jose Ruiz <ruiz@adacore.com> | |
28555 | Arnaud Charlet <charlet@adacore.com> | |
28556 | ||
28557 | * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no | |
28558 | longer protected objects. They have been replaced by lower-level | |
28559 | suspension objects made up by a mutex and a condition variable (or | |
28560 | their equivalent given a particular OS) plus some internal data to | |
28561 | reflect the state of the suspension object. | |
28562 | (Initialize, Finalize): Add this initialization procedure for | |
28563 | Suspension_Object, which is a controlled type. | |
28564 | (Finalize): Add the finalization procedure for Suspension_Object, | |
28565 | which is a controlled type. | |
28566 | ||
28567 | * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of | |
28568 | Ada.Synchronous_Task_Control because there is no longer a need for a | |
28569 | VxWorks specific version of this package. Target dependencies | |
28570 | has been moved to System.Task_Primitives.Operations. | |
28571 | ||
28572 | * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no | |
28573 | longer needed. | |
28574 | (InitializeCriticalSection, EnterCriticalSection, | |
28575 | LeaveCriticalSection, DeleteCriticalSection): Replace the type | |
28576 | pCriticalSection by an anonymous access type so that we avoid problems | |
28577 | of accessibility to local objects. | |
28578 | ||
28579 | * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb, | |
28580 | s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb, | |
28581 | s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb, | |
28582 | s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb, | |
28583 | s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer | |
28584 | set the environment task mask here. | |
28585 | (Current_State): Add this function that returns the state of the | |
28586 | suspension object. | |
28587 | (Set_False): Add this procedure that sets the state of the suspension | |
28588 | object to False. | |
28589 | (Set_True): Add this procedure that sets the state of the suspension | |
28590 | object to True, releasing the task that was suspended, if any. | |
28591 | (Suspend_Until_True): Add this procedure that blocks the calling task | |
28592 | until the state of the object is True. Program_Error is raised if | |
28593 | another task is already waiting on that suspension object. | |
28594 | (Initialize): Add this procedure for initializing the suspension | |
28595 | object. It initializes the mutex and the condition variable which are | |
28596 | used for synchronization and queuing, and it sets the internal state | |
28597 | to False. | |
28598 | (Finalize): Add this procedure for finalizing the suspension object, | |
28599 | destroying the mutex and the condition variable. | |
28600 | ||
28601 | * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads, | |
28602 | s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads, | |
28603 | s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads, | |
28604 | s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object | |
28605 | which provides a low-level abstraction (using operating system | |
28606 | primitives) for Ada.Synchronous_Task_Control. | |
28607 | This object is made up by a mutex (for ensuring mutual exclusion), a | |
28608 | condition variable (for queuing threads until the condition is | |
28609 | signaled), a Boolean (State) indicating whether the object is open, | |
28610 | and a Boolean (Waiting) reflecting whether there is a task already | |
28611 | suspended on this object. | |
28612 | ||
28613 | * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb, | |
28614 | s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb, | |
28615 | s-intman-vms.ads, s-intman-mingw.adb, | |
28616 | (Initialize_Interrupts): Removed, no longer used. | |
28617 | ||
28618 | * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb, | |
28619 | (Setup_Interrupt_Mask): New procedure. | |
28620 | ||
28621 | * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments. | |
28622 | ||
28623 | * s-inmaop.ads (Setup_Interrupt_Mask): New procedure | |
28624 | ||
28625 | * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that | |
28626 | this is no longer done in the body of s-taprop | |
28627 | (Server_Task): Explicitely test for Pending_Action in case | |
28628 | System.Parameters.No_Abort is True. | |
28629 | ||
28630 | * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this | |
28631 | is no longer done in the body of s-taprop | |
28632 | ||
28633 | 2005-06-14 Robert Dewar <dewar@adacore.com> | |
28634 | ||
28635 | * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads, | |
28636 | system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads, | |
28637 | system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads, | |
28638 | system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads, | |
28639 | system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads, | |
28640 | system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads, | |
28641 | system-os2.ads, system-interix.ads, system-solaris-sparc.ads, | |
28642 | system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads, | |
28643 | system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads, | |
28644 | system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads, | |
28645 | system-linux-hppa.ads, system-vms_64.ads, | |
28646 | system-vxworks-alpha.ads: Minor comment update for | |
28647 | AI-362 (unit is Pure). | |
28648 | ||
28649 | * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions | |
28650 | Add pragma Pure_05 for AI-362 | |
28651 | Make remaining conversion functions obsolescent in Ada 95 | |
28652 | ||
28653 | * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha | |
28654 | Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode | |
28655 | Add entries for a-wichun and a-zchuni | |
28656 | Add a-widcha a-zchara for AI-395 | |
28657 | Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines | |
28658 | ||
28659 | * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha | |
28660 | Add entries for a-wichun.o and a-zchuni.o | |
28661 | Entries for a-widcha.o and a-zchara.o | |
28662 | Add entry for a-chacon.o | |
28663 | ||
28664 | * a-ztenau.adb: Add with of Ada.Characters.Conversions | |
28665 | ||
28666 | * a-chacon.ads, a-chacon.adb: New files. | |
28667 | ||
28668 | * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow | |
28669 | categorization violations. | |
28670 | ||
28671 | * a-strmap.ads: Add pragma Pure_05 for AI-362 | |
28672 | * a-strmap.ads: Add note on implicit categorization for AI-362 | |
28673 | ||
28674 | * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362 | |
28675 | ||
28676 | * par-prag.adb: Dummy entry for pragma Persistent_BSS | |
28677 | Set Ada_Version_Explicit, for implementation of AI-362 | |
28678 | Add processing for pragma Pure_05 and Preelaborate_05 | |
28679 | Add entry for Assertion_Policy pragma | |
28680 | ||
28681 | * sem.adb: Make sure predefined units are compiled with GNAT_Mode true | |
28682 | when needed for proper processing of categorization stuff | |
28683 | ||
86aca445 | 28684 | * sem_cat.adb: |
9bc610b6 | 28685 | For several cases, make errors in preealborate units warnings, |
28686 | instead of errors, if GNAT_Mode is set. For AI-362. | |
28687 | ||
28688 | * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in | |
28689 | preelaborate unit is now warning if in GNAT mode | |
28690 | ||
28691 | * s-stoele.ads: Document AI-362 for pragma preelaborate | |
28692 | ||
28693 | 2005-06-14 Doug Rupp <rupp@adacore.com> | |
28694 | ||
28695 | * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads, | |
28696 | s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads: | |
28697 | Default_Exception_Msg_Max_Length: new parameter. | |
28698 | ||
28699 | * a-except.ads: (Exception_Msg_Max_Length): Set to | |
28700 | System.Parameters.Default_Exception_Msg_Max_Length | |
28701 | Add pragma Preelaborate_05 for AI-362 | |
28702 | Add warnings off to allow categorization violations for AI-362 | |
28703 | ||
28704 | 2005-06-14 Vincent Celier <celier@adacore.com> | |
28705 | ||
28706 | * gnatsym.adb: Adapt to modification of package Symbols: procedure | |
28707 | Process is now in package Processing. | |
28708 | ||
28709 | * symbols.ads, symbols.adb: | |
28710 | (Processing): New package, containing procedure Process | |
28711 | ||
86aca445 | 28712 | * symbols-vms-alpha.adb: |
9bc610b6 | 28713 | Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb |
28714 | ||
28715 | * symbols-vms.adb, symbols-processing-vms-alpha.adb, | |
28716 | symbols-processing-vms-ia64.adb: New files. | |
28717 | ||
28718 | 2005-06-14 Pascal Obry <obry@adacore.com> | |
28719 | ||
28720 | * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous | |
28721 | implementation. This new version generates the proper DllMain routine | |
28722 | to initialize the SAL. The DllMain is generated in Ada and compiled | |
28723 | before being added as option to the library build command. | |
28724 | ||
28725 | 2005-06-14 Doug Rupp <rupp@adacore.com> | |
28726 | Pascal Obry <obry@adacore.com> | |
28727 | ||
28728 | * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in | |
28729 | call to decc$translate_vms. | |
28730 | (__gnat_locate_regular_file): Check if the path_val contains quotes. We | |
28731 | need to remove those quotes before catenating the filename. | |
28732 | (__gnat_locate_exec_on_path): improvements to the Win32 section: | |
28733 | * avoid allocating the memory twice for better efficiency; | |
28734 | * allocate 32K buffer for environment expansion as suggested by MSDN; | |
28735 | * prepend ".;" to the path so that current directory is searched too. | |
28736 | ||
28737 | 2005-06-14 Robert Dewar <dewar@adacore.com> | |
28738 | ||
28739 | * a-except.adb (Exception_Identity): return Null_Id for null occurrence | |
28740 | instead of raising CE (AI-241) | |
28741 | Add warnings off to allow categorization violations for AI-362 | |
28742 | ||
28743 | 2005-06-14 Robert Dewar <dewar@adacore.com> | |
28744 | ||
28745 | * ali-util.adb, gnatbind.adb: Remove references to | |
28746 | Force_RM_Elaboration_Order. | |
28747 | ||
28748 | * switch-b.adb: Remove recognition of -f switch | |
28749 | ||
28750 | 2005-06-14 Pascal Obry <obry@adacore.com> | |
28751 | ||
28752 | * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New | |
28753 | implementation which is slightly more efficient. | |
28754 | ||
28755 | 2005-06-14 Gary Dismukes <dismukes@adacore.com> | |
28756 | Javier Miranda <miranda@adacore.com> | |
28757 | Ed Schonberg <schonberg@adacore.com> | |
28758 | Hristian Kirtchev <kirtchev@adacore.com> | |
28759 | ||
28760 | * exp_ch4.adb (Expand_Allocator_Expression): When an initialized | |
28761 | allocator's designated type is a class-wide type, and compiling for | |
28762 | Ada 2005, emit a run-time check that the accessibility level of the | |
28763 | type given in the allocator's expression is not deeper than the level | |
28764 | of the allocator's access type. | |
28765 | ||
28766 | (Tagged_Membership): Modified to gives support to abstract interface | |
28767 | types. | |
28768 | ||
28769 | * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component | |
28770 | Access_Level. | |
28771 | (Descendant_Tag): New predefined function | |
28772 | (Is_Descendant_At_Same_Level): New predefined function | |
28773 | (Get_Access_Level): New private function | |
28774 | (Set_Access_Level): New private procedure | |
28775 | (IW_Membership): New function. Given the tag of an object and the tag | |
28776 | associated with an interface, evaluate if the object implements the | |
28777 | interface. | |
28778 | (Register_Interface_Tag): New procedure used to initialize the table of | |
28779 | interfaces used by the IW_Membership function. | |
28780 | (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue | |
28781 | of the dispatch table. | |
28782 | (Inherit_TSD): Modified to copy the table of ancestor tags plus the | |
28783 | table of interfaces of the parent. | |
28784 | (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag. | |
28785 | (External_Tag): Raise Tag_Error if the passed tag equals No_Tag. | |
28786 | (Parent_Tag): Return No_Tag in the case of a root-level tagged type, | |
28787 | and raise Tag_Error if the passed tag equalis No_Tag, to conform with | |
28788 | Ada 2005 semantics for the new predefined function. | |
28789 | ||
28790 | * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate | |
28791 | call to Descendant_Tag rather than Internal_Tag. | |
28792 | (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that | |
28793 | the accessibility level of the attribute's Item parameter is not deeper | |
28794 | than the level of the attribute's prefix type. Tag_Error is raised if | |
28795 | the check fails. The check is only emitted for Ada_05. | |
28796 | (Find_Stream_Subprogram): If a TSS exists on the type itself for the | |
28797 | requested stream attribute, use it. | |
28798 | (Expand_N_Attribute_Reference): If the designated type is an interface | |
28799 | then rewrite the referenced object as a conversion to force the | |
28800 | displacement of the pointer to the secondary dispatch table. | |
28801 | (Expand_N_Attribute_Reference, case 'Constrained): Return false if this | |
28802 | is a dereference of an object with a constrained partial view. | |
28803 | ||
28804 | * exp_ch5.adb (Expand_N_Return_Statement): When a function's result | |
28805 | type is a class-wide type, emit a run-time check that the accessibility | |
28806 | level of the returned object is not deeper than the level of the | |
28807 | function's master (only when compiling for Ada 2005). | |
28808 | ||
28809 | * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc, | |
28810 | Action_Nb_Arg): Add entries for new Get_Access_Level and | |
28811 | Set_Access_Level routines in these tables. | |
28812 | (Make_DT): Generate a call to set the accessibility level of the | |
28813 | tagged type in its TSD. | |
28814 | (Make_DT): Code cleanup. The functionality of generating all the | |
28815 | secondary dispatch tables has been moved to freeze_record_type. | |
28816 | (Make_Abstract_Interface_DT): Minor code cleanup. | |
28817 | (Set_All_DT_Position): Code cleanup. As part of the code cleanup | |
28818 | this subprogram implements a new algorithm that provides the | |
28819 | same functionality and it is more clear in case of primitives | |
28820 | associated with abstract interfaces. | |
28821 | (Set_All_Interfaces_DTC_Entity): Removed. As part of the code | |
28822 | clean up, the functionality of this subprogram is now provided | |
28823 | by Set_All_DT_Position. | |
28824 | (Write_DT): New subprogram: a debugging procedure designed to be called | |
28825 | within gdb to display the dispatch tables associated with a tagged | |
28826 | type. | |
28827 | (Collect_All_Interfaces): New subprogram that collects the whole list | |
28828 | of interfaces that are directly or indirectly implemented by a tagged | |
28829 | type. | |
28830 | (Default_Prim_Op_Position): New subprogram that returns the fixed | |
28831 | position in the dispatch table of the default primitive operations. | |
28832 | (Expand_Interface_Actuals): New subprogram to generate code that | |
28833 | displaces all the actuals corresponding to class-wide interfaces to | |
28834 | reference the interface tag of the actual object. | |
28835 | (Expand_Interface_Conversion): New subprogram. Reference the base of | |
28836 | the object to give access to the interface tag associated with the | |
28837 | secondary dispatch table. | |
28838 | (Expand_Interface_Thunk): New subprogram that generates the code of the | |
28839 | thunk. This is required for compatibility with the C+ ABI. | |
28840 | (Make_Abstract_Interface_DT): New subprogram that generate the | |
28841 | declarations for the secondary dispatch tables associated with an | |
28842 | abstract interface. | |
28843 | (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity | |
28844 | attribute for each primitive operation covering interface subprograms | |
28845 | (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position): | |
28846 | These subprograms were upgraded to give support to abstract interfaces | |
28847 | ||
28848 | * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag, | |
28849 | RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and | |
28850 | RE_Set_Access_Level. | |
28851 | (RE_Unit_Table): Add entries for new Ada.Tags operations. | |
28852 | Add support to call the followig new run-time subprograms: | |
28853 | IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top | |
28854 | ||
28855 | * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to | |
28856 | match its full declaration when both have an access definition with | |
28857 | statically matching designated subtypes. | |
28858 | (Analyze_Component_Declaration): Delete commented out code that was | |
28859 | incorrectly setting the scope of an anonymous access component's type. | |
28860 | (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of | |
28861 | an access discriminant when the containing type is nonlimited. | |
28862 | (Make_Incomplete_Type_Declaration): Create an incomplete type | |
28863 | declaration for a record type that includes self-referential access | |
28864 | components. | |
28865 | (Check_Anonymous_Access_Types): Before full analysis of a record type | |
28866 | declaration, create anonymous access types for each self-referential | |
28867 | access component. | |
28868 | (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that | |
28869 | an access component in this context is a Local_Anonymous_Access, for | |
28870 | proper accessibility checks. | |
28871 | (Access_Definition): Set properly the scope of the anonymous access type | |
28872 | created for a stand-alone access object. | |
28873 | (Find_Type_Of_Object): An object declaration may be given with an access | |
28874 | definition. | |
28875 | (Complete_Subprograms_Derivation): New subprogram used to complete | |
28876 | type derivation of private tagged types implementing interfaces. | |
28877 | In this case some interface primitives may have been overriden | |
28878 | with the partial-view and, instead of re-calculating them, they | |
28879 | are included in the list of primitive operations of the full-view. | |
28880 | (Build_Derived_Record_Type): Modified to give support to private | |
28881 | types implemening interfaces. | |
28882 | (Access_Definition): Reject ALL on anonymous access types. | |
28883 | (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged | |
28884 | type derivation to occur at a deeper accessibility level than the | |
28885 | parent type. | |
28886 | For the case of derivation within a generic body however, disallow the | |
28887 | derivation if the derived type has an ancestor that is a formal type | |
28888 | declared in the formal part of an enclosing generic. | |
28889 | (Analyze_Object_Declaration): For protected objects, remove the check | |
28890 | that they cannot contain interrupt handlers if not declared at library | |
28891 | level. | |
28892 | (Add_Interface_Tag_Components): New subprogram to add the tag components | |
28893 | corresponding to all the abstract interface types implemented by a | |
28894 | record type or a derived record type. | |
28895 | (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type, | |
28896 | Derived_Type_Declaration, Find_Type_Name, Inherit_Components, | |
28897 | Process_Full_View, Record_Type_Declaration): Modified to give | |
28898 | support to abstract interface types | |
28899 | (Collect_Interfaces): New subprogram that collects the list of | |
28900 | interfaces that are not already implemented by the ancestors | |
28901 | (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately | |
28902 | when partial view has no discriminants and full view has defaults. | |
28903 | (Constrain_Access): Reject a constraint on a general access type | |
28904 | if the discriminants of the designated type have defaults. | |
28905 | (Access_Subprogram_Declaration): Associate the Itype node with the inner | |
28906 | full-type declaration or subprogram spec. This is required to handle | |
28907 | nested anonymous declarations. | |
28908 | (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type, | |
28909 | Derived_Type_Declaration, Find_Type_Name, Inherit_Components, | |
28910 | Process_Full_View, Record_Type_Declaration): Modified to give | |
28911 | support to abstract interface types | |
28912 | (Derive_Subprograms): Addition of a new formal to indicate if | |
28913 | we are in the case of an abstact-interface derivation | |
28914 | (Find_Type_Of_Subtype_Indic): Moved from the body of the package | |
28915 | to the specification because it is requied to analyze all the | |
28916 | identifiers found in a list of interfaces | |
28917 | ||
28918 | * debug.adb: Complete documentation of flag "-gnatdZ" | |
28919 | ||
28920 | * exp_ch3.adb: Implement config version of persistent_bss pragma | |
28921 | (Check_Stream_Attributes): Use Stream_Attribute_Available instead of | |
28922 | testing for TSS presence to properly enforce visibility rules. | |
28923 | (Freeze_Record_Type): Code cleanup. Modified to call the subprogram | |
28924 | Make_Abstract_Interfaces_DT to generate the secondary tables | |
28925 | associated with abstract interfaces. | |
28926 | (Build_Init_Procedure): Modified to initialize all the tags | |
28927 | corresponding. | |
28928 | (Component_Needs_Simple_Initialization): Similar to other tags, | |
28929 | interface tags do not need initialization. | |
28930 | (Freeze_Record_Type): Modified to give support to abstract interface | |
28931 | types. | |
28932 | (Expand_N_Object_Declaration): Do not generate an initialization for | |
28933 | a scalar temporary marked as internal. | |
28934 | ||
28935 | * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an | |
28936 | in-out parameter that is a component in an initialization procedure, | |
28937 | whose constraint might depend on discriminants, and that may be | |
28938 | misaligned because of packing or representation clauses. | |
28939 | (Is_Legal_Copy): New predicate to determine whether a possibly | |
28940 | misaligned in-out actual can actually be passed by copy/return. This | |
28941 | is an error in case the type is by_reference, and a warning if this is | |
28942 | the consequence of a DEC import pragma on the subprogram. | |
28943 | (Expand_Call, Freeze_Subprogram): Modified to give support to abstract | |
28944 | interface types | |
28945 | (Expand_Inlined_Call): Mark temporary generated for the return value as | |
28946 | internal, so that no useless scalar normalization is generated for it. | |
28947 | (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to | |
28948 | null procedure can always be inlined. | |
28949 | (Expand_N_Subprogram_Declaration): If this is the declaration of a null | |
28950 | procedure, generate an explicit empty body for it. | |
28951 | ||
28952 | * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram. | |
28953 | Given a type implementing an interface, returns the corresponding | |
28954 | access_disp_table value. | |
28955 | (Find_Interface_Tag): New subprogram. Given a type implementing an | |
28956 | interface, returns the record component containing the tag of the | |
28957 | interface. | |
28958 | (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the | |
28959 | previous ones that return the corresponding tag and access_disp_table | |
28960 | entities. | |
28961 | (Is_Predefined_Dispatching_Operation): Determines if a subprogram | |
28962 | is a predefined primitive operation. | |
28963 | (Expand_Subtype_From_Expr): If the expression is a selected component | |
28964 | within an initialization procedure, compute its actual subtype, because | |
28965 | the component may depend on the discriminants of the enclosing record. | |
28966 | ||
86aca445 | 28967 | * i-cpp.ads, i-cpp.adb: |
9bc610b6 | 28968 | This package has been left available for compatibility with previous |
28969 | versions of the frontend. As part of the new layout this is now a | |
28970 | dummy package that uses declarations available at a-tags.ads | |
28971 | ||
28972 | * par-ch3.adb (P_Identifier_Declarations): Give an error for use of | |
28973 | "constant access" and "aliased [constant] access" when not compiling | |
28974 | with -gnat05. | |
28975 | Suppress Ada 2005 keyword warning if -gnatwY used | |
28976 | (P_Identifier_Declarations): Add support for object declarations with | |
28977 | access definitions. | |
28978 | (Private_Extension_Declaration): Complete the documentation | |
28979 | (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list | |
28980 | attribute in case of private extension declaration | |
28981 | (P_Type_Declaration): Mark as "abstract" the type declarations | |
28982 | corresponding with protected, synchronized and task interfaces | |
28983 | (P_Declarative_Items): "not" and "overriding" are overriding indicators | |
28984 | for a subprogram or instance declaration. | |
28985 | ||
28986 | * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an | |
28987 | instantiation that is a dispatching operation has controlling access | |
28988 | parameters that are null excluding. | |
28989 | Save and restore Ada_Version_Explicit, for implementation of AI-362 | |
28990 | (Validate_Derived_Type_Instance): Add check for abstract interface | |
28991 | types. | |
28992 | (Analyze_Formal_Package): Establish Instantiation source for the copy of | |
28993 | the generic that is created to represent the formal package. | |
28994 | (Analyze_Package_Instantiation): Instantiate body immediately if the | |
28995 | package is a predefined unit that contains inlined subprograms, and | |
28996 | we are compiling for a Configurable_Run_Time. | |
28997 | (Instantiate_Formal_Subprogram): Indicate that null default subprogram | |
28998 | If the program has a null default, generate an empty body for it. | |
28999 | ||
29000 | * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update | |
29001 | error message condition, null procedures are correctly detected now. | |
29002 | (New_Overloaded_Entity): Bypass trivial overriding indicator check | |
29003 | for subprograms in the context of protected types. Instead, the | |
29004 | indicator is examined in Sem_Ch9 while analysing the subprogram | |
29005 | declaration. | |
29006 | (Check_Overriding_Indicator): Check consistency of overriding indicator | |
29007 | on subprogram stubs as well. | |
29008 | (Analyze_Subprogram_Declaration): Diagnose null procedures declared at | |
29009 | the library level. | |
29010 | (Analize_Subprogram_Specification): When analyzing a subprogram in which | |
29011 | the type of the first formal is a concurrent type, replace this type | |
29012 | by the corresponding record type. | |
29013 | (Analyze_Subprogram_Body): Undo the previous work. | |
29014 | (Analyze_Procedure_Call): If the call has the form Object.Op, the | |
29015 | analysis of the prefix ends up analyzing the call itself, after which | |
29016 | we are done. | |
29017 | (Has_Interface_Formals): New subprogram subsidiary to analyze | |
29018 | subprogram_specification that returns true if some non | |
29019 | class-wide interface subprogram is found | |
29020 | (New_Overloaded_Entity): Modified to give support to abstract | |
29021 | interface types | |
29022 | (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous | |
29023 | access to subprograms must be recursive. | |
29024 | (Is_Unchecked_Conversion): Improve the test that recognizes | |
29025 | instantiations of Unchecked_Conversion, and allows them in bodies that | |
29026 | are to be inlined by the front-end. When the body comes from an | |
29027 | instantiation, a reference to Unchecked_Conversion will be an | |
29028 | Expanded_Name, even though the body has not been analyzed yet. | |
29029 | Replace Is_Overriding and Not_Overriding in subprogram_indication with | |
29030 | Must_Override and Must_Not_Override, to better express intent of AI. | |
29031 | (Analyze_Subprogram_Body): If an overriding indicator is given, check | |
29032 | that it is consistent with the overrinding status of the subprogram | |
29033 | at this point. | |
29034 | (Analyze_Subprogram_Declaration): Indicate that a null procedure is | |
29035 | always inlined. | |
29036 | If the subprogram is a null procedure, indicate that it does not need | |
29037 | a completion. | |
29038 | ||
29039 | * sem_disp.adb (Check_Controlling_Type): Give support to entities | |
29040 | available through limited-with clauses. | |
29041 | (Check_Dispatching_Operation): A stub acts like a body, and therefore is | |
29042 | allowed as the last primitive of a tagged type if it has no previous | |
29043 | spec. | |
29044 | (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified | |
29045 | to give support to abstract interface types | |
29046 | ||
29047 | * sem_res.adb (Valid_Conversion): Perform an accessibility level check | |
29048 | in the case where the target type is an anonymous access type of an | |
29049 | object or component (that is, when Is_Local_Anonymous_Access is true). | |
29050 | Prevent the special checks for conversions of access discriminants in | |
29051 | the case where the discriminant belongs to a nonlimited type, since | |
29052 | such discriminants have their accessibility level defined in the same | |
29053 | way as a normal component of an anonymous access type. | |
29054 | (Resolve_Allocator): When an allocator's designated type is a class-wide | |
29055 | type, check that the accessibility level of type given in the | |
29056 | allocator's expression or subtype indication is not statically deeper | |
29057 | than the level of the allocator's access type. | |
29058 | (Check_Discriminant_Use): Diagnose discriminant given by an expanded | |
29059 | name in a discriminant constraint of a record component. | |
29060 | (Resolve_Explicit_Dereference): Do not check whether the type is | |
29061 | incomplete when the dereference is a use of an access discriminant in | |
29062 | an initialization procedure. | |
29063 | (Resolve_Type_Conversion): Handle conversions to abstract interface | |
29064 | types. | |
29065 | (Valid_Tagged_Conversion): The conversion of a tagged type to an | |
29066 | abstract interface type is always valid. | |
29067 | (Valid_Conversion): Modified to give support to abstract interface types | |
29068 | (Resolve_Actuals): Enable full error reporting on view conversions | |
29069 | between unrelated by_reference array types. | |
29070 | The rule for view conversions of arrays with aliased components is | |
29071 | weakened in Ada 2005. | |
29072 | Call to obsolescent subprogram is now considered to be a violation of | |
29073 | pragma Restrictions (No_Obsolescent_Features). | |
29074 | (Check_Direct_Boolean_Operator): If the boolean operation has been | |
29075 | constant-folded, there is nothing to check. | |
29076 | (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer | |
29077 | check on possible violation of restriction No_Direct_Boolean_Operators | |
29078 | until after expansion of operands, to prevent spurious errors when | |
29079 | operation is constant-folded. | |
29080 | ||
29081 | * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type, | |
29082 | Has_Compatible_Type): Modified to give support to abstract interface | |
29083 | types. | |
29084 | (Interface_Present_In_Ancestor): New function to theck if some ancestor | |
29085 | of a given type implements a given interface | |
29086 | ||
29087 | * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose | |
29088 | prefix is a parameterless function that returns an access_to_procedure. | |
29089 | (Transform_Object_Operation): Handle properly function calls of the | |
29090 | form Obj.Op (X), which prior to analysis appear as indexed components. | |
29091 | (Analyze_One_Call): Complete the error notification to help new Ada | |
29092 | 2005 users. | |
29093 | (Analyze_Allocator): For an allocator without an initial value, where | |
29094 | the designated type has a constrained partial view, a discriminant | |
29095 | constraint is illegal. | |
29096 | ||
29097 | 2005-06-14 Robert Dewar <dewar@adacore.com> | |
29098 | ||
29099 | * a-textio.adb (Set_Col): Fix two errors noticed recently, having to | |
29100 | do with treatment of Set_Col when positioned at end of line character. | |
29101 | ||
29102 | 2005-06-14 Robert Dewar <dewar@adacore.com> | |
29103 | ||
29104 | * atree.adb: (Elist*): Protect against uninitialized field | |
29105 | ||
29106 | 2005-06-14 Ed Schonberg <schonberg@adacore.com> | |
29107 | ||
29108 | * checks.adb (Install_Null_Excluding_Check): Do not generate checks | |
29109 | for an attribute reference that returns an access type. | |
29110 | (Apply_Discriminant_Check): No need for check if (designated) type has | |
29111 | constrained partial view. | |
29112 | ||
29113 | (Apply_Float_Conversion_Check): Generate a short-circuit expression for | |
29114 | both bound checks, rather than a conjunction. | |
29115 | (Insert_Valid_Check): If the expression is an actual that is an indexed | |
29116 | component of a bit-packed array, force expansion of the packed element | |
29117 | reference, because it is specifically inhibited elsewhere. | |
29118 | ||
29119 | 2005-06-14 Vincent Celier <celier@adacore.com> | |
29120 | ||
29121 | * clean.adb (Clean_Project): Correctly delete executable specified as | |
29122 | absolute path names. | |
29123 | ||
29124 | * make.adb (Gnatmake): Allow relative executable path names with | |
29125 | directory information even when project files are used. | |
29126 | (Change_To_Object_Directory): Fail gracefully when unable to change | |
29127 | current working directory to object directory of a project. | |
29128 | (Gnatmake): Remove exception handler that could no longer be exercized | |
29129 | (Compile_Sources.Compile): Use deep copies of arguments, as some of them | |
29130 | may be deallocated by Normalize_Arguments. | |
29131 | (Collect_Arguments): Eliminate empty arguments | |
29132 | ||
29133 | * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False, | |
29134 | and set to True when -U is used for GNAT PRETTY or GNAT METRIC. | |
29135 | (Check_Project): Return False when Project is No_Project. Return True | |
29136 | when All_Projects is True. | |
29137 | (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set | |
29138 | All_Projects to True. | |
29139 | Minor reformatting | |
29140 | ||
29141 | 2005-06-14 Ed Schonberg <schonberg@adacore.com> | |
29142 | Javier Miranda <miranda@adacore.com> | |
29143 | Thomas Quinot <quinot@adacore.com> | |
29144 | Robert Dewar <dewar@adacore.com> | |
29145 | Hristian Kirtchev <kirtchev@adacore.com> | |
29146 | Gary Dismukes <dismukes@adacore.com> | |
29147 | ||
29148 | * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on | |
29149 | anonymous access types, to indicate that the accessibility level of | |
29150 | the type is determined by that of the enclosing declaration. | |
29151 | (Has_Persistent_BSS): New flag | |
29152 | (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage | |
29153 | of this attribute with functions. | |
29154 | (Is_Primitive_Wrapper): Remove the barrier. | |
29155 | (Has_Specified_Stream_Input, Has_Specified_Stream_Output, | |
29156 | Has_Specified_Stream_Read, Has_Specified_Stream_Write): | |
29157 | New subprograms. | |
29158 | (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output, | |
29159 | Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write): | |
29160 | New subprograms. | |
29161 | (Is_Pure_Unit_Access_Type): New flag | |
29162 | (Abstract_Interfaces): Complete the assertion to cover all usages. | |
29163 | (Set_Is_Interface): Complete the assertion to cover all usages. | |
29164 | (Is_Primitive_Wrapper): New attribute. | |
29165 | (Is_Obsolescent): Now applies to all entities (though it is only set | |
29166 | for subprograms currently) | |
29167 | New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363, | |
29168 | which solves various problems concerning access subtypes. | |
29169 | (Has_Persistent_BSS): New flag | |
29170 | (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup. | |
29171 | Remove these subprograms because this attribute is currently | |
29172 | not used. | |
29173 | New entity flags: | |
29174 | Has_Specified_Stream_Input (Flag190) | |
29175 | Has_Specified_Stream_Output (Flag191) | |
29176 | Has_Specified_Stream_Read (Flag192) | |
29177 | Has_Specified_Stream_Write (Flag193) | |
29178 | Present in all type and subtype entities. Set for a given view if the | |
29179 | corresponding stream-oriented attribute has been defined by an | |
29180 | attribute definition clause. When such a clause occurs, a TSS is set | |
29181 | on the underlying full view; the flags are used to track visibility of | |
29182 | the attribute definition clause for partial or incomplete views. | |
29183 | (Is_Pure_Unit_Access_Type): New flag | |
29184 | Clarify use of Is_Internal. | |
29185 | (Is_Primitive_Wrapper): New attribute present in primitive subprograms | |
29186 | internally generated to wrap the invocation of tasks and protected | |
29187 | types that implement interfaces. | |
29188 | (Implementation_Base_Type): Documentation correction | |
29189 | (Is_Obsolescent): Now applies to all entities (though it is only set | |
29190 | for subprograms currently) | |
29191 | New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363, | |
29192 | which solves various problems concerning access subtypes. | |
29193 | ||
29194 | * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance | |
29195 | for examined parameters. Identify unequal parameter list lengths as | |
29196 | non-conformant parameters. | |
29197 | (Overriding_Possible): Do not check for "All" qualifier in declaration | |
29198 | of controlling access parameter, following prescription of AI-404. | |
29199 | (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms | |
29200 | that build the procedure body that wraps an entry invocation | |
29201 | (Build_Corresponding_Record, Build_Protected_Sub_Specification, | |
29202 | Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration, | |
29203 | Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to | |
29204 | give support to abstract interface types | |
29205 | ||
29206 | * freeze.adb (Freeze_Entity): Issue error message if | |
29207 | Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the | |
29208 | type has no storage pool (Ada 2005) AI-366. | |
29209 | Also modified to give support to abstract interface types | |
29210 | (Freeze_Subprogram): Issue an error for a dispatching subprogram with an | |
29211 | Inline_Always pragma. | |
29212 | ||
29213 | * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may | |
29214 | now begin an entry declaration. | |
29215 | (P_Entry_Or_Subprogram_With_Indicator): New procedure in | |
29216 | P_Protected_Operation_Declaration_Opt. Parse an entry declaration or | |
29217 | a subprogram declaration preceded by an overriding indicator. | |
29218 | (P_Protected_Operation_Declaration_Opt): Add case for parsing entry | |
29219 | declarations or subprogram declarations preceded by reserved words | |
29220 | "not" or "overriding". | |
29221 | (P_Entry_Declaration): Update comment. Parse and check overriding | |
29222 | indicator, set semantic flags of entry declarations. | |
29223 | (P_Task): New error message in case of private applied | |
29224 | to a task type declaration. | |
29225 | (P_Protected): New error message in case of private applied | |
29226 | to a task type declaration. | |
29227 | ||
29228 | * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case | |
29229 | in which the full view of a type implementing an interface is a | |
29230 | concurrent type. | |
29231 | (Has_Overriding_Pragma): Remove obsolete implementation of AI-218. | |
29232 | Declare_Inherited_Private_Subprograms): If an explicit operation | |
29233 | overrides an operation that is inherited in the private part, mark the | |
29234 | explicit one as overriding, to enable overriding indicator checks. | |
29235 | (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from | |
29236 | full view to partial view, to simplify handling in back-end. | |
29237 | ||
29238 | * sprint.adb: Print interface lists where needed: derived types, | |
29239 | protected types, task types. | |
29240 | output "is null" for null procedures. Part of implementation of | |
29241 | ||
29242 | * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366 | |
29243 | relaxation of rules for access types in pure, shared passive partitions. | |
29244 | ||
29245 | * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to | |
29246 | first read discriminants into temporary objects, performing checks on | |
29247 | the read values, then possibly performing discriminant checks on the | |
29248 | actual (if it is constrained), and only finally reading the components | |
29249 | into a constrained temporary object. | |
29250 | (Build_Elementary_Input_Call): Adjust the specific circuitry for the | |
29251 | case of reading discriminants of a mutable record type to recognize | |
29252 | the new form of the code generated by | |
29253 | Build_Mutable_Record_Read_Procedure. | |
29254 | ||
29255 | * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms | |
29256 | of a simple call to Make_TSS_Name. | |
29257 | (Make_TSS_Name_Local): Add the TSS name as the last thing in the name | |
29258 | buffer, in order for Is_TSS to work correctly on local TSS names. | |
29259 | ||
29260 | * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag | |
29261 | Is_Local_Anonymous_Access to check legaliy of attributes in the | |
29262 | context of access components and stand-alone access objects. | |
29263 | (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is | |
29264 | treated as available for a limited private type if there is an | |
29265 | attribute_definition_clause that applies to its full view, but not in | |
29266 | other cases where the attribute is available for the full view | |
29267 | (specifically, the sole fact that the full view is non-limited does not | |
29268 | make the attribute available for the partial view). | |
29269 | (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a | |
29270 | non-overloaded intrinsic subprogram. | |
29271 | (Check_Stream_Attribute): Reject an attribute reference for an | |
29272 | unavailable stream attribute even if the prefix is not a limited type | |
29273 | (case of a 'Input attribute reference for an abstract, non-classwide | |
29274 | type) | |
29275 | (Stream_Attribute_Available): New function to determine whether a stream | |
29276 | attribute is available at a place. | |
29277 | (Check_Attribute): Use Stream_Attribute_Available instead of just | |
29278 | testing for TSS presence on the implementation base type. | |
29279 | (Analyze_Attribute): Modified to give support to task interfaces. | |
29280 | (Analyze_Access_Attribute): Add error check for use of an Access (or | |
29281 | Unrestricted_Access) attribute with a subprogram marked as | |
29282 | Inline_Always. | |
29283 | (Analyze_Attribute, case Attribute_Address): Add error check for use of | |
29284 | an Address attribute with a subprogram marked as Inline_Always. | |
29285 | Update Eval_Attribute to handle new value of Width from AI-395 | |
29286 | ||
29287 | * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram. | |
29288 | (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write): | |
29289 | Factor common code across the stream-oriented attribute circcuits into | |
29290 | a new subprogram, Analyze_Stream_TSS_Definition. The new uniform | |
29291 | processing is functionally identical to the previous duplicated one, | |
29292 | except that an expression that denotes an abstract subprogram will now | |
29293 | be rejected, as mandated by AI-195 item 5. | |
29294 | ||
29295 | * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag | |
29296 | Is_Local_Anonymous_Access to apply accessibility checks to access | |
29297 | components and stand-alone access objects. | |
29298 | (Has_Discriminant_Dependent_Constraint): Moved to spec for use | |
29299 | elsewhere. | |
29300 | (Is_Potentially_Persistent_Type): New function | |
29301 | (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is | |
29302 | a heap-object whose type has a constrained partial view, the object is | |
29303 | unconstrained and the component may depend on a discriminant, making its | |
29304 | renaming illegal. | |
29305 | ||
29306 | * sinfo.ads, sinfo.adb | |
29307 | (Must_Not_Override): Flag applicable to N_Entry_Declaration. | |
29308 | (Must_Override): Flag applicable to N_Entry_Declaration. | |
29309 | Indicate that interface_list can appear in single task and single | |
29310 | protected declarations. | |
29311 | Replace Is_Overriding and Not_Overriding with Must_Override and | |
29312 | Must_Not_Override, to better express intent of AI. | |
29313 | Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence | |
29314 | of an overriding indicator in a subprogram or instance. | |
29315 | Ada 2005 (AI-248) Null_Present can appear in a procedure specification. | |
29316 | Add the overriding indicator [[not] overriding] construct to the | |
29317 | following grammar productions: | |
29318 | ENTRY_DECLARATION | |
29319 | GENERIC_INSTANTIATION | |
29320 | SUBPROGRAM_SPECIFICATION | |
29321 | ||
29322 | * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body | |
29323 | can start with an overriding indicator. | |
29324 | ||
29325 | * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set | |
29326 | flags accordingly on subrogram specifications or instances. | |
29327 | ||
86aca445 | 29328 | * sem_ch8.adb: |
9bc610b6 | 29329 | (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the |
29330 | overriding_indicator, if present, is consistent with status of spec. | |
29331 | Improve error message for null-excluding checks on controlling access | |
29332 | parameters. | |
29333 | (Check_In_Previous_With_Clause): Protect the frontend against | |
29334 | previously reported critical errors in the context clauses. | |
29335 | Save and restore Ada_Version_Explicit, for implementation of AI-362 | |
29336 | (Analyze_Subprogram_Renaming): If the new entity is a dispatching | |
29337 | operation verify that controlling formals of the renamed entity that | |
29338 | are access parameters are explicitly non-null. | |
29339 | (Find_Expanded_Name): Improve error message when prefix is an illegal | |
29340 | reference to a private child unit. | |
29341 | ||
29342 | * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb, | |
86aca445 | 29343 | s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb: |
9bc610b6 | 29344 | Rewrite to correspond to new wide character names in AI-395 |
29345 | ||
d4c15061 | 29346 | * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null |
29347 | default procedures. | |
9bc610b6 | 29348 | |
29349 | 2005-06-14 Ed Schonberg <schonberg@adacore.com> | |
29350 | Robert Dewar <dewar@adacore.com> | |
29351 | ||
29352 | * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user | |
29353 | code, not on the bodies of predefined operations, to cut down on | |
29354 | spurious noise. | |
29355 | ||
29356 | 2005-06-14 Ed Schonberg <schonberg@adacore.com> | |
29357 | ||
29358 | * exp_aggr.adb (Aggr_Size_OK): An array with no components can always | |
29359 | be expanded in place. The size computation does not require a | |
29360 | subtraction, which would raise an exception on a compiler built with | |
29361 | assertions when the upper bound is Integer'first. | |
29362 | (Flatten): For an array of composite components, take into account the | |
29363 | size of the components to determine whether it is safe to expand the | |
29364 | array into a purely positional representation. | |
29365 | ||
29366 | 2005-06-14 Thomas Quinot <quinot@adacore.com> | |
29367 | ||
29368 | * exp_ch2.adb (Param_Entity): Take the case of an expanded_name | |
29369 | denoting a formal parameter into account. | |
29370 | ||
29371 | 2005-06-14 Ed Schonberg <schonberg@adacore.com> | |
29372 | ||
29373 | * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within | |
29374 | the entry_call alternative of a conditional entry call, wrap the | |
29375 | conditional entry call itself. | |
29376 | ||
29377 | 2005-06-14 Nicolas Setton <setton@adacore.com> | |
29378 | Ed Schonberg <schonberg@adacore.com> | |
29379 | ||
29380 | * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of | |
29381 | the "simple_choice" member in a variant record, in accordance with the | |
29382 | description in the package spec: the information output for a constant | |
29383 | should be "S number", not "SS number". | |
29384 | (Get_Encoded_Name): Return at once if not generating code. Avoids name | |
29385 | overflow problem when compiling with -gnatct, for ASIS/gnatmetrics. | |
29386 | ||
29387 | 2005-06-14 Thomas Quinot <quinot@adacore.com> | |
29388 | ||
29389 | * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an | |
29390 | RACW without any primitives, do not generate the if statement for | |
29391 | dispatching by name in the PolyORB/DSA case, as it would be malformed | |
29392 | (it would have an Elsif_Parts list that is not No_List, but with a | |
29393 | length of 0). | |
29394 | ||
29395 | 2005-06-14 Robert Dewar <dewar@adacore.com> | |
29396 | ||
29397 | * exp_intr.adb, par-ch5.adb: Minor fix to error message text | |
29398 | ||
29399 | 2005-06-14 Jose Ruiz <ruiz@adacore.com> | |
29400 | ||
29401 | * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi | |
29402 | can determine whether pragma Suppress_Exception_Locations is in effect. | |
29403 | ||
29404 | * utils2.c (build_call_raise): Do not pass the file name to the | |
29405 | exception handler if pragma Suppress_Exception_Locations is in effect. | |
29406 | (build_allocator): Add and process arg IGNORE_INIT_TYPE. | |
29407 | ||
29408 | 2005-06-14 Emmanuel Briot <briot@adacore.com> | |
29409 | ||
29410 | * g-debpoo.adb (Deallocate, Dereference): Improve output. | |
29411 | ||
29412 | 2005-06-14 Nicolas Roche <roche@adacore.com> | |
29413 | ||
29414 | * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal | |
29415 | to "" | |
29416 | (Next_Level): Fix minor bug in handling of ../dir case | |
29417 | (Read): Add dir separator to Directory name so that "" is understood as | |
29418 | "/" | |
29419 | ||
29420 | 2005-06-14 Pascal Obry <obry@adacore.com> | |
29421 | ||
29422 | * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after | |
29423 | releasing the items. | |
29424 | ||
29425 | 2005-06-14 Vincent Celier <celier@adacore.com> | |
29426 | Cyrille Comar <comar@adacore.com> | |
29427 | ||
29428 | * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions | |
29429 | with output file descriptor and with output file name. | |
29430 | (Dup, Dup2): Now global procedures as they are used by two subprograms | |
29431 | (Copy): Allocate the 200K buffer on the heap rather than on the stack. | |
29432 | ||
29433 | 2005-06-14 Thomas Quinot <quinot@adacore.com> | |
29434 | ||
29435 | PR ada/6717 | |
9bc610b6 | 29436 | * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones |
29437 | broadcast address. | |
29438 | (Create_Selector): Bind listening socket used to create the signalling | |
29439 | socket pair to 127.0.0.1 to limit the scope for 'theft' of connection. | |
29440 | Set listen backlog to 1 to ensure that we detect socket theft by a | |
29441 | failure of our own connect(2) call. | |
29442 | (Check_Selector): Improve documentation of the selector mechanism. | |
29443 | (Broadcast_Inet_Addr): New constant. | |
29444 | ||
29445 | 2005-06-14 Gary Dismukes <dismukes@adacore.com> | |
29446 | ||
29447 | * layout.adb (Discrimify): Remove resetting of Vtype to the underlying | |
29448 | type which turns out to be an incomplete and incorrect fix. | |
29449 | (Layout_Array_Type): Use Underlying_Type when checking whether the scope | |
29450 | of the type is declared in a record (for determination of insertion | |
29451 | type). | |
29452 | (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of | |
29453 | a private type and ensure that the primary entity is used for the type | |
29454 | of the newly created function's V formal by taking the Etype of the | |
29455 | view. | |
29456 | ||
29457 | 2005-06-14 Javier Miranda <miranda@adacore.com> | |
29458 | Jose Ruiz <ruiz@adacore.com> | |
29459 | Robert Dewar <dewar@adacore.com> | |
29460 | Ed Schonberg <schonberg@adacore.com> | |
29461 | ||
29462 | * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter | |
29463 | that indicates if we are parsing a compilation unit found in a | |
29464 | limited-with clause. | |
29465 | It is use to avoid the circularity check. | |
29466 | ||
29467 | * par.ads, par.adb (Par): Addition of a new parameter to indicate if | |
29468 | we are parsing a compilation unit found in a limited-with clause. This | |
29469 | is use to avoid the circularity check. | |
29470 | ||
29471 | * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the | |
29472 | unit as a consequence of parsing a limited-with clause. This is used | |
29473 | to avoid the circularity check. | |
29474 | ||
29475 | * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used | |
29476 | (Analyze_Context): Limited-with clauses are now allowed | |
29477 | in more compilation units. | |
29478 | (Analyze_Subunit_Context, Check_Parent): Protect the frontend | |
29479 | againts previously reported critical errors in context clauses | |
29480 | (Install_Limited_Withed_Unit): Code cleanup plus static detection | |
29481 | of two further errors: renamed subprograms and renamed packages | |
29482 | are not allowed in limited with clauses. | |
29483 | (Install_Siblings): Do not install private_with_clauses on the package | |
29484 | declaration for a non-private child unit. | |
29485 | (Re_Install_Parents): When a parent of the subunit is reinstalled, | |
29486 | reset visibility of child units properly. | |
29487 | (Install_Withed_Unit): When a child unit appears in a with_clause of its | |
29488 | parent, it is immediately visible. | |
29489 | ||
29490 | 2005-06-14 Ed Schonberg <schonberg@adacore.com> | |
29491 | Emmanuel Briot <briot@adacore.com> | |
29492 | ||
29493 | * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity | |
29494 | declared within an inlined body as referenced, to prevent spurious | |
29495 | warnings. | |
29496 | (Output_One_Ref): If an entity renames an array component, indicate in | |
29497 | the ALI file that this aliases (renames) the array. Capture as well | |
29498 | function renamings that rename predefined operations. | |
29499 | Add information about generic parent for package and subprogram | |
29500 | instances. | |
29501 | (Get_Type_Reference): For a subtype that is the renaming of an actual in | |
29502 | an instantiation, use the first_subtype to ensure that we don't generate | |
29503 | cross-reference information for internal types. | |
29504 | For objects and parameters of a generic private type, retain the '*' | |
29505 | indicator to distinguish such an entity from its type. | |
29506 | ||
d4c15061 | 29507 | * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line, |
29508 | to store information about instantiated entities. | |
9bc610b6 | 29509 | |
d4c15061 | 29510 | * ali.adb (Scan_ALI): Add support for parsing the reference to the |
29511 | generic parent | |
9bc610b6 | 29512 | |
d4c15061 | 29513 | * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram |
29514 | (Parse_Identifier_Info, Parse_Token): Add support for the generic parent | |
29515 | information. | |
9bc610b6 | 29516 | |
29517 | 2005-06-10 Doug Rupp <rupp@adacore.com> | |
29518 | Arnaud Charlet <charlet@adacore.com> | |
29519 | Olivier Hainque <hainque@adacore.com> | |
29520 | Jose Ruiz <ruiz@adacore.com> | |
29521 | ||
29522 | * Make-lang.in: Add initialize.o when needed. | |
29523 | Remove obsolete references to RT_FLAGS. | |
29524 | Add missing dependencies for sdefault.o | |
29525 | ||
29526 | * initialize.c: New file. | |
29527 | ||
29528 | * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS. | |
29529 | [VMS] cond_signal_table: Fix problem in declaration. | |
29530 | [VMS] __gnat_error_handler: rewrite. | |
29531 | Move all __gnat_initialize() routines to initialize.c | |
29532 | Specialize the former "hpux" section to "hppa hpux", as this is what the | |
29533 | section really is here for and we now have other hpux ports that need | |
29534 | different contents. | |
29535 | (__gnat_adjust_context_for_raise) i386-linux: First version of this | |
29536 | function for this target. Adjust PC by one in the machine context. This | |
29537 | adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but | |
29538 | it is more reliable to do that in the signal handler itself. | |
29539 | (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction | |
29540 | flags, so that the handler is passed the context structure to adjust | |
29541 | prior to the raise. | |
29542 | (__gnat_error_handler) i386-linux: Adjust the signature to match what a | |
29543 | SA_SIGINFO sigaction should look like. Call | |
29544 | __gnat_adjust_context_for_raise before actually raising. Cleanup unused | |
29545 | Machine_State_Operations stuff. | |
29546 | Add conditional code so that the x86_64 is also supported. | |
29547 | ||
29548 | 2005-06-14 Pascal Obry <obry@adacore.com> | |
29549 | ||
29550 | * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given | |
29551 | the library name. | |
29552 | ||
29553 | 2005-06-14 Robert Dewar <dewar@adacore.com> | |
29554 | ||
29555 | * opt.ads, opt.adb: New flags for persistent_bss mode | |
29556 | Add Ada_Version_Explicit, for implementation of AI-362 | |
29557 | Add Assertions_Enabled_Config and associated handling | |
29558 | Needed since setting can be changed with Assertion_Policy pragma | |
29559 | Add new flag Warn_On_Ada_2005_Compatibility | |
29560 | ||
29561 | * switch-c.adb: Recognize -gnatwy/Y | |
29562 | Set Ada_Version_Explicit, for implementation of AI-362 | |
29563 | The -gnatg switch now includes -gnatyu | |
29564 | ||
29565 | * usage.adb: Add -gnatwy/Y | |
29566 | Remove wrong asterisk on -gnatwX line | |
29567 | Add line for -gnatyu switch | |
29568 | ||
29569 | 2005-06-14 Vincent Celier <celier@adacore.com> | |
29570 | ||
29571 | * osint.adb (Add_Default_Search_Dirs): Put source and object | |
29572 | directories of project files before directories coming from | |
29573 | ADA_INCLUDE_PATH and ADA_OBJECTS_PATH. | |
29574 | ||
29575 | 2005-06-14 Robert Dewar <dewar@adacore.com> | |
29576 | ||
29577 | PR ada/15613 | |
9bc610b6 | 29578 | * par-ch2.adb (Scan_Pragma_Argument): New procedure |
29579 | (P_Pragma): Implement RM 2.8(4) check for no pos args after named args | |
29580 | ||
29581 | 2005-06-14 Vincent Celier <celier@adacore.com> | |
29582 | ||
29583 | * prep.adb (Preprocess): Ignore error when scanning the first token of | |
29584 | a line. | |
29585 | ||
29586 | 2005-06-14 Vincent Celier <celier@adacore.com> | |
29587 | ||
29588 | * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp" | |
29589 | (Check_Stand_Alone_Library): If the specified reference symbol file does | |
29590 | not exist, only issue a warning when the symbol policy is not | |
29591 | Controlled. And, when symbol policy is Compliant, set the symbol | |
29592 | policy to Autonomous. | |
29593 | ||
29594 | 2005-06-14 Vincent Celier <celier@adacore.com> | |
29595 | ||
29596 | * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List | |
29597 | when the project file in a with clause is not the last one, that is the | |
29598 | project file name is followed by a comma. | |
29599 | * prj-pp.adb: (First_With_In_List): New Boolean global variable | |
29600 | (Print): Issue list of project files separated by commas in with clauses | |
29601 | according to the values returned by Is_Not_Last_In_List. | |
29602 | * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function | |
29603 | (Set_Is_Not_Last_In_List): New procedure | |
29604 | ||
29605 | 2005-06-14 Eric Botcazou <ebotcazou@adacore.com> | |
29606 | ||
29607 | * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer. | |
29608 | ||
29609 | 2005-06-14 Robert Dewar <dewar@adacore.com> | |
29610 | ||
29611 | * scng.adb: Add call to new Check_EOF routine | |
29612 | (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24 | |
29613 | Add some comments regarding wide character handling | |
29614 | ||
29615 | * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu | |
29616 | ||
29617 | * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu | |
29618 | ||
29619 | * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format | |
29620 | characters are now considered graphic characters and hence yield false | |
29621 | in this call. | |
29622 | ||
d4c15061 | 29623 | * nmake.adt: Modify header so that xnmake does not generate output |
29624 | files with multiple blank lines. | |
9bc610b6 | 29625 | |
d4c15061 | 29626 | * treeprs.adt: Remove a blank line so that output from xtreeprs does |
29627 | not have an extra blank line | |
9bc610b6 | 29628 | |
29629 | 2005-06-14 Gary Dismukes <dismukes@adacore.com> | |
29630 | ||
29631 | * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the | |
29632 | expression when the component type is an anonymous access type to | |
29633 | ensure that appropriate accessibility checks are done. | |
29634 | ||
29635 | * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the | |
29636 | expression of an assignment when the target object is of an anonymous | |
29637 | access type. This ensures that required accessibility checks are done. | |
29638 | (One_Bound): Move the check for type Universal_Integer to | |
29639 | Process_Bounds. | |
29640 | (Process_Bounds): Check whether the type of the preanalyzed range is | |
29641 | Universal_Integer, and in that case set Typ to Integer_Type prior | |
29642 | to setting the type of the original range and the calls to One_Bound. | |
29643 | ||
29644 | 2005-06-14 Ed Schonberg <schonberg@adacore.com> | |
29645 | ||
29646 | * sem_case.adb (Expand_Others_Choice): Improve warning. | |
29647 | ||
29648 | 2005-06-14 Ed Schonberg <schonberg@adacore.com> | |
29649 | ||
29650 | * sem_eval.adb (Subtypes_Statically_Match): Use discriminant | |
29651 | constraint of full view if present, when other type is discriminated. | |
29652 | (Eval_Relational_Op): Recognize tests of pointer values against Null, | |
29653 | when the pointer is known to be non-null, and emit appropriate warning. | |
29654 | ||
29655 | 2005-06-14 Robert Dewar <dewar@adacore.com> | |
29656 | Ed Schonberg <schonberg@adacore.com> | |
29657 | ||
29658 | PR ada/10671 | |
9bc610b6 | 29659 | * sem_prag.adb: Implement pragma Persistent_BSS |
29660 | Remove obsolete pragma Persistent_Data, Persistent_Object | |
29661 | Set Ada_Version_Explicit, for implementation of AI-362 | |
29662 | Test Ada_Version_Explicit for Preelaborate_05 and Pure_05 | |
29663 | Add processing for pragma Pure_05 and Preelaborate_05 | |
29664 | Add processing for Assertion_Policy pragma | |
29665 | Add pragma identifiers for Assert | |
29666 | (Analyze_Pragma, case Assert): Check number of arguments | |
29667 | (Process_Inline): Additional guard against an illegal program, where the | |
29668 | argument of the pragma is undefined, and warnings on redundant | |
29669 | constructs are enabled. | |
29670 | (Analyze_Pragma, case Obsolescent): Allow an optional second argument | |
29671 | Ada_05 to this pragma, specifying that the pragma is only active in | |
29672 | Ada_05 mode. | |
29673 | (Check_Arg_Order): New procedure | |
29674 | Add appropriate calls to this procedure throughout | |
29675 | Also throughout, check entity name before doing any other checks | |
29676 | ||
29677 | * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS | |
29678 | Remove obsolete pragma Persistent_Data, Persistent_Object | |
29679 | Add entries for pragma Pure_05 and Preelaborate_05 | |
29680 | Add entries for Assertion_Policy pragma and associated names | |
29681 | Add some names for pragma argument processing | |
29682 | ||
29683 | * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function | |
29684 | ||
29685 | 2005-06-14 Ed Schonberg <schonberg@adacore.com> | |
29686 | ||
29687 | * sem_warn.adb (Warn_On_Known_Condition): If the constant expression | |
29688 | appears within a negation (either from source or as a rewriting of | |
29689 | inequality) adjust text of warning accordingly. | |
29690 | ||
29691 | 2005-06-14 Thomas Quinot <quinot@adacore.com> | |
29692 | ||
29693 | * s-strxdr.adb: Follow AI95-00132 | |
29694 | ||
29695 | 2005-06-14 Arnaud Charlet <charlet@adacore.com> | |
29696 | ||
29697 | * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition. | |
29698 | ||
29699 | 2005-06-14 Arnaud Charlet <charlet@adacore.com> | |
29700 | Jose Ruiz <ruiz@adacore.com> | |
29701 | ||
29702 | * s-tposen.adb, s-tpobop.adb | |
29703 | (Exceptional_Complete_Rendezvous): Save the occurrence and not only | |
29704 | the exception id. | |
29705 | (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that | |
29706 | there is no violation of the Max_Entry_Queue_Length restriction (if it | |
29707 | has been set); Program_Error is raised otherwise. | |
29708 | (Requeue_Call): Before requeuing the task on the target entry queue we | |
29709 | check that there is no violation of the Max_Entry_Queue_Length | |
29710 | restriction (if it has been set); Program_Error is raised otherwise. | |
29711 | ||
29712 | 2005-06-14 Robert Dewar <dewar@adacore.com> | |
29713 | ||
29714 | * styleg.adb: Fix several remaining problems in -gnatyu switch | |
29715 | Blank line count not reset at start | |
29716 | Scanning outside source buffer in some cases | |
29717 | Confusing message for blanks at end of file | |
29718 | Non-empty blank lines not recognized | |
29719 | ||
29720 | * nmake.adt: Modify header so that xnmake does not generate output | |
29721 | files with multiple blank lines. | |
29722 | ||
d4c15061 | 29723 | * treeprs.adt: Remove a blank line so that output from xtreeprs does |
29724 | not have an extra blank line | |
9bc610b6 | 29725 | |
29726 | 2005-06-14 Sergey Rybin <rybin@adacore.com> | |
29727 | ||
29728 | * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message. | |
29729 | ||
29730 | 2005-06-14 Doug Rupp <rupp@adacore.com> | |
29731 | Vincent Celier <celier@adacore.com> | |
29732 | ||
29733 | * vms_conv.ads, vms_conv.adb: Remove "Library" command. | |
29734 | Update copyright. | |
29735 | ||
29736 | * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY | |
29737 | Remove "Library" command. | |
29738 | Change keyword for style check -gnatyd from NOCRLF to | |
29739 | DOS_LINE_ENDINGS. | |
29740 | Remove useless second style check keyword NONE | |
29741 | Remove help documentation for inexistent style check keyword | |
29742 | RM_COLUMN_LAYOUT. | |
29743 | Add help documentation for style check keywords DOS_LINE_ENDINGS, | |
29744 | UNNECESSARY_BLANK_LINES and XTRA_PARENS | |
29745 | Add UNNECESSARY_BLANK_LINES for -gnatyu | |
29746 | Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC | |
29747 | ||
d4c15061 | 29748 | * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY |
9bc610b6 | 29749 | |
29750 | 2005-06-14 Vincent Celier <celier@adacore.com> | |
29751 | ||
29752 | * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if | |
29753 | gprmake was invoked with -d. | |
29754 | (Compile_Sources): If -d was used, output the "completed ..." message | |
29755 | for each compilation. | |
29756 | (Scan_Arg): Recognize new switch -d | |
29757 | When -c and at least one main is specified, set | |
29758 | Unique_Compile to True to guarantee that no other sources will be | |
29759 | compiled. | |
29760 | ||
29761 | 2005-06-14 Matthew Heaney <heaney@adacore.com> | |
29762 | ||
29763 | * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb] | |
29764 | * a-swuwha.ads, a-swuwha.adb: New files | |
29765 | ||
29766 | * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb] | |
29767 | * a-szuzha.ads, a-szuzha.adb: New files. | |
29768 | ||
29769 | * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads, | |
86aca445 | 29770 | a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads, |
29771 | a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads, | |
29772 | a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, | |
29773 | a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads, | |
9bc610b6 | 29774 | a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, |
86aca445 | 29775 | a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, |
9bc610b6 | 29776 | a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads, |
29777 | a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb, | |
29778 | a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the | |
29779 | Ada 2005 RM. | |
29780 | ||
29781 | 2005-06-10 Eric Botcazou <ebotcazou@adacore.com> | |
29782 | Olivier Hainque <hainque@adacore.com> | |
29783 | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
29784 | Pascal Obry <obry@adacore.com> | |
29785 | ||
29786 | * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE. | |
29787 | ||
29788 | * trans.c (call_to_gnu): Issue a warning for users of Starlet when | |
29789 | making a temporary around a procedure call because of non-addressable | |
29790 | actual parameter. | |
29791 | (process_freeze_entity): If entity is a private type, capture size | |
29792 | information that may have been computed for the full view. | |
29793 | (tree_transform, case N_Allocator): If have initializing expression, | |
29794 | check type for Has_Constrained_Partial_View and pass that to | |
29795 | build_allocator. | |
29796 | (tree_transform, case N_Return_Statement): Pass extra arg to | |
29797 | build_allocator. | |
29798 | ||
29799 | * decl.c (annotate_value): Remove early return if -gnatR is not | |
29800 | specified. | |
29801 | (gnat_to_gnu_field): Don't make a packable type for a component clause | |
29802 | if the position is byte aligned, the field is aliased, and the clause | |
29803 | size isn't a multiple of the packable alignment. It serves no useful | |
29804 | purpose packing-wise and would be rejected later on. | |
29805 | (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator. | |
29806 | ||
29807 | PR ada/20515 | |
29808 | (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the | |
29809 | context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES | |
29810 | instead. | |
29811 | (create_concat_name): Idem. | |
29812 | ||
29813 | 2005-06-10 Robert Dewar <dewar@adacore.com> | |
29814 | Eric Botcazou <ebotcazou@adacore.com> | |
29815 | Ben Brosgol <brosgol@adacore.com> | |
29816 | Cyrille Comar <comar@adacore.com> | |
29817 | Sergey Rybin <rybin@adacore.com> | |
29818 | Pascal Obry <obry@adacore.com> | |
29819 | ||
29820 | * gnat_rm.texi: Add documentation for pragma Persistent_BSS | |
29821 | Document second argument (Ada_05) of pragma Obsolescent | |
29822 | Add note that call to subprogram marked with pragma Obsolescent | |
29823 | is now considered to be a violation of program Restrictions | |
29824 | (No_Obsolescent_Features). | |
29825 | (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear | |
29826 | that only machine-dependent attributes are supported. | |
29827 | ||
86aca445 | 29828 | * gnat_ugn.texi: |
9bc610b6 | 29829 | Commented out menu lines and empty section for gnatclean examples |
29830 | Document -gnatwy/Y | |
29831 | Fix some over long lines | |
29832 | Clarify and enhance documentation of ADA_PROJECT_PATH. | |
29833 | Rework section 2.11.2(3) about linking with a non-GNU compiler. | |
29834 | Mention new switch -fcallgraph-info. | |
29835 | Mention new switch -fstack-usage. | |
29836 | For gnatpp, replace '-notab' with '-N' and add this option to Index | |
29837 | Corrected VMS example. | |
29838 | VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF | |
29839 | Minor reformatting | |
29840 | Add documentation for -gnatyu switch (unnecessary blank lines) | |
29841 | Document new switch -U for GNAT PRETTY and GNAT METRIC | |
29842 | Add note about Stdcall being handled as C convention on non Windows OS. | |
29843 | Remove some junk typo in description of gnatbind -S switch | |
29844 | Remove reference to Extensions_Allowed pragma | |
29845 | Document the new order of the directories to be searched (source and | |
29846 | object directories of project files before directories in ADA_*_PATH | |
29847 | environment variables. | |
29848 | ||
d4c15061 | 29849 | * g-trasym.ads: Document that IRIX is supported |
9bc610b6 | 29850 | |
29851 | 2005-06-10 Arnaud Charlet <charlet@adacore.com> | |
29852 | ||
29853 | * Makefile.in: Add initialize.o when needed. | |
29854 | Adapt to new VMS package body Symbols and subunits | |
29855 | No specialized version of a-sytaco is needed for VxWorks. | |
29856 | ||
29857 | * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files. | |
29858 | * a-zchara.ads, a-widcha.ads: New files. | |
29859 | ||
29860 | * system-hpux-ia64.ads: New file. | |
29861 | ||
29862 | * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which | |
29863 | is imported from the VxWorks kernel. | |
29864 | ||
29865 | 2005-06-14 Robert Dewar <dewar@adacore.com> | |
29866 | ||
29867 | * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb, | |
29868 | fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads, | |
29869 | a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads, | |
29870 | s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb, | |
29871 | a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb, | |
29872 | g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads, | |
29873 | i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb, | |
29874 | namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb, | |
29875 | sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads, | |
29876 | s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb, | |
29877 | s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb, | |
29878 | xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting. | |
29879 | ||
29880 | 2005-06-14 Thomas Quinot <quinot@adacore.com> | |
29881 | ||
29882 | * xeinfo.adb: Fix typo in comment | |
29883 | ||
29884 | 2005-06-14 Javier Miranda <miranda@adacore.com> | |
29885 | ||
29886 | * repinfo.ads: Fix typo in comment | |
29887 | ||
29888 | 2005-06-14 Gary Dismukes <dismukes@adacore.com> | |
29889 | ||
29890 | * s-finimp.adb (Parent_Tag): Delete this imported function (function | |
29891 | Parent_Tag is now in the visible part of Ada.Tags). | |
29892 | (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of | |
29893 | using imported function. | |
29894 | ||
29895 | 2005-06-14 Bernard Banner <banner@adacore.com> | |
29896 | ||
29897 | * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should | |
29898 | also apply for handling support for VxSim 653. | |
29899 | ||
29900 | 2005-06-14 Eric Botcazou <ebotcazou@adacore.com> | |
29901 | ||
29902 | * xsnames.adb: Add automatic generation of snames.h. | |
29903 | ||
29904 | 2005-06-14 Thomas Quinot <quinot@adacore.com> | |
29905 | ||
29906 | * gen-soccon.c: Add IP_MULTICAST_IF constant | |
29907 | Minor reformatting and adjustments to prevent warnings. | |
29908 | ||
29909 | 2005-06-14 Pascal Obry <obry@adacore.com> | |
29910 | ||
29911 | * seh_init.c: Do not include <sys/stat.h>. This is not needed. | |
29912 | ||
1ff81453 | 29913 | 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu> |
29914 | ||
29915 | * trans.c (gnat_gimplify_expr): Call | |
29916 | recompute_tree_invarant_for_addr_expr when we change | |
29917 | the operand of the ADDR_EXPR. | |
29918 | ||
690abe5d | 29919 | 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
29920 | ||
29921 | * misc.c: Don't include errors.h. | |
29922 | ||
6c9b7859 | 29923 | 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
29924 | ||
29925 | * raise.c (db): Add ATTRIBUTE_PRINTF_2. | |
29926 | ||
2e4ea0c9 | 29927 | 2005-05-29 Kazu Hirata <kazu@cs.umass.edu> |
29928 | ||
29929 | * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix | |
29930 | comment typos. | |
29931 | * gnat_rm.texi, gnat_ugn.texi: Fix typos. | |
29932 | ||
8a67bb47 | 29933 | 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org> |
b047d60e | 29934 | |
29935 | PR ada/20270 | |
29936 | * Makefile.in: Make TGT_LIB behave correctly. | |
29937 | ||
c3ceba8e | 29938 | 2005-04-23 DJ Delorie <dj@redhat.com> |
29939 | ||
29940 | * misc.c: Adjust warning() callers. | |
29941 | ||
8a67bb47 | 29942 | 2005-04-16 Laurent Guerby <laurent@guerby.net> |
8eb01008 | 29943 | |
d4c15061 | 29944 | PR ada/18847 |
29945 | * a-nudira.adb (Value): Check for valid string. | |
29946 | * a-nuflra.adb (Value): Likewise. | |
8eb01008 | 29947 | |
f31c21a9 | 29948 | 2005-04-11 Richard Sandiford <rsandifo@redhat.com> |
29949 | ||
29950 | * lang.opt: Refer to the GCC internals documentation instead of c.opt. | |
29951 | ||
3cc2671a | 29952 | 2005-04-10 Kazu Hirata <kazu@cs.umass.edu> |
29953 | ||
29954 | * adaint.c, init.c, tracebak.c: Fix comment typos. | |
29955 | * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos. | |
29956 | ||
8a67bb47 | 29957 | 2005-04-07 Laurent Guerby <laurent@guerby.net> |
5698cf5c | 29958 | John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
29959 | ||
29960 | * Makefile.in: Add make ifeq define for hppa linux tasking support. | |
29961 | * system-hpux.ads: Define Signed_Zeros to be True. | |
29962 | * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files. | |
29963 | ||
5e947a95 | 29964 | 2005-04-01 Kazu Hirata <kazu@cs.umass.edu> |
29965 | ||
29966 | * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c, | |
29967 | raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment | |
29968 | typos. | |
29969 | ||
a6d108f6 | 29970 | 2005-03-30 Tom Tromey <tromey@redhat.com> |
29971 | ||
29972 | * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE. | |
29973 | ||
de10c095 | 29974 | 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com> |
29975 | ||
29976 | * adaint.c (_gnat_set_close_on_exec): Mark parameters unused. | |
29977 | ||
1ccf835c | 29978 | 2005-03-29 Robert Dewar <dewar@adacore.com> |
29979 | ||
29980 | * sem_res.adb (Resolve_Real_Literal): Generate warning if static | |
29981 | fixed-point expression has value that is not a multiple of the Small | |
29982 | value. | |
29983 | ||
29984 | * opt.ads (Warn_On_Bad_Fixed_Value): New flag | |
29985 | ||
29986 | * s-taprop-tru64.adb (RT_Resolution): Return an integer number of | |
29987 | nanoseconds. | |
29988 | ||
29989 | * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB | |
29990 | ||
29991 | 2005-03-29 Vincent Celier <celier@adacore.com> | |
29992 | ||
29993 | * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb | |
29994 | (Build_Dynamic_Library.Version_String): Return the empty string when | |
29995 | Lib_Version is empty or when the symbol policy is not Autonomous. | |
29996 | ||
29997 | * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when | |
29998 | a symbol is not in the reference symbol file, increase the Major ID | |
29999 | and set the Minor ID to 0. | |
30000 | Use gsmatch=lequal instead of gsmatch=equal | |
30001 | ||
30002 | 2005-03-29 Doug Rupp <rupp@adacore.com> | |
30003 | ||
30004 | * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical | |
30005 | name and translate. | |
30006 | ||
30007 | 2005-03-29 Javier Miranda <miranda@adacore.com> | |
30008 | ||
30009 | * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed. | |
30010 | (Inherit_DT): The first formal has been redefined as a Tag. | |
30011 | This allows us the removal of the subprogram Get_TSD. | |
30012 | (TSD): Replace the call to Get_TSD by the actual code. | |
30013 | ||
30014 | * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD. | |
30015 | (Make_DT): Upgrade the call to Inherit_TSD according to the | |
30016 | new interface: the first formal is now a Tag. | |
30017 | ||
30018 | * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been | |
30019 | redefined as a Tag. | |
30020 | This change allows us to remove the subprogram Get_TSD. | |
30021 | (CPP_Get_TSD): Subprogram removed. | |
30022 | (TSD): Replace the call to CPP_Get_TSD by the actual code. | |
30023 | ||
30024 | * rtsfind.ads: Remove support to call the run-time | |
30025 | subprogram Get_TSD | |
30026 | ||
30027 | 2005-03-29 Robert Dewar <dewar@adacore.com> | |
30028 | ||
86aca445 | 30029 | * errutil.adb, errout.adb: |
1ccf835c | 30030 | Minor comment updates on Line_Terminator references |
30031 | ||
30032 | * par-ch10.adb: Add ??? comment about line terminator | |
30033 | ||
30034 | * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd | |
30035 | (check dos line terminator). | |
30036 | (Check_Line_Max_Length): New procedure, split off from the existing | |
30037 | Check_Line_Terminator routine. Separating this out allows -gnatyf to | |
30038 | be properly recognized. | |
30039 | ||
30040 | * styleg.adb: Add ??? comment for line terminator reference | |
30041 | ||
30042 | * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored | |
30043 | (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators) | |
30044 | ||
30045 | * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd | |
30046 | (check dos line terminator). | |
30047 | (Check_Line_Max_Length): New procedure, split off from the existing | |
30048 | Check_Line_Terminator routine. Separating this out allows -gnatyf to | |
30049 | be properly recognized. | |
30050 | ||
86aca445 | 30051 | * stylesw.ads, stylesw.adb: |
1ccf835c | 30052 | Add handling for new -gnatyd switch (check dos line terminator) |
30053 | ||
30054 | * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator) | |
30055 | Recognize -gnatwb/-gnatwB switches | |
30056 | Include Warn_On_Bad_Fixed_Value for -gnatg | |
30057 | ||
86aca445 | 30058 | * usage.adb: |
1ccf835c | 30059 | Add line for new -gnatyd switch (check dos line terminator) |
30060 | ||
30061 | * usage.adb: Add lines for -gnatwb/-gnatwB | |
30062 | ||
30063 | * vms_data.ads: Add entry for NOCRLF (-gnatyd) | |
30064 | ||
30065 | * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB | |
30066 | ||
30067 | * gnat_ugn.texi: Fix overlong lines | |
30068 | Document new -gnatyd switch | |
30069 | Document new -gnatwb/-gnatwB switches | |
30070 | ||
30071 | 2005-03-29 Ed Schonberg <schonberg@adacore.com> | |
30072 | ||
30073 | * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in | |
30074 | order to retrieve the component list of the type, before examining | |
30075 | individual components. | |
30076 | ||
30077 | * sem_type.adb (Covers): Types are compatible if one is the base type | |
30078 | of the other, even though their base types might differ when private | |
30079 | views are involved. | |
30080 | ||
30081 | 2005-03-29 Thomas Quinot <quinot@adacore.com> | |
30082 | ||
30083 | * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any, | |
30084 | To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead | |
30085 | of using Set_Renaming_TSS. This ensures that the TSS bodies are not | |
30086 | analyzed if expansion is disabled (which could otherwise cause spurious | |
30087 | error messages if expansion has been disabled due to previous | |
30088 | (unrelated) errors). | |
30089 | ||
30090 | * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion | |
30091 | is disabled, the entity denoted by the argument is the access type | |
30092 | itself, not an underlying record type, so there is no need to go back | |
30093 | to the Corresponding_Remote_Type. | |
30094 | ||
30095 | 2005-03-29 Gary Dismukes <dismukes@adacore.com> | |
30096 | Robert Dewar <dewar@adacore.com> | |
30097 | ||
30098 | * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to | |
30099 | expand a call to an instance of | |
30100 | Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the | |
30101 | Constructor actual of the instance. A class-wide membership | |
30102 | check is also generated, to ensure that the tag passed to the instance | |
30103 | denotes a type in the class. | |
30104 | (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case | |
30105 | of Name_Generic_Dispatching_Constructor. | |
30106 | ||
30107 | * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada | |
30108 | 05 unit for AI-260-02). | |
30109 | ||
30110 | * a-tgdico.ads: New file. | |
30111 | ||
30112 | * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new | |
30113 | predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor. | |
30114 | ||
30115 | * snames.ads, snames.adb (Preset_Names): Add entry for | |
30116 | Generic_Dispatching_Constructor. | |
30117 | ||
30118 | PR ada/20300 | |
1ccf835c | 30119 | * sem_ch8.adb (Find_Direct_Name): Go to root type for check of |
30120 | character type cases. | |
30121 | (Analyze_Subprogram_Renaming): Add special handling for | |
30122 | the case of renaming of stream attributes when the renaming denotes a | |
30123 | generic formal subprogram association for an abstract formal subprogram. | |
30124 | Check that the attribute is a primitive stream attribute (and not | |
30125 | a class-wide stream attribute) and then rewrite the attribute name | |
30126 | as the name of the appropriate compiler-generated stream primitive. | |
30127 | ||
30128 | 2005-03-29 Robert Dewar <dewar@adacore.com> | |
30129 | ||
30130 | * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to | |
30131 | recursive calls. | |
30132 | (Is_Possibly_Unaligned_Object): Correct typo that | |
30133 | resulted in inaccurate result for unaligned scalars within records. | |
30134 | ||
30135 | 2005-03-29 Ed Schonberg <schonberg@adacore.com> | |
30136 | ||
30137 | * freeze.adb (Freeze_Record_Type): If the type of the component is an | |
30138 | itype whose parent is controlled and not yet frozen, do not create a | |
30139 | freeze node for the itype if expansion is disabled. | |
30140 | ||
30141 | 2005-03-29 Vincent Celier <celier@adacore.com> | |
30142 | ||
30143 | * make.adb (Gnatmake): Don't fail if the main project file is declared | |
30144 | as having no Ada sources. Do not display message "no sources to | |
30145 | compile" in quiet output. | |
30146 | ||
30147 | 2005-03-29 Doug Rupp <rupp@adacore.com> | |
30148 | ||
30149 | * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as | |
30150 | extra tools. | |
30151 | ||
30152 | 2005-03-29 Robert Dewar <dewar@adacore.com> | |
30153 | ||
30154 | * par-ch12.adb (P_Generic): Give better msg for illegal private generic | |
30155 | child. | |
30156 | ||
30157 | 2005-03-29 Robert Dewar <dewar@adacore.com> | |
30158 | ||
30159 | * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after | |
30160 | missing TYPE Improve the error message generated when compiling a | |
30161 | limited interface in Ada83 or Ada95 mode. | |
30162 | ||
30163 | 2005-03-29 Robert Dewar <dewar@adacore.com> | |
30164 | ||
30165 | * par-ch4.adb (P_Name): When a bad attribute is returned, return error, | |
30166 | rather than proceed ahead using a junk attribute name. | |
30167 | ||
30168 | 2005-03-29 Vincent Celier <celier@adacore.com> | |
30169 | ||
30170 | * prj.ads, prj.adb: (Project_Data): Add new component Display_Name | |
30171 | ||
30172 | * prj-part.adb (Parse_Single_Project): Set the location of a project | |
30173 | on its defining identifier, rather than on the reserved word "project". | |
30174 | ||
30175 | * prj-proc.adb (Expression): Adapt to the fact that default of external | |
30176 | references may be string expressions, not always literal strings. | |
30177 | (Recursive_Process): Set Display_Name equal to Name | |
30178 | when Location is No_Location, that is when there is no actual file. | |
30179 | Get the Display_Name of the project from the source, when it is not a | |
30180 | virtual project. | |
30181 | (Process): Use the Display_Name in error messages | |
30182 | ||
30183 | * prj-strt.adb (External_Reference): Allow default to be string | |
30184 | expressions, not only literal strings. | |
30185 | ||
30186 | 2005-03-29 Vincent Celier <celier@adacore.com> | |
30187 | ||
30188 | * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol | |
30189 | file and the reference symbol file to be the same file. | |
30190 | ||
30191 | 2005-03-29 Thomas Quinot <quinot@adacore.com> | |
30192 | ||
30193 | * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to | |
30194 | forbid conversion of a local access-to-subprogram type to a remote one. | |
30195 | ||
30196 | * sem_util.adb (Wrong_Type): For a record type that is the expanded | |
30197 | equivalent type for a remote access-to-subprogram type, go back to the | |
30198 | original RAS entity when displaying an error message, so the casing is | |
30199 | the original source casing. | |
30200 | ||
30201 | 2005-03-29 Robert Dewar <dewar@adacore.com> | |
30202 | ||
30203 | * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning | |
30204 | on param update. | |
30205 | ||
30206 | 2005-03-29 Ed Schonberg <schonberg@adacore.com> | |
30207 | ||
30208 | * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual | |
30209 | subtype if code is being pre-analyzed, to prevent un-expanded | |
30210 | references to protected formals, among others. | |
30211 | (Analyze_Explicit_Dereference): If the overloaded prefix includes some | |
30212 | interpretation that can be a call, include the result of the call as a | |
30213 | possible interpretation of the dereference. | |
30214 | ||
30215 | * sem_ch5.adb (Process_Bounds): Determine type of range by | |
30216 | pre-analyzing a copy of the original range, and then analyze the range | |
30217 | with the expected type. | |
30218 | ||
30219 | * sem_res.adb (Check_Parameterless_Call): For an explicit dereference | |
30220 | with an overloaded prefix where not all interpretations yield an | |
30221 | access to subprogram, do not rewrite node as a call. | |
30222 | (Resolve_Explicit_Dereference): Recognize the previous case and rewrite | |
30223 | the node as a call once the context identifies the interpretation of | |
30224 | the prefix whose call yields the context type. | |
30225 | (Valid_Conversion): For the case of a conversion between | |
30226 | local access-to-subprogram types, check subtype conformance using | |
30227 | Check_Subtype_Conformant instead of Subtype_Conformant, to have a more | |
30228 | detailed error message. | |
30229 | ||
30230 | 2005-03-29 Ed Schonberg <schonberg@adacore.com> | |
30231 | ||
30232 | * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null | |
30233 | indicator, indicate that the formal can never be null. | |
30234 | (Process_Formals): If a formal has a non_null indicator, insert the | |
30235 | resulting subtype immediately before the enclosing subprogram decl, | |
30236 | and not at the beginning of the corresponding declarative part, to | |
30237 | prevent access before elaboration (Ada2005). | |
30238 | ||
30239 | 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
30240 | ||
30241 | PR ada/19956 | |
30242 | * utils.c (finish_record_type): Use variable_size when setting sizes. | |
30243 | ||
30244 | 2005-03-29 Robert Dewar <dewar@adacore.com> | |
30245 | ||
30246 | * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to | |
30247 | guarantee Unix style line terminators for the output files, even when | |
30248 | running on windows. | |
30249 | ||
30250 | 2005-03-29 Robert Dewar <dewar@adacore.com> | |
30251 | ||
30252 | * a-direct.ads, a-direct.adb (Start_Search): Free allocated search | |
30253 | buffer if an exception is raised. | |
30254 | ||
30255 | 2005-03-29 Ed Falis <falis@adacore.com> | |
30256 | ||
30257 | * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with | |
30258 | VxWorks 653 1.4 | |
30259 | ||
30260 | 2005-03-29 Robert Dewar <dewar@adacore.com> | |
30261 | ||
30262 | * sem_util.ads: Minor reformatting | |
30263 | * gnat_rm.texi: Minor editing. | |
30264 | ||
30265 | 2005-03-29 Eric Botcazou <ebotcazou@adacore.com> | |
30266 | ||
30267 | * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment. | |
30268 | * trans.c (tree_transform) <N_Identifier>: Use correct predicates. | |
30269 | ||
0b9eca83 | 30270 | 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com> |
30271 | ||
30272 | * adaint.c (__gnat_portable_spawn): Adjust cast. | |
30273 | ||
b94d0de9 | 30274 | 2005-03-23 Joseph S. Myers <joseph@codesourcery.com> |
30275 | ||
30276 | * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove. | |
30277 | ||
6995daf6 | 30278 | 2005-03-17 Pascal Obry <obry@adacore.com> |
30279 | ||
30280 | * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is | |
30281 | used. | |
30282 | ||
30283 | * expect.c (__gnat_waitpid): Moved here from adaint.c. | |
30284 | Reimplement under Win32 using Win32 API. | |
30285 | ||
30286 | (__gnat_kill) [Win32]: Properly close the process handle before leaving | |
30287 | this routine. | |
30288 | ||
30289 | 2005-03-17 Eric Botcazou <ebotcazou@adacore.com> | |
30290 | ||
30291 | * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate. | |
30292 | (DECL_RENAMED_OBJECT): New accessor macro. | |
30293 | (SET_DECL_RENAMED_OBJECT): New setter macro. | |
30294 | ||
30295 | * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed | |
30296 | object in all cases. Attach the renamed object to the VAR_DECL. | |
30297 | (gnat_to_gnu_field): Do not lift the record wrapper if the size of the | |
30298 | field is not prescribed. | |
30299 | ||
30300 | * misc.c (gnat_handle_option): Handle -gnatO separately. | |
30301 | (gnat_print_decl) <VAR_DECL>: New case. | |
30302 | Print the DECL_RENAMED_OBJECT node. | |
30303 | ||
30304 | * lang.opt: Declare separate -gnatO option. | |
30305 | ||
30306 | * trans.c (tree_transform) <N_Identifier>: If the object is a renaming | |
30307 | pointer, replace it with the renamed object. | |
30308 | <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat | |
30309 | pointer type if the source is not a fat pointer type whose underlying | |
30310 | array has the same non-zero alias set as that of the destination array. | |
30311 | ||
30312 | 2005-03-17 Javier Miranda <miranda@adacore.com> | |
30313 | ||
30314 | * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed. | |
30315 | (Get_Inheritance_Depth): Removed. | |
30316 | (Set_Inheritance_Depth): Removed. | |
30317 | ||
30318 | * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the | |
30319 | subprogram Get_Expanded_Name because it is not referenced by the | |
30320 | frontend. | |
30321 | ||
30322 | * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed. | |
30323 | (CPP_Get_Inheritance_Depth): Removed. | |
30324 | (CPP_Set_Inheritance_Depth): Removed. | |
30325 | ||
30326 | * tbuild.ads, tbuild.adb (Make_DT_Component): Removed. | |
30327 | ||
30328 | 2005-03-17 Robert Dewar <dewar@adacore.com> | |
30329 | ||
30330 | * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC | |
30331 | 3, since we now expect GCC 3 to do all the work. | |
30332 | ||
30333 | 2005-03-17 Javier Miranda <miranda@adacore.com> | |
30334 | ||
30335 | * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition | |
30336 | of one barrier to avoid wrong usage of this attribute. | |
30337 | ||
30338 | * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute | |
30339 | First_Private_Entity. | |
30340 | ||
30341 | * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect | |
30342 | the subprogram against wrong usage. | |
30343 | Adapt the code to traverse the entities in the | |
30344 | scope of a record_type because in addition to its usage regarding | |
30345 | packages, this subprogram is also called by Expand_N_Freeze_Entity | |
30346 | to install the visible declarations of the enclosing scope of a | |
30347 | record_type_with_private to establish the proper visibility before | |
30348 | freezing the entity and related subprograms. | |
30349 | ||
30350 | 2005-03-17 Ed Schonberg <schonberg@adacore.com> | |
30351 | ||
30352 | * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to | |
30353 | entry formals. | |
30354 | ||
30355 | 2005-03-17 Thomas Quinot <quinot@adacore.com> | |
30356 | ||
30357 | * exp_ch3.adb (Check_Attr): New subprogram. | |
30358 | (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement | |
30359 | into a new Check_Attr subprogram, in order to provide a more | |
30360 | explanatory error message (including the name of the missing attribute). | |
30361 | (Stream_Operation_OK): Renamed from Stream_Operations_OK. This | |
30362 | subprogram determines whether a default implementation exists for a | |
30363 | given stream attribute. | |
30364 | (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): | |
30365 | Determine whether to generate a default implementation for each stream | |
30366 | attribute separately, as this depends on the specific attribute. | |
30367 | ||
30368 | * exp_strm.adb (Make_Field_Attribute): For the case of an illegal | |
30369 | limited extension where a stream attribute is missing for a limited | |
30370 | component (which will have been flagged in Exp_Ch3.Sem_Attr), do not | |
30371 | generate a bogus reference to the missing attribute to prevent | |
30372 | cascaded errors. Instead, generate a null statement. | |
30373 | ||
30374 | * sem_attr.adb (Check_Stream_Attribute): A stream attribute is | |
30375 | available for a limited type if it has been specified for an ancestor | |
30376 | of the type. | |
30377 | ||
30378 | 2005-03-17 Ed Schonberg <schonberg@adacore.com> | |
30379 | ||
30380 | * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed | |
30381 | entity is an operator. | |
30382 | ||
30383 | 2005-03-17 Thomas Quinot <quinot@adacore.com> | |
30384 | ||
30385 | * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist | |
30386 | spec, to make this predicate available to other units. | |
30387 | ||
30388 | * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of | |
30389 | reimplementing it. | |
30390 | ||
30391 | * sem_ch8.adb: Disable expansion of remote access-to-subprogram types | |
30392 | when no distribution runtime library is available. | |
30393 | ||
30394 | * sem_res.adb, sem_dist.adb: Disable expansion of remote | |
30395 | access-to-subprogram types when no distribution runtime library is | |
30396 | available. | |
30397 | (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this | |
30398 | predicate available to other units. | |
30399 | ||
30400 | * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist | |
30401 | spec, to make this predicate available to other units. | |
30402 | ||
30403 | 2005-03-17 Vincent Celier <celier@adacore.com> | |
30404 | ||
30405 | * make.adb (Insert_Project_Sources): Make sure the Q is always | |
30406 | initialized. | |
30407 | ||
30408 | * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against | |
30409 | the default for the tree, not the global default naming. | |
30410 | ||
30411 | * prj-proc.adb (Recursive_Process): No need to put the default naming | |
30412 | in the project data, it's already there. | |
30413 | ||
30414 | 2005-03-17 Doug Rupp <rupp@adacore.com> | |
30415 | ||
30416 | * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads. | |
30417 | ||
d4c15061 | 30418 | * 5xcrtl.ads: Renamed to... |
30419 | * s-crtl-vms64.ads: ...this new file | |
6995daf6 | 30420 | |
30421 | 2005-03-17 Robert Dewar <dewar@adacore.com> | |
30422 | ||
30423 | PR ada/19519 | |
6995daf6 | 30424 | * namet.adb (Copy_One_Character): Set proper wide character encoding |
30425 | for upper half character if we have upper half encoding. | |
30426 | ||
30427 | 2005-03-17 Robert Dewar <dewar@adacore.com> | |
30428 | ||
30429 | * par.adb (Par): Improved msg for attempt to recompile predefined unit | |
30430 | ||
30431 | 2005-03-17 Thomas Quinot <quinot@adacore.com> | |
30432 | ||
30433 | * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a | |
30434 | tagged limited type, the TSS is a newly built renaming declaration: | |
30435 | insert it using Set_TSS, not Copy_TSS. | |
30436 | ||
30437 | 2005-03-17 Javier Miranda <miranda@adacore.com> | |
30438 | ||
30439 | * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and | |
30440 | Try_Object_Operation): Analyze the object that is accessible | |
30441 | through the prefix of the subprogram call before we apply | |
30442 | the transformation of the object-operation notation. | |
30443 | ||
30444 | 2005-03-17 Jose Ruiz <ruiz@adacore.com> | |
30445 | ||
30446 | * s-taprob.adb (Initialize_Protection): Initialize the protected | |
30447 | object's owner to Null_Task. | |
30448 | (Lock): If pragma Detect_Blocking is in effect and the caller of this | |
30449 | procedure is already the protected object's owner then Program_Error | |
30450 | is raised. In addition the protected object's owner is updated. | |
30451 | (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller | |
30452 | of this procedure is already the protected object's owner then | |
30453 | Program_Error is raised. | |
30454 | In addition the protected object's owner is updated. | |
30455 | (Unlock): Remove the ownership of the protected object. | |
30456 | ||
30457 | * s-taprob.ads (Protection): Add the field Owner, used to store the | |
30458 | protected object's owner. | |
30459 | This component is needed for detecting one type of potentially blocking | |
30460 | operations (external calls on a protected subprogram with the same | |
30461 | target object as that of the protected action). Document the rest of | |
30462 | the components. | |
30463 | ||
30464 | * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries): | |
30465 | Initialize the protected object's owner to Null_Task. | |
30466 | (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the | |
30467 | caller of this procedure is already the protected object's owner then | |
30468 | Program_Error is raised. | |
30469 | Do not raise Program_Error when this procedure is called from a | |
30470 | protected action. | |
30471 | (Unlock_Entries): Remove the ownership of the protected object. | |
30472 | (Lock_Entries): If pragma Detect_Blocking is in effect and the caller | |
30473 | of this procedure is already the protected object's owner then | |
30474 | Program_Error is raised. | |
30475 | Do not raise Program_Error when this procedure is called from | |
30476 | a protected action. | |
30477 | ||
30478 | * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner, | |
30479 | used to store the protected object's owner. | |
30480 | ||
30481 | * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in | |
30482 | effect and this procedure (a potentially blocking operation) is called | |
30483 | from whithin a protected action, Program_Error is raised. | |
30484 | (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect | |
30485 | and this procedure (a potentially blocking operation) is called from | |
30486 | whithin a protected action, Program_Error is raised. | |
30487 | ||
30488 | 2005-03-17 Vincent Celier <celier@adacore.com> | |
30489 | Nicolas Setton <setton@adacore.com> | |
30490 | ||
30491 | * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini" | |
30492 | switch, not supported by the linker on Darwin. Add '_' before | |
30493 | <library>init, as this character is added unconditionally by the | |
30494 | compiler. | |
30495 | (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the | |
30496 | correct one ".dylib". This fixes detection of the archive files when | |
30497 | building library projects. | |
30498 | ||
30499 | 2005-03-17 Vincent Celier <celier@adacore.com> | |
30500 | ||
30501 | * switch-m.adb (Normalize_Compiler_Switches): Recognize switches | |
30502 | -gnat83, -gnat95 and -gnat05. | |
30503 | ||
30504 | 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com> | |
30505 | ||
30506 | * gnat_ugn.texi: Document gnatmem restriction | |
30507 | ||
30508 | 2005-03-17 Thomas Quinot <quinot@adacore.com> | |
30509 | ||
30510 | * snames.adb: Document new TSS names introduced by exp_dist/exp_tss | |
30511 | cleanup | |
30512 | ||
30513 | 2005-03-17 Robert Dewar <dewar@adacore.com> | |
30514 | ||
30515 | * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb, | |
30516 | a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb, | |
30517 | s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting | |
30518 | ||
30519 | * casing.adb: Comment improvements | |
30520 | ||
30521 | 2005-03-17 Pascal Obry <obry@adacore.com> | |
30522 | ||
30523 | * g-expect.adb: Minor reformatting. | |
30524 | ||
1af67e62 | 30525 | 2005-03-15 Zack Weinberg <zack@codesourcery.com> |
30526 | ||
30527 | * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info) | |
30528 | (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi | |
30529 | to dependencies. | |
30530 | ||
80b846fb | 30531 | 2005-03-15 Vincent Celier <celier@adacore.com> |
30532 | ||
1af67e62 | 30533 | * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For): |
30534 | Add new parameter In_Tree to specify the project tree: needed | |
30535 | by the project manager. Adapt to changes in project manager | |
30536 | using new parameter In_Tree. | |
80b846fb | 30537 | |
e8de214b | 30538 | 2005-03-15 Jakub Jelinek <jakub@redhat.com> |
30539 | ||
30540 | * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, | |
30541 | ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of | |
30542 | ada/bldtools to avoid make -jN failures. | |
30543 | ||
4373271f | 30544 | 2005-03-15 Eric Botcazou <ebotcazou@adacore.com> |
30545 | ||
30546 | * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result | |
30547 | to NULL_TREE on entry. | |
30548 | ||
51bc0b4e | 30549 | 2005-03-15 Robert Dewar <dewar@adacore.com> |
30550 | ||
30551 | * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads, | |
30552 | system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads, | |
30553 | system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads, | |
30554 | system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads, | |
30555 | system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads, | |
30556 | system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads, | |
30557 | system-interix.ads, system-solaris-sparc.ads, | |
30558 | system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads, | |
30559 | system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads, | |
30560 | system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, | |
30561 | system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads, | |
30562 | system-linux-s390.ads, system-linux-s390x.ads: Add line defining | |
30563 | Compiler_System_Version to be False. | |
30564 | ||
30565 | * opt.ads: Add new flag Opt.Address_Is_Private | |
30566 | ||
30567 | * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private | |
30568 | Add new parameter Compiler_System_Version to avoid checking for | |
30569 | completeness of parameters when compiler is compiling itself. | |
30570 | Allows old versions of GNAT to be compiled with new compiler. | |
30571 | ||
30572 | 2005-03-15 Eric Botcazou <ebotcazou@adacore.com> | |
30573 | ||
30574 | * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function | |
30575 | (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the | |
30576 | calling thread. | |
30577 | (Stack_Base_Available): New flag. | |
30578 | (Get_Page_Size): New overloaded functions imported from C. | |
30579 | (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL, | |
30580 | PROT_ON, PROT_OFF): New constants. | |
30581 | (mprotect): New function imported from C. | |
30582 | (pthread_teb_t): New record type. | |
30583 | ||
30584 | * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone. | |
30585 | (Create_Task): Account for the Yellow Zone and the guard page. | |
30586 | ||
30587 | 2005-03-15 Vincent Celier <celier@adacore.com> | |
30588 | ||
30589 | * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, | |
30590 | mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb, | |
30591 | mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, | |
30592 | mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For, | |
30593 | Library_File_Name_For): Add new parameter In_Tree | |
30594 | to specify the project tree: needed by the project manager. | |
30595 | Adapt to changes in project manager using new parameter In_Tree. | |
30596 | Remove local imports, use functions in System.CRTL. | |
30597 | ||
30598 | * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed | |
30599 | to use the project manager. | |
30600 | ||
30601 | * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter | |
30602 | In_Tree to designate the project tree. Adapt to changes in the project | |
30603 | manager, using In_Tree. | |
30604 | ||
30605 | * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library, | |
30606 | Copy_Interface_Sources): Add new parameter In_Tree to specify the | |
30607 | project tree: needed by the project manager. | |
30608 | (Build_Library): Check that Arg'Length >= 6 before checking if it | |
30609 | contains "--RTS=...". | |
30610 | ||
30611 | * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For, | |
30612 | Library_File_Name_For): Add new parameter In_Tree to specify the | |
30613 | project tree: needed by the project manager. | |
30614 | ||
30615 | * prj.ads, prj.adb: Major modifications to allow several project trees | |
30616 | in memory at the same time. | |
30617 | Change tables to dynamic tables and hash tables to dynamic hash | |
30618 | tables. Move tables and hash tables from Prj.Com (in the visible part) | |
30619 | and Prj.Env (in the private part). Move some constants from the visible | |
30620 | part to the private part. Make other constants deferred. | |
30621 | (Project_Empty): Make it a variable, not a function | |
30622 | (Empty_Project): Add parameter Tree. Returns the data with the default | |
30623 | naming data of the project tree Tree. | |
30624 | (Initialize): After updating Std_Naming_Data, copy its value to the | |
30625 | component Naming of Project Empty. | |
30626 | (Register_Default_Naming_Scheme): Use and update the default naming | |
30627 | component of the project tree, instead of the global variable | |
30628 | Std_Naming_Data. | |
30629 | (Standard_Naming_Data): Add defaulted parameter Tree. If project tree | |
30630 | Tree is not defaulted, return the default naming data of the Tree. | |
30631 | (Initial_Buffer_Size): Constant moved from private part | |
30632 | (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new | |
30633 | variables initialized in procedure Initialize. | |
30634 | (Add_To_Buffer): Add two in out parameters to replace global variables | |
30635 | Buffer and Buffer_Last. | |
30636 | (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New | |
30637 | functions. | |
30638 | Adapt to changes to use new type Project_Tree_Ref and dynamic tables and | |
30639 | hash tables. | |
30640 | (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter | |
30641 | for the project tree. | |
30642 | (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and | |
30643 | constant at the beginning of the package spec, so that they cane be used | |
30644 | in subprograms before their full declarations. | |
30645 | (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref | |
30646 | (Empty_Project): Add parameter of type Project_Node_Ref | |
30647 | (Private_Project_Tree_Data): Add component Default_Naming of type | |
30648 | Naming_Data. | |
30649 | (Buffer, Buffer_Last): remove global variables | |
30650 | (Add_To_Buffer): Add two in out parameters to replace global variables | |
30651 | Buffer and Buffer_Last. | |
30652 | (Current_Packages_To_Check): Remove global variable | |
30653 | (Empty_Name): Move to private part | |
30654 | (No-Symbols): Make it a constant | |
30655 | (Private_Project_Tree_Data): New type for the private part of the | |
30656 | project tree data. | |
30657 | (Project_Tree_Data): New type for the data of a project tree | |
30658 | (Project_Tree_Ref): New type to designate a project tree | |
30659 | (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter | |
30660 | for the project tree. | |
30661 | ||
30662 | * prj-attr.ads: Add with Table; needed, as package Prj no longer | |
30663 | imports package Table. | |
30664 | ||
30665 | * prj-com.adb: Remove empty, no longer needed body | |
30666 | ||
30667 | * prj-com.ads: Move most of the content of this package to package Prj. | |
30668 | ||
30669 | * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to | |
30670 | designate the project node tree and Packages_To_Check to replace | |
30671 | global variable Current_Packages_To_Check. | |
30672 | Add new parameters In_Tree and Packages_To_Check to local subprograms, | |
30673 | when needed. Adapt to changes in project manager with project node tree | |
30674 | In_Tree. | |
30675 | ||
30676 | * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the | |
30677 | project tree to most subprograms. Move tables and hash tables to | |
30678 | private part of package Prj. | |
30679 | Adapt to changes in project manager using project tree In_Tree. | |
30680 | ||
30681 | * prj-makr.adb (Tree): New constant to designate the project node tree | |
30682 | Adapt to change in project manager using project node tree Tree | |
30683 | ||
30684 | * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly | |
30685 | display the Library_Src_Dir and the Library_Dir. | |
30686 | Add new parameter In_Tree to designate the project node tree to most | |
30687 | subprograms. Adapt to changes in the project manager, using project tree | |
30688 | In_Tree. | |
30689 | (Check_Naming_Scheme): Do not alter the casing on platforms where | |
30690 | the casing of file names is not significant. | |
30691 | (Check): Add new parameter In_Tree to designate the | |
30692 | ||
30693 | * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to | |
30694 | designate the project tree. | |
30695 | Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process | |
30696 | ||
30697 | * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables, | |
30698 | to replace those that were in the private part of package Prj. | |
30699 | Add new parameter In__Tree to designate the project node tree to most | |
30700 | subprograms. Adapt to change in Prj.Tree with project node tree In_Tree. | |
30701 | (Post_Parse_Context_Clause): When specifying the project node of a with | |
30702 | clause, indicate that it is a limited with only if there is "limited" | |
30703 | in the with clause, not necessarily when In_Limited is True. | |
30704 | (Parse): Add new parameter In_Tree to designate the project node tree | |
30705 | ||
30706 | * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to | |
30707 | designate the project node tree. Adapt to change in Prj.Tree with | |
30708 | project node tree In_Tree. | |
30709 | ||
30710 | * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project | |
30711 | tree In_Tree in the call to function Empty_Process to give its initial | |
30712 | value to the project data Processed_Data. | |
30713 | Add new parameters In_Tree to designate the project tree and | |
30714 | From_Project_Node_Tree to designate the project node tree to several | |
30715 | subprograms. Adapt to change in project manager with project tree | |
30716 | In_Tree and project node tree From_Project_Node_Tree. | |
30717 | ||
30718 | * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables, | |
30719 | to replace those that were in the private part of package Prj. | |
30720 | Add new parameter In_Tree to designate the project node tree to most | |
30721 | subprograms. Adapt to change in Prj.Tree with project node tree In_Tree. | |
30722 | ||
30723 | * prj-tree.ads, prj-tree.adb: Add new parameter of type | |
30724 | Project_Node_Tree_Ref to most subprograms. | |
30725 | Use this new parameter to store project nodes in the designated project | |
30726 | node tree. | |
30727 | (Project_Node_Tree_Ref): New type to designate a project node tree | |
30728 | (Tree_Private_Part): Change table to dynamic table and hash tables to | |
30729 | dynamic hash tables. | |
30730 | ||
30731 | * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate | |
30732 | the project tree to most subprograms. Adapt to changes in project | |
30733 | manager using project tree In_Tree. | |
30734 | ||
30735 | * makegpr.adb (Project_Tree): New constant needed to use project | |
30736 | manager. | |
30737 | ||
30738 | 2005-03-15 Olivier Hainque <hainque@adacore.com> | |
30739 | ||
30740 | * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler | |
30741 | for sigactions with SA_SIGINFO set. Call | |
30742 | __gnat_adjust_context_for_raise before raising, to perform the | |
30743 | potentially required adjustments to the machine context for the GCC | |
30744 | unwinder. | |
30745 | ||
30746 | * raise.h (__gnat_adjust_context_for_raise): New prototype. | |
30747 | ||
30748 | * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision. | |
30749 | Adjust PC by one in the provided machine context. | |
30750 | (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags, | |
30751 | so that the handler is passed the context structure to adjust prior to | |
30752 | the raise. | |
30753 | (__gnat_error_handler) HPUX: Adjust the signature to match what an | |
30754 | SA_SIGINFO sigaction should look like. Call | |
30755 | __gnat_adjust_context_for_raise before actually raising. | |
30756 | (__gnat_adjust_context_for_raise): Default noop to help PC | |
30757 | adjustments before raise from signal handlers. | |
30758 | (__gnat_error_handler): Indirectly call a predicate function to | |
30759 | determine if a condition should be resignaled or not. | |
30760 | (__gnat_set_resignal_predicate): User interface to modify the predicate. | |
30761 | (__gnat_default_resignal_p): Default GNAT predicate. | |
30762 | ||
30763 | 2005-03-15 Doug Rupp <rupp@adacore.com> | |
30764 | ||
30765 | * adaint.c: Prefix #include of VMS system header files with vms/ | |
30766 | [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS. | |
30767 | Do not define a dummy function "convert_addresses" under Darwin, | |
30768 | not needed. | |
30769 | ||
30770 | * tb-alvms.c, expect.c: Prefix #include of VMS system header files | |
30771 | with vms/ | |
30772 | ||
30773 | 2005-03-15 Nicolas Setton <setton@adacore.com> | |
30774 | ||
30775 | * tracebak.c: Under Darwin, use the same unwinding mechanisms as under | |
30776 | PPC/AIX. | |
30777 | ||
30778 | 2005-03-15 Robert Dewar <dewar@adacore.com> | |
30779 | ||
30780 | * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for | |
30781 | AI-386. | |
30782 | ||
30783 | * a-retide.ads: Minor comment changes | |
30784 | ||
30785 | 2005-03-15 Robert Dewar <dewar@adacore.com> | |
30786 | ||
30787 | * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads, | |
30788 | a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move | |
30789 | Realloc_For_Chunk to private part of package. | |
30790 | New subprograms for AI-301 | |
30791 | ||
30792 | * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of | |
30793 | Get_Line procedure. | |
30794 | Avoid unnecessary use of Get/Set_Wide_String | |
30795 | ||
30796 | 2005-03-15 Robert Dewar <dewar@adacore.com> | |
30797 | ||
30798 | PR ada/13470 | |
1af67e62 | 30799 | * a-stunau.ads, a-stunau.adb: |
51bc0b4e | 30800 | Change interface to allow efficient (and correct) implementation |
30801 | The previous changes to allow extra space in unbounded strings had | |
30802 | left this interface a bit broken. | |
30803 | ||
30804 | * a-suteio.adb: Avoid unnecessary use of Get/Set_String | |
30805 | ||
30806 | * g-spipat.ads, g-spipat.adb: New interface for Get_String | |
30807 | Minor reformatting (function specs) | |
30808 | ||
30809 | * g-spitbo.adb: New interface for Get_String | |
30810 | ||
30811 | * g-spitbo.ads: Minor reformatting | |
30812 | ||
30813 | * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String | |
30814 | ||
30815 | * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String | |
30816 | ||
30817 | 2005-03-15 Javier Miranda <miranda@adacore.com> | |
30818 | Robert Dewar <dewar@adacore.com> | |
30819 | Thomas Quinot <quinot@adacore.com> | |
30820 | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
30821 | ||
30822 | * atree.ads, atree.adb: Add support for Elist24 field | |
30823 | ||
30824 | * atree.h: Fix wrong definition of Field27 | |
30825 | Add support for Elist16 field | |
30826 | Add support for Elist24 field | |
30827 | ||
30828 | * einfo.ads, einfo.adb (Abstract_Interfaces, | |
30829 | Set_Abstract_Interfaces): New subprograms. | |
30830 | (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New | |
30831 | subprograms. | |
30832 | (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of | |
30833 | entities rather than a single node. | |
30834 | (Is_Interface, Set_Is_Interface): New subprogram | |
30835 | (First_Tag_Component): New syntesized attribute | |
30836 | (Next_Tag_Component): New synthesized attribute | |
30837 | (Write_Entity_Flags): Upgraded to write Is_Interface | |
30838 | (Write_Field24_Name): Upgraded to write Abstract_Interfaces | |
30839 | (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias | |
30840 | (Task_Body_Procedure): New subprogram to read this attribute. | |
30841 | (Set_Task_Body_Procedure): New subprogram to set this attribute. | |
30842 | (Has_Controlled_Component): Now applies to all entities. | |
30843 | This is only a documentation change, since it always worked to apply | |
30844 | this to other than composite types (yielding false), but now this is | |
30845 | official. | |
30846 | Update documentation on Must_Be_Byte_Aligned for new spec | |
30847 | ||
30848 | * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb, | |
30849 | exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the | |
30850 | uses of the Access_Disp_Table attribute to reference the first dispatch | |
30851 | table associated with a tagged type. As | |
30852 | part of the implementation of abstract interface types, | |
30853 | Access_Disp_Table has been redefined to contain a list of dispatch | |
30854 | tables (rather than a single dispatch table). | |
30855 | Similarly, upgrade all the references to Tag_Component by the | |
30856 | new attribute First_Tag_Component. | |
30857 | (Find_Inherited_TSS): Moved to exp_tss. | |
30858 | Clean up test in Expand_N_Object_Declaration for cases | |
30859 | where we need to do a separate assignment of the initial value. | |
30860 | (Expand_N_Object_Declaration): If the expression in the | |
30861 | declaration of a tagged type is an aggregate, no need to generate an | |
30862 | additional tag assignment. | |
30863 | (Freeze_Type): Now a function that returns True if the N_Freeze_Entity | |
30864 | is to be deleted. | |
30865 | Bit packed array ops are only called if operands are known to be | |
30866 | aligned. | |
30867 | (Component_Equality): When returning an N_Raise_Program_Error statement, | |
30868 | ensure that its Etype is set to Empty to avoid confusing GIGI (which | |
30869 | expects that only expressions have a bona fide type). | |
30870 | (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly | |
30871 | determine the amount of data to be copied. | |
30872 | ||
30873 | * par.adb (P_Interface_Type_Definition): New subprogram that parses the | |
30874 | new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345): | |
30875 | INTERFACE_TYPE_DEFINITION ::= | |
30876 | [limited | task | protected | synchronized] interface | |
1af67e62 | 30877 | [AND interface_list] |
51bc0b4e | 30878 | |
30879 | * par-ch3.adb (P_Type_Declaration): Modified to give support to | |
30880 | interfaces. | |
30881 | (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to | |
30882 | interfaces. | |
30883 | (P_Interface_Type_Definition): New subprogram that parses the new | |
30884 | syntax rule of Ada 2005 interfaces | |
30885 | (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error | |
30886 | messages by the correct RENAMES (quotes removed). | |
30887 | ||
30888 | * sem_prag.adb: Upgrade all the references to Tag_Component by the new | |
30889 | attribute First_Tag_Component. | |
30890 | ||
30891 | * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed | |
30892 | (Interface_List, Set_Interface_List): New subprograms. | |
30893 | (Interface_Present, Set_Interface_Present): New subprograms. | |
30894 | (Limited_Present, Set_Limited_Present): Available also in derived | |
30895 | type definition nodes. | |
30896 | (Protected_Present, Set_Protected_Present): Available also in | |
30897 | record type definition and | |
30898 | derived type definition nodes. | |
30899 | (Synchronized_Present, Set_Synchronized_Present): New subprograms. | |
30900 | (Task_Present, Set_Task_Present): New subprogram. | |
30901 | (Task_Body_Procedure): Removed. | |
30902 | (Set_Task_Body_Procedure): Removed. | |
30903 | These subprogram have been removed because the attribute | |
30904 | Task_Body_Procedure has been moved to the corresponding task type | |
30905 | or task subtype entity to leave a field free to store the list | |
30906 | of interfaces implemented by a task (for AI-345) | |
30907 | Add Expression field to N_Raise_Statement node for Ada 2005 AI-361 | |
30908 | (Null_Exclusion_Present): Change to Flag11, to avoid conflict with | |
30909 | expression flag Do_Range_Check | |
30910 | (Exception_Junk): Change to Flag7 to accomodate above change | |
30911 | (Box_Present, Default_Name, Specification, Set_Box_Present, | |
30912 | Set_Default_Name, Set_Specification): Expand the expression | |
30913 | "X in N_Formal_Subprogram_Declaration" into the corresponding | |
30914 | two comparisons. Required to use the csinfo tool. | |
30915 | ||
30916 | * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where | |
30917 | "with string" given. | |
30918 | ||
1af67e62 | 30919 | * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string |
30920 | expression given. | |
51bc0b4e | 30921 | |
30922 | * par-ch11.adb (P_Raise_Statement): Recognize with string expression | |
30923 | in 2005 mode | |
30924 | ||
30925 | * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity | |
30926 | attribute Task_Body_Procedure rather than the old semantic field that | |
30927 | was available in the task_type_declaration node. | |
30928 | ||
30929 | * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal | |
30930 | interface type definitions. | |
30931 | (P_Formal_Derived_Type_Definition): Modified to handle the list of | |
30932 | interfaces. | |
30933 | ||
30934 | * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a | |
30935 | task type declaration. | |
30936 | (P_Protected): Modified to handle the list of interfaces in a | |
30937 | protected type declaration. | |
30938 | ||
30939 | 2005-03-15 Doug Rupp <rupp@adacore.com> | |
30940 | Vincent Celier <celier@adacore.com> | |
30941 | ||
30942 | * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit | |
30943 | (Gen_Output_File_C): Likewise. | |
30944 | (Gen_Main_C): Issue #include <stdlib.h> to avoid warning | |
30945 | ||
30946 | 2005-03-15 Thomas Quinot <quinot@adacore.com> | |
30947 | ||
30948 | * checks.adb (Get_E_First_Or_Last): When the expression being retrieved | |
30949 | is an N_Raise_Constraint_Error node, create a new copy of it without | |
30950 | going through a call to Duplicate_Subexpr. | |
30951 | ||
30952 | 2005-03-15 Eric Botcazou <ebotcazou@adacore.com> | |
30953 | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
30954 | Nicolas Setton <setton@adacore.com> | |
30955 | Ed Schonberg <schonberg@adacore.com> | |
30956 | ||
30957 | PR ada/19900 | |
30958 | PR ada/19408 | |
30959 | PR ada/19140 | |
30960 | PR ada/20255 | |
51bc0b4e | 30961 | * decl.c (gnat_to_gnu_field): Reject aliased components with a |
30962 | representation clause that prescribes a size not equal to the rounded | |
30963 | size of their types. | |
30964 | (gnat_to_gnu_entity, case E_Component): Always look at | |
30965 | Original_Record_Component if Present and not the entity. | |
30966 | (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes | |
30967 | of tagged extension types by not making field for components that are | |
30968 | inside the parent. | |
30969 | (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula | |
30970 | (gnat_to_gnu_entity) <E_Variable>: Do not convert again the | |
30971 | expression to the type of the object when the object is constant. | |
30972 | Reverse defer_debug_incomplete_list before traversing it, so that trees | |
30973 | are processed in the order at which they were added to the list. This | |
30974 | order is important when using the stabs debug format. | |
30975 | If we are deferring the output of debug information, also defer this | |
30976 | output for a function return type. | |
30977 | When adding fields to a record, prevent emitting debug information | |
30978 | for incomplete records, emit the information only when the record is | |
30979 | complete. | |
30980 | (components_to_record): New parameter defer_debug. | |
30981 | (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set. | |
30982 | (gnat_to_gnu_field_decl): New function. | |
30983 | (substitution_list, annotate_rep): Call it. | |
30984 | (gnat_to_gnu_entity, case E_Record_Subtype): Likewise. | |
30985 | (gnat_to_gnu_entity, case E_Record_Type): Likewise. | |
30986 | No longer update discriminants to not be a COMPONENT_REF. | |
30987 | (copy_alias_set): Strip padding from input type; also handle | |
30988 | unconstrained arrays properly. | |
30989 | ||
30990 | * gigi.h (write_record_type_debug_info): New function. | |
30991 | Convert to use ANSI-style prototypes. Remove unused | |
30992 | declarations for emit_stack_check, elab_all_gnat and | |
30993 | set_second_error_entity. | |
30994 | (gnat_to_gnu_field_decl): New decl. | |
30995 | ||
30996 | * utils.c (write_record_type_debug_info): New function. | |
30997 | (finish_record_type): Delegate generation of debug information to | |
30998 | write_record_type_debug_info. | |
30999 | (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation. | |
31000 | (update_pointer_to): Fix pasto. | |
31001 | (convert) <UNION_TYPE>: Accept slight type variations when | |
31002 | converting to an unchecked union type. | |
31003 | ||
31004 | * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True, | |
31005 | replace the N_Freeze_Entity with a null statement. | |
31006 | ||
31007 | * freeze.adb (Freeze_Expression): If the freeze nodes are generated | |
31008 | within a constrained subcomponent of an enclosing record, place the | |
31009 | freeze nodes in the scope stack entry for the enclosing record. | |
31010 | (Undelay_Type): New Subprogram. | |
31011 | (Set_Small_Size): Pass T, the type to modify; all callers changed. | |
31012 | (Freeze_Entity, Freeze_Record_Type): Change the way we handle types | |
31013 | within records; allow them to have freeze nodes if their base types | |
31014 | aren't frozen yet. | |
31015 | ||
2d504f3b | 31016 | * exp_util.adb (Remove_Side_Effects): Properly test for |
31017 | Expansion_Delayed and handle case when it's inside an | |
31018 | N_Qualified_Expression. | |
31019 | ||
51bc0b4e | 31020 | * sem_ch3.adb (Derived_Type_Declaration): New predicate |
31021 | Comes_From_Generic, to recognize accurately that the parent type in a | |
31022 | derived type declaration can be traced back to a formal type, because | |
31023 | it is one or is derived from one, or because its completion is derived | |
31024 | from one. | |
31025 | (Constrain_Component_Type): If component comes from source and has no | |
31026 | explicit constraint, no need to constrain in in a subtype of the | |
31027 | enclosing record. | |
31028 | (Constrain_Access, Constrain_Array): Allow itypes to be delayed. | |
31029 | Minor change to propagate Is_Ada_2005 flag | |
31030 | ||
31031 | * trans.c (gnat_to_gnu, case N_Aggregate): Verify that | |
31032 | Expansion_Delayed is False. | |
31033 | (assoc_to_constructor): Ignore fields that have a | |
31034 | Corresponding_Discriminant. | |
31035 | (gnat_to_gnu) <N_Return_Statement>: Restructure. If the | |
31036 | function returns "by target", dereference the target pointer using the | |
31037 | type of the actual return value. | |
31038 | <all>: Be prepared for a null gnu_result. | |
31039 | (processed_inline_subprograms): Check flag_really_no_inline | |
31040 | instead of flag_no_inline. | |
31041 | (set_second_error_entity): Remove unused function. | |
31042 | (gnat_to_gnu, case N_Selected_Component): Call | |
31043 | gnat_to_gnu_field_decl. | |
31044 | (assoc_to_constructor): Likewise. | |
31045 | ||
31046 | 2005-03-15 Robert Dewar <dewar@adacore.com> | |
31047 | Ed Schonberg <schonberg@adacore.com> | |
31048 | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
31049 | ||
51bc0b4e | 31050 | * exp_pakd.adb (Create_Packed_Array_Type): Do not set |
31051 | Must_Be_Byte_Aligned for cases where we do not need to use a | |
31052 | System.Pack_nn unit. | |
31053 | ||
31054 | * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well | |
31055 | as procedures. | |
31056 | Needed now that we do some processing for IN parameters as well. This | |
31057 | may well fix some unrelated errors. | |
31058 | (Expand_Call): Handle case of unaligned objects (in particular those | |
31059 | that come from packed arrays). | |
31060 | (Expand_Inlined_Call): If the subprogram is a renaming as body, and the | |
31061 | renamed entity is an inherited operation, re-expand the call using the | |
31062 | original operation, which is the one to call. | |
31063 | Detect attempt to inline parameterless recursive subprogram. | |
31064 | (Represented_As_Scalar): Fix to work properly with private types | |
31065 | (Is_Possibly_Unaligned_Object): Major rewrite to get a much more | |
31066 | accurate estimate. Yields True in far fewer cases than before, | |
31067 | improving the quality of code that depends on this test. | |
51bc0b4e | 31068 | |
31069 | * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate | |
31070 | over both visible and private declarations to remove them from tree, | |
31071 | and mark subprograms declared in package as eliminated, to prevent | |
31072 | spurious use in subsequent compilation of generic units in the context. | |
31073 | ||
31074 | * exp_util.ads: Minor cleanup in variable names | |
31075 | ||
31076 | * sem_eval.ads, sem_eval.adb: Minor reformatting | |
31077 | (Compile_Time_Known_Bounds): New function | |
31078 | ||
31079 | 2005-03-15 Ed Schonberg <schonberg@adacore.com> | |
31080 | ||
31081 | * exp_ch7.adb (Convert_View): Use base types of underlying types when | |
31082 | determining whether an unchecked conversion is needed for the argument | |
31083 | of an initialization call. | |
31084 | ||
31085 | 2005-03-15 Ed Schonberg <schonberg@adacore.com> | |
31086 | ||
31087 | * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type | |
31088 | that appears in the instantiation rather than the internal subtype | |
31089 | generated in the wrapper package, to avoid anomalies in gigi when the | |
31090 | target is derived from a private type whose full view is an access type. | |
31091 | ||
31092 | 2005-03-15 Robert Dewar <dewar@adacore.com> | |
31093 | ||
31094 | * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used, | |
31095 | not needed. | |
31096 | Add documentation to replace the use of this flag | |
31097 | Fix kludge for Maximum_Alignment on x86 so that it does not apply to | |
31098 | the x86_64. | |
31099 | ||
31100 | 2005-03-15 Thomas Quinot <quinot@adacore.com> | |
31101 | ||
31102 | * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved | |
31103 | here from exp_attr so it can be shared between exp_attr and exp_dist. | |
31104 | (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of | |
31105 | all TSS names, not a subset thereof, and the previous name introduced | |
31106 | an unnecessarily confusion that a distinction might exist between | |
31107 | "OK" TSS names and some "not OK" TSS names. | |
31108 | ||
31109 | 2005-03-15 Doug Rupp <rupp@adacore.com> | |
31110 | ||
31111 | * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style | |
31112 | Command_Name. | |
31113 | ||
31114 | 2005-03-15 Pascal Obry <obry@adacore.com> | |
31115 | Eric Botcazou <ebotcazou@adacore.com> | |
31116 | ||
31117 | PR ada/20226 | |
31118 | PR ada/20344 | |
51bc0b4e | 31119 | * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler() |
31120 | when IN_RTS. This is to work around a bootstrap path problem. | |
31121 | ||
31122 | * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler) | |
31123 | table and pass it to __gnat_install_SEH_handler(). | |
31124 | (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS. | |
31125 | ||
31126 | * lang.opt: Fix specification of -fRTS=. | |
31127 | ||
31128 | 2005-03-15 Doug Rupp <rupp@adacore.com> | |
31129 | Bernard Banner <banner@adacore.com> | |
31130 | Vincent Celier <celier@adacore.com> | |
31131 | Arnaud Charlet <charlet@adacore.com> | |
31132 | ||
31133 | PR ada/6852 | |
31134 | This change works fine when gnatlib is built from the gcc directory, | |
31135 | but does not work when using the libada Makefile, since GCC_FOR_TARGET | |
31136 | is not passed to ada/Makefile.in, so more work is needed by a | |
31137 | Makefile/configure expert. | |
31138 | ||
31139 | * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library. | |
31140 | set GMEM_LIB on ia64 linux to add optional support for gnatmem. | |
31141 | Setup gnatlink switch -M for x86_64 linux, as it is already setup | |
31142 | for Linux x86. | |
31143 | (gnatlib-shared-default): Use GNATLIBCFLAGS as well. | |
31144 | Run ranlib on libgccprefix.a | |
31145 | Define PREFIX_OBJS for Darwin, to build libgccprefix. | |
31146 | (ADA_INCLUDE_SRCS): Split Ada packages. | |
31147 | ||
31148 | 2005-03-15 Robert Dewar <dewar@adacore.com> | |
31149 | ||
31150 | * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind | |
31151 | ||
31152 | * impunit.adb: Add GNAT.UTF_32 | |
31153 | ||
31154 | * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff | |
31155 | ||
31156 | * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng | |
31157 | now uses GNAT.UTF_32). | |
31158 | ||
31159 | * g-utf_32.ads, g-utf_32.adb: This is a new unit with full | |
31160 | capabilities for categorizing characters using Unicode categories | |
31161 | ||
31162 | 2005-03-15 Ed Schonberg <schonberg@adacore.com> | |
31163 | ||
31164 | * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an | |
31165 | instantiation that has been rewritten as a package body, retrieve spec | |
31166 | to generate proper name for implicit_with_clause. | |
31167 | (Install_Parents): Recognize a parent that is an instantiation but has | |
31168 | been rewritten as a package declaration during analysis. | |
31169 | ||
31170 | 2005-03-15 Javier Miranda <miranda@adacore.com> | |
31171 | Ed Schonberg <schonberg@adacore.com> | |
31172 | ||
31173 | * sem_ch12.adb (Instantiate_Object): If the analysis of the actual | |
31174 | parameter reported some error we immediately return. This improves the | |
31175 | behaviour of the frontend in case of errors. | |
31176 | (Install_Parent, Remove_Parent): Introduce new flag | |
31177 | Parent_Unit_Visible, to preserve the proper visibility of the ultimate | |
31178 | ancestor of a generic child unit, when the child is being instantiated. | |
31179 | (Inline_Instance_Body): If we are compiling the private | |
31180 | part or the body of a child unit, restore the proper visibility of the | |
31181 | parents after compiling the instance body. | |
31182 | ||
31183 | 2005-03-15 Ed Schonberg <schonberg@adacore.com> | |
31184 | Javier Miranda <miranda@adacore.com> | |
31185 | ||
31186 | PR ada/15608 | |
31187 | * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion | |
31188 | of a private type, in which case it is underlying_type that denotes | |
31189 | the proper task. Also modified to use the new entity attribute | |
31190 | that is directly available in the task type and task subtype entities | |
31191 | (Build_Actual_Subtype_Of_Component): Handle properly multidimensional | |
31192 | arrays when other dimensions than the first are constrained by | |
31193 | discriminants of an enclosing record. | |
31194 | (Insert_Explicit_Dereference): If the prefix is an indexed component or | |
31195 | a combination of indexed and selected components, find ultimate entity | |
31196 | and generate the appropriate reference for it, to suppress spurious | |
31197 | warnings. | |
31198 | (Note_Possible_Modification): If an entity name has no entity, return. | |
31199 | (Is_Variable): A function call never denotes a variable. | |
31200 | (Requires_Transient_Scope): For record types, recurse only on | |
31201 | components, not on internal subtypes that may have been generated for | |
31202 | constrained components. | |
31203 | ||
31204 | 2005-03-15 Ed Schonberg <schonberg@adacore.com> | |
31205 | ||
31206 | * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked | |
31207 | Eliminated as candidates for resolution. Both efficient, and avoids | |
31208 | anomalies with operators declared in deleted code. | |
31209 | (Process_Implicit_Dereference_Prefix): Use this procedure whenever | |
31210 | expansion is disabled (as when compiling a generic) to prevent spurious | |
31211 | warnings on prefixes of selected components. | |
31212 | ||
31213 | 2005-03-15 Ed Schonberg <schonberg@adacore.com> | |
31214 | ||
31215 | * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is | |
31216 | attached to a list before checking whether it appears in the private | |
31217 | declarations of the current package. | |
31218 | (Make_Inequality_Operator): Insert declaration in proper declarative | |
31219 | list rather than just setting the Parent field, so that | |
31220 | Is_Private_Declaration can handle it properly. | |
31221 | ||
31222 | 2005-03-15 Ed Schonberg <schonberg@adacore.com> | |
31223 | ||
31224 | * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is | |
31225 | a renaming a body, check that the renamed subprogram in not intrinsic. | |
31226 | (Find_Direct_Name): If several use_visible entities hide | |
31227 | each other, and the context is a predefined file compiled through | |
31228 | rtsfind, keep only the entity that comes from a predefined file. | |
31229 | ||
31230 | 2005-03-15 Geert Bosch <bosch@adacore.com> | |
31231 | ||
31232 | * s-fatgen.adb (Valid): Extend special exceptions to account for long | |
31233 | long float padding to also cover AMD64 and IA64. | |
31234 | ||
31235 | 2005-03-15 Gary Dismukes <dismukes@adacore.com> | |
31236 | ||
31237 | * s-imgwch.adb: Add with and use of Interfaces. | |
31238 | (Img_Wide_Character): Change type of Val to Unsigned_16. | |
31239 | (Img_Wide_Wide_Character): Change type of Val to Unsigned_32. | |
31240 | ||
31241 | 2005-03-15 Matthew Gingell <gingell@adacore.com> | |
31242 | ||
31243 | * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX. | |
31244 | ||
31245 | 2005-03-15 Robert Dewar <dewar@adacore.com> | |
31246 | ||
31247 | * usage.adb: Add missing lines for -gnat95 and -gnat05 switches | |
31248 | ||
31249 | * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag | |
31250 | ||
31251 | * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95 | |
31252 | ||
31253 | 2005-03-15 Robert Dewar <dewar@adacore.com> | |
31254 | ||
31255 | * s-bitops.adb, s-bitops.ads, | |
31256 | s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads, | |
31257 | s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb, | |
31258 | tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads, | |
31259 | s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads, | |
31260 | s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads, | |
31261 | s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads, | |
31262 | s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, | |
31263 | s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor | |
31264 | reformatting. | |
31265 | ||
31266 | 2005-03-15 Eric Botcazou <ebotcazou@adacore.com> | |
31267 | ||
31268 | * utils2.c (build_binary_op): Fix typo. | |
31269 | ||
31270 | 2005-03-15 Doug Rupp <rupp@adacore.com> | |
31271 | ||
31272 | * s-crtl.ads (popen,pclose): New imports. | |
31273 | ||
31274 | 2005-03-15 Cyrille Comar <comar@adacore.com> | |
31275 | ||
31276 | * comperr.adb (Compiler_Abort): remove references to obsolete | |
31277 | procedures in the bug boxes for various GNAT builds. | |
31278 | ||
31279 | 2005-03-15 Vincent Celier <celier@adacore.com> | |
31280 | ||
31281 | * snames.ads, snames.adb: Save as Unix text file, not as DOS text file | |
31282 | ||
31283 | 2005-03-15 Geert Bosch <bosch@adacore.com> | |
31284 | Arnaud Charlet <charlet@adacore.com> | |
31285 | Robert Dewar <dewar@adacore.com> | |
31286 | Cyrille Comar <comar@adacore.com> | |
31287 | Sergey Rybin <rybin@adacore.com> | |
31288 | ||
31289 | * gnat_ugn.texi: Remove extended inline assembly example, as it was far | |
31290 | too specific and long-winded to be appropriate for the GNAT User's | |
31291 | Guide. | |
31292 | Warn about use of GCC switches not documented in the GNAT User's Guide, | |
31293 | as these may cause generated code to not conform to Ada semantics. | |
31294 | Remove mention of -gdwarf-2 for sparc64, since this is now the default. | |
31295 | Add documentation for -gnat95 and -gnat05 switches | |
31296 | Remove paragraph documenting obsolete way to refer to third party | |
31297 | libraries. | |
31298 | Add a few references to Ada_05 that were missing. | |
31299 | Update documentation on -gnatZ/-gnatL. | |
31300 | Document limitation when using -m64 under Solaris. | |
31301 | Change the "Name Casing" subsection of the pretty-printer section | |
31302 | according to the changes in the dictionary processing. | |
31303 | ||
31304 | * gnat_rm.texi: Document the Ada_05 pragma. | |
31305 | Section on record representation clauses describes the new more | |
31306 | relaxed rules about placement of large packed bit array components. | |
31307 | Add documentation of GNAT.UTF_32 | |
31308 | ||
8a67bb47 | 31309 | 2005-03-12 Daniel Berlin <dberlin@dberlin.org> |
2be14d8b | 31310 | |
31311 | * misc.c (gnat_post_options): Turn off structural | |
31312 | aliasing for now. | |
51bc0b4e | 31313 | |
8a67bb47 | 31314 | 2005-03-08 Laurent Guerby <laurent@guerby.net> |
9f950ad0 | 31315 | |
31316 | * system-linux-sparc.ads: Fix typo in previous commit. | |
31317 | ||
8a67bb47 | 31318 | 2005-03-07 James A. Morrison <phython@gcc.gnu.org> |
31319 | Laurent Guerby <laurent@guerby.net> | |
de455bfb | 31320 | |
1af67e62 | 31321 | PR ada/20035 |
31322 | * system-linux-sparc.ads: New. | |
31323 | * Makefile.in: Add sparc linux entry. | |
de455bfb | 31324 | |
1af67e62 | 31325 | 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net> |
fa94fe2c | 31326 | |
1af67e62 | 31327 | * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth |
fa94fe2c | 31328 | parameters as unused. |
31329 | ||
a136b23d | 31330 | 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org> |
31331 | Partial merge from libada-gnattools-branch: | |
31332 | ||
31333 | 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org> | |
1af67e62 | 31334 | * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags |
31335 | into code in gnattools/Makefile.in. Remove direct dependencies on | |
31336 | stamp-tools by tools clauses. | |
a136b23d | 31337 | 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org> |
1af67e62 | 31338 | * config-lang.in: Add gnattools to $lang_dirs. |
a136b23d | 31339 | |
a7c3d85f | 31340 | 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu> |
31341 | ||
31342 | PR ada/19942 | |
80b846fb | 31343 | * utils.c (gnat_type_for_mode): Return null instead of ICE because |
1af67e62 | 31344 | we asked for an unknown mode. |
a7c3d85f | 31345 | |
5740df12 | 31346 | 2005-02-12 Richard Henderson <rth@redhat.com> |
31347 | ||
31348 | * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes; | |
31349 | validate SCALAR_INT_MODE_P before calling gnat_type_for_size. | |
31350 | ||
f6c3c7ed | 31351 | 2005-02-10 Andreas Jaeger <aj@suse.de> |
31352 | ||
31353 | * init.c (__gnat_initialize): Mark parameter as unused. | |
31354 | ||
19f96971 | 31355 | 2005-02-09 Doug Rupp <rupp@adacore.com> |
31356 | ||
31357 | * g-expect-vms.adb (Non_Blocking_Spawn): Separate out. | |
31358 | * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits. | |
31359 | ||
31360 | 2005-02-09 Doug Rupp <rupp@adacore.com> | |
31361 | ||
31362 | * gnatchop.adb (dup, dup2), | |
31363 | g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL. | |
31364 | ||
31365 | * gnatlbr.adb (mkdir), | |
31366 | mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix. | |
31367 | ||
31368 | * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import. | |
31369 | ||
31370 | 2005-02-09 Doug Rupp <rupp@adacore.com> | |
31371 | ||
31372 | * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions. | |
31373 | ||
31374 | 2005-02-09 Robert Dewar <dewar@adacore.com> | |
31375 | Thomas Quinot <quinot@adacore.com> | |
31376 | Javier Miranda <miranda@adacore.com> | |
31377 | Pascal Obry <obry@adacore.com> | |
31378 | Ed Schonberg <schonberg@adacore.com> | |
31379 | Doug Rupp <rupp@adacore.com> | |
31380 | Gary Dismukes <dismukes@adacore.com> | |
31381 | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
31382 | ||
31383 | * g-zstspl.ads: New file. | |
31384 | ||
31385 | * a-chahan.ads, a-chahan.adb: Add declarations from AI-285 | |
31386 | ||
31387 | * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in | |
31388 | Ada 95 mode | |
31389 | Add definition of Wide_Wide_Space for AI-285 | |
31390 | ||
31391 | * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new | |
31392 | interface (to support Ada 95 and Ada 2005 units). | |
31393 | Add Unbounded_IO files | |
31394 | Add entries for Wide_Wide packages for AI-285 | |
31395 | Add list of containers packages to Ada 2005 unit list | |
31396 | ||
31397 | * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to | |
31398 | support new Unbounded_IO package cleanly. | |
31399 | ||
31400 | * g-utf_32.ads, g-utf_32.adb: New files. | |
31401 | ||
31402 | * Makefile.rtl: Add entry for g-utf_32 | |
31403 | Add new files for Unbounded_IO | |
31404 | Adjust make file for new AI-285 wide wide packages | |
31405 | Add AI-302 containers to the run time. | |
31406 | ||
31407 | * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads, | |
31408 | a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New | |
31409 | subprograms for AI-301. | |
31410 | ||
31411 | * a-stwiun.adb, a-stwiun.ads: Minor reformatting. | |
31412 | ||
31413 | * a-stunau.ads: Minor comment correction | |
31414 | ||
31415 | * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes | |
31416 | etc. | |
31417 | Also extend Text_IO_Kludge to support Wide_Wide_Text_IO | |
31418 | (Check_RPC): Update to match changes in expanded code. | |
31419 | Clean up unused entity. | |
31420 | ||
31421 | * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String | |
31422 | was not taken into account. | |
31423 | This includes proper initialization with Normalize_Scalars. | |
31424 | (Get_Simple_Init_Val): Major rewrite for initialize scalars and | |
31425 | normalize scalars cases (particularly the latter) to do a better job | |
31426 | of finding invalid representations. | |
31427 | ||
31428 | * s-scaval.ads, s-scaval.adb: Add values for zero invalid values | |
31429 | ||
31430 | * s-strops.ads, s-strops.adb: Remove string normalize routines, never | |
31431 | used | |
31432 | ||
31433 | * exp_dist.adb: Add support for wide wide character type | |
31434 | (Expand_Receiving_Stubs_Bodies): For a package declaration that has a | |
31435 | private part, generate stub bodies at the end of the private part, | |
31436 | not the visible part. | |
31437 | (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for | |
31438 | PolyORB support. | |
31439 | (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and | |
31440 | generic wrapper to execute final processing after completing the | |
31441 | expansion of the RPC receiver for an RACW. | |
31442 | ||
31443 | * snames.h, snames.ads, snames.adb: Add definitions for wide_wide | |
31444 | packages and attributes. | |
31445 | (Preset_Names): Addition of the new reserved words of Ada 2005, | |
31446 | that is interface, overriding and synchronized. | |
31447 | (Get_Pragma_Id): Give support to the use of the new reserved word | |
31448 | "interface" as a pragma name. | |
31449 | (Is_Pragma_Name): Give support to the use of the new reserved word | |
31450 | "interface" as a pragma name. | |
31451 | (Preset_Names): Add stream_size string for the Stream_Size Ada2005 | |
31452 | attribute implementation. | |
31453 | ||
31454 | * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity | |
31455 | checks to entities that are output parameters of Asm operations. | |
31456 | Handle the Stream_Size attribute. | |
31457 | Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width | |
31458 | ||
31459 | * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type | |
31460 | ||
31461 | * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error | |
31462 | for second parameter being 0.0. | |
31463 | Add support for wide wide character type. | |
31464 | (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute. | |
31465 | ||
31466 | * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb, | |
31467 | s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads, | |
31468 | s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads, | |
31469 | s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support | |
31470 | for wide wide character cases. | |
31471 | ||
31472 | * cstand.adb: Create entities for Wide_Wide_Character and | |
31473 | Wide_Wide_String. | |
31474 | ||
31475 | * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in | |
31476 | accordance with AI-258. | |
31477 | Add new declarations for 16/32 bit C character types (Part of AI285) | |
31478 | ||
31479 | * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag | |
31480 | (Obsolescent_Warning): New field | |
31481 | (Rep_Clause): New local subprogram used to share code. Returns the rep | |
31482 | clause for which the name is given in parameter. | |
31483 | (Has_Stream_Size_Clause): New routine. | |
31484 | (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause. | |
31485 | (Address_Clause): Implementation is now using Rep_Clause. | |
31486 | (Alignment_Clause): Idem. | |
31487 | (Size_Clause): Idem. | |
31488 | ||
31489 | * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005 | |
31490 | entity in non-Ada 2005 mode and generate warning. | |
31491 | ||
31492 | * par-prag.adb: Add handling of one argument form for pragma Ada_05. | |
31493 | (Prag): Code cleanup. Remove old gnat pragma "overriding" | |
31494 | ||
31495 | * sem_prag.adb: Add handling of one argument form for pragma Ada_05 | |
31496 | (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings | |
31497 | on the named unit if the pragma is not in the current compilation unit, | |
31498 | so that elaboration calls in the current unit can set up an elaboration | |
31499 | dependency on the named unit, as needed. | |
31500 | (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library | |
31501 | subprogram as well as for subprograms declared within a package. | |
31502 | (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT | |
31503 | pragma overriding. | |
31504 | ||
31505 | * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched | |
31506 | to z) to avoid some instances of duplication for Wide_Wide packages. | |
31507 | ||
31508 | * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide | |
31509 | characters. | |
31510 | ||
31511 | * scn.adb: Char_Literal_Value field is now a Uint | |
31512 | ||
31513 | * scng.adb: Significant rewrite to handle new Ada 2005 features | |
31514 | allowing wide and wide wide characters in program text, e.g. for | |
31515 | identifiers, as described in AI-285. | |
31516 | (Set_Reserved): New procedure, makes setting up keywords cleaner. | |
31517 | (Initialize_Scanner): Register the new reserved words of Ada 2005. | |
31518 | (Scan): Give support to the new reserved words. | |
31519 | ||
31520 | * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a | |
31521 | warning notifying that interface, overriding, and synchronized are | |
31522 | new reserved words. | |
31523 | (P_Pragma): Allow the use of the new reserved word "interface" as | |
31524 | a pragma name. | |
31525 | ||
31526 | * gnatls.adb, gnatbind.adb, | |
31527 | ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename | |
31528 | identifiers named "interface" to "SAL_Interface". | |
31529 | ||
31530 | * bindgen.adb (Gen_Main_Ada): Add support for the new SEH | |
31531 | (Structured Exception handling). | |
31532 | (Gen_Main_C): Idem. | |
31533 | ||
1af67e62 | 31534 | * bindgen.adb: |
19f96971 | 31535 | (Gen_Main_Ada): Set the default exit code if specified. |
31536 | (Gen_Main_C): Likewise. | |
31537 | Part of *DC20-006. | |
31538 | (Gen_Output_File_C): Remove redundant output of gnat_exit_status. | |
31539 | Code cleanup. Rename identifiers named "interface" to "SAL_Interface" | |
31540 | ||
31541 | * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of | |
31542 | new -Xnnn switch. | |
31543 | ||
31544 | * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that | |
31545 | has a collision with the new Ada 2005 "interface" reserved word. | |
31546 | ||
31547 | * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode, | |
31548 | generate a warning notifying that interface, overriding, and | |
31549 | synchronized are new reserved words. | |
31550 | ||
31551 | * scans.ads (Token_Type): Addition of the tokens corresponding to the | |
31552 | new reserved words of Ada 2005: Tok_Interface, Tok_Overriding | |
31553 | and Tok_Synchronized. | |
31554 | ||
31555 | * sem_res.adb (Resolve_Actuals): Change error messages to refer to | |
31556 | "dispatching" rather than "primitive" operations, since dispatching | |
31557 | calls are now allowed to abstract formal subprograms (which are not | |
31558 | primitive). | |
31559 | Char_Literal_Value field is now a Uint | |
31560 | (Resolve_Slice): If the prefix is an access to an unconstrained array, | |
31561 | compute the actual subtype of the designated object to impose the proper | |
31562 | index constraints. | |
31563 | (Resolve_Selected_Component): Do not insert an access check if the | |
31564 | prefix is an access type: such a node is expanded into an explicit | |
31565 | dereference, on which the access check is performed anyway. Removes | |
31566 | expensive duplicate checks. | |
31567 | (Resolve_Call): Use new flag Is_Obsolescent and field | |
31568 | Obsolescent_Warning so that pragma Obsolescent works on library | |
31569 | subprograms. | |
31570 | Add support for wide wide character type | |
31571 | (Resolve_Allocator): Replace the error message on wrong null-exclusion | |
31572 | value by a warning message. | |
31573 | (Resolve_Type_Conversion): If the mixed-mode expression is interpreted | |
31574 | as fixed-point, and one of the operands is non-static and universal, it | |
31575 | can only be an illegal exponentiation operation, in which case there is | |
31576 | no real value to retrieve. | |
31577 | ||
31578 | * exp_strm.adb: Add support for wide wide character type | |
31579 | (Build_Elementary_Input_Call): Compute the size of the stream element by | |
31580 | querying the rep chain to find the Stream_Attribute attribute value. | |
31581 | (Build_Elementary_Write_Call): Ditto. | |
31582 | ||
31583 | * sem_aggr.adb: Char_Literal_Value field is now a Uint | |
31584 | Add support for wide wide character type | |
31585 | Replace the error messages on wrong null-exclusion value by warnings | |
31586 | as described in Ada 2005. | |
31587 | (Resolve_Extension_Aggregate): Document the fact that the error | |
31588 | message on class-wide expressions in extensions aggregates. | |
31589 | ||
31590 | * sem_case.adb: Add support for wide wide character type | |
31591 | ||
31592 | * sem_ch13.adb: Add support for wide wide character type | |
31593 | (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute. | |
31594 | ||
31595 | * sem_ch3.adb: Add support for wide wide character type | |
31596 | (Process_Subtype): If constraint is illegal for the type, set Ekind of | |
31597 | now-useless Itype, to prevent cascaded errors on a compiler built | |
31598 | without -gnatp. | |
31599 | ||
31600 | * sem_ch8.adb: Add with and use of Sem_Disp. | |
31601 | (Analyze_Subprogram_Renaming): Replace unclean uses of | |
31602 | Corresponding_Spec with Corresponding_Formal_Spec (and delete setting | |
31603 | of Corresponding_Spec to Empty). | |
31604 | (Attribute_Renaming): Replace use of Corresponding_Spec with | |
31605 | Corresponding_ Formal_Spec and simplify condition. | |
31606 | (Use_One_Package): Check that scope of homonym of identifier is defined, | |
31607 | before checking whether it is a wrapper package. | |
31608 | Add support for wide wide character type | |
31609 | ||
31610 | * sem_eval.adb: Add support for wide wide character type. | |
31611 | (Eval_Arithmetic_Op): Check for compile time known signed integer | |
31612 | overflow in the non-static case. | |
31613 | (Subtypes_Statically_Match): A formal scalar type and its base type do | |
31614 | not statically match. | |
31615 | ||
31616 | * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to | |
31617 | "not in" for test of N_Formal_Subprogram_Declaration (which is now a | |
31618 | subtype). | |
31619 | (Unit_Declaration_Node): Ditto. | |
31620 | (Is_Variable_Prefix): For the case of an indexed component whose prefix | |
31621 | has a packed array type, the prefix has been rewritten into a type | |
31622 | conversion. Determine variable-ness from the converted expression. | |
31623 | Handle wide wide character cases. | |
31624 | ||
31625 | * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String | |
31626 | ||
31627 | * stringt.ads, stringt.adb: Handle full UTF-32 range. | |
31628 | Remove ["0A"] from comment, since it can look like a line terminator. | |
31629 | Currently we don't permit this, but this is under discussion by the | |
31630 | ARG, and it is easy enough to use a different example. | |
31631 | ||
31632 | * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for | |
31633 | handling UTF-32 encoding for wide wide character. | |
31634 | Implement new brackets coding ["hhhhhhhh"] | |
31635 | Add UTF-8 encodings for full UTF-32 range | |
31636 | ||
31637 | * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size | |
31638 | ||
31639 | * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31 | |
31640 | bit range Add full UTF-32 support. | |
31641 | (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to | |
31642 | notify that constraint error will be raised at run-time | |
31643 | because a null value is assigned to a null-excluding object. | |
31644 | Remove some obsolete declarations and make Char_Code | |
31645 | unsigned. | |
31646 | ||
31647 | * a-except.adb (Rcheck_30): New subprogram. Addition of the message | |
31648 | corresponding to CE_Null_Not_Allowed, and adjust the output of all the | |
31649 | Rcheck subprograms. | |
31650 | ||
31651 | * checks.adb (Check_Null_Not_Allowed): Replace the error message on | |
31652 | wrong null-exclusion value by a warning message. | |
31653 | (Enable_Range_Check): Do range check if the prefix is an | |
31654 | explicit dereference whose designated object is an unconstrained array. | |
31655 | Current algorithm for removing duplicate checks is over-eager in this | |
31656 | case. | |
31657 | ||
31658 | * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong | |
31659 | null-exclusion value by a warning message | |
31660 | ||
31661 | * atree.h, atree.ads, atree.adb: Remove Char_Code field support | |
31662 | completely. Add support for Uint2 field | |
31663 | ||
31664 | sem_ch2.adb, exp_ch11.adb, exp_dbug.adb, | |
31665 | exp_prag.adb: Char_Literal_Value field is now a Uint. | |
31666 | ||
31667 | * exp_util.adb (Insert_Actions): Replace | |
31668 | N_Formal_Subprogram_Declaration by | |
31669 | N_Formal_{Abstract|Concrete}_Subprogram_Declaration. | |
31670 | Char_Literal_Value field is now a Uint. | |
31671 | ||
31672 | * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function | |
31673 | defined for subprogram renaming declarations. When set, the field | |
31674 | indicates the defining entity of a corresponding formal subprogram | |
31675 | when the renaming corresponds to a formal subprogram association in an | |
31676 | instantiation. | |
31677 | (Set_Corresponding_Formal_Spec): New procedure to return | |
31678 | Corresponding_Formal_Spec field. | |
31679 | Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration | |
31680 | (which is now a subtype). | |
31681 | Char_Literal_Value field is now a Uint | |
31682 | ||
31683 | * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the | |
31684 | pointer to the base of the dispatch table. | |
31685 | Minor changes to comments. | |
31686 | (Controlling_Type): New function for determining the tagged type | |
31687 | associated with a tagged primitive subprogram. | |
31688 | (Expand_Dispatching_Call): Add support for a controlling actual that is | |
31689 | directly a value of type Ada.Tag rather than a tagged object. | |
31690 | ||
31691 | * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation | |
31692 | describing the new layout. | |
31693 | (Dispatch_Table): The expander computes the actual array size, allocates | |
31694 | the Dispatch_Table record accordingly, and generates code that displaces | |
31695 | the base of the record after the Typeinfo_Ptr component. The access to | |
31696 | these components is done by means of local functions. | |
31697 | (Offset_To_Top): New function. | |
31698 | (Typeinfo_Ptr): New function. | |
31699 | (Get_TSD): Modified to access the new position of the TSD. | |
31700 | (Set_TSD): Modified to save the TSD in its new position. | |
31701 | ||
31702 | * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the | |
31703 | case of formal abstract subprograms. Add check and message for -gnat05. | |
31704 | Update comments. | |
31705 | ||
31706 | * sem_ch12.adb: Add with and use for Sem_Disp. | |
31707 | (Analyze_Associations): Minor change from "=" to "in" for use of | |
31708 | N_Formal_Subtype_Declaration (which is now a subtype). | |
31709 | (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of | |
31710 | N_Formal_Subtype_Declaration (which is now a subtype). | |
31711 | (Analyze_Formal_Subprogram): Add handling for | |
31712 | N_Formal_Abstract_Subprogram, marking the formal as abstract and | |
31713 | dispatching, setting the controlling status of the formal parameters | |
31714 | and result, and issuing an error if there is no controlling type for | |
31715 | the formal subprogram. | |
31716 | (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec, | |
31717 | which is an unclean use of that field, we set the new field | |
31718 | Corresponding_Formal_Spec to make the formal subprogram available to | |
31719 | processing in Analyze_Subprogram_Declaration. | |
31720 | (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point, | |
31721 | Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type | |
31722 | Constrained, so that it is is does not statically match its anonymous | |
31723 | base type. | |
31724 | ||
31725 | * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for | |
31726 | abstract formal subprograms in error check for functions returning | |
31727 | abstract types. Set scope of new designator for | |
31728 | a parameterless subprogram, so that it is available when checking the | |
31729 | body for nested subprograms, before full analysis of said body. | |
31730 | (Analyze_Subprogram_Body): Warn on inlining bodies with nested | |
31731 | subprogram only if inner one comes from source. | |
31732 | (Analyze_Function_Call): If the call is given in object notation, the | |
31733 | analysis of the name rewrites the node and analyzes it with the proper | |
31734 | argument list. After analyzing the name, if the call has been rewritten | |
31735 | and the result type is set, no further analysis is needed. | |
31736 | (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype | |
31737 | mark in function specification, in a context where the formals are | |
31738 | visible and hide outer homographs. | |
31739 | ||
31740 | * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope | |
31741 | as the tagged type for the cases of abstract formal subprograms and | |
31742 | renamings of those. Clean up spec comments. | |
31743 | (Check_Dispatching_Context): Add error message to indicate "abstract | |
31744 | procedure", covering the case of a call to a formal abstract procedure | |
31745 | that has statically tagged operands. | |
31746 | (Check_Dispatching_Call): Check for the case of an actual given by | |
31747 | a tag-indeterminate function call whose type is an ancestor of the | |
31748 | containing call's associated tagged type. This situation can occur | |
31749 | for inherited primitives with function defaults. In this case we | |
31750 | use the tagged type's tag directly as the controlling argument for | |
31751 | the calls. | |
31752 | (Expand_Call): Name change on call to Expand_Dispatch_Call. | |
31753 | ||
31754 | * sprint.adb (Sprint_Node_Actual): Split | |
31755 | N_Formal_Subprogram_Declaration into two alternatives for the new | |
31756 | cases N_Formal_Abstract_Subprogram_Declaration and | |
31757 | N_Formal_Concrete_Subprogram_Declaration. | |
31758 | Char_Literal_Value field is now a Uint. | |
31759 | ||
31760 | * trans.c: Get rid of junk Uint2 reference. | |
31761 | Char_Literal_Value field is now a Uint. | |
31762 | (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P. | |
31763 | (gigi): Correct third arg to gimplify_body. | |
31764 | ||
31765 | * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag. | |
31766 | (TYPE_LANG_FLAG_0): Check for record or union. | |
31767 | ||
31768 | * treepr.adb: Char_Literal_Value field is now a Uint | |
31769 | ||
31770 | * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and | |
31771 | UI_From_CC. | |
31772 | ||
31773 | * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function | |
31774 | Add full UTF-32 support | |
31775 | Char_Code is now 32 bits | |
31776 | ||
31777 | * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with | |
31778 | wide character UTF_32 line terminators. | |
31779 | Initialize Main_Source_File to avoid error when no main | |
31780 | source is loaded. | |
31781 | ||
31782 | * errout.adb (Finalize): Do not check Num_SRef_Pragmas | |
31783 | (Main_Source_File) when no main source has been loaded, to avoid | |
31784 | potential crash. | |
31785 | ||
31786 | 2005-02-09 Robert Dewar <dewar@adacore.com> | |
31787 | ||
1af67e62 | 31788 | * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements |
31789 | Fix name of Set routine | |
19f96971 | 31790 | |
31791 | * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to | |
31792 | fixed packages. | |
31793 | ||
31794 | * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb, | |
31795 | a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to | |
31796 | fixed packages | |
31797 | ||
31798 | * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function | |
31799 | forms of Get_Line subprograms for AI-301. | |
31800 | ||
31801 | * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, | |
31802 | a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb, | |
31803 | a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb, | |
31804 | a-stwima.ads: Minor reformatting. | |
31805 | ||
31806 | 2005-02-09 Doug Rupp <rupp@adacore.com> | |
31807 | Thomas Quinot <quinot@adacore.com> | |
31808 | ||
31809 | * adaint.c, adaint.h | |
31810 | [VMS] (to_ptr32): New function. | |
31811 | (MAYBE_TO_PTR32): New macro. | |
31812 | (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv | |
31813 | for pointer size. | |
31814 | [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field. | |
31815 | [VMS] (#define fork()): Remove since unneccessary. | |
31816 | (__gnat_set_close_on_exec): New routine to support | |
31817 | GNAT.OS_Lib.Set_Close_On_Exec. | |
31818 | ||
31819 | * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for | |
31820 | the parent side as close-on-exec so that they are not inherited by the | |
31821 | child. | |
31822 | ||
31823 | * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to | |
31824 | set or clear the FD_CLOEXEC flag on a file descriptor. | |
31825 | ||
31826 | 2005-02-09 Eric Botcazou <ebotcazou@adacore.com> | |
31827 | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
31828 | ||
d4c15061 | 31829 | PR ada/19386 |
1af67e62 | 31830 | * decl.c: |
19f96971 | 31831 | (gnat_to_gnu_field): Do not necessarily invoke make_packable_type |
31832 | on the field if Pragma Component_Alignment (Storage_Unit). | |
31833 | (gnat_to_gnu_entity, case object): Do not treat a renaming that has | |
31834 | side-effects as if it were a constant; also make SAVE_EXPR to protect | |
31835 | side-effects. | |
31836 | (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a | |
31837 | UNION_TYPE. | |
31838 | (make_dummy_type): Set TYPE_UNCHECKED_UNION_P. | |
31839 | (components_to_record): Test it. | |
31840 | Fix improper usage of REFERENCE_CLASS_P. | |
31841 | ||
31842 | * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as | |
31843 | RECORD_TYPE. | |
31844 | ||
31845 | * utils2.c: Minor reformatting. | |
31846 | ||
31847 | * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION; | |
31848 | handle other cases like RECORD_TYPE. | |
31849 | ||
31850 | * utils.c (gnat_pushdecl): Set TREE_NO_WARNING. | |
31851 | ||
31852 | 2005-02-09 Ed Schonberg <schonberg@adacore.com> | |
31853 | ||
31854 | * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a | |
31855 | component of an array of arrays in an assignment context, and the | |
31856 | aggregate has component associations that require sliding on | |
31857 | assignment, force reanalysis of the aggregate to generate a temporary | |
31858 | before the assignment. | |
31859 | (Must_Slide): Make global to the package, for use in Gen_Assign. | |
31860 | ||
31861 | 2005-02-09 Ed Schonberg <schonberg@adacore.com> | |
31862 | ||
31863 | * exp_ch4.adb (Expand_Composite_Equality): If a component is an | |
31864 | unchecked union with no inferable discriminants, return a | |
31865 | Raise_Program_Error node, rather than inserting it at the point the | |
31866 | type is frozen. | |
31867 | (Expand_Record_Equality, Component_Equality): Handle properly the case | |
31868 | where some subcomponent is an unchecked union whose generated equality | |
31869 | code raises program error. | |
31870 | ||
31871 | 2005-02-09 Doug Rupp <rupp@adacore.com> | |
31872 | ||
31873 | * gnatbl.c: [VMS] (_POSIX_EXIT): Define. | |
31874 | [VMS] (#define exit hack): Remove. | |
31875 | ||
31876 | 2005-02-09 Pascal Obry <obry@adacore.com> | |
8a67bb47 | 31877 | Arnaud Charlet <charlet@adacore.com> |
19f96971 | 31878 | |
31879 | * init.c (__gnat_initialize): Add a new parameter eh which contains the | |
31880 | address of the exception registration. The Win32 version of this | |
31881 | routine calls __gnat_install_SEH_handler() to initialize the SEH | |
31882 | (Structured Exception Handling) handler. | |
31883 | (__gnat_error_handler) [Win32]: Removed. Not needed as we use | |
31884 | SEH (Structured Exception Handling) now. | |
31885 | (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH. | |
31886 | (__gnat_initialize for ppc-vxworks): Adjust comments and the | |
31887 | preprocessor condition protecting the call to the extra eh setup | |
31888 | subprogram, which is only available for the ppc target. | |
31889 | (__gnat_clear_exception_count): replaced reference to | |
31890 | variable taskIdCurrent by call to taskIdSelf(), cleaner. | |
31891 | ||
31892 | * seh_init.c: New file. | |
31893 | ||
31894 | * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o. | |
31895 | (GNATBIND_OBJS): Idem. | |
31896 | ||
31897 | * misc.c (gnat_parse_file): Update call to __gnat_initialize. This | |
31898 | routine takes a new parameter (a pointer to the exception registration | |
31899 | for the SEH (Structured Exception Handling) support. | |
31900 | ||
31901 | * raise.h: (__gnat_install_SEH_handler): New prototype. | |
31902 | Update copyright notice. | |
31903 | ||
31904 | * s-tassta.adb (Task_Wrapper): Declare the exception registration | |
31905 | record and initialize it by calling __gnat_install_SEH_handler. | |
31906 | ||
31907 | 2005-02-09 Vincent Celier <celier@adacore.com> | |
31908 | ||
31909 | * make.adb (Gnatmake): Do not fail when the main project has no object | |
31910 | directory. | |
31911 | ||
31912 | 2005-02-09 Doug Rupp <rupp@adacore.com> | |
31913 | ||
31914 | * Makefile.in [VMS] (LN,LN_S): Define as cp -p | |
31915 | Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb. | |
31916 | [VMS]: Add translations for g-enblsp.adb. | |
31917 | ||
31918 | * s-asthan-vms.adb: Removed. | |
31919 | * s-asthan-vms-alpha.adb: Added. | |
31920 | ||
31921 | 2005-02-09 Pascal Obry <obry@adacore.com> | |
31922 | ||
31923 | * Makefile.in (LIBGNAT_SRCS): Add seh_init.c. | |
31924 | (LIBGNAT_OBJS): Add seh_init.o. | |
31925 | ||
31926 | 2005-02-09 Arnaud Charlet <charlet@adacore.com> | |
31927 | ||
31928 | PR ada/16592 | |
19f96971 | 31929 | * Makefile.in: Link all gnat tools with -static-libgcc, since |
31930 | -shared-libgcc is now used by default on some systems (e.g. linux with | |
31931 | recent binutils). | |
31932 | Remove references to Makefile.prolog/generic, no longer used. | |
31933 | ||
31934 | 2005-02-09 Vincent Celier <celier@adacore.com> | |
31935 | ||
31936 | * prj-makr.adb (Process_Directory): Put file name in canonical case | |
31937 | before matching against the patterns. | |
31938 | If gnatname has been invoked as <prefix>-gnatname | |
31939 | then invoke the compiler as <prefix>-gcc, not just "gcc". | |
31940 | ||
31941 | 2005-02-09 Ed Schonberg <schonberg@adacore.com> | |
31942 | ||
31943 | * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even | |
31944 | with expansion disabled. The actual subtype is needed among other | |
31945 | places when the selected component appears in the context of a loop | |
31946 | bound, and denotes a packed array. | |
31947 | (Operator_Check): Always use the first subtype in the | |
31948 | error message, to avoid the appearance of internal base types. | |
31949 | (Transform_Object_Operation): Copy each actual in full | |
31950 | to the parameter associations of the constructed call, rather than | |
31951 | using the shallow copy mechanism of New_Copy_List. This ensures that | |
31952 | the chaining of named associations is done properly. | |
31953 | (Complete_Object_Operation): Rewrite node, rather than | |
31954 | replacing it, so that we can trace back to the original selected | |
31955 | component. | |
31956 | ||
31957 | * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls, | |
31958 | and calls that use object notation, if the called function is not | |
31959 | declared in a withed unit, place the elaboration constraint on the | |
31960 | unit in the context that makes the function accessible. | |
31961 | (Check_Elab_Subtype_Declaration): Check whether a subtype declaration | |
31962 | imposes an elaboration constraint between two packages. | |
31963 | ||
31964 | 2005-02-09 Ed Schonberg <schonberg@adacore.com> | |
31965 | ||
31966 | * sem_ch7.adb (Uninstall_Declarations): Exchange full and private | |
31967 | views of a private type after handling its private dependents, to | |
31968 | maintain proper stack discipline between entry and exit from the | |
31969 | package. | |
31970 | ||
31971 | 2005-02-09 Cyrille Comar <comar@adacore.com> | |
31972 | ||
31973 | * s-finimp.adb: (Finalize_List): Optimize in the no-abort case. | |
31974 | Minor reformatting. | |
31975 | ||
31976 | 2005-02-09 Arnaud Charlet <charlet@adacore.com> | |
31977 | ||
31978 | * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len] | |
31979 | fields for foreign threads. | |
31980 | ||
31981 | 2005-02-09 Doug Rupp <rupp@adacore.com> | |
31982 | ||
31983 | * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite | |
31984 | recursion warnings when compiled with -gnatdm. | |
31985 | ||
31986 | 2005-02-09 Robert Dewar <dewar@adacore.com> | |
31987 | ||
31988 | * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions) | |
31989 | Slight fix to documentation of -gnaty with no parameters | |
31990 | ||
31991 | * xr_tabls.ads: Add ??? comment for missing overall comment | |
31992 | ||
31993 | * xsinfo.adb: Make default file name be sinfo.h, since this is what | |
31994 | we now use by default. | |
31995 | ||
31996 | * xsnames.adb: Adjust end of file test to look for five space followed | |
31997 | by '#' instead of six spaces. The format of xsnames.adb was modified | |
31998 | in the last update. | |
31999 | ||
32000 | * a-numeri.ads: Add reference to AI-388 for greek letter pi | |
32001 | identifier. | |
32002 | ||
32003 | * clean.adb: Minor reformatting. | |
32004 | ||
32005 | * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb, | |
32006 | gnatname.adb: Minor reformatting | |
32007 | Add 2005 to copyright output when utility is run | |
32008 | ||
32009 | * csets.adb: Eliminate obsolete comment | |
32010 | ||
32011 | * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout | |
32012 | Update comments. | |
32013 | ||
32014 | * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful. | |
32015 | ||
32016 | 2005-02-09 Sergey Rybin <rybin@adacore.com> | |
32017 | ||
32018 | * gnat_ugn.texi: Add to the gnatpp section the paragraph describing | |
32019 | the difference between compact and incompact layout and add the record | |
32020 | representation clause to the example illustrating different layouts. | |
32021 | Add the description of '-A5' gnatpp option ("align 'AT' keywords in | |
32022 | component clauses"). | |
32023 | ||
32024 | 2005-02-09 Florian Villoing <villoing@adacore.com> | |
32025 | ||
32026 | * gnat_ugn.texi: Fix typos. | |
32027 | Use @command to display 'gcc', 'gnatbind', etc. insted of @code or | |
32028 | @file. | |
32029 | Make proper use of @ref, @xref and @pxref to avoid duplication of "see" | |
32030 | in the generated documentation. | |
32031 | ||
32032 | 2005-02-09 Arnaud Charlet <charlet@adacore.com> | |
32033 | ||
32034 | * gnat_ugn.texi: Remove all mentions of FSU threads, which are no | |
32035 | longer supported. | |
32036 | Update linker wrapper when linking with non GNU C++. | |
32037 | ||
32038 | 2005-02-09 Pascal Obry <obry@adacore.com> | |
32039 | ||
1af67e62 | 32040 | * gnat_ugn.texi: |
19f96971 | 32041 | Document the procedure to debug the DllMain routine on Windows. |
32042 | Add note about -funwind-tables and mixed Ada and C/C++ programming in | |
32043 | ZCX mode. | |
32044 | Document new BIND qualifer /RETURN_CODES=VMS. | |
32045 | ||
32046 | 2005-02-09 Ben Brosgol <brosgol@adacore.com> | |
32047 | ||
32048 | * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter | |
32049 | Edited gnatmetric chapter | |
32050 | ||
32051 | 2005-02-09 Robert Dewar <dewar@adacore.com> | |
32052 | ||
1af67e62 | 32053 | * gnat_rm.texi: |
19f96971 | 32054 | Changes to document new wide wide character support |
32055 | For AI-285 | |
32056 | Update documentation on Normalize_Scalars and Initialize_Scalars | |
32057 | ||
32058 | 2005-02-09 Pascal Obry <obry@adacore.com> | |
32059 | ||
32060 | * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting. | |
32061 | ||
32062 | 2005-02-09 Jose Ruiz <ruiz@adacore.com> | |
32063 | ||
32064 | * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported | |
32065 | from the VxWorks kernel) that is needed for getting the active | |
32066 | priority of the different tasks. | |
32067 | ||
32068 | * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure. | |
32069 | Use a pragma Elaborate_Body in the spec file instead. | |
32070 | Noticed by code reading. | |
32071 | ||
32072 | 2005-02-09 Thomas Quinot <quinot@adacore.com> | |
32073 | ||
32074 | * exp_util.ads: Minor correction in comment. | |
32075 | ||
32076 | 2005-02-09 Arnaud Charlet <charlet@adacore.com> | |
32077 | ||
32078 | * s-taprop.ads (Initialize): Update comments. Remove pragma Inline, | |
32079 | since this procedure is now too complex to be worth inlining. | |
32080 | ||
9cfddb70 | 32081 | 2005-02-09 Richard Henderson <rth@redhat.com> |
32082 | ||
32083 | * utils.c (gnat_define_builtin): Remove. | |
32084 | (gnat_install_builtins): Use build_common_builtin_nodes. | |
32085 | ||
7ce1e947 | 32086 | 2005-02-09 Arnaud Charlet <charlet@adacore.com> |
32087 | ||
32088 | * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads, | |
32089 | a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb, | |
32090 | a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb, | |
32091 | a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads, | |
32092 | a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb, | |
32093 | a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb, | |
32094 | a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb, | |
32095 | a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb, | |
32096 | a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, | |
32097 | a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, | |
32098 | a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads, | |
32099 | a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb, | |
32100 | a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb, | |
32101 | a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads, | |
32102 | a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, | |
32103 | a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads, | |
32104 | a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads, | |
32105 | a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, | |
32106 | a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads, | |
32107 | a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads, | |
32108 | a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, | |
32109 | a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads, | |
32110 | a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb, | |
32111 | a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads, | |
32112 | a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, | |
32113 | a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb, | |
32114 | a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb, | |
32115 | a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb, | |
32116 | a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb, | |
32117 | a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb, | |
32118 | a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb, | |
32119 | a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, | |
32120 | a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb, | |
32121 | a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005 | |
32122 | library. | |
32123 | ||
8a67bb47 | 32124 | 2005-01-27 Laurent Guerby <laurent@guerby.net> |
6e0edac0 | 32125 | |
32126 | * Makefile.in: Fix a-intnam.ads from previous commit, | |
32127 | add 2005 to copyright. | |
32128 | * a-intman-rtems.ads: Renamed to... | |
32129 | * a-intnam-rtems.ads: | |
32130 | ||
8a67bb47 | 32131 | 2005-01-27 Laurent Guerby <laurent@guerby.net> |
ff94f0fb | 32132 | |
32133 | * Makefile.in: Rename GNAT RTEMS specific files. | |
1af67e62 | 32134 | * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb, |
86aca445 | 32135 | 5rosinte.ads, 5rparame.adb: Replaced by files below. |
ff94f0fb | 32136 | * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb, |
32137 | s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above. | |
32138 | ||
8a67bb47 | 32139 | 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com> |
32140 | Laurent Guerby <laurent@guerby.net> | |
83fa7089 | 32141 | |
32142 | PR ada/19488 | |
32143 | * 5rosinte.ads: Add No_Key constant. | |
1af67e62 | 32144 | * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style. |
32145 | * gsocket.h: Do not include <sys/socket.h> with RTEMS either. | |
83fa7089 | 32146 | |
8a67bb47 | 32147 | 2005-01-26 Laurent Guerby <laurent@guerby.net> |
708c1229 | 32148 | |
32149 | PR ada/19414 | |
32150 | * i-cobol.adb (Valid_Numeric): Handle zero length case. | |
1af67e62 | 32151 | |
e58fd8b5 | 32152 | 2005-01-20 Richard Henderson <rth@redhat.com> |
32153 | ||
32154 | * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use | |
32155 | a-intnam-linux.ads and system-linux-alpha.ads. | |
32156 | * a-intnam-linux-alpha.ads: Remove file. | |
32157 | * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New. | |
32158 | * system-linux-alpha.ads: New file. | |
32159 | ||
82fcdd47 | 32160 | 2005-01-18 Jakub Jelinek <jakub@redhat.com> |
32161 | ||
32162 | PR ada/13470 | |
32163 | * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is | |
32164 | set to the new string. | |
32165 | ||
3e93aac2 | 32166 | 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl> |
32167 | ||
32168 | * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support | |
32169 | to True. | |
32170 | ||
08822479 | 32171 | 2005-01-18 Richard Henderson <rth@redhat.com> |
32172 | ||
32173 | * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB, | |
32174 | THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize | |
32175 | for alpha-linux. | |
32176 | * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files. | |
32177 | ||
d0f54073 | 32178 | 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu> |
32179 | ||
32180 | * system-darwin-ppc.ads (ZCX_By_Default): Change to True. | |
32181 | (GCC_ZCX_Support): Likewise. | |
32182 | ||
74e8abb0 | 32183 | 2005-01-11 Bastian Blank <waldi@debian.org> |
32184 | ||
32185 | * system-linux-s390.ads: Define Preallocated_Stacks. | |
32186 | * system-linux-s390x.ads: Likewise. | |
32187 | ||
10ae67c6 | 32188 | 2005-01-04 Arnaud Charlet <charlet@adacore.com> |
32189 | ||
32190 | * gnat_ugn.texi: Fix texi errors with null variables. | |
32191 | ||
1c4803e8 | 32192 | 2005-01-03 Thomas Quinot <quinot@adacore.com> |
32193 | ||
32194 | * gen-soccon.c: New utility program to generate g-soccon.ads | |
32195 | automatically. | |
32196 | ||
32197 | * socket.c, gsocket.h: Split inclusion of system header files into a | |
32198 | gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c. | |
32199 | ||
32200 | * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads, | |
32201 | g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads, | |
32202 | g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads, | |
32203 | g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files | |
32204 | should not be edited by hand anymore, but should be regenerated using | |
32205 | gen-soccon. | |
32206 | ||
32207 | 2005-01-03 Robert Dewar <dewar@adacore.com> | |
32208 | Ed Schonberg <schonberg@adacore.com> | |
32209 | Vincent Celier <celier@adacore.com> | |
32210 | ||
32211 | * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings | |
32212 | on/off, since this is an obsolescent feature, for which we now generate | |
32213 | a warning. | |
32214 | ||
32215 | * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if | |
32216 | warning mode is set and obsolescent usage of this attribute occurs. | |
32217 | (Resolve_Access, case 'Access): Note that GNAT uses the context type to | |
32218 | disambiguate overloaded prefixes, in accordance with AI-235. GNAT code | |
32219 | predates, and partly motivates, the adoption of the AI. | |
32220 | Implement new Ada 2005 attribute Mod | |
32221 | ||
32222 | * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005 | |
32223 | attribute Mod. | |
32224 | ||
32225 | * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod | |
32226 | ||
32227 | * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for | |
32228 | pragma restrictions. | |
32229 | New entry for Ada 2005 attribute Mod. | |
32230 | ||
1af67e62 | 32231 | * par-prag.adb: |
1c4803e8 | 32232 | Add recognition of new pragma Restrictions No_Dependence |
32233 | Recognize restriction No_Obsolescent_Features at parse time | |
32234 | ||
32235 | * bcheck.adb: Add circuitry for checking for consistency of | |
32236 | No_Dependence restrictions. | |
32237 | ||
32238 | * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence | |
32239 | restrictions. | |
32240 | ||
32241 | * restrict.ads, restrict.adb: Add subprograms to deal with | |
32242 | No_Dependence restrictions. | |
32243 | ||
32244 | * rtsfind.adb: Check that implicit with's do not violate No_Dependence | |
32245 | restrictions. | |
32246 | ||
32247 | * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb, | |
32248 | sem_attr.adb: Add check for new restriction No_Obsolescent_Features | |
32249 | ||
32250 | * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new | |
32251 | dummy parameter to scng instantiation. | |
32252 | Needed for new restriction No_Obsolescent_Features | |
32253 | ||
32254 | * scn.adb: (Obsolescent_Check): New procedure | |
32255 | Needed for new restriction No_Obsolescent_Features | |
32256 | ||
32257 | * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as | |
32258 | specified by AI-285, needed for implementation of AI-388 (adding greek | |
32259 | pi to Ada.Numerics). | |
32260 | Add new generic formal to scng, needed for new restriction | |
32261 | No_Obsolescent_Features. | |
32262 | ||
32263 | * s-rident.ads: Add new restriction No_Obsolescent_Features. | |
32264 | ||
32265 | * ali.ads, ali.adb: Adjustments for reading new No_Dependence | |
32266 | restrictions lines. | |
32267 | (Scan_ALI): When finding an unexpected character on an R line, raise | |
32268 | exception Bad_R_Line, instead of calling Fatal_Error, so that, when | |
32269 | Ignore_Errors is True, default restrictions are set and scanning of the | |
32270 | ALI file continues with the next line. Also, when Bad_R_Line is raised | |
32271 | and Ignore_Errors is True, skip to the end of le line. | |
32272 | ||
32273 | * sem_ch10.adb: Check that explicit with's do not violate | |
32274 | No_Dependence restrictions. | |
32275 | (Install_Withed_Unit): Add code to implement AI-377 and diagnose | |
32276 | illegal context clauses containing child units of instance. | |
32277 | ||
32278 | * sem_prag.adb: Processing and checking for new No_Dependence | |
32279 | restrictions. | |
32280 | (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to | |
32281 | analyze and check the External argument. | |
32282 | ||
32283 | * a-numeri.ads: Add greek letter pi as alternative spelling of Pi | |
32284 | ||
32285 | 2005-01-03 Robert Dewar <dewar@adacore.com> | |
32286 | ||
32287 | * atree.adb: Add a fifth component to entities | |
32288 | This allows us to add 32 flags and four new fields | |
32289 | ||
32290 | * atree.ads: Add a fifth component to entities | |
32291 | This allows us to add 32 flags and four new fields | |
32292 | ||
32293 | * einfo.ads, einfo.adb: Document new fields and new flags now available | |
32294 | Add routines for printing new fields | |
32295 | ||
32296 | * treepr.adb: Call routines to print out additional fields if present | |
32297 | ||
32298 | 2005-01-03 Arnaud Charlet <charlet@adacore.com> | |
32299 | ||
32300 | * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb, | |
32301 | gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake. | |
32302 | ||
32303 | * Makefile.in: Add support to build shared Ada libraries on solaris x86 | |
32304 | Remove gpr2make, replaced by gprmake. | |
32305 | Remove references to gnatmem and libaddr2line. | |
32306 | Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux. | |
32307 | (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS. | |
32308 | Add support for specialized version of Ada.Numerics.Aux for Darwin: use | |
32309 | a-numaux-darwin.ads and a-numaux-darwin.adb | |
32310 | Enable mlib-tgt-lynxos.adb on lynxos. | |
32311 | ||
32312 | * Make-lang.in: Remove rules for gpr2make. | |
32313 | When generating sdefault.adb, do not call Relocate_Path | |
32314 | on S3 for function Target_Name, as it is not a path. | |
32315 | Remove references to gnatmem and libaddr2line. | |
32316 | ||
32317 | * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New | |
32318 | files. | |
32319 | ||
32320 | 2005-01-03 Samuel Tardieu <tardieu@adacore.com> | |
32321 | ||
32322 | * checks.adb (Apply_Alignment_Check): Generate a warning if an object | |
32323 | address is incompatible with its base type alignment constraints when | |
32324 | this can be decided statically. | |
32325 | ||
32326 | 2005-01-03 Olivier Hainque <hainque@adacore.com> | |
32327 | ||
32328 | * decl.c (compatible_signatures_p): New function. The intended purpose | |
32329 | is to check if two function signatures for a call-site and a callee are | |
32330 | compatible enough for the call to be valid. The underlying purpose is | |
32331 | to check if a call to a mapped builtin is using the right interface. | |
32332 | The current code actually does not check antyhing - this a placeholder | |
32333 | for future refinements. | |
32334 | (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle | |
32335 | builtin calls for convention Intrinsic. | |
32336 | ||
32337 | * gigi.h (builtin_decl_for): Declare (new function). | |
32338 | ||
32339 | * utils.c (gnat_install_builtins): Install the target specific builtins. | |
32340 | (builtin_decl_for): New function, provide a dummy body for now. | |
32341 | ||
32342 | 2005-01-03 Geert Bosch <bosch@adacore.com> | |
32343 | ||
32344 | * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used. | |
32345 | (Succ): Re-implement using Scaling, Exponent and Ceiling attributes. | |
32346 | (Pred): Implement in terms of Succ. | |
1af67e62 | 32347 | |
1c4803e8 | 32348 | * trans.c (convert_with_check): Reimplement conversion of float to |
32349 | integer. | |
32350 | ||
32351 | 2005-01-03 Ed Schonberg <schonberg@adacore.com> | |
32352 | Vincent Celier <celier@adacore.com> | |
32353 | ||
32354 | * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the | |
32355 | bounds can be negative, and must be declared Int, not Nat. | |
32356 | ||
32357 | * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an | |
32358 | array is checked after using the index in the array. | |
32359 | ||
32360 | * makegpr.adb (Add_Switches): Check if there is a package for the | |
32361 | processor. If there is no package, do not look for switches. | |
32362 | ||
32363 | 2005-01-03 Ed Schonberg <schonberg@adacore.com> | |
32364 | ||
32365 | * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the | |
32366 | generation of predefined stream operations (specs and bodies) should | |
32367 | proceed. Under various restrictions these subprograms must not be | |
32368 | generated. | |
32369 | ||
32370 | 2005-01-03 Thomas Quinot <quinot@adacore.com> | |
32371 | ||
1af67e62 | 32372 | * exp_dist.adb: |
1c4803e8 | 32373 | Declare subprogram index in Build_RPC_Receiver_Body, to reduce the |
32374 | amount of PCS-specific code in RACW stubs generation. | |
32375 | (Copy_Specification): Set Etype on copied formal parameter entities, as | |
32376 | this information is needed for PolyORB stubs generation. | |
32377 | (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused | |
32378 | variable Dynamic_Async. | |
32379 | (Build_Subprogram_Receiving_Stubs): Make PCS-specific | |
32380 | (Build_RPC_Receiver_Specification): Make generic again, as recent | |
32381 | changes have allowed RPC receivers to have the same profile for both | |
32382 | variants of the PCS. | |
32383 | Reorganise RPC receiver generation to reduce differences between the | |
32384 | structure of GARLIC and PolyORB RPC receivers. | |
32385 | (Add_Receiving_Stubs_To_Declarations): Make this subprogram | |
32386 | PCS-specific. | |
32387 | Simplify elaboration code for RCI packages. | |
32388 | ||
32389 | * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver | |
32390 | generation to reduce differences between the structure of GARLIC and | |
32391 | PolyORB RPC receivers. | |
32392 | ||
32393 | * s-stratt.adb: Fix typo in comment. | |
32394 | ||
32395 | 2005-01-03 Thomas Quinot <quinot@adacore.com> | |
32396 | ||
32397 | * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly | |
32398 | copied from Make_Init_Call). | |
32399 | ||
32400 | * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component | |
32401 | reads and assignments on a temporary variable declared with appropriate | |
32402 | discriminants. | |
32403 | ||
32404 | 2005-01-03 Robert Dewar <dewar@adacore.com> | |
32405 | ||
32406 | * i-c.adb (To_C): Raise CE if string is null and Append_Null | |
32407 | ||
32408 | 2005-01-03 Robert Dewar <dewar@adacore.com> | |
32409 | ||
32410 | * i-cstrin.adb (Update): Do not append a null in form called with a | |
32411 | String. This avoids unintended behavior. | |
32412 | ||
32413 | 2005-01-03 Arnaud Charlet <charlet@adacore.com> | |
32414 | ||
32415 | PR ada/17527 | |
32416 | * init.c: Fix warnings on Free BSD section. | |
32417 | ||
32418 | 2005-01-03 Arnaud Charlet <charlet@adacore.com> | |
32419 | ||
32420 | PR ada/16949 | |
32421 | * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by | |
32422 | xsinfo.adb). | |
32423 | ||
32424 | 2005-01-03 Vincent Celier <celier@adacore.com> | |
32425 | ||
32426 | * make.adb (Collect_Arguments_And_Compile): Do not attempt to build | |
32427 | libraries when Unique_Compile is True (-u switch). | |
32428 | (Gnatmake): ditto. | |
32429 | ||
32430 | 2005-01-03 Robert Dewar <dewar@adacore.com> | |
32431 | ||
32432 | * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing | |
32433 | upper case letter or underscore after W, as allowed by spec. | |
32434 | ||
32435 | 2005-01-03 Arnaud Charlet <charlet@adacore.com> | |
32436 | ||
32437 | * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up | |
32438 | darwin port by using proper type definitions from header files. | |
32439 | Use SIGTERM instead of SIGABRT for SIGADAABORT. | |
32440 | ||
32441 | 2005-01-03 Robert Dewar <dewar@adacore.com> | |
32442 | ||
32443 | * par.adb: Enhance error message handling for configuration file | |
32444 | pragmas. | |
32445 | ||
32446 | 2005-01-03 Robert Dewar <dewar@adacore.com> | |
32447 | ||
32448 | * s-arit64.adb (Double_Divide): Put back changes that got accidentally | |
32449 | removed during the previous update (test properly for case of dividing | |
32450 | largest negative number by -1, which generates overflow). | |
32451 | ||
32452 | 2005-01-03 Ed Schonberg <schonberg@adacore.com> | |
32453 | Sergey Rybin <rybin@adacore.com> | |
32454 | ||
32455 | * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node | |
32456 | to use as the defining identifier for a formal package. | |
32457 | (Remove_Parent): If the instance takes place within (an instance of) | |
32458 | a sibling, preserve private declarations of common parent. | |
32459 | ||
32460 | 2005-01-03 Ed Schonberg <schonberg@adacore.com> | |
32461 | ||
32462 | * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair, | |
32463 | to determine whether one of the operands is a fixed-point type for | |
32464 | which a user-defined multiplication or division operation might be | |
32465 | defined. | |
32466 | ||
32467 | * sem_res.adb (Valid_Conversion): The legality rules for conversions | |
32468 | of access types are symmetric in Ada 2005: either designated type can | |
32469 | be unconstrained. | |
32470 | ||
32471 | 2005-01-03 Vincent Celier <celier@adacore.com> | |
32472 | ||
32473 | * s-fileio.adb (Temp_File_Record): Change length of string component | |
32474 | Name from L_tmpnam + 1 to max_path_len + 1. | |
32475 | ||
32476 | 2005-01-03 Arnaud Charlet <charlet@adacore.com> | |
32477 | ||
32478 | * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of | |
32479 | Self_Id.Deferral_Level = 0. | |
32480 | (Do_Pending_Action): Move this function to the spec. | |
32481 | ||
32482 | * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call | |
32483 | Do_Pending_Action explicitely when needed, in case we're using | |
32484 | No_Abort restrictions. | |
32485 | ||
32486 | * s-tassta.adb (Create_Task): If Abort is not allowed, reset the | |
32487 | deferral level since it will not get changed by the generated code. | |
32488 | Keeping a default value of 1 would prevent some operations (e.g. | |
32489 | select or delay) to proceed successfully. | |
32490 | ||
32491 | 2005-01-03 Ben Brosgol <brosgol@adacore.com> | |
32492 | Robert Dewar <dewar@adacore.com> | |
32493 | Cyrille Comar <comar@adacore.com> | |
32494 | ||
32495 | * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to | |
32496 | porting guide chapter (vms version). | |
32497 | Revised doc title (removed "for native platforms") and subtitle. | |
32498 | Add discussion on warning flag for obsolescent features. First we | |
32499 | note that it applies to obsolete GNAT features, which was previously | |
32500 | omitted. Second we contrast the behavior with that of the new | |
32501 | Ada 2005 AI-368 restriction No_Obsolescent_Features. | |
32502 | Preliminary rewriting of GNAT & libraries chapter in order to take | |
32503 | into account default project locations & new project manager | |
32504 | capabilities. | |
32505 | ||
32506 | 2005-01-03 Robert Dewar <dewar@adacore.com> | |
32507 | ||
32508 | * cstand.adb (Create_Operators): Clean up format and documentation of | |
32509 | unary and binary operator result tables. No change in code, just | |
32510 | reformatting and addition of comments. | |
32511 | ||
32512 | * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb, | |
32513 | sem_ch2.adb: Minor reformatting | |
32514 | ||
32515 | * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads, | |
32516 | sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to | |
32517 | comments for Tree_Read and Tree_Write. | |
32518 | ||
32519 | 2005-01-03 Pascal Obry <obry@adacore.com> | |
32520 | ||
32521 | * exp_attr.ads: Minor reformatting. | |
32522 | ||
32523 | 2005-01-03 Romain Berrendonner <berrendo@adacore.com> | |
32524 | ||
32525 | * comperr.adb (Compiler_Abort): Add specialized message for GAP | |
32526 | versions. | |
32527 | ||
32528 | 2005-01-03 Ed Schonberg <schonberg@adacore.com> | |
32529 | ||
32530 | * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check | |
32531 | whether the ancestor type is private, as may be the case with nested | |
32532 | instantiations. | |
32533 | ||
8a67bb47 | 32534 | 2004-12-30 Sohail Somani <sohail@sohailsomani.com> |
206929f9 | 32535 | |
32536 | PR ada/19128 | |
32537 | * trans.c (gnat_to_gnu): Fix typo: Use correct return variable. | |
32538 | ||
e7e9416e | 32539 | 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr> |
206929f9 | 32540 | |
e7e9416e | 32541 | * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference. |
32542 | * utils2.c (build_unary_op): Likewise. | |
32543 | ||
bc97b18f | 32544 | 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> |
32545 | ||
32546 | * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED. | |
32547 | ||
70d4378d | 32548 | 2004-12-19 Richard Henderson <rth@redhat.com> |
32549 | ||
32550 | * trans.c (gigi): Update gimplify_body call. | |
32551 | ||
16037b31 | 32552 | 2004-12-09 Nathan Sidwell <nathan@codesourcery.com> |
32553 | ||
32554 | * decl.c (gnat_substitute_in_type): Remove SET_TYPE case. | |
32555 | ||
9c6d82f3 | 32556 | 2004-12-07 Ed Falis <falis@adacore.com> |
32557 | ||
32558 | * s-intman-vxworks.adb (Notify_Exception): removed useless check for | |
32559 | current task being suspended. | |
32560 | ||
32561 | * init.c (__gnat_clear_exception): added to reset VxWorks exception | |
32562 | count. | |
32563 | (__gnat_map_signal): removed test for current task being suspended. | |
32564 | ||
32565 | 2004-12-07 Gary Dismukes <dismukes@adacore.com> | |
32566 | ||
32567 | * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values | |
32568 | from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit | |
32569 | targets (such as AAMP). | |
32570 | ||
32571 | 2004-12-07 Ed Schonberg <schonberg@adacore.com> | |
32572 | ||
32573 | * atree.adb (Visit_Itype): Create a new name for the generated itype, | |
32574 | because the back-end may otherwise treat it as a redefinition of the | |
32575 | old symbol. | |
32576 | ||
32577 | 2004-12-07 Eric Botcazou <ebotcazou@adacore.com> | |
32578 | ||
32579 | * back_end.adb (Scan_Back_End_Switches): Accept --param. | |
32580 | ||
32581 | * lang-specs.h: Accept --param. | |
32582 | ||
32583 | 2004-12-07 Vincent Celier <celier@adacore.com> | |
32584 | ||
32585 | * make.adb (Check_Mains, Switches_Of): Adapt to name changes in | |
32586 | package Prj (Current_Spec_Suffix => Ada_Spec_Suffix, | |
32587 | Current_Body_Suffix => Ada_Body_Suffix). | |
32588 | Take into account Externally_Built attribute. | |
32589 | ||
32590 | * clean.adb (In_Extension_Chain): Always return False when one of the | |
32591 | parameter is No_Project. | |
32592 | (Clean_Project): Adapt to changes in package Prj (Lang_Ada => | |
32593 | Ada_Language_Index). | |
32594 | (Gnatclean): Adapt to change in package Prj.Pars (no parameter | |
32595 | Process_Languages for procedure Parse). | |
32596 | ||
32597 | * gnatcmd.adb (Carg_Switches): New table. | |
32598 | (GNATCmd): Put all switches following -cargs in the Carg_Switches table. | |
32599 | Adapt to name changes in package Prj (Current_Spec_Suffix => | |
32600 | Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix). | |
32601 | ||
32602 | * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type | |
32603 | Header_Num and function Hash are now declared in package Prj, | |
32604 | not Prj.Com. | |
32605 | ||
32606 | * prj.adb (Suffix_Of): New function. | |
32607 | (Set (Suffix)): New procedure. | |
32608 | (Hash): One function moved from Prj.Com | |
32609 | (Is_Present, Language_Processing_Data_Of): New functions | |
32610 | (Set): Two new procedures | |
32611 | (Add_Language_Name, Display_Language_Name): New procedures | |
32612 | ||
32613 | * prj.ads: (Suffix_Of): New function | |
32614 | (Set (Suffix)): New procedure | |
32615 | Add several types and tables for multi-language support. | |
32616 | (Header_Num): Type moved from Prj.Com | |
32617 | (Hash): Two functions moved from Prj.Com | |
32618 | (Is_Present, Language_Processing_Data_Of): New functions | |
32619 | (Set): Two new procedures | |
32620 | (Add_Language_Name, Display_Language_Name): New procedures | |
32621 | (Naming): Component name changes: | |
32622 | Current_Spec_Suffix => Ada_Spec_Suffix, | |
32623 | Current_Body_Suffix => Ada_Body_Suffix. Add new components: | |
32624 | Impl_Suffixes, Supp_Suffixes. | |
32625 | (Project_Data): New components: Externally_Built, Supp_Languages, | |
32626 | First_Language_Processing, Supp_Language_Processing, Default_Linker, | |
32627 | Default_Linker_Path. | |
32628 | ||
32629 | * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and | |
32630 | new package Language_Processing with its attributes (Compiler_Driver, | |
32631 | Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option, | |
32632 | Binder_Driver, Default_Linker). | |
32633 | ||
32634 | * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj. | |
32635 | (Header_Num): Type moved to package Prj | |
32636 | ||
32637 | * prj-env.adb: Adapt to name changes in package Prj | |
32638 | (Current_Spec_Suffix => Ada_Spec_Suffix, | |
32639 | Current_Body_Suffix => Ada_Body_Suffix). | |
32640 | ||
32641 | * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by | |
32642 | default to the project path, except the "-" is one of the directories | |
32643 | in env var ADA_PROJECT_PATH. | |
32644 | (Current_Project_Path): Global variable, replacing Project_Path | |
32645 | that was in the body of Prj.Part. | |
32646 | (Project_Path): New function | |
32647 | (Set_Project_Path): New procedure | |
32648 | Initialize Current_Project_Path during elaboration of the package | |
32649 | Remove dependency on Prj.Com, no longer needed | |
32650 | ||
32651 | * prj-ext.ads (Project_Path): New function | |
32652 | (Set_Project_Path): New procedure | |
32653 | ||
32654 | * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no | |
32655 | suffix is defined for language <lang>. | |
32656 | (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of | |
32657 | accessing directly the components of Naming. | |
32658 | (Look_For_Sources): Use Set (Suffix) to set the suffix of a language. | |
32659 | Reorganise of this package. | |
32660 | Break procedure Check in several procedures. | |
32661 | ||
32662 | * prj-nmsc.ads: Replace all procedures (Ada_Check, | |
32663 | Other_Languages_Check and Language_Independent_Check) with a single | |
32664 | procedure Check. | |
32665 | ||
32666 | * prj-pars.ads, prj-pars.adb (Parse): Remove parameter | |
32667 | Process_Languages, no longer needed. | |
32668 | ||
32669 | * prj-part.adb (Project_Path): Move to the body of Prj.Ext as | |
32670 | Current_Project_Path. | |
32671 | Remove elaboration code, moved to the body of Prj.Ext | |
32672 | Use new function Prj.Ext.Project_Path instead of old variable | |
32673 | Project_Path. | |
32674 | (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path. | |
32675 | When comparing with project paths on the stack, first put the resolved | |
32676 | path in canonical case. | |
32677 | (Parse_Single_Project): Set the path name of the project file in the | |
32678 | tree to the normalized path. | |
32679 | ||
32680 | * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove | |
32681 | parameter Process_Languages, no longer needed. | |
32682 | (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and | |
32683 | Other_Languages_Check. | |
32684 | ||
32685 | * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path | |
32686 | to store the resolved canonical path of the project file. | |
32687 | Remove dependency to Prj.Com, no longer needed | |
32688 | ||
32689 | * prj-util.adb: Adapt to name changes in package Prj | |
32690 | (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix => | |
32691 | Ada_Body_Suffix). | |
32692 | ||
32693 | * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver, | |
32694 | Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker, | |
32695 | Externally_Built, Include_Option, Language_Processing. | |
32696 | ||
32697 | * makegpr.adb: Numerous changes due to changes in packages | |
32698 | Prj and Prj.Nmsc. | |
32699 | ||
32700 | * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by | |
32701 | default to the project path, except whe "-" is one of the directories | |
32702 | in env var ADA_PROJECT_PATH. | |
32703 | (Gnatls): In verbose mode, add the new section "Project Search Path:" | |
32704 | ||
32705 | 2004-12-07 Robert Dewar <dewar@adacore.com> | |
32706 | ||
32707 | * debug.adb: Document that -gnatdA automatically sets -gnatR3m | |
32708 | ||
32709 | * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically | |
32710 | set -gnatR3m mode. | |
32711 | ||
32712 | * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA | |
32713 | flag. No longer needed now that we handle this in gnat1drv.adb. | |
32714 | ||
32715 | * repinfo.ads: Minor reformatting | |
32716 | ||
32717 | 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
32718 | Olivier Hainque <hainque@adacore.com> | |
32719 | Eric Botcazou <ebotcazou@adacore.com> | |
32720 | ||
32721 | * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for | |
32722 | TYPE_SIZE_UNIT of result type if SIZE is not specified. | |
32723 | (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation | |
32724 | of a bitfield, which we know is useless and causes trouble because of | |
32725 | alignment implications. | |
32726 | ||
32727 | * utils.c (create_var_decl): Set DECL_COMMON again on targets without | |
32728 | BSS sections. | |
32729 | (process_attributes): Clear DECL_COMMON again when a section attribute | |
32730 | is present. | |
32731 | (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or | |
32732 | SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT. | |
32733 | (create_field_decl): Special case ADDRESSABLE negative to mean | |
32734 | "no bitfield creation", to be used by make_aligning_type. Don't | |
32735 | restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode | |
32736 | fields claimed addressable still have to be bitfields. Use | |
32737 | value_factor_p instead of a raw binop construction to check for the | |
32738 | position's alignment. | |
32739 | ||
32740 | 2004-12-07 Geert Bosch <bosch@adacore.com> | |
32741 | ||
32742 | * eval_fat.adb: Revert previous change. | |
32743 | ||
32744 | 2004-12-07 Thomas Quinot <quinot@adacore.com> | |
32745 | Ed Schonberg <schonberg@adacore.com> | |
32746 | ||
32747 | * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component | |
32748 | with an implicit dereference as its prefix, use | |
32749 | Insert_Explicit_Dereference instead of merely rewriting the prefix into | |
32750 | an explicit dereference. This ensures that a reference to the original | |
32751 | prefix is generated, if appropriate. | |
32752 | ||
32753 | * sem_util.adb (Insert_Explicit_Dereference): When an implicit | |
32754 | dereference is rewritten to an explicit one, generate a reference to | |
32755 | the entity denoted by its prefix using the original prefix node, so | |
32756 | the dereference can be properly recorded as a read of the denoted | |
32757 | access value, if appropriate. | |
32758 | ||
32759 | * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from | |
32760 | emitting 'assigned but never read' warning on a variable on the basis | |
32761 | that it has an access type. | |
32762 | (Check_References): Emit unreferenced warning when the scope is a | |
32763 | subprogram body. | |
32764 | ||
32765 | 2004-12-07 Robert Dewar <dewar@adacore.com> | |
32766 | Ed Schonberg <schonberg@adacore.com> | |
32767 | ||
32768 | * exp_ch6.adb (Expand_Call): Add comment on handling of back end | |
32769 | intrinsic | |
32770 | ||
32771 | * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic, | |
32772 | leaving call unchanged. | |
32773 | This deals with the case where the pragma Import specified | |
32774 | an external name, to be handled by the back end. | |
32775 | ||
32776 | * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of | |
32777 | subprogram which is Imported with convention Intrinsic if an | |
32778 | External_Name argument is specified. | |
32779 | (Process_Import_Or_Interface): Properly diagnose link name argument. | |
32780 | (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion | |
32781 | with Sem_Ch6.Cannot_Inline. | |
32782 | (Process_Inline): Provide separate warning for inapplicable inline | |
32783 | pragma. | |
32784 | (Cannot_Inline): Reject subprograms that have an at_end handler, so that | |
32785 | treatment is uniform on different targets. | |
32786 | ||
32787 | 2004-12-07 Ed Schonberg <schonberg@adacore.com> | |
32788 | ||
32789 | * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of | |
32790 | construct is rewritten, preserve end label to permit source navigation. | |
32791 | ||
32792 | 2004-12-07 Thomas Quinot <quinot@adacore.com> | |
32793 | ||
32794 | * exp_dist.adb (Specific_Build_General_Calling_Stubs, | |
32795 | Specific_Build_Stub_Target): New subprograms. | |
32796 | (Build_Subprogram_Calling_Stubs): Make this procedure independent from | |
32797 | the PCS implementation used, using the above PCS-customized subprograms. | |
32798 | Minor reformatting. | |
32799 | (PolyORB_Support.Helpers): New subunit containing supporting subprograms | |
32800 | for generation of DSA code targeted to the PolyORB PCS. | |
32801 | (Add_Stub_Type): Rewrite to isolate the parts that are specific to one | |
32802 | implementation of the partition communication subsystem in ancillary | |
32803 | subprograms. | |
32804 | (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type, | |
32805 | PolyORB_Support.Build_Stub_Type): New subrograms containing the | |
32806 | PCS-specific part of Add_Stub_Type. | |
32807 | (Insert_Partition_Check): Use runtime library function to perform | |
32808 | E.4(19) check. | |
32809 | ||
1af67e62 | 32810 | * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref |
32811 | (RE_Same_Partition): New entity, from s-parint. | |
9c6d82f3 | 32812 | |
1af67e62 | 32813 | * s-parint.ads, s-parint.adb (Same_Partition): New subprogram. |
9c6d82f3 | 32814 | |
32815 | 2004-12-07 Gary Dismukes <dismukes@adacore.com> | |
32816 | ||
32817 | * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb: | |
32818 | Output the copyright message on a separate line from the version | |
32819 | message. | |
32820 | ||
32821 | 2004-12-07 Joel Brobecker <brobecker@adacore.com> | |
32822 | ||
32823 | * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a | |
32824 | compile-time warning. | |
32825 | ||
32826 | 2004-12-07 Robert Dewar <dewar@adacore.com> | |
32827 | ||
32828 | * g-regpat.adb: (Match): Change a misuse of or to or else | |
32829 | ||
32830 | 2004-12-07 Ed Schonberg <schonberg@adacore.com> | |
32831 | ||
206929f9 | 32832 | * lib-xref.adb: |
9c6d82f3 | 32833 | (Generate_Reference): Handle properly a reference to an entry formal, |
32834 | when an accept statement has a pragma Unreferenced for it. | |
32835 | ||
32836 | * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag | |
32837 | and the Has_Pragma_Unreferenced flag for each formal before analyzing | |
32838 | the body, to ensure that warnings are properly emitted for each accept | |
32839 | statement of a given task entry. | |
32840 | ||
32841 | 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com> | |
32842 | ||
32843 | * Makefile.in: Add support for foreign threads on VMS. | |
32844 | ||
32845 | 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
32846 | ||
32847 | * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P): | |
32848 | Remove. | |
32849 | (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New. | |
32850 | ||
32851 | * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls. | |
32852 | ||
32853 | * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed | |
32854 | exception. | |
32855 | (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it. | |
32856 | ||
32857 | 2004-12-07 Robert Dewar <dewar@adacore.com> | |
32858 | ||
32859 | * nlists.adb (Prepend_Debug): Remove parameters and nest within | |
32860 | Prepend. | |
32861 | (Remove_Next_Debug): Same fix | |
32862 | ||
32863 | * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do | |
32864 | maintain back pointers now, though we did not used to, and comments | |
32865 | were out of date). | |
32866 | (Prepend): Remove pragma Inline. | |
32867 | (Remove_Next): Same cleanup | |
32868 | ||
32869 | 2004-12-07 Thomas Quinot <quinot@adacore.com> | |
32870 | ||
32871 | * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram | |
32872 | used to record an implicit dereference as a read operation on its | |
32873 | prefix when operating under -gnatc. Necessary to avoid spurious | |
32874 | 'variable assigned but never read' warnings in that mode. | |
32875 | (Process_Indexed_Component, Analyze_Selected_Component): When the prefix | |
32876 | is a non-overloaded implicit dereference, call the above subprogram to | |
32877 | ensure proper recording of references. | |
32878 | ||
32879 | 2004-12-07 Gary Dismukes <dismukes@adacore.com> | |
32880 | ||
32881 | * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs | |
32882 | to be resolved later as part of Analyze_Iteration_Scheme's call to | |
32883 | Make_Index. | |
32884 | ||
32885 | 2004-12-07 Ed Schonberg <schonberg@adacore.com> | |
32886 | ||
32887 | * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the | |
32888 | prefix is not a scalar type, place error message on prefix, not on | |
32889 | type entity. | |
32890 | ||
32891 | 2004-12-07 Bernard Banner <banner@adacore.com> | |
32892 | ||
32893 | * vxaddr2line.adb: Add support for x86 vxworks | |
32894 | ||
32895 | 2004-12-07 Thomas Quinot <quinot@adacore.com> | |
32896 | ||
32897 | * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify | |
32898 | documentation of the behaviour of these functions when passed an IP | |
32899 | address that has no record in the system hosts database and no reverse | |
32900 | record in the DNS. | |
32901 | ||
32902 | * cstand.adb, a-tags.ads: Fix typos in comment. | |
32903 | ||
32904 | 2004-12-07 Robert Dewar <dewar@adacore.com> | |
32905 | ||
32906 | * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb, | |
32907 | exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb, | |
32908 | sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb, | |
32909 | s-poosiz.ads: Minor reformatting | |
32910 | ||
32911 | * make.adb: Minor reformatting | |
32912 | Add some ??? comments asking for more comments | |
32913 | ||
32914 | * s-poosiz.adb: Minor reformatting | |
32915 | Add comments on alignment requirement | |
32916 | ||
32917 | * sinfo.ads: Remove obsolete comment and fix typo. | |
32918 | ||
32919 | 2004-12-07 Vincent Celier <celier@adacore.com> | |
32920 | Sergey Rybin <rybin@adacore.com> | |
32921 | ||
32922 | * gnat_ugn.texi: Update the section "The GNAT Driver and Project | |
32923 | Files" with the new tool and package names. | |
32924 | Reformatting to suppress most of the warnings for line too long | |
32925 | Document the new section "Project Search Path:" in the output of | |
32926 | gnatls -v. | |
32927 | Add gnatmetric section | |
32928 | ||
32929 | 2004-12-07 Vincent Celier <celier@adacore.com> | |
32930 | ||
32931 | * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and | |
32932 | -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps | |
32933 | and -eit to -ept. Added qualifier | |
32934 | /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec. | |
32935 | ||
2da5c39a | 32936 | 2004-11-27 Andreas Schwab <schwab@suse.de> |
32937 | ||
32938 | * Make-lang.in (ada/trans.o): Depend on $(EXPR_H). | |
32939 | ||
6338935c | 32940 | 2004-11-25 Arnaud Charlet <charlet@adacore.com> |
32941 | ||
32942 | * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from | |
32943 | internal implementation unit GNAT.Sockets.Thin, | |
32944 | as their usage for sockets is non-portable (using the read and write | |
32945 | functions from the system runtime library is fine on UNIX but won't | |
32946 | work under Windows). | |
32947 | ||
32948 | * mingw32.h: Update copyright notice. | |
32949 | ||
9470f5df | 32950 | 2004-11-25 Arnaud Charlet <charlet@adacore.com> |
32951 | ||
32952 | * ada-tree.h: Minor reformatting of previous change to avoid lines | |
32953 | longer than 79 characters. | |
32954 | ||
12646bf1 | 32955 | 2004-11-25 Olivier Hainque <hainque@adacore.com> |
32956 | ||
32957 | * tb-gcc.c: GCC infrastructure based implementation of | |
32958 | __gnat_backtrace. | |
32959 | ||
bf37ab98 | 32960 | 2004-11-24 Steven Bosscher <stevenb@suse.de> |
32961 | ||
32962 | * misc.c (gnat_post_options): Don't clear | |
32963 | flag_inline_functions. | |
32964 | ||
28342737 | 32965 | 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu> |
32966 | ||
32967 | PR ada/17986 | |
32968 | * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the | |
32969 | tree. | |
32970 | ||
35cd87c4 | 32971 | 2004-11-21 Andreas Jaeger <aj@suse.de> |
32972 | ||
32973 | * stylesw.adb: Change Style_Check_Subprogram_Order to | |
32974 | Style_Check_Order_Subprograms. | |
32975 | ||
a6d57d87 | 32976 | 2004-11-18 Arnaud Charlet <charlet@adacore.com> |
32977 | ||
32978 | * adaint.h, adaint.c | |
32979 | (__gnat_portable_spawn): Fix cast of spawnvp third parameter | |
32980 | to avoid warnings. | |
32981 | Add also a cast to kill another warning. | |
32982 | (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags | |
32983 | parameter with the priority class of the parent process instead of | |
32984 | always using the NORMAL_PRIORITY_CLASS. | |
32985 | (__gnat_dup): New function. | |
32986 | (__gnat_dup2): New function. | |
32987 | (__gnat_is_symbolic_link): Enable the effective body of this | |
32988 | function when __APPLE__ is defined. | |
32989 | ||
32990 | * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures. | |
32991 | Update comments. | |
32992 | ||
32993 | 2004-11-18 Olivier Hainque <hainque@adacore.com> | |
32994 | ||
32995 | * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the | |
32996 | address of which may be used to represent "others" and "all others" | |
32997 | choices in exception tables, instead of the current harcoded | |
32998 | (void *)0 and (void *)1. | |
32999 | (Setup_Exception): Do nothing in the GNAT SJLJ case. | |
33000 | ||
33001 | * gigi.h (others_decl, all_others_decl): New decls representing the | |
33002 | new Others_Value and All_Others_Value objects. | |
33003 | (struct attrib): Rename "arg" component as "args", since GCC expects a | |
33004 | list of arguments in there. | |
33005 | ||
33006 | * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the | |
33007 | corresponding objects exported by a-exexpr, instead of hardcoded dummy | |
33008 | addresses. | |
33009 | ||
33010 | * trans.c (Exception_Handler_to_gnu_zcx): Use the address of | |
33011 | others_decl and all_others_decl instead of hardcoded dummy addresses | |
33012 | to represent "others" and "all others" choices, which is cleaner and | |
33013 | more flexible with respect to the possible eh pointer encoding policies. | |
33014 | ||
33015 | * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl. | |
33016 | (process_attributes): Account for the naming change of the "args" | |
33017 | attribute list entry component. | |
33018 | ||
33019 | * decl.c (build_attr_list): Rename into prepend_attributes to allow | |
33020 | cumulating attributes for different entities into a single list. | |
33021 | (gnat_to_gnu_entity): Use prepend_attributes to build the list of | |
33022 | attributes for the current entity and propagate first subtype | |
33023 | attributes to other subtypes. | |
33024 | <E_Procedure>: Attribute arguments are attr->args and not | |
33025 | attr->arg any more. | |
33026 | (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an | |
33027 | argument provided, as this is what GCC expects. Use NULL_TREE instead | |
33028 | of 0 for trees. | |
33029 | ||
33030 | 2004-11-18 Robert Dewar <dewar@adacore.com> | |
33031 | ||
206929f9 | 33032 | * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb: |
a6d57d87 | 33033 | Minor reformatting througout (including new function specs) |
33034 | Add ??? comments asking for clarification. | |
33035 | ||
33036 | 2004-11-18 Thomas Quinot <quinot@adacore.com> | |
33037 | ||
33038 | * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove | |
33039 | incomplete duplicate implementation of this subprogram from butil. | |
33040 | ||
33041 | 2004-11-18 Thomas Quinot <quinot@adacore.com> | |
33042 | ||
33043 | * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This | |
33044 | procedures factors the common processing for building an RPC receiver | |
33045 | for an RCI package or an RACW type. | |
33046 | Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of | |
33047 | Build_Remote_Subprogram_Proxy_Type into proper alphabetical order. | |
33048 | (Get_PCS_Name): New subprogram. Returns the name of the PCS currently | |
33049 | in use. | |
33050 | (Specific_Add_RACW_Features): New subprogram. PCS-specific part of | |
33051 | Add_RACW_Features. | |
33052 | (Specific_Add_RAST_Features): New subprogram. PCS-specific part of | |
33053 | Add_RAST_Features. | |
33054 | (Assign_Subprogram_Identifier): New subprogram. Provision for assigning | |
33055 | distribution subprogram identifiers that are either subprogram numbers | |
33056 | or strings. | |
33057 | (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and | |
33058 | string distribution identifiers assigned to a given subprogram. | |
33059 | (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids. | |
33060 | (Add_RAS_Dereference_TSS): Add comments. | |
33061 | (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter | |
33062 | is not referenced yet because it will be used by the PolyORB DSA | |
33063 | implementation. | |
33064 | (Insert_Partition_Check): Remove fossile code. | |
33065 | (First_RCI_Subprogram_Id): Document this constant. | |
33066 | (Add_RAS_Access_TSS): Correct the setting of the Etype of the | |
33067 | RAS_Access TSS. | |
33068 | (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are | |
33069 | replaced with calls to Get_Library_Unit_Name_String. Previously there | |
33070 | were several instances of the same code in different locations in the | |
33071 | compiler; this checkin completes the replacement of all of these | |
33072 | instances with calls to a common subprogram. | |
33073 | Minor reformatting. | |
33074 | ||
33075 | * sem_dist.adb: Remove comment noting that RPC receiver generation | |
33076 | should be disabled for RACWs that implement RASs. | |
33077 | (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String. | |
33078 | ||
33079 | * sem_util.ads, sem_util.adb (Has_Stream): New function | |
33080 | (Get_Library_Unit_Name_String): New subprogram to retrieve the fully | |
33081 | qualified name of a library unit into the name buffer. | |
33082 | (Note_Possible_Modification): Generate a reference only | |
33083 | if the context comes from source. | |
33084 | ||
33085 | * snames.ads (PCS_Names): New subtype corresponding to names of | |
33086 | supported implementations of the Partition Communication Subsystem | |
33087 | (PCS) (i.e. the runtime library support modules for the distributed | |
33088 | systems annex). | |
33089 | ||
33090 | 2004-11-18 Robert Dewar <dewar@adacore.com> | |
33091 | Ed Schonberg <schonberg@adacore.com> | |
33092 | ||
33093 | * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used | |
33094 | (Has_Rep_Pragma): New function | |
33095 | (Has_Attribute_Definition_Clause): New function | |
33096 | (Record_Rep_Pragma): Moved here from sem_ch13.adb | |
33097 | (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma | |
33098 | ||
33099 | * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb | |
33100 | ||
33101 | * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure | |
33102 | (Expand_Pragma_Psect_Object): New procedure | |
33103 | These procedures contain the revised and cleaned up processing for | |
33104 | these two pragmas. This processing was formerly in Sem_Prag, but | |
33105 | is more appropriately moved here. The cleanup involves making sure | |
33106 | that the pragmas are properly attached to the tree, and that no | |
33107 | nodes are improperly shared. | |
33108 | ||
33109 | * sem_prag.adb: Move expansion of Common_Object and Psect_Object | |
33110 | pragmas to Exp_Prag, which is more appropriate. | |
33111 | Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to | |
33112 | check for duplicates Remove use of Is_Psected flag, no longer needed. | |
33113 | Use new Make_String_Literal function with string. | |
33114 | ||
33115 | * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes | |
33116 | that are functions return universal values, that have to be converted | |
33117 | to the context type. | |
33118 | Use new Make_String_Literal function with string. | |
33119 | (Get_Stream_Convert_Pragma): New function, replaces the use of | |
33120 | Get_Rep_Pragma, which had to be kludged to work in this case. | |
33121 | ||
33122 | * freeze.adb: Use new Has_Rep_Pragma function | |
33123 | ||
33124 | * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal | |
33125 | function with string. | |
33126 | Use new Has_Rep_Pragma function. | |
33127 | ||
33128 | * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes | |
33129 | string argument. | |
33130 | ||
33131 | 2004-11-18 Robert Dewar <dewar@adacore.com> | |
33132 | ||
33133 | * errout.ads, errout.adb: (First_Sloc): New function | |
33134 | ||
33135 | * par-ch5.adb (P_Condition): Check for redundant parens is now a style | |
33136 | check (-gnatyx) instead of being included as a redundant construct | |
33137 | warning. | |
33138 | ||
33139 | * sem_ch6.adb: Change name Style_Check_Subprogram_Order to | |
33140 | Style_Check_Order_Subprograms. | |
33141 | ||
33142 | * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads, | |
33143 | stylesw.adb: Add Style_Check_Xtra_Parens | |
33144 | ||
33145 | * usage.adb: Add line for -gnatyx (check extra parens) | |
33146 | ||
33147 | * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx | |
33148 | ||
33149 | 2004-11-18 Ed Schonberg <schonberg@adacore.com> | |
33150 | Robert Dewar <dewar@adacore.com> | |
33151 | ||
33152 | * exp_ch4.adb (Expand_N_Selected_Component): If the component is the | |
33153 | discriminant of a constrained subtype, analyze the copy of the | |
33154 | corresponding constraint, because in some cases it may be only | |
33155 | partially analyzed. | |
33156 | Removes long-lived ??? comments. | |
33157 | ||
33158 | * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that | |
33159 | handled controlled or secondary-stack expressions within the | |
33160 | iteration_scheme of a loop. | |
33161 | ||
33162 | * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate | |
33163 | bounds that may contain functions calls, to prevent memory leaks when | |
33164 | the bound contains a call to a function that uses the secondary stack. | |
33165 | (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to | |
33166 | generate temporaries for loop bounds that might contain function calls | |
33167 | that require secondary stack and/or finalization actions. | |
33168 | ||
33169 | * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a | |
33170 | selected component and the selector is overloadable (not just a | |
33171 | function) treat as function call, Analyze_Call will disambiguate if | |
33172 | necessary. | |
33173 | (Analyze_Selected_Component): Do not generate an actual subtype for the | |
33174 | selected component if expansion is disabled. The actual subtype is only | |
33175 | needed for constraint checks. | |
33176 | (Analyze_Allocator): If restriction No_Streams is set, then do | |
33177 | not permit objects to be declared of a stream type, or of a | |
33178 | composite type containing a stream. | |
33179 | ||
33180 | * restrict.ads: Remove the a-stream entry from Unit_Array, since | |
33181 | No_Streams no longer prohibits with'ing this package. | |
33182 | ||
33183 | * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has | |
33184 | discriminants, but the parent base has unknown discriminants, there is | |
33185 | no discriminant constraint to inherit. Such a discrepancy can arise | |
33186 | when the actual for a formal type with unknown discriminants is a | |
33187 | similar private type whose full view has discriminants. | |
33188 | (Analyze_Object_Declaration): If restriction No_Streams is set, then | |
33189 | do not permit objects to be declared of a stream type, or of a | |
33190 | composite type containing a stream. | |
33191 | ||
33192 | 2004-11-18 Ed Schonberg <schonberg@adacore.com> | |
33193 | ||
33194 | * exp_dbug.ads: Update documentation to reflect simpler encoding for | |
33195 | protected operations. | |
33196 | ||
33197 | * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in | |
33198 | generated name, it complicates decoding in gdb and hinders debugging | |
33199 | of protected operations. | |
33200 | (Build_Barrier_Function_Specification): Set the Needs_Debug_Info | |
33201 | flag for the protected entry barrier function. | |
33202 | (Build_Protected_Entry_Specification): Set the Needs_Debug_Info | |
33203 | flag for the protected entry function. | |
33204 | ||
33205 | 2004-11-18 Nicolas Setton <setton@adacore.com> | |
33206 | ||
33207 | * expect.c: Define __unix__ when __APPLE__ is defined. | |
33208 | ||
33209 | * Makefile.in: Inform the value of the variable GMEM_LIB in the | |
33210 | Darwin-specific section. | |
33211 | ||
33212 | * lang-specs.h: Change the placement of the %1 marker. | |
33213 | Works around the fact that gcc adds -fPIC by default under Darwin. | |
33214 | ||
33215 | 2004-11-18 Ed Schonberg <schonberg@adacore.com> | |
33216 | ||
33217 | * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original | |
33218 | type of the object with the packed array type, set the Analyzed flag | |
33219 | on the object if it is an entity or simple indexed component, to avoid | |
33220 | spurious type errors. | |
33221 | ||
33222 | 2004-11-18 Gary Dismukes <dismukes@adacore.com> | |
33223 | ||
33224 | * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb, | |
33225 | gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a | |
33226 | separate line from the version message. | |
33227 | ||
33228 | 2004-11-18 Ed Falis <falis@adacore.com> | |
33229 | ||
33230 | * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653 | |
33231 | vthreads. | |
33232 | (init_float): Eliminate initialization of floating point status for | |
33233 | AE653. The instructions have no effect for vThreads. | |
33234 | ||
33235 | 2004-11-18 Vincent Celier <celier@adacore.com> | |
33236 | ||
33237 | * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when | |
33238 | gnatbind is invoked with -shared. | |
33239 | ||
33240 | 2004-11-18 Jose Ruiz <ruiz@adacore.com> | |
33241 | ||
33242 | * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error | |
33243 | for Detect_Blocking which is redundant with the check done within the | |
33244 | procedure Protected_Single_Entry_Call. | |
33245 | (Lock_Read_Only_Entry): Remove the code for raising Program_Error for | |
33246 | Detect_Blocking which is redundant with the check done within the | |
33247 | procedure Protected_Single_Entry_Call. | |
33248 | ||
33249 | 2004-11-18 Vincent Celier <celier@adacore.com> | |
33250 | ||
33251 | * makegpr.adb (Compile): Put the compiling switches (in package | |
33252 | Compiler and on the command line) immediately after "-c", instead of | |
33253 | at the end of the command line invocation of the compiler, when | |
33254 | compiling a non-Ada file. | |
33255 | (Build_Global_Archive): When there is no need to rebuild the archive, | |
33256 | set Global_Archive_Exists, so that the archive is passed to the linker | |
33257 | if one is needed. | |
33258 | ||
33259 | 2004-11-18 Robert Dewar <dewar@adacore.com> | |
33260 | Sergey Rybin <rybin@adacore.com> | |
33261 | ||
206929f9 | 33262 | * gnat_ugn.texi: |
a6d57d87 | 33263 | Remove extra paren check from list of checks for redundant constructs |
33264 | Add documentation of new -gnatyx style check (check extra parens) | |
33265 | Remove paragraph about gnatelim debug options. | |
33266 | ||
33267 | * gnat_rm.texi: Document that Ada.Streams now forbids creating stream | |
33268 | objects rather than forbidding dependencies on the package Ada.Streams. | |
33269 | ||
33270 | * sinfo.ads: Add ??? note that we should document pragmas passed to | |
33271 | back end. | |
33272 | ||
33273 | * g-expect.ads: Fix a few typos in the comments. | |
33274 | ||
1e5fcbe2 | 33275 | 2004-11-09 Joseph S. Myers <joseph@codesourcery.com> |
33276 | ||
33277 | * misc.c (gnat_handle_option): Use %< and %> for quoting in | |
33278 | warning message. | |
33279 | ||
4f130c90 | 33280 | 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
33281 | ||
33282 | * a-numaux-x86.adb (Tan): Fix fdivp syntax. | |
33283 | ||
2e3f386b | 33284 | 2004-11-07 Andreas Schwab <schwab@suse.de> |
33285 | ||
33286 | * Makefile.in (install-gnatlib): Remove spurious hyphen. | |
33287 | ||
a1d4b7a1 | 33288 | 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu> |
713d1c63 | 33289 | |
33290 | PR ada/18228 | |
33291 | * Makefile.in (darwin): Set soext to .dylib. | |
33292 | ||
bae806a1 | 33293 | 2004-10-26 Vincent Celier <celier@gnat.com> |
33294 | Thomas Quinot <quinot@act-europe.fr> | |
33295 | ||
33296 | * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads: | |
33297 | (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as | |
33298 | there is no use of GNAT.Sockets.Constants. | |
33299 | Remove remaining pragma Import for C_Write | |
33300 | Remove C_Read and C_Write from internal implementation unit | |
33301 | GNAT.Sockets.Thin, as their usage for sockets is non-portable (using | |
33302 | the read and write functions from the system runtime library is fine | |
33303 | on UNIX but won't work under Windows). | |
33304 | ||
33305 | * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write. | |
33306 | (Check_Selector): Use C_Recv instead of C_Read. | |
33307 | Selectors are the GNAT.Sockets abstraction to perform a select() | |
33308 | call on a set of descriptors. To allow abortion of an ongoing | |
33309 | select operation, some data is written to a dedicated socket that | |
33310 | is always monitored. | |
33311 | Under Windows, the write and read library functions cannot operate | |
33312 | on sockets, so we need to use send and recv instead, which is portable | |
33313 | across all supported platforms. | |
33314 | ||
33315 | * g-socthi.ads: Remove C_Read and C_Write from internal implementation | |
33316 | unit GNAT.Sockets.Thin, as their usage for sockets is non-portable | |
33317 | (using the read and write functions from the system runtime library is | |
33318 | fine on UNIX but won't work under Windows). | |
33319 | ||
33320 | 2004-10-26 Nicolas Setton <setton@act-europe.fr> | |
33321 | ||
33322 | * mlib-tgt-darwin.adb: New file. | |
33323 | ||
33324 | * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, | |
33325 | mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb, | |
33326 | mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, | |
33327 | mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New | |
33328 | subprogram body. | |
33329 | ||
33330 | * Makefile.in: Add support for building shared libraries under Darwin. | |
33331 | (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing | |
33332 | the low level EH init subprogram to be called from __gnat_initialize. | |
33333 | ||
33334 | * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram, | |
33335 | indicates which options to pass to the archive indexer. | |
33336 | ||
33337 | * mlib-utl.adb: Add support for calling ranlib with additional | |
33338 | options. This is needed for instance under Mac OS X. | |
33339 | (Ranlib_Options): New global variable, used to store the potential | |
33340 | options to pass to ranlib. | |
33341 | (Ar): Use Ranlib_Options when spawning ranlib. | |
33342 | (Initialize): Set the value of ranlib option. | |
33343 | ||
33344 | 2004-10-26 Olivier Hainque <hainque@act-europe.fr> | |
33345 | ||
33346 | * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K | |
33347 | instead of 8K, to reflect the real potential needs for stack-checking | |
33348 | in the ZCX case. | |
33349 | ||
33350 | 2004-10-26 Pascal Obry <obry@gnat.com> | |
33351 | ||
33352 | * s-parame-mingw.adb (Default_Stack_Size): Add some comments. | |
33353 | ||
33354 | * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On | |
33355 | Windows only the initial thread stack size can be set so it is good to | |
33356 | start we a low stack size. | |
33357 | The OS will adjust the size as needed. | |
33358 | ||
33359 | 2004-10-26 Olivier Hainque <hainque@act-europe.fr> | |
33360 | Nicolas Setton <setton@act-europe.fr> | |
33361 | ||
33362 | * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with | |
33363 | "__unix__" instead of "unix". | |
33364 | The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the | |
33365 | sections were just mistakenly ignored. The former is | |
33366 | implicitely defined by gcc2.8, gcc3.2 and gcc3.4. | |
33367 | Update #ifdef preprocessor macro to detect the symbol __hpux__ instead | |
33368 | of hpux. This prevents an unwanted definition of the symbol | |
33369 | convert_addresses in adaint.o. | |
33370 | ||
33371 | 2004-10-26 Gary Dismukes <dismukes@gnat.com> | |
33372 | ||
33373 | * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for | |
33374 | compatibility with type Unwind_Word on 16-bit targets such as AAMP. | |
33375 | ||
33376 | 2004-10-26 Cyrille Comar <comar@act-europe.fr> | |
33377 | ||
33378 | * a-filico.ads, a-filico.adb: fix incorrect header. | |
33379 | ||
33380 | 2004-10-26 Javier Miranda <miranda@gnat.com> | |
33381 | ||
33382 | * a-ststio.ads: Fix typo in identifier | |
33383 | ||
33384 | 2004-10-26 Thomas Quinot <quinot@act-europe.fr> | |
33385 | ||
33386 | * sem_ch4.adb: Minor reformatting. | |
33387 | ||
33388 | 2004-10-26 Ed Schonberg <schonberg@gnat.com> | |
33389 | ||
33390 | * checks.adb (Expr_Known_Valid): If floating-point validity checks are | |
33391 | enabled, check the result of unary and binary operations when the | |
33392 | expression is the right-hand side of an assignment. | |
33393 | ||
33394 | 2004-10-26 Vincent Celier <celier@gnat.com> | |
33395 | ||
33396 | * clean.adb (Delete): Do not output warnings when in quiet output and | |
33397 | not in verbose mode. | |
33398 | (Force_Deletions): New Boolean flag, defaulted to False | |
33399 | (Delete): Only delete a file if it is writable, and when | |
33400 | Force_Deletions is True. | |
33401 | (Parse_Cmd_Line): New switch -f: set Force_Deletions to True | |
33402 | (Usage): Line for new switch -f | |
33403 | (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our | |
33404 | own. | |
33405 | ||
33406 | 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr> | |
33407 | ||
33408 | * decl.c (gnat_to_gnu_field): Use the type of the inner object for a | |
33409 | JM type only if its size matches that of the wrapper. When a size is | |
33410 | prescribed and the field is not aliased, remove the wrapper of a JM | |
33411 | type only if the size is not greater than that of the packed array. | |
33412 | (gnat_to_gnu_entity): Change the extension of packed array wrappers | |
33413 | from LJM to JM. | |
33414 | ||
33415 | 2004-10-26 Geert Bosch <bosch@gnat.com> | |
33416 | ||
33417 | * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used. | |
33418 | (Succ): Re-implement using Scaling, Exponent and Ceiling attributes. | |
33419 | (Pred): Implement in terms of Succ. | |
33420 | ||
33421 | 2004-10-26 Ed Schonberg <schonberg@gnat.com> | |
33422 | ||
33423 | * exp_aggr.adb (Safe_Component): An aggregate component that is an | |
33424 | unchecked conversion is safe for in-place use if the expression of the | |
33425 | conversion is safe. | |
33426 | (Expand_Array_Aggregate): An aggregate that initializes an allocator may | |
33427 | be expandable in place even if the aggregate does not come from source. | |
33428 | (Convert_Array_Aggr_In_Allocator): New procedure to initialize the | |
33429 | designated object of an allocator in place, rather than building it | |
33430 | first on the stack. The previous scheme forces a full copy of the array, | |
33431 | and may be altogether unsusable if the size of the array is too large | |
33432 | for stack allocation. | |
33433 | ||
33434 | 2004-10-26 Robert Dewar <dewar@gnat.com> | |
33435 | ||
33436 | * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array | |
33437 | compares if the component is atomic. | |
33438 | ||
33439 | * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for | |
33440 | array assignment if the component type is atomic. | |
33441 | ||
33442 | 2004-10-26 Ed Schonberg <schonberg@gnat.com> | |
33443 | Eric Botcazou <ebotcazou@act-europe.fr> | |
33444 | ||
33445 | * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter | |
33446 | is aliased and is a by_reference type, do not pass by copy. | |
33447 | (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to | |
33448 | detect whether the call is in the right side of an assignment or | |
33449 | the expression of an object declaration. Recurse on component | |
33450 | association within aggregates. | |
33451 | Call it in the condition that determines whether the temporary is | |
33452 | necessary for correct stack-checking. | |
33453 | ||
33454 | 2004-10-26 Thomas Quinot <quinot@act-europe.fr> | |
33455 | ||
33456 | * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter | |
33457 | RACW_Type, used in the PolyORB version. | |
33458 | Rename RCI_Info to RCI_Locator, for consistency between the PolyORB | |
33459 | version and the GARLIC version. | |
33460 | ||
206929f9 | 33461 | * snames.ads, snames.adb, s-parint.ads, s-parint.adb: |
bae806a1 | 33462 | Rename RCI_Info to RCI_Locator for better consistency between the |
33463 | GARLIC and PolyORB versions of the distributed systems annex. | |
33464 | (DSA_Implementation_Name): This enumeration lists the possible | |
33465 | implementations of the Partition Communication Subsystem for the | |
33466 | Distributed Systems Annex (DSA). The three available implementations | |
33467 | are the dummy stub implementation (No_DSA), and two versions based on | |
33468 | two different distribution runtime libraries: GARLIC and PolyORB. Both | |
33469 | the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution | |
33470 | technology. | |
33471 | Change the literal GLADE_DSA to GARLIC_DSA to accurately describe | |
33472 | that organization. | |
33473 | ||
33474 | * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency | |
33475 | between the GARLIC and PolyORB versions of the distributed systems | |
33476 | annex. | |
33477 | Remove RE_Unbounded_Reclaim_Pool since it is unused. | |
33478 | ||
33479 | 2004-10-26 Gary Dismukes <dismukes@gnat.com> | |
33480 | ||
33481 | * gnat1drv.adb: Suppress calling the back end when | |
33482 | Frontend_Layout_On_Target is true. | |
33483 | ||
33484 | 2004-10-26 Thomas Quinot <quinot@act-europe.fr> | |
33485 | ||
33486 | * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable, | |
33487 | Set_Read_Only): New subprograms. | |
33488 | These new routines allow the user to set or unset the Owner execute | |
33489 | and Owner write permission flags on a file. | |
33490 | ||
33491 | * makegpr.adb, mlib.adb, mlib-prj.adb: Use | |
33492 | GNAT.OS_Lib.Set_Executable instead of rolling our own. | |
33493 | ||
33494 | 2004-10-26 Matthew Gingell <gingell@gnat.com> | |
33495 | ||
33496 | * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI. | |
33497 | ||
33498 | 2004-10-26 Pascal Obry <obry@gnat.com> | |
33499 | ||
33500 | * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the | |
33501 | memory before the faulting page we properly test the process read | |
33502 | access for this address using appropriate Win32 routine. | |
33503 | (HPUX sections): guard with "__hpux__" instead of "hpux". | |
33504 | ||
33505 | 2004-10-26 Robert Dewar <dewar@gnat.com> | |
33506 | ||
33507 | * lib-xref.adb (Generate_Reference): Don't complain about reference to | |
33508 | entry parameter if pragma Unreferenced set, since we do not properly | |
33509 | handle the case of multiple parameters. | |
33510 | ||
33511 | 2004-10-26 Vincent Celier <celier@gnat.com> | |
33512 | ||
33513 | * prj-env.adb: (Contains_ALI_Files): New Boolean function | |
33514 | (Ada_Objects_Path.Add): For a library project, add to the object path | |
33515 | the library directory only if there is no object directory or if the | |
33516 | library directory contains ALI files. | |
33517 | (Set_Ada_Paths.Add.Recursive_Add): Ditto | |
33518 | ||
33519 | 2004-10-26 Vincent Celier <celier@gnat.com> | |
33520 | ||
33521 | * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual | |
33522 | extension of library projects. | |
33523 | ||
33524 | * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project | |
33525 | path defaults to ".:<prefix>/lib/gnat". | |
33526 | (Parse): For an extending all project, allow direct import of a project | |
33527 | that is virtually extended. | |
33528 | ||
33529 | * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with | |
33530 | the specified name is directly imported, return its ID. Otherwise, if | |
33531 | an extension of this project is imported, return the ID of the | |
33532 | extension. | |
33533 | ||
33534 | 2004-10-26 Robert Dewar <dewar@gnat.com> | |
33535 | ||
33536 | * s-arit64.adb: (Le3): New function, used by Scaled_Divide | |
33537 | (Sub3): New procedure, used by Scaled_Divide | |
33538 | (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also | |
33539 | correct more than one instance of failure to propagate carries | |
33540 | correctly. | |
33541 | (Double_Divide): Handle overflow case of largest negative number | |
33542 | divided by minus one. | |
33543 | ||
33544 | * s-arit64.ads (Double_Divide): Document that overflow can occur in | |
33545 | the case of a quotient value out of range. | |
33546 | Fix comments. | |
33547 | ||
33548 | 2004-10-26 Robert Dewar <dewar@gnat.com> | |
33549 | ||
33550 | * s-bitops.adb (Bit_Eq): Remove redundant check. | |
33551 | ||
33552 | * s-bitops.ads: Minor comment updates | |
33553 | Change some occurrences of Address to System.Address | |
33554 | ||
33555 | * s-carsi8.ads: Fix minor cut-and-paste error in comments | |
33556 | ||
33557 | 2004-10-26 Ed Schonberg <schonberg@gnat.com> | |
33558 | ||
33559 | * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper | |
33560 | accessibility check to prefix that is a protected operation. | |
33561 | ||
33562 | 2004-10-26 Ed Schonberg <schonberg@gnat.com> | |
33563 | ||
33564 | * sem_ch10.adb (Optional_Subunit): If file of expected subunit is | |
33565 | empty, post message on stub. | |
33566 | ||
33567 | 2004-10-26 Ed Schonberg <schonberg@gnat.com> | |
33568 | Javier Miranda <miranda@gnat.com> | |
33569 | ||
33570 | * sem_ch12.adb (In_Main_Context): Predicate to determine whether the | |
33571 | current instance appears within a unit that is directly in the context | |
33572 | of the main unit. | |
33573 | Used to determine whether the body of the instance should be analyzed | |
33574 | immediately after its spec, to make its subprogram bodies available | |
33575 | for front-end inlining. | |
33576 | (Analyze_Formal_Array_Type): Cleanup condition that checks that range | |
33577 | constraint is not allowed on the component type (AARM 12.5.3(3)) | |
33578 | ||
33579 | 2004-10-26 Cyrille Comar <comar@act-europe.fr> | |
33580 | ||
33581 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case | |
33582 | 'Storage_Pool): enhance, document & limit detection of non-sharable | |
33583 | internal pools. | |
33584 | ||
33585 | * impunit.adb: Make System.Pool_Global and System.Pool_Local visible. | |
33586 | ||
33587 | * s-pooglo.ads: Add more documentation now that this pool is properly | |
33588 | documented. | |
33589 | ||
33590 | 2004-10-26 Ed Schonberg <schonberg@gnat.com> | |
33591 | ||
33592 | * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task | |
33593 | or protected type with discriminants, do not constrain the | |
33594 | corresponding record type if the subtype declaration has no | |
33595 | discriminant constraints. This can be the case in source code, or in | |
33596 | the subtype declaration created to rename an actual type within an | |
33597 | instantiation. | |
33598 | ||
33599 | 2004-10-26 Ed Schonberg <schonberg@gnat.com> | |
33600 | ||
33601 | * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a | |
33602 | different kind of stub (possibly wrong name for file), do not check | |
33603 | for conformance. | |
33604 | (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body | |
33605 | includes call to some function that returns an unconstrained type, do | |
33606 | not inline. | |
33607 | ||
33608 | 2004-10-26 Ed Schonberg <schonberg@gnat.com> | |
33609 | ||
33610 | * sem_elab.adb (Check_Elab_Call): Do not check a call that does not | |
33611 | appear in the code for the main unit. Dependencies among units in the | |
33612 | context of the main unit are established when those other units are | |
33613 | compiled. Otherwise spurious elaboration constraints can generate | |
33614 | incorrect elaboration circularities. | |
33615 | ||
33616 | 2004-10-26 Thomas Quinot <quinot@act-europe.fr> | |
33617 | Ed Schonberg <schonberg@gnat.com> | |
33618 | ||
33619 | * sem_util.adb (Is_Aliased_View): Defend against the case where this | |
33620 | subprogram is called with a parameter that is not an object name. This | |
33621 | situation arises for some cases of illegal code, which is diagnosed | |
33622 | later, and in this case it is wrong to call Is_Aliased, as that might | |
33623 | cause a compiler crash. | |
33624 | (Explain_Limited_Type): Refine previous fix to include | |
33625 | inherited components of derived types, to provide complete information. | |
33626 | ||
33627 | * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that | |
33628 | is the prival for a protected object. | |
33629 | It is necessary to mark this entity as a variable, in addition to | |
33630 | flagging it as Aliased, because Sem_Util.Is_Aliased_View has been | |
33631 | modified to avoid checking the Aliased flag on entities that are not | |
33632 | objects. (Checking that flag for non-objects is erroneous and could | |
33633 | lead to a compiler crash). | |
33634 | ||
33635 | 2004-10-26 Robert Dewar <dewar@gnat.com> | |
33636 | ||
33637 | * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if | |
33638 | X_Frac = 0.5, then we know that the number X must be positive. | |
33639 | (Succ): Remove the same redundant test, and also fix the primary test | |
33640 | to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong. | |
33641 | Minor reformatting | |
33642 | (Decompose): Add fuller comments to spec | |
33643 | ||
33644 | 2004-10-26 Pascal Obry <obry@gnat.com> | |
33645 | ||
33646 | * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr | |
33647 | validity (process must have read access). Set to 0 in all other cases. | |
33648 | (STOP_FRAME): Now check for ptr validity to avoid a segmentation | |
33649 | violation on Win32. | |
33650 | (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a | |
33651 | segmentation violation. | |
33652 | ||
33653 | 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr> | |
33654 | ||
33655 | * trans.c (call_to_gnu): For an (in-)out parameter passed by reference | |
33656 | whose type is a constructed subtype of an aliased object with an | |
33657 | unconstrained nominal subtype, convert the actual to the constructed | |
33658 | subtype before taking its address. | |
33659 | ||
33660 | 2004-10-26 Vincent Celier <celier@gnat.com> | |
33661 | ||
33662 | * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb | |
33663 | (Is_Path_Name_Case_Sensitive): New function | |
33664 | ||
33665 | * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure | |
33666 | (Base_Name, Simple_Name, Current_Directory, Compose, | |
33667 | Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on | |
33668 | the result. | |
33669 | ||
33670 | 2004-10-26 Cyrille Comar <comar@act-europe.fr> | |
33671 | Vasiliy Fofanov <fofanov@act-europe.fr> | |
33672 | Vincent Celier <celier@gnat.com> | |
33673 | ||
33674 | * gnat_ugn.texi: Generalize "finding memory problems" section into a | |
33675 | "memory management issues" section and document some of the useful | |
33676 | memory pools provided as part of the GNAT library. | |
33677 | Remove "virtual" from declaration of A::method2 in | |
33678 | the simple example of Ada/C++ mixed system. | |
33679 | Library Projects may be virtually extended: their virtual extensions | |
33680 | are not Library Projects. | |
33681 | Added section on extending project hierarchies. | |
33682 | ||
c461d81a | 33683 | 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com> |
38750fcd | 33684 | |
33685 | * adaint.c (__gnat_get_libraries_from_registry): Cast value | |
33686 | to LPBYTE. | |
33687 | (__gnat_portable_spawn): Remove const. | |
33688 | ||
33689 | * mingw32.h (MAXPATHLEN): Check for previous definition. | |
33690 | ||
e73a7be3 | 33691 | 2004-10-17 Matthias Klose <doko@debian.org> |
33692 | ||
33693 | * gnatvsn.ads: Set gnat library version to 4.0. | |
33694 | ||
7b1a4585 | 33695 | 2004-10-05 Vincent Celier <celier@gnat.com> |
33696 | ||
1af67e62 | 33697 | * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2 |
7b1a4585 | 33698 | |
8a67bb47 | 33699 | 2004-10-04 Laurent Guerby <laurent@guerby.net> |
bc868c0b | 33700 | |
33701 | PR ada/15156 | |
33702 | * Makefile.in: Define and use RANLIB_FLAGS. | |
7b1a4585 | 33703 | |
25673f4a | 33704 | 2004-10-04 Pascal Obry <obry@gnat.com> |
33705 | ||
33706 | * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all | |
33707 | other x86 platforms). | |
33708 | ||
0770cd72 | 33709 | 2004-10-04 Olivier Hainque <hainque@act-europe.fr> |
33710 | ||
33711 | * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense | |
33712 | in general and triggers stack alignment adjustment for thread entry | |
33713 | points on targets where this is necessary. | |
33714 | ||
20a3ff1d | 33715 | 2004-10-04 Bernard Banner <banner@gnat.com> |
33716 | ||
33717 | PR ada/13897 | |
20a3ff1d | 33718 | * Makefile.in: Add section for powerpc linux |
33719 | Add variant i-vxwork-x86.ads | |
33720 | ||
33721 | * i-vxwork-x86.ads, system-linux-ppc.ads: New files. | |
33722 | ||
298f82e2 | 33723 | 2004-10-04 Olivier Hainque <hainque@act-europe.fr> |
33724 | ||
33725 | * init.c (__gnat_initialize): Call an Ada subprogram to perform the | |
33726 | table registration calls when need be. Ensures no reference to the crt | |
33727 | ctors symbol are issued in the SJLJ case, which avoids possible | |
33728 | undefined symbol errors in the case of modules to be statically linked | |
33729 | with the kernel. | |
33730 | ||
c24ed31b | 33731 | 2004-10-04 Javier Miranda <miranda@gnat.com> |
33732 | ||
33733 | * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand | |
33734 | in-line the code corresponding to subprogram Analyze_Actuals. In | |
33735 | addition, analyze the actuals only in case of subprogram call. | |
33736 | ||
b26c4700 | 33737 | 2004-10-04 Ed Falis <falis@gnat.com> |
33738 | ||
33739 | * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size | |
33740 | ||
931feadd | 33741 | 2004-10-04 Sergey Rybin <rybin@act-europe.fr> |
33742 | ||
33743 | * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter | |
33744 | in the documentation. | |
33745 | ||
90c17f95 | 33746 | 2004-10-04 Robert Dewar <dewar@gnat.com> |
33747 | ||
33748 | * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as | |
33749 | IF and CASE. | |
33750 | (Analyze_Block_Statement): Add circuitry to detect following dead code | |
33751 | (Check_Unreachable_Code): Handle case of block exit | |
33752 | ||
87df65b5 | 33753 | 2004-10-04 Robert Dewar <dewar@gnat.com> |
33754 | ||
33755 | * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call | |
33756 | (XMatchD): Avoid warning for Logic_Error call | |
33757 | ||
eed46cf9 | 33758 | 2004-10-04 Robert Dewar <dewar@gnat.com> |
33759 | ||
33760 | * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not | |
33761 | consider expressions buried within a procedure actual to be an actual. | |
33762 | This caused some blowups with uses of packed slices within a procedure | |
33763 | actual. | |
33764 | ||
fa814356 | 33765 | 2004-10-04 Robert Dewar <dewar@gnat.com> |
33766 | ||
33767 | * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no | |
33768 | longer need to be initialized to zero. | |
33769 | (Get_Simple_Init_Val): Modular packed arrays no longer need to be | |
33770 | initialized to zero. | |
33771 | ||
33772 | * checks.adb (Expr_Known_Valid): Packed arrays are now always | |
33773 | considered valid, even if the representation is modular. That's correct | |
33774 | now that we no longer initialize packed modular arrays to zero. | |
33775 | ||
33776 | * exp_dbug.ads: Clarify documentation on handling of PAD and JM | |
33777 | suffixes. These are now documented as the only cases in which the | |
33778 | debugger ignores outer records. | |
33779 | Previously, the spec allowed arbitrary suffixes for this purpose. | |
33780 | Change name of LJM to JM for packed array pad records | |
33781 | Create separate section on packed array handling, and add a whole new | |
33782 | set of comments to this section describing the situation with packed | |
33783 | modular types and justification requirements depending on endianness. | |
33784 | ||
2fff57b3 | 33785 | 2004-10-04 Robert Dewar <dewar@gnat.com> |
33786 | ||
33787 | * a-except.adb: Add a comment for last change | |
33788 | ||
33789 | * einfo.ads: Minor spelling correction in comment | |
33790 | ||
33791 | * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting | |
33792 | ||
33793 | * sem_ch11.adb: Fix a case of using | instead of \ for continuation | |
33794 | messages. | |
33795 | ||
33796 | * sem_util.ads: Minor comment update | |
33797 | ||
cb75489d | 33798 | 2004-10-04 Ed Schonberg <schonberg@gnat.com> |
33799 | ||
33800 | * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as | |
33801 | Inline_Always when in Configurable_Run_Time mode. | |
33802 | ||
33803 | * sem_prag.adb (Process_Convention): If entity is an inherited | |
33804 | subprogram, apply convention to parent subprogram if in same scope. | |
33805 | (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always | |
33806 | when in Configurable_Run_Time mode. | |
33807 | ||
01e7e23d | 33808 | 2004-10-04 Ed Schonberg <schonberg@gnat.com> |
33809 | ||
33810 | * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of | |
33811 | class_wide type after component list has been inherited. | |
33812 | ||
856029ac | 33813 | 2004-10-04 Ed Schonberg <schonberg@gnat.com> |
33814 | ||
33815 | * sem_ch12.adb (Check_Generic_Actuals): New predicate | |
33816 | Denotes_Previous_Actual, to handle properly the case of a private | |
33817 | actual that is also the component type of a subsequent array actual. | |
33818 | The visibility status of the first actual is not affected when the | |
33819 | second is installed. | |
33820 | (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to | |
33821 | make fully recursive the treatment of formals of packages declared | |
33822 | with a box. | |
33823 | (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo | |
33824 | the above on exit from an instantiation. | |
33825 | (Denotes_Formal_Package): When called from Restore_Private_Views, ignore | |
33826 | current instantiation which is now complete. | |
33827 | (Analyze_Package_Instantiation): No instantiated body is needed if the | |
33828 | main unit is generic. Efficient, and avoid anomalies when a instance | |
33829 | appears in a package accessed through rtsfind. | |
33830 | ||
e0b6cb3f | 33831 | 2004-10-04 Ed Schonberg <schonberg@gnat.com> |
33832 | ||
33833 | * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled, | |
33834 | do not generate a declaration for a temporary if the call is part of a | |
33835 | library-level instantiation. | |
33836 | ||
d53a018a | 33837 | 2004-10-04 Ed Schonberg <schonberg@gnat.com> |
33838 | ||
33839 | * sem_util.adb (Explain_Limited_Type): Ignore internal components when | |
33840 | searching for a limited component to flag. | |
33841 | ||
33842 | * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to | |
33843 | expansion of Input, to account for the fact that the implicit call | |
33844 | generated by the attribute reference must freeze the user-defined | |
33845 | stream subprogram. This is only relevant to 'Input, because it can | |
33846 | appear in an object declaration, prior to the body of the subprogram. | |
33847 | ||
33848 | * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that | |
33849 | expansion can proceed and further errors uncovered. | |
33850 | (Minor clean up): Fix cases of using | instead of \ for continuation | |
33851 | messages. | |
33852 | ||
7cb910d3 | 33853 | 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> |
33854 | ||
33855 | * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable. | |
33856 | ||
33857 | * trans.c (assoc_to_constructor): Fix unused var warning if no checking. | |
33858 | (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change. | |
33859 | Use gcc_assert and gcc_unreachable. | |
33860 | ||
33861 | * decl.c (gnat_to_gnu_entity, case object): Check and process a | |
33862 | specified alignment before validating size. | |
33863 | (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a | |
33864 | stripped-down declaration for the type of the inner field when making | |
33865 | a JM type. | |
33866 | ||
33867 | * utils.c (finish_record_type): Do not compute the size in units | |
33868 | incrementally. Instead compute it once for the rep clause case. | |
33869 | Use gcc_assert and gcc_unreachable. | |
33870 | ||
de9e0d9c | 33871 | 2004-10-04 Vincent Celier <celier@gnat.com> |
33872 | ||
33873 | * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character | |
33874 | in file name. | |
33875 | (Is_Valid_Path_Name): Take '/' as a directory separator. | |
33876 | ||
3082de47 | 33877 | 2004-10-04 Vincent Celier <celier@gnat.com> |
33878 | ||
33879 | * prj-part.adb (Parse_Single_Project): Call Is_Extending_All | |
33880 | (Extended_Project) only if Extended_Project is defined, to avoid | |
33881 | assertion error. | |
33882 | (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a | |
33883 | resolved path. | |
33884 | (Parse_Single_Project): Ditto. | |
33885 | ||
33886 | * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call | |
33887 | Add_To_Project_Path for virtual projects. | |
33888 | ||
afe3500d | 33889 | 2004-10-04 Vincent Celier <celier@gnat.com> |
33890 | ||
206929f9 | 33891 | * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, |
33892 | mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb, | |
33893 | mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, | |
afe3500d | 33894 | mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New |
33895 | parameter Options_2. | |
33896 | ||
33897 | * mlib-prj.ads, mlib-prj.adb (Build_Library): Call | |
33898 | Build_Dynamic_Library with an empty Options_2. | |
33899 | ||
33900 | * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no | |
33901 | default anymore. | |
33902 | ||
33903 | * makegpr.adb (Get_Imported_Directories.add): Remove trailing | |
33904 | directory separator, if any. | |
33905 | (Gprmake): Do not allow mains on the command line for library projects. | |
33906 | Do not attempt to link when the project is a library project. | |
33907 | (Library_Opts): New table to store Library_Options. | |
33908 | (Build_Library): If Library_Options is specified, pass these options | |
33909 | when building a shared library. | |
33910 | ||
77829d1e | 33911 | 2004-10-04 Jose Ruiz <ruiz@act-europe.fr> |
33912 | ||
33913 | * s-tposen.adb (Service_Entry): The object must be always unlocked at | |
33914 | the end of this procedure now that the unlock operation was inserted | |
33915 | by the expander. | |
33916 | ||
fb4b3501 | 33917 | 2004-10-04 Jose Ruiz <ruiz@act-europe.fr> |
33918 | ||
33919 | * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value | |
33920 | corresponding to the Preallocated_Stacks flags in System. | |
33921 | (Get_Target_Parameters): Including the processing for | |
33922 | Preallocated_Stacks. | |
33923 | ||
206929f9 | 33924 | * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads, |
33925 | system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads, | |
33926 | system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads, | |
33927 | system-linux-x86_64.ads, system-tru64.ads, system-aix.ads, | |
33928 | system-vxworks-sparcv9.ads, system-vxworks-xscale.ads, | |
33929 | system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads, | |
33930 | system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads, | |
33931 | system-vxworks-mips.ads, system-os2.ads, system-interix.ads, | |
33932 | system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, | |
33933 | system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, | |
fb4b3501 | 33934 | system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is |
33935 | used to signal whether the compiler creates the required stacks and | |
33936 | descriptors for the different tasks (when True) or it is done by the | |
33937 | underlying operating system at run time (when False). | |
33938 | It is initially set to False in all targets. | |
33939 | ||
33940 | * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack | |
33941 | if it is supported by the target. | |
33942 | (Make_Task_Create_Call): Pass the stack address if it has been | |
33943 | previously created. Otherwise pass a Null_Address. | |
33944 | ||
33945 | * snames.adb: Add _stack. | |
33946 | ||
33947 | * snames.ads: Add Name_uStack. Required to allow the expander to | |
33948 | statically allocated task stacks. | |
33949 | ||
33950 | * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add | |
33951 | Stack_Address argument. | |
33952 | Check that its value is equal to Null_Address because this target does | |
33953 | not support the static stack allocation. | |
33954 | ||
5db81a34 | 33955 | 2004-10-04 Thomas Quinot <quinot@act-europe.fr> |
33956 | ||
33957 | * usage.adb: Change "pragma inline" to "pragma Inline" in information | |
33958 | and error messages | |
33959 | ||
19b60632 | 33960 | 2004-10-04 Thomas Quinot <quinot@act-europe.fr> |
33961 | ||
33962 | * exp_dist.adb: Split declaration of asynchronous flag out of | |
33963 | Add_RACW_Read_Attribute. | |
33964 | Minor reformatting for better alignment with PolyORB version. | |
33965 | Store the entity for the asynchronous flag of an RACW, rather than the | |
33966 | expression, in the asynchronous flags table. This will allow this flag | |
33967 | to be used in other subprograms beside Add_RACW_Read_Attribute. | |
33968 | ||
0a912376 | 33969 | 2004-10-04 Thomas Quinot <quinot@act-europe.fr> |
33970 | ||
33971 | * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c, | |
206929f9 | 33972 | g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads, |
33973 | g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb, | |
33974 | g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads, | |
0a912376 | 33975 | g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new |
33976 | sockets constant MSG_NOSIGNAL (Linux-specific). | |
33977 | Add new sockets constant MSG_Forced_Flags, list of flags to be set on | |
33978 | all Send operations. | |
33979 | For Linux, set MSG_NOSIGNAL on all send operations to prevent them | |
33980 | from trigerring SIGPIPE. | |
33981 | Rename components to avoid clash with Ada 2005 possible reserved | |
33982 | word 'interface'. | |
33983 | (Check_Selector): When the select system call returns with an error | |
33984 | condition, propagate Socket_Error to the caller. | |
33985 | ||
6148a911 | 33986 | 2004-10-01 Jan Hubicka <jh@suse.cz> |
33987 | ||
33988 | * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation. | |
33989 | ||
7af57d1d | 33990 | 2004-09-23 Robert Dewar <dewar@gnat.com> |
33991 | ||
33992 | PR ada/17540 | |
7af57d1d | 33993 | * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here, |
33994 | instead do this at freeze time (we won't do it if there is an address | |
33995 | clause). | |
33996 | Change "pragma inline" to "pragma Inline" in information and error | |
33997 | messages. | |
33998 | Minor reformatting. | |
33999 | ||
34000 | * freeze.adb (Check_Address_Clause): Remove previous change, not the | |
34001 | right way of doing things after all. | |
34002 | (Freeze_Entity): For object, set Is_Public for imported entities | |
34003 | unless there is an address clause present. | |
34004 | ||
514b46c2 | 34005 | 2004-09-21 Olivier Hainque <hainque@act-europe.fr> |
34006 | ||
34007 | * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a | |
34008 | dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This | |
34009 | ensures proper handling of types with rep clauses, which might have | |
34010 | their TYPE_SIZE set already. | |
34011 | ||
02d0b1b6 | 34012 | 2004-09-21 Robert Dewar <dewar@gnat.com> |
34013 | ||
34014 | * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular | |
34015 | packed array types in both little- and big-endian cases. This change | |
34016 | ensures that we no longer count on the unused bits being initialized | |
34017 | for such types (and in particular ensures that equality testing will | |
34018 | only read the relevant bits). | |
34019 | Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P | |
34020 | These changes mean that we no longer need to initialize small packed | |
34021 | arrays. | |
34022 | (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same | |
34023 | optimization to an LJM field as to its parent field. | |
34024 | ||
34025 | * ada-tree.h, trans.c, utils.c, utils2.c: | |
34026 | Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P | |
34027 | ||
9d95b2b0 | 34028 | 2004-09-20 Jan Hubicka <jh@suse.cz> |
34029 | ||
34030 | * utils.c (gnat_finalize): Remove. | |
34031 | (end_subprog_body): Directly call cgraph_finalize_function; | |
34032 | do not lower the nested functions. | |
34033 | ||
003153a1 | 34034 | 2004-09-20 Robert Dewar <dewar@gnat.com> |
34035 | ||
34036 | PR ada/17540 | |
003153a1 | 34037 | * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public |
34038 | if an address clause is present, since that means that the Import | |
34039 | should be ignored. | |
34040 | ||
dd254355 | 34041 | 2004-09-20 Arnaud Charlet <charlet@act-europe.fr> |
34042 | ||
34043 | * 5tsystem.ads: Removed, no longer used. | |
34044 | ||
ce45a448 | 34045 | 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com> |
34046 | Zack Weinberg <zack@codesourcery.com> | |
34047 | ||
34048 | * ada-tree.def: Use tree_code_class enumeration constants | |
34049 | instead of code letters. | |
34050 | * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c: | |
34051 | Update for new tree-class enumeration constants. | |
34052 | ||
95cb3ba9 | 34053 | 2004-09-17 Vincent Celier <celier@gnat.com> |
34054 | ||
34055 | * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private | |
34056 | capabilities of the general project manager. | |
34057 | ||
44d43e97 | 34058 | 2004-09-09 Vincent Celier <celier@gnat.com> |
34059 | ||
34060 | * a-direct.ads: Add pragma Ada_05 | |
34061 | (Directory_Entry_Type): Give default value to component Kind to avoid | |
34062 | not initialized warnings. | |
34063 | ||
34064 | * a-direct.adb (Current_Directory): Remove directory separator at the | |
34065 | end. | |
34066 | (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not | |
34067 | an existing directory. | |
34068 | (Fetch_Next_Entry): Give default value to variable Kind to avoid warning | |
34069 | (Size (String)): Function C_Size returns Long_Integer, not File_Size. | |
34070 | Convert the result to File_Size. | |
34071 | ||
34072 | * prj.ads: (Project_Error): New exception | |
34073 | ||
34074 | * prj-attr.adb: Except in procedure Initialize, Fail comes from | |
34075 | Prj.Com, not from Osint. | |
34076 | (Attrs, Package_Attributes): Tables moved to private part of spec | |
34077 | (Add_Attribute, Add_Unknown_Package): Moved to new child package | |
34078 | Prj.Attr.PM. | |
34079 | (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise | |
34080 | Prj.Project_Error after call to Fail. | |
34081 | (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling | |
34082 | Fail. Check that package name is not already in use. | |
34083 | ||
34084 | * prj-attr.ads: Comment updates to indicate that all subprograms may be | |
34085 | used by tools, not only by the project manager, and to indicate that | |
34086 | exception Prj.Prj_Error may be raised in case of problem. | |
34087 | (Add_Unknown_Package, Add_Attribute): Moved to new child package | |
34088 | Prj.Attr.PM. | |
34089 | (Attrs, Package_Attributes): Table instantiations moved from the body to | |
34090 | the private part to be accessible from Prj.Attr.PM body. | |
34091 | ||
34092 | * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package | |
34093 | from new package Prj.Attr.PM. | |
34094 | (Parse_Attribute_Declaration): Call Add_Attribute from new package | |
34095 | Prj.Attr.PM. | |
34096 | ||
34097 | * Makefile.in: Add prj-attr-pm.o to gnatmake object list | |
34098 | ||
34099 | * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check | |
34100 | instead of Elaboration_Checks). | |
34101 | ||
34102 | * a-calend.adb: Minor reformatting | |
34103 | ||
34104 | 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
34105 | ||
34106 | * gigi.h (maybe_pad_type): New declaration. | |
34107 | (create_subprog_type): New arg RETURNS_BY_TARGET_PTR. | |
34108 | ||
34109 | * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro. | |
34110 | ||
34111 | * cuintp.c: Convert to use buildN. | |
34112 | ||
34113 | * decl.c (maybe_pad_type): No longer static. | |
34114 | (gnat_to_gnu_entity, case E_Function): Handle case of returning by | |
34115 | target pointer. | |
34116 | Convert to use buildN. | |
34117 | ||
34118 | * trans.c (call_to_gnu): Add arg GNU_TARGET; support | |
34119 | TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed. | |
34120 | (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on | |
34121 | RHS. | |
34122 | (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P. | |
34123 | (gnat_gimplify_expr, case ADDR_EXPR): New case. | |
34124 | Convert to use buildN. | |
34125 | ||
34126 | * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and | |
34127 | TREE_READONLY for const. | |
34128 | Convert to use buildN. | |
34129 | ||
34130 | * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR. | |
34131 | (create_var_decl): Refine when TREE_STATIC is set. | |
34132 | Convert to use buildN. | |
34133 | ||
34134 | 2004-09-09 Gary Dismukes <dismukes@gnat.com> | |
34135 | ||
34136 | * gnat_ugn.texi: Delete text relating to checking of ali and object | |
34137 | consistency. | |
34138 | ||
34139 | * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these | |
34140 | routines. | |
34141 | ||
34142 | 2004-09-09 Jose Ruiz <ruiz@act-europe.fr> | |
34143 | ||
34144 | * gnat_ugn.texi: Add Detect_Blocking to the list of configuration | |
34145 | pragmas recognized by GNAT. | |
34146 | ||
34147 | * gnat_rm.texi: Document pragma Detect_Blocking. | |
34148 | ||
34149 | * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active, | |
34150 | raise Program_Error if called from a protected operation. | |
34151 | ||
34152 | * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase | |
34153 | the protected action nesting level. | |
34154 | (Lock_Read_Only): When pragma Detect_Blocking is active increase the | |
34155 | protected action nesting level. | |
34156 | (Unlock): When pragma Detect_Blocking is active decrease the protected | |
34157 | action nesting level. | |
34158 | ||
34159 | * s-taskin.adb (Initialize_ATCB): Initialize to 0 the | |
34160 | Protected_Action_Nesting. | |
34161 | ||
34162 | * s-taskin.ads: Adding the field Protected_Action_Nesting to the | |
34163 | Common_ATCB record. It contains the dynamic level of protected action | |
34164 | nesting for each task. It is needed for checking whether potentially | |
34165 | blocking operations are called from protected operations. | |
34166 | (Detect_Blocking): Adding a Boolean constant reflecting whether pragma | |
34167 | Detect_Blocking is active or not in the partition. | |
34168 | ||
34169 | * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active, | |
34170 | raise Program_Error if called from a protected operation. | |
34171 | (Task_Entry_Call): When pragma Detect_Blocking is active, raise | |
34172 | Program_Error if called from a protected operation. | |
34173 | (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise | |
34174 | Program_Error if called from a protected operation. | |
34175 | ||
34176 | * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active, | |
34177 | raise Program_Error if called from a protected operation. | |
34178 | ||
34179 | * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active, | |
34180 | raise Program_Error if called from a protected operation, and increase | |
34181 | the protected action nesting level. | |
34182 | (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise | |
34183 | Program_Error if called from a protected operation, and increase the | |
34184 | protected action nesting level. | |
34185 | (Unlock_Entries): When pragma Detect_Blocking is active decrease the | |
34186 | protected action nesting level. | |
34187 | ||
34188 | * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active, | |
34189 | raise Program_Error if called from a protected operation, and increase | |
34190 | the protected action nesting level. | |
34191 | (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise | |
34192 | Program_Error if called from a protected operation, and increase the | |
34193 | protected action nesting level. | |
34194 | (Protected_Single_Entry_Call): When pragma Detect_Blocking is active, | |
34195 | raise Program_Error if called from a protected operation. | |
34196 | (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is | |
34197 | active, raise Program_Error if called from a protected operation. | |
34198 | (Unlock_Entry): When pragma Detect_Blocking is active decrease the | |
34199 | protected action nesting level. | |
34200 | ||
34201 | * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the | |
34202 | insertion of the statement raising Program_Error. The run time | |
34203 | contains the required machinery for handling that. | |
34204 | ||
34205 | * sem_util.ads: Change comment associated to procedure | |
34206 | Check_Potentially_Blocking_Operation. | |
34207 | This procedure does not insert a call for raising the exception because | |
34208 | that is currently done by the run time. | |
34209 | ||
34210 | * raise.h (__gnat_set_globals): Pass the detect_blocking parameter. | |
34211 | ||
34212 | * init.c: Add the global variable __gl_detect_blocking that indicates | |
34213 | whether pragma Detect_Blocking is active (1) or not (0). Needed for | |
34214 | making the pragma available at run time. | |
34215 | (__gnat_set_globals): Pass and update the detect_blocking parameter. | |
34216 | ||
34217 | * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if | |
34218 | pragma Detect_Blocking is active. | |
34219 | ||
34220 | * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files. | |
34221 | ||
34222 | * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag | |
34223 | DB is found in the ali file. Any unit compiled with pragma | |
34224 | Detect_Blocking active forces its effect in the whole partition. | |
34225 | ||
34226 | * a-retide.adb (Delay_Until): Raise Program_Error if pragma | |
34227 | Detect_Blocking is active and delay is called from a protected | |
34228 | operation. | |
34229 | ||
34230 | * bindgen.adb (Gen_Adainit_Ada): When generating the call to | |
34231 | __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma | |
34232 | Detect_Blocking is active (0 otherwise). | |
34233 | (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1 | |
34234 | as Detect_Blocking parameter if pragma Detect_Blocking is active (0 | |
34235 | otherwise). | |
34236 | ||
34237 | 2004-09-09 Thomas Quinot <quinot@act-europe.fr> | |
34238 | ||
34239 | * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to | |
34240 | GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash | |
34241 | package. | |
34242 | ||
34243 | * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram. | |
34244 | (Register_Receiving_Stub): Add Subp_Info formal parameter. | |
34245 | Update API in placeholder implemetation of s-parint to reflect changes | |
34246 | in distribution runtime library. | |
34247 | ||
34248 | * sem_ch3.adb (Expand_Derived_Record): Rename to | |
34249 | Expand_Record_Extension. | |
34250 | ||
34251 | * sem_disp.adb (Check_Controlling_Formals): Improve error message for | |
34252 | primitive operations of potentially distributed object types that have | |
34253 | non-controlling anonymous access formals. | |
34254 | ||
34255 | * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New | |
34256 | subprogram. | |
34257 | New implementation of expansion for remote access-to-subprogram types, | |
34258 | based on the RACW infrastructure. | |
34259 | This version of sem_dist is compatible with PolyORB/DSA as well as | |
34260 | GLADE. | |
34261 | ||
34262 | * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma | |
34263 | Asynchrronous that applies to a remote access-to-subprogram type, mark | |
34264 | the underlying RACW type as asynchronous. | |
34265 | ||
34266 | * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and | |
34267 | __gnat_using_gnu_linker to 1. | |
34268 | ||
34269 | * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads, | |
34270 | g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to | |
34271 | GNAT.Perfect_Hash_Generators, and remove the empty | |
34272 | GNAT.Perfect_Hash package. | |
34273 | ||
34274 | * atree.adb: Minor reformatting | |
34275 | ||
34276 | * exp_ch3.adb (Expand_Derived_Record): Rename to | |
34277 | Expand_Record_Extension. | |
34278 | (Build_Record_Init_Proc.Build_Assignment): The default expression in | |
34279 | a component declaration must remain attached at that point in the | |
34280 | tree so New_Copy_Tree copies it if the enclosing record type is derived. | |
34281 | It is therefore necessary to take a copy of the expression when building | |
34282 | the corresponding assignment statement in the init proc. | |
34283 | As a side effect, in the case of a derived record type, we now see the | |
34284 | original expression, without any rewriting that could have occurred | |
34285 | during expansion of the ancestor type's init proc, and we do not need | |
34286 | to go back to Original_Node. | |
34287 | ||
34288 | * exp_ch3.ads (Expand_Derived_Record): Rename to | |
34289 | Expand_Record_Extension. | |
34290 | ||
34291 | * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram. | |
34292 | Returns the RACW type used to implement a remote access-to-subprogram | |
34293 | type. | |
34294 | (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type): | |
34295 | New subprograms. Used to create a proxy tagged object for a remote | |
34296 | subprogram. The proxy object is used as the designated object | |
34297 | for RAS values on the same partition (unless All_Calls_Remote applies). | |
34298 | (Build_Get_Unique_RP_Call): New subprogram. Build a call to | |
34299 | System.Partition_Interface.Get_Unique_Remote_Pointer. | |
34300 | (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS): | |
34301 | Renamed from Add_RAS_*_Attribute. | |
34302 | (Add_Receiving_Stubs_To_Declarations): Generate a table of local | |
34303 | subprograms. | |
34304 | New implementation of expansion for remote access-to-subprogram types, | |
34305 | based on the RACW infrastructure. | |
34306 | ||
34307 | * exp_dist.ads (Copy_Specification): Update comment to note that this | |
34308 | function can copy the specification from either a subprogram | |
34309 | specification or an access-to-subprogram type definition. | |
34310 | ||
34311 | 2004-09-09 Ed Schonberg <schonberg@gnat.com> | |
34312 | ||
34313 | * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity | |
34314 | in an instance, between an explicit subprogram an one inherited from a | |
34315 | type derived from an actual. | |
34316 | ||
34317 | * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not | |
34318 | add a polling call if the subprogram is to be inlined by the back-end, | |
34319 | to avoid repeated calls with multiple inlinings. | |
34320 | ||
34321 | * checks.adb (Apply_Alignment_Check): If the expression in the address | |
34322 | clause is a call whose name is not a static entity (e.g. a dispatching | |
34323 | call), treat as dynamic. | |
34324 | ||
34325 | 2004-09-09 Robert Dewar <dewar@gnat.com> | |
34326 | ||
34327 | * g-trasym.ads: Minor reformatting | |
34328 | ||
34329 | * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except | |
34330 | packed arrays, since unused bits are expected to be zero for a | |
34331 | comparison. | |
34332 | ||
34333 | 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr> | |
34334 | ||
34335 | * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head | |
34336 | comment. | |
34337 | ||
34338 | 2004-09-09 Pascal Obry <obry@gnat.com> | |
34339 | ||
34340 | * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to | |
34341 | enable map file generation. Add the right option to generate the map | |
34342 | file if Map_File is set to True. | |
34343 | ||
34344 | * gnatdll.adb (Gen_Map_File): New variable. | |
34345 | (Syntax): Add info about new -m (Map_File) option. | |
34346 | (Parse_Command_Line): Add support for -m option. | |
34347 | (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls. | |
34348 | Minor reformatting. | |
34349 | ||
34350 | 2004-09-09 Laurent Pautet <pautet@act-europe.fr> | |
34351 | ||
34352 | * gnatls.adb: Add a very verbose mode -V. Such mode is required by the | |
34353 | new gnatdist implementation. | |
34354 | Define a subpackage isolating the output routines specific to this | |
34355 | verbose mode. | |
34356 | ||
34357 | 2004-09-09 Joel Brobecker <brobecker@gnat.com> | |
34358 | ||
34359 | * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta. | |
34360 | ||
34361 | * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted. | |
34362 | ||
34363 | 2004-09-09 Cyrille Comar <comar@act-europe.fr> | |
34364 | ||
34365 | * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile | |
34366 | internal unit. | |
34367 | ||
34368 | * opt.ads: Add Ada_Version_Runtime constant used to decide which | |
34369 | version of the language is used to compile the run time. | |
34370 | ||
34371 | 2004-09-09 Arnaud Charlet <charlet@act-europe.fr> | |
34372 | ||
34373 | * sem_util.adb (Requires_Transient_Scope): Re-enable handling | |
34374 | of variable length temporaries for function return now that the | |
34375 | back-end and gigi support it. | |
34376 | ||
8e8366b7 | 34377 | 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> |
284faf8b | 34378 | |
34379 | * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM. | |
34380 | ||
34381 | * trans.c (struct stmt_group): Delete field GLOBAL. | |
34382 | (gnat_init_stmt_group): Do not initialize it. | |
34383 | (call_to_gnu): Use save_expr, not protect_multiple_eval. | |
34384 | (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2 | |
34385 | (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise. | |
34386 | (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group. | |
34387 | (start_stmt_group): Likewise. | |
34388 | (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs. | |
34389 | ||
34390 | * utils2.c (ggc.h): Include. | |
34391 | (build_call_raise): Call build_int_cst, not build_int_2. | |
34392 | ||
34393 | * utils.c (gnat_init_decl_processing): Fix arg to | |
34394 | build_common_tree_nodes. | |
34395 | (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST. | |
34396 | (gnat_define_builtin): Set built_in_decls. | |
34397 | (init_gigi_decls): Call build_int_cst, not build_int_2. | |
34398 | ||
34399 | * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree. | |
34400 | (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros. | |
34401 | (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise. | |
34402 | (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE, | |
34403 | SET_TYPE_MODULE): Use them. | |
34404 | (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise. | |
34405 | (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise. | |
34406 | (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE, | |
34407 | SET_TYPE_ADA_SIZE): Likewise. | |
34408 | (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise. | |
34409 | (DECL_CONST_CORRESPONDING_VAR, | |
34410 | SET_DECL_CONST_CORRESPONDING_VAR): Likewise. | |
34411 | (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise. | |
34412 | (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted. | |
34413 | (TYPE_RM_SIZE_NUM): New macro. | |
34414 | (TYPE_RM_SIZE): Modified to use above. | |
34415 | ||
34416 | * cuintp.c: (build_cst_from_int): New function. | |
34417 | (UI_To_gnu): Use it. | |
34418 | ||
34419 | * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM. | |
34420 | (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type. | |
34421 | (gnat_substitute_in_type, case ARRAY_TYPE): If old had a | |
34422 | MIN_EXPR for the size, copy it into new. | |
34423 | ||
8e8366b7 | 34424 | 2004-09-01 Robert Dewar <dewar@gnat.com> |
284faf8b | 34425 | |
34426 | * exp_ch6.adb (Expand_Call): Properly handle validity checks for | |
34427 | packed indexed component where array is an IN OUT formal. This | |
34428 | generated garbage code previously. | |
34429 | ||
34430 | * gnat_ugn.texi: Document -fverbose-asm | |
34431 | ||
34432 | * gnat-style.texi: Minor updates (note that boolean constants and | |
34433 | variables are joined with AND/OR rather than short circuit forms). | |
34434 | ||
8e8366b7 | 34435 | 2004-09-01 Ed Schonberg <schonberg@gnat.com> |
284faf8b | 34436 | |
34437 | * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if | |
34438 | it is an upward conversion of an untagged type with no representation | |
34439 | change. | |
34440 | ||
8e8366b7 | 34441 | 2004-09-01 Thomas Quinot <quinot@act-europe.fr> |
284faf8b | 34442 | |
34443 | * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to | |
34444 | System.Partition_Interface. | |
34445 | ||
34446 | * checks.adb (Apply_Access_Checks): Do not generate checks when | |
34447 | expander is not active (but check for unset reference to prefix of | |
34448 | dereference). | |
34449 | ||
34450 | * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite | |
34451 | pragma Debug as an if statement with a constant condition, for | |
34452 | consistent treatment of entity references contained within the | |
34453 | enclosed procedure call. | |
34454 | ||
8e8366b7 | 34455 | 2004-09-01 Vincent Celier <celier@gnat.com> |
284faf8b | 34456 | |
34457 | * bindgen.adb: (Set_EA_Last): New procedure | |
34458 | (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure | |
34459 | Set_EA_Last. | |
34460 | (Gen_Adafinal_Ada): If no finalization, adafinal does nothing | |
34461 | (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be | |
34462 | linked without errors. | |
34463 | (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays | |
34464 | ST and EA. | |
34465 | (Gen_Exception_Table_C): Correct same bugs | |
34466 | ||
34467 | * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches | |
34468 | ||
34469 | * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty, | |
34470 | on Windows, make sure that the drive letter is in upper case. | |
34471 | ||
34472 | * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on | |
34473 | Windows, when the drive letter is added and Case_Sensitive is True, the | |
34474 | drive letter is forced to upper case. | |
34475 | ||
34476 | * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options | |
34477 | to Options_2 for the call to MLib.Utl.Gcc. | |
34478 | ||
34479 | * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as | |
34480 | directory separator when defining BASE_DIR. | |
34481 | ||
8e8366b7 | 34482 | 2004-09-01 Pascal Obry <obry@gnat.com> |
284faf8b | 34483 | |
34484 | * gprcmd.adb (Extend): Do not output trailing directory separator. This | |
34485 | is not needed and it confuses Windows GNU/make which does not report | |
34486 | directory terminated by a slash as a directory. | |
34487 | (gprcmd): Idem for "pwd" internal command. | |
34488 | ||
34489 | * Makefile.generic: Use __GPRCOLON__ instead of pipe character in | |
34490 | target names rewrite to fix regressions with recent version of | |
34491 | GNU/make. Starting with GNU/make 3.80 the pipe character was not | |
34492 | handled properly anymore. | |
34493 | ||
275a5712 | 34494 | 2004-09-01 Andreas Schwab <schwab@suse.de> |
34495 | ||
34496 | * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change. | |
34497 | * raise.c [!IN_RTS]: Undef abort. | |
34498 | ||
2789b084 | 34499 | 2004-08-27 Nathan Sidwell <nathan@codesourcery.com> |
34500 | ||
85390276 | 34501 | * utils2.c (build_allocator): Use ssize_int. |
34502 | ||
2789b084 | 34503 | * utils.c (gnat_init_decl_processing): Ada has a signed sizetype. |
34504 | ||
f2eed6a3 | 34505 | 2004-08-27 Andreas Schwab <schwab@suse.de> |
34506 | ||
34507 | * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o. | |
34508 | ||
409786fc | 34509 | 2004-08-25 Nathan Sidwell <nathan@codesourcery.com> |
34510 | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
ce45a448 | 34511 | |
409786fc | 34512 | * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1. |
34513 | ||
7016c612 | 34514 | 2004-08-25 Nathan Sidwell <nathan@codesourcery.com> |
34515 | ||
34516 | * cuintp.c (UI_To_gnu): Adjust build_int_cst calls. | |
34517 | * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise. | |
34518 | * utils.c (init_gigi_decls): Likewise. | |
34519 | * utils2.c (build_call_raise, build_allocator): Likewise. | |
ce45a448 | 34520 | |
1561d3cd | 34521 | 2004-08-24 Nathan Sidwell <nathan@codesourcery.com> |
34522 | ||
7016c612 | 34523 | * utils.c (gnat_init_decl_processing): Adjust |
1561d3cd | 34524 | build_common_tree_nodes call. |
34525 | ||
34399e1a | 34526 | 2004-08-20 Nathan Sidwell <nathan@codesourcery.com> |
34527 | ||
34528 | * utils2.c (build_allocator): Use build_int_cst for negative | |
34529 | size types. | |
34530 | ||
f6a162af | 34531 | 2004-08-18 Richard Henderson <rth@redhat.com> |
34532 | ||
34533 | * misc.c (LANG_HOOKS_HONOR_READONLY): Remove. | |
34534 | ||
754c18d9 | 34535 | 2004-08-16 Nathan Sidwell <nathan@codesourcery.com> |
34536 | ||
34537 | * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst | |
34538 | call.s | |
34539 | * trans.c (Exception_Handler_to_gnu_sjlj): Likewise. | |
34540 | (gnat_to_gnu): Likewise. | |
34541 | ||
e0f42093 | 34542 | 2004-08-16 Pascal Obry <obry@gnat.com> |
34543 | ||
34544 | * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC | |
34545 | backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared | |
34546 | option and not mdll anymore. Update comment. | |
34547 | ||
34548 | 2004-08-16 Pascal Obry <obry@gnat.com> | |
34549 | ||
34550 | * bld.adb (Put_Include_Project): Properly handle directory separators | |
34551 | on Windows. | |
34552 | ||
34553 | 2004-08-16 Ed Schonberg <schonberg@gnat.com> | |
34554 | ||
34555 | * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by | |
34556 | decreasing the number of allocated junk nodes while searching for the | |
34557 | appropriate subprogram. | |
34558 | ||
7c446c95 | 34559 | 2004-08-15 Nathan Sidwell <nathan@codesourcery.com> |
34560 | ||
34561 | * cuintp.c (UI_To_gnu): Use build_int_cst.. | |
34562 | * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise. | |
34563 | * utils.c (init_gigi_decls): Likewise. | |
34564 | * utils2.c (build_call_raise): Likewise. | |
34565 | ||
8cc59fa3 | 34566 | 2004-08-13 Olivier Hainque <hainque@act-europe.fr> |
34567 | ||
34568 | * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator | |
34569 | for a global aliased object with a variable size and an unconstrained | |
34570 | nominal subtype, pretend there is no initializer if the one we have is | |
34571 | incomplete, and avoid referencing an inexistant component in there. The | |
34572 | part we have will be rebuilt anyway and the reference may confuse | |
34573 | further operations. | |
34574 | ||
34575 | 2004-08-13 Thomas Quinot <quinot@act-europe.fr> | |
34576 | ||
34577 | * einfo.ads: Minor reformatting | |
34578 | ||
34579 | * lib-writ.adb (Output_Main_Program_Line): Do not set parameter | |
34580 | restrictions in the ALI if we only want to warn about violations. | |
34581 | ||
34582 | 2004-08-13 Vincent Celier <celier@gnat.com> | |
34583 | ||
34584 | * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False | |
34585 | when creating a new Unit_Record in table Units. | |
34586 | ||
34587 | * gnatls.adb (Output_Unit): In verbose mode, output the restrictions | |
34588 | that are violated, if any. | |
34589 | ||
34590 | * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not | |
34591 | add directory separator if path already ends with a directory separator. | |
34592 | ||
34593 | 2004-08-13 Ed Schonberg <schonberg@gnat.com> | |
34594 | ||
34595 | * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined | |
34596 | unit, this is an attempt to inline a construct that is not available in | |
34597 | the current restricted mode, so abort rather than trying to continue. | |
34598 | ||
34599 | * sem_ch3.adb (Build_Underlying_Full_View): If the new type has | |
34600 | discriminants that rename those of the parent, recover names of | |
34601 | original discriminants for the constraint on the full view of the | |
34602 | parent. | |
34603 | (Complete_Private_Subtype): Do not create a subtype declaration if the | |
34604 | subtype is an itype. | |
34605 | ||
34606 | * gnat_rm.texi: Added section on implementation of discriminated | |
34607 | records with default values for discriminants. | |
34608 | ||
34609 | 2004-08-13 Ed Schonberg <schonberg@gnat.com> | |
34610 | ||
34611 | PR ada/15601 | |
34612 | * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where | |
34613 | the second operand is overloaded. | |
34614 | ||
afcf285e | 34615 | 2004-08-10 Richard Henderson <rth@redhat.com> |
34616 | ||
34617 | * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc, | |
34618 | add __builtin_alloca. | |
34619 | ||
3112fa05 | 34620 | 2004-08-10 Richard Henderson <rth@redhat.com> |
34621 | ||
34622 | * config-lang.in (boot_language): Yes. | |
34623 | ||
00f91aef | 34624 | 2004-08-09 Thomas Quinot <quinot@act-europe.fr> |
34625 | ||
34626 | * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind | |
34627 | from complaining on potential uninitialized reference. | |
34628 | Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for | |
34629 | new specification and test explicitly for non-zero return value. | |
34630 | ||
34631 | * g-socthi.ads (Is_Socket_In_Set): Declare imported function as | |
34632 | returning C.int, to avoid using a derived boolean type. | |
34633 | ||
34634 | * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use | |
34635 | Duplicate_Subexpr_No_Checks in preference to direct use of | |
34636 | Remove_Side_Effects and New_Copy_Tree. | |
34637 | Clear Comes_From_Source on prefix of 'Size attribute reference. | |
34638 | ||
34639 | * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb, | |
34640 | g-socthi-vxworks.adb: Change calls to | |
34641 | GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification | |
34642 | and test explicitly for non-zero return value. | |
34643 | ||
ce45a448 | 34644 | * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads: |
00f91aef | 34645 | (Is_Socket_In_Set): Declare imported function as returning C.int, to |
34646 | avoid using a derived boolean type. | |
34647 | ||
34648 | 2004-08-09 Albert Lee <lee@gnat.com> | |
34649 | ||
34650 | * system-irix-n32.ads: Refine tasking priority constants for IRIX. | |
34651 | ||
34652 | 2004-08-09 Pascal Obry <obry@gnat.com> | |
34653 | ||
34654 | * gnat_ugn.texi: Document new way to build DLLs on Windows using | |
34655 | GCC's -shared option. | |
34656 | ||
34657 | * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into | |
34658 | Options_2 parameter (options put after object files). | |
34659 | ||
34660 | 2004-08-09 Olivier Hainque <hainque@act-europe.fr> | |
34661 | ||
34662 | * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to | |
34663 | ignore overflows on low and high bounds of an index to also account for | |
34664 | differences in signedness between sizetype and gnu_index_subtype. | |
34665 | These are as legitimate as the ones caused by a lower TYPE_PRECISION | |
34666 | on sizetype. | |
34667 | ||
34668 | 2004-08-09 Robert Dewar <dewar@gnat.com> | |
34669 | ||
34670 | * s-solita.ads, s-solita.adb: Minor reformatting | |
34671 | ||
34672 | * gnat_rm.texi: Add documentation for pragma Profile (Restricted) | |
34673 | Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new | |
34674 | obsolescent section | |
34675 | Add note that No_Implicit_Conditionals does not suppress | |
34676 | run time constraint checks. | |
34677 | ||
34678 | * vms_conv.ads: Minor reformatting | |
34679 | ||
34680 | * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup | |
34681 | and necessary for following change). | |
34682 | (Mark): Return new format Mark_Id containing sec stack address | |
34683 | (Release): Use sec stack address from Mark_Id avoiding Self call | |
34684 | ||
34685 | * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack | |
34686 | pointer (cleanup and necessary for following change). | |
34687 | Define Mark_Id as record containing address of secondary stack, that way | |
34688 | Release does not need to find the stack again, decreasing the number of | |
34689 | calls to Self and improving efficiency. | |
34690 | ||
34691 | * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference | |
34692 | ||
34693 | * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of | |
34694 | case variable into the individual case branches when possible. | |
34695 | ||
34696 | * sem_ch11.adb: Minor reformatting | |
34697 | ||
34698 | * prj.ads: Correct spelling of suffixs | |
34699 | ||
34700 | * prj-nmsc.adb: Minor reformatting | |
34701 | Correct spelling suffixs throughout (also in identifiers) | |
34702 | ||
34703 | * freeze.adb: Minor spelling correction | |
34704 | ||
34705 | * exp_ch2.adb: Cleanups to handling of Current_Value | |
34706 | (no functional effect). | |
34707 | ||
34708 | * bld.adb: Correct spelling of suffixs | |
34709 | ||
34710 | * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument | |
34711 | ||
34712 | 2004-08-09 Ed Schonberg <schonberg@gnat.com> | |
34713 | ||
34714 | PR ada/15408 | |
00f91aef | 34715 | * sem_ch7.adb (Install_Private_Declarations): In the body of the |
34716 | package or of a child, private entities are both immediately_visible | |
34717 | and not hidden. | |
34718 | ||
34719 | 2004-08-09 Ed Schonberg <schonberg@gnat.com> | |
34720 | ||
34721 | * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer, | |
34722 | there are no range checks on the value of the literal. | |
34723 | ||
34724 | * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being | |
34725 | wrapped is the triggering alternative of an asynchronous select, action | |
34726 | statements mustbe inserted before the select itself. | |
34727 | ||
34728 | * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the | |
34729 | case where the prefix is a protected function call. | |
34730 | (Resolve_Attribute, case 'Access): The attribute reference on a | |
34731 | subprogram is legal in a generic body if the subprogram is declared | |
34732 | elsewhere. | |
34733 | ||
34734 | 2004-08-09 Vincent Celier <celier@gnat.com> | |
34735 | ||
34736 | * makegpr.adb (Build_Library): Link with g++ if C++ is one of the | |
34737 | languages, otherwise building the library may fail with unresolved | |
34738 | symbols. | |
34739 | (Compile_Sources): Do not build libraries if -c switch is used | |
34740 | ||
34741 | * gnatlink.adb (Process_Args): New switches -M and -Mmap | |
34742 | (Write_Usage): If map file creation is supported, output new switches | |
34743 | -M and -Mmap. | |
34744 | (Gnatlink): When -M is specified, add the necessary switch(es) to the | |
34745 | gcc call, when supported. | |
34746 | ||
34747 | * Makefile.in: Added indepsw.o to the object list for gnatlink | |
34748 | Specified the AIX, GNU/Linux and Windows versions of indepsw.adb | |
34749 | ||
34750 | * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb, | |
34751 | indepsw.adb, indepsw.ads: New files. | |
34752 | ||
34753 | 2004-08-09 Bernard Banner <banner@gnat.com> | |
34754 | ||
34755 | * system-vxworks-x86.ads, s-vxwork-x86.ads: New files. | |
34756 | ||
34757 | * Makefile.in: add section for vxworks x86 | |
34758 | ||
34759 | 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com> | |
34760 | ||
34761 | * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with | |
34762 | per-object constrained components where the discriminant is of an | |
34763 | Access type. | |
34764 | (Build_Record_Init_Proc): Add condition to prevent the inheritance of | |
34765 | the parent initialization procedure for derived Unchecked_Unions. | |
34766 | Instead, derived Unchecked_Unions build their own initialization | |
34767 | procedure. | |
34768 | (Build_Variant_Record_Equality): Implement Unchecked_Union equality. | |
34769 | Check the body of the subprogram for details. | |
34770 | (Freeze_Record_Type): Prevent the inheritance of discriminant checking | |
34771 | functions for derived Unchecked_Union types by introducing a condition. | |
34772 | Allow the creation of TSS equality functions for Unchecked_Unions. | |
34773 | (Make_Eq_Case): Rename formal parameter Node to E in function signature. | |
34774 | Add formal parameter Discr to function signature. Discr is used to | |
34775 | control the generated case statement for Unchecked_Union types. | |
34776 | (Make_Eq_If): Rename formal parameter Node to E in function signature. | |
34777 | ||
34778 | * exp_ch4.adb (Build_Equality_Call): Implement equality calls for | |
34779 | Unchecked_Unions. | |
34780 | Check the body of the subprogram for details. | |
34781 | (Expand_Composite_Equality): Augment composite type equality to include | |
34782 | correct handling of Unchecked_Union components. | |
34783 | (Expand_N_In): Add condition to detect illegal membership tests when the | |
34784 | subtype mark is a constrained Unchecked_Union and the expression lacks | |
34785 | inferable discriminants, and build a Raise_Program_Error node. | |
34786 | (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used | |
34787 | to detect types that contain components of unconstrained Unchecked_Union | |
34788 | subtype. Add condition to detect equality between types that have an | |
34789 | unconstrained Unchecked_Union component, and build a Raise_Program_Error | |
34790 | node. Add condition to detect equality between Unchecked_Union types | |
34791 | that lack inferable discriminants, and build a Raise_Program_Error node. | |
34792 | Otherwise build a TSS equality function call. | |
34793 | (Expand_N_Type_Conversion): Add condition to detect illegal conversions | |
34794 | from a derived Unchecked_Union to an unconstrained non-Unchecked_Union | |
34795 | with the operand lacking inferable discriminants, and build a Raise_ | |
34796 | Program_Error node. | |
34797 | (Expand_Record_Equality): Remove guard that prevents Unchecked_Union | |
34798 | composite equality. | |
34799 | (Has_Inferable_Discriminants): Implement new predicate for objects and | |
34800 | expressions of Unchecked_Union type. Check the body of subprogram for | |
34801 | details. | |
34802 | (Has_Unconstrained_UU_Components): Add function | |
34803 | Component_Is_Unconstrained_UU. It is used to detect whether a single | |
34804 | component is of an unconstrained Unchecked_Union subtype. Add function | |
34805 | Variant_Is_Unconstrained_UU. It is used to detect whether a single | |
34806 | component inside a variant is of an unconstrained Unchecked_Union type. | |
34807 | ||
34808 | * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the | |
34809 | inferred discriminant values. Add condition to generate a case | |
34810 | statement with an inferred discriminant as the switch. | |
34811 | (Make_Component_List_Assign): Introduce a Boolean flag that determines | |
34812 | the behaviour of the subprogram in the presence of an Unchecked_Union. | |
34813 | Add condition to trigger the usage of the inferred discriminant value | |
34814 | as the generated case statement switch. | |
34815 | (Make_Field_Assign): Introduce a Boolean flag that determines the | |
34816 | behaviour of the subprogram in the presence of an Unchecked_Union. Add | |
34817 | condition to trigger the usage of the inferred discriminant value as | |
34818 | the right-hand side of the generated assignment. | |
34819 | ||
34820 | * exp_ch6.adb (Expand_Call): Add condition to skip extra actual | |
34821 | parameter generation when dealing with Unchecked_Unions. | |
34822 | ||
34823 | * checks.adb (Apply_Discriminant_Check): Do not apply discriminant | |
34824 | checks for Unchecked_Unions. | |
34825 | ||
34826 | * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint | |
34827 | ||
34828 | * exp_attr.adb (Expand_N_Attribute_Reference): Produce | |
34829 | Raise_Program_Error nodes for the execution of Read and Write | |
34830 | attributes of Unchecked_Union types and the execution of Input and | |
34831 | Output attributes of Unchecked_Union types that lack default | |
34832 | discriminant values. | |
34833 | ||
34834 | * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma | |
34835 | Unchecked_Union. Add procedure Check_Component. It is used to inspect | |
34836 | per-object constrained components of Unchecked_Unions for being | |
34837 | Unchecked_Unions themselves. Add procedure Check_Variant. It is used to | |
34838 | check individual components withing a variant. | |
34839 | ||
34840 | * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents | |
34841 | comparison of Unchecked_Unions. | |
34842 | (Resolve_Equality_OP): Remove guard that prevents equality between | |
34843 | Unchecked_Unions. | |
34844 | ||
34845 | * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation | |
34846 | of component subtypes for Unchecked_Union components. | |
34847 | (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type | |
34848 | since it is the actual subtype. | |
34849 | ||
34850 | * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct | |
34851 | pass of Unchecked_Union subtypes as generic actuals to formal types | |
34852 | that lack known_discriminant_parts or that are derived Unchecked_Union | |
34853 | types, and do nothing. In any other case, produce an error message. | |
34854 | ||
34855 | * sem_ch3.adb (Analyze_Component_Declaration): Add function | |
34856 | Contains_POC. It determines whether a constraint uses the discriminant | |
34857 | of an enclosing record type. | |
34858 | Add condition to detect per-object constrained component and set the | |
34859 | appropriate flag. | |
34860 | (Derived_Type_Declaration): Remove guard that prevents derivation from | |
34861 | Unchecked_Union types. | |
34862 | (Process_Subtype): Remove quard that prevents the creation of Unchecked_ | |
34863 | Union subtypes. | |
34864 | ||
34865 | * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of | |
34866 | references to Unchecked_Union discriminants. | |
34867 | ||
34868 | * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra | |
34869 | formal generation when dealing with Unchecked_Unions. | |
34870 | (Set_Actual_Subtypes): Add condition to prevent generation of actual | |
34871 | subtypes for Unchecked_Unions. | |
34872 | ||
34873 | * sem_ch7.adb (Analyze_Package_Specification): Add procedure | |
34874 | Inspect_Unchecked_Union_Completion. It is used to detect incorrect | |
34875 | completions of discriminated partial views by Unchecked_Unions and | |
34876 | produce an error message. | |
34877 | ||
34878 | 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
34879 | ||
34880 | * trans.c (struct stmt_group): New field, GLOBAL. | |
34881 | (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted. | |
34882 | (struct elab_info): New struct. | |
34883 | (elab_info_list, gnu_elab_proc_stack): New variables. | |
34884 | (Compilation_Unit_to_gnu): New procedure. | |
34885 | (gigi): Call it and also handle elaboration procs we've saved. | |
34886 | (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize | |
34887 | global field from parent. | |
34888 | (gnat_to_gnu): Get decl from gnu_elab_proc_stack. | |
34889 | (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu. | |
34890 | (start_stmt_group): Initialize global field from parent. | |
34891 | (add_decl_expr): Set to global for current statement group. | |
34892 | (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not | |
34893 | post. | |
34894 | ||
34895 | * utils.c (global_bindings_p): True when no current_function_decl; no | |
34896 | longer check current_binding_level. | |
34897 | ||
34898 | 2004-08-09 Ben Brosgol <brosgol@gnat.com> | |
34899 | ||
34900 | * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition | |
34901 | choice. | |
34902 | ||
34903 | * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic. | |
34904 | ||
790ec1ef | 34905 | 2004-08-06 Andreas Schwab <schwab@suse.de> |
34906 | ||
34907 | * utils.c (gnat_define_builtin): Remove second parameter of | |
34908 | make_decl_rtl. | |
34909 | (begin_subprog_body): Likewise. | |
34910 | ||
a39f1c9d | 34911 | 2004-07-26 Arnaud Charlet <charlet@act-europe.fr> |
34912 | ||
34913 | * sem_util.adb (Requires_Transient_Scope): Temporarily disable | |
34914 | optimization, not supported by the tree-ssa back-end. | |
34915 | ||
34916 | 2004-07-26 Olivier Hainque <hainque@act-europe.fr> | |
34917 | ||
34918 | * s-mastop-irix.adb: Update comments. | |
34919 | ||
34920 | * a-except.adb (Exception_Information): Raise Constraint_Error if | |
34921 | exception Id is Null_Id. | |
34922 | This is required behavior, which is more reliably and clearly checked | |
34923 | at the top level interface level. | |
34924 | ||
34925 | 2004-07-26 Javier Miranda <miranda@gnat.com> | |
34926 | ||
34927 | * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization | |
34928 | call if a component has no default_expression and the box is used. | |
34929 | ||
34930 | * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no | |
34931 | default_expression and you use box, it behaves as if you had declared a | |
34932 | stand-alone object. | |
34933 | (Resolve_Record_Aggregate): If a component has no default_expression and | |
34934 | you use box, it behaves as if you had declared a stand-alone object. | |
34935 | ||
34936 | * sem_ch10.adb (Install_Siblings): Do not make visible the private | |
34937 | entities of private-with siblings. | |
34938 | ||
34939 | 2004-07-26 Ed Schonberg <schonberg@gnat.com> | |
34940 | ||
34941 | * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view | |
34942 | for a component of an itype, set the parent pointer for analysis, | |
34943 | there is no list in which to insert it. | |
34944 | ||
34945 | * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for | |
34946 | bona-fide renamings, not for inherited operations. | |
34947 | ||
34948 | * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an | |
34949 | actual for a formal that is an access parameter, create local | |
34950 | finalization list even if the expression is not an aggregate. | |
34951 | ||
34952 | 2004-07-26 Ed Schonberg <schonberg@gnat.com> | |
34953 | ||
34954 | PR ada/16213 | |
34955 | * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming): | |
34956 | Diagnose properly illegal subprogram renamings that are library units. | |
34957 | ||
34958 | 2004-07-26 Ed Schonberg <schonberg@gnat.com> | |
34959 | ||
34960 | PR ada/15588 | |
34961 | * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type | |
34962 | conversion rewritten as an unchecked conversion, check that original | |
34963 | expression is a variable. | |
34964 | ||
34965 | * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an | |
34966 | unchecked_conversion, create new node rather than rewriting in place, | |
34967 | to preserve original construct. | |
34968 | ||
34969 | 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
34970 | ||
34971 | * gigi.h (gnat_expand_body): Deleted. | |
34972 | ||
34973 | * Make-lang.in: (trans.o): Depends on function.h. | |
34974 | ||
34975 | * misc.c: (gnat_expand_body): Moved to here. | |
34976 | ||
34977 | * trans.c (gnat_expand_body_1): Deleted. | |
34978 | (gnat_expand_body): Moved from here. | |
34979 | (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc. | |
34980 | (add_stmt): Check for marked visited with global_bindings_p. | |
34981 | (gnat_gimplify_expr, case COMPONENT_REF): New case. | |
34982 | (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp. | |
34983 | ||
34984 | * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a | |
34985 | VIEW_CONVERT_EXPR if not operation type. | |
34986 | ||
34987 | * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for | |
34988 | fat pointer. | |
34989 | ||
34990 | * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor | |
34991 | changes: reformatting of negation operators, removing unneeded | |
34992 | inequality comparison with zero, converting equality comparisons with | |
34993 | zero to negations, changing int/0/1 to bool/false/true, replace calls | |
34994 | to gigi_abort with abort, and various other similar changes. | |
34995 | ||
34996 | 2004-07-26 Vincent Celier <celier@gnat.com> | |
34997 | ||
34998 | * gnatcmd.adb (GNATCmd): Add processing for new built-in command | |
34999 | "setup". | |
35000 | ||
35001 | * make.adb (Gnatmake): Fail when a library is not present and there is | |
35002 | no object directory. | |
35003 | ||
35004 | * mlib-prj.adb (Check_Library): No need to check if the library needs | |
35005 | to be rebuilt if there is no object directory, hence no object files | |
35006 | to build the library. | |
35007 | ||
35008 | * opt.ads (Setup_Projects): New Boolean flag. | |
35009 | ||
35010 | * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and | |
35011 | Location. | |
35012 | Create directory when Kind /= "" and in "gnat setup". Report error if | |
35013 | directory cannot be created. | |
35014 | (Ada_Check): Create library interface copy dir if it does not exist | |
35015 | and we are in "gnat setup". | |
35016 | (Find_Sources): No error if in "gnat setup" and no Ada sources were | |
35017 | found. | |
35018 | (Language_Independent_Check): Create object directory, exec directory | |
35019 | and/or library directory if they do not exist and we are in | |
35020 | "gnat setup". | |
35021 | ||
35022 | * vms_conv.ads: (Command_Type): New command Setup. | |
35023 | ||
35024 | * vms_conv.adb (Initialize): Add Setup component of Cammand_List. | |
35025 | ||
35026 | * vms_data.ads: Add qualifiers/switches for new built-in command | |
35027 | "setup". | |
35028 | ||
540edea7 | 35029 | 2004-07-25 Richard Henderson <rth@redhat.com> |
35030 | ||
35031 | * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and | |
35032 | DECL_IGNORED_P on RESULT_DECL. | |
35033 | ||
f62ed60b | 35034 | 2004-07-20 Olivier Hainque <hainque@act-europe.fr> |
35035 | ||
35036 | * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic | |
35037 | allocation and potentially overflowing update with | |
35038 | Tailored_Exception_Information. Use the sec-stack free procedural | |
35039 | interface to output Exception_Information instead. | |
35040 | ||
35041 | * a-except.adb (To_Stderr): New subprogram for character, and string | |
35042 | version moved from a-exextr to be visible from other separate units. | |
35043 | (Tailored_Exception_Information): Remove the procedural version, | |
35044 | previously used by the default Last_Chance_Handler and not any more. | |
35045 | Adjust various comments. | |
35046 | ||
35047 | * a-exexda.adb: Generalize the exception information procedural | |
35048 | interface, to minimize the use of secondary stack and the need for | |
35049 | local buffers when the info is to be output to stderr: | |
35050 | (Address_Image): Removed. | |
35051 | (Append_Info_Character): New subprogram, checking for overflows and | |
35052 | outputing to stderr if buffer to fill is of length 0. | |
35053 | (Append_Info_String): Output to stderr if buffer to fill is of length 0. | |
35054 | (Append_Info_Address, Append_Info_Exception_Name, | |
35055 | Append_Info_Exception_Message, Append_Info_Basic_Exception_Information, | |
35056 | Append_Info_Basic_Exception_Traceback, | |
35057 | Append_Info_Exception_Information): New subprograms. | |
35058 | (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character. | |
35059 | (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength, | |
35060 | Exception_Info_Maxlength, Exception_Name_Length, | |
35061 | Exception_Message_Length): New subprograms. | |
35062 | (Exception_Information): Use Append_Info_Exception_Information. | |
35063 | (Tailored_Exception_Information): Use | |
35064 | Append_Info_Basic_Exception_Information. | |
35065 | Export services for the default Last_Chance_Handler. | |
35066 | ||
35067 | * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by | |
35068 | other separate units. | |
35069 | ||
35070 | 2004-07-20 Vincent Celier <celier@gnat.com> | |
35071 | ||
35072 | * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting. | |
35073 | ||
35074 | 2004-07-20 Ed Schonberg <schonberg@gnat.com> | |
35075 | ||
35076 | * freeze.adb (Freeze_Entity): If entity is a discriminated record type, | |
35077 | emit itype references for the designated types of component types that | |
35078 | are declared outside of the full record declaration, and that may | |
35079 | denote a partial view of that record type. | |
35080 | ||
35081 | 2004-07-20 Ed Schonberg <schonberg@gnat.com> | |
35082 | ||
35083 | PR ada/15607 | |
35084 | * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype | |
35085 | which is the designated type in an access component declaration, to the | |
35086 | list of incomplete dependents of the parent type, to avoid elaboration | |
35087 | issues with out-of-scope subtypes. | |
35088 | (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the | |
35089 | full view of the parent. | |
35090 | ||
35091 | 2004-07-20 Ed Schonberg <schonberg@gnat.com> | |
35092 | ||
35093 | PR ada/15610 | |
35094 | * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject | |
35095 | entities that are hidden, such as references to generic actuals | |
35096 | outside an instance. | |
35097 | ||
35098 | 2004-07-20 Javier Miranda <miranda@gnat.com> | |
35099 | ||
35100 | * sem_ch4.adb (Try_Object_Operation): New subprogram that gives | |
35101 | support to the new notation. | |
35102 | (Analyze_Selected_Component): Add call to Try_Object_Operation. | |
35103 | ||
35104 | 2004-07-20 Jose Ruiz <ruiz@act-europe.fr> | |
35105 | ||
35106 | * s-taprob.adb: Adding the elaboration code required for initializing | |
35107 | the tasking soft links that are common to the full and the restricted | |
35108 | run times. | |
35109 | ||
35110 | * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the | |
35111 | restricted run time has been moved to the package | |
35112 | System.Soft_Links.Tasking. | |
35113 | ||
35114 | * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the | |
35115 | restricted run time has been moved to the package | |
35116 | System.Soft_Links.Tasking. | |
35117 | ||
35118 | * Makefile.rtl: Add entry for s-solita.o in run-time library list. | |
35119 | ||
35120 | * s-solita.ads, s-solita.adb: New files. | |
35121 | ||
35122 | 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
35123 | ||
35124 | * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu, | |
35125 | Case_Statement_to_gnu): Split off from gnat_to_gnu. | |
35126 | (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu, | |
35127 | Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj, | |
35128 | Exception_Handler_to_gnu_zcx): Likewise. | |
35129 | ||
e60d3615 | 35130 | 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk> |
35131 | ||
35132 | * gigi.h (builtin_function): Declare. | |
35133 | ||
8f71d067 | 35134 | 2004-07-15 Robert Dewar <dewar@gnat.com> |
35135 | ||
35136 | * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor | |
35137 | reformatting | |
35138 | ||
35139 | * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with | |
35140 | access values as an example of a warning. | |
35141 | ||
35142 | * gnat_rm.texi: Document new attribute Has_Access_Values | |
35143 | ||
35144 | * gnat-style.texi: Document that box comments belong on nested | |
35145 | subprograms | |
35146 | ||
35147 | * sem_util.ads (Has_Access_Values): Improved documentation | |
35148 | ||
35149 | * s-finimp.ads, s-finimp.adb: Fix spelling error in comment | |
35150 | ||
35151 | * sem_prag.adb (Check_Duplicated_Export_Name): New procedure | |
35152 | (Process_Interface_Name): Call to this new procedure | |
35153 | (Set_Extended_Import_Export_External_Name): Call to this new procedure | |
35154 | ||
35155 | * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment | |
35156 | ||
35157 | * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values | |
35158 | ||
35159 | * einfo.ads: Minor comment typo fixed | |
35160 | ||
35161 | 2004-07-15 Jose Ruiz <ruiz@act-europe.fr> | |
35162 | ||
35163 | * snames.adb: Add _atcb. | |
35164 | ||
35165 | * snames.ads: Add Name_uATCB. | |
35166 | ||
35167 | * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated | |
35168 | (in the expanded code) when using the restricted run time. | |
35169 | ||
35170 | * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into | |
35171 | a in parameter in order to allow ATCBs to be preallocated (in the | |
35172 | expanded code). | |
35173 | ||
35174 | * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in | |
35175 | order to allow ATCBs to be preallocated. In case of error, the ATCB is | |
35176 | deallocated in System.Tasking.Stages. | |
35177 | ||
35178 | * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in | |
35179 | order to allow ATCBs to be preallocated. | |
35180 | ||
35181 | * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated | |
35182 | here. It was previously done in Initialize_ATCB. | |
35183 | ||
35184 | * rtsfind.ads: Make the Ada_Task_Control_Block visible. | |
35185 | ||
35186 | * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the | |
35187 | Restricted run time. | |
35188 | ||
35189 | * exp_ch3.adb: When using the Restricted run time, pass the | |
35190 | preallocated Ada_Task_Control_Block when creating a task. | |
35191 | ||
35192 | 2004-07-15 Ed Schonberg <schonberg@gnat.com> | |
35193 | ||
35194 | * sem_util.adb (Normalize_Actuals): If there are no actuals on a | |
35195 | function call that is itself an actual in an enclosing call, diagnose | |
35196 | problem here rather than assuming that resolution will catch it. | |
35197 | ||
35198 | * sem_ch7.adb (Analyze_Package_Specification): If the specification is | |
35199 | the local copy of a generic unit for a formal package, and the generic | |
35200 | is a child unit, install private part of ancestors before compiling | |
35201 | private part of spec. | |
35202 | ||
35203 | * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to | |
35204 | use scope entities rather than tree structures, to handle properly | |
35205 | parent units that are instances rewritten as bodies for inlining | |
35206 | purposes. | |
35207 | ||
35208 | * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent, | |
35209 | Remove_Parents): Handle properly a parent unit that is an | |
35210 | instantiation, when the unit has been rewritten as a body for inlining | |
35211 | purposes. | |
35212 | ||
35213 | * par.adb (Goto_List): Global variable to collect goto statements in a | |
35214 | given unit, for use in detecting natural loops. | |
35215 | ||
35216 | * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for | |
35217 | use in detecting natural loops. | |
35218 | ||
35219 | * par-labl.adb (Find_Natural_Loops): Recognize loops create by | |
35220 | backwards goto's, and rewrite as a infinite loop, to improve locality | |
35221 | of temporaries. | |
35222 | ||
35223 | * exp_util.adb (Force_Evaluation): Recognize a left-hand side | |
35224 | subcomponent that includes an indexed reference, to prevent the | |
35225 | generation of copies that would miscompile the desired assignment | |
35226 | statement. | |
35227 | (Build_Task_Image_Decls): Add a numeric suffix to | |
35228 | generated name for string variable, to avoid spurious conflicts with | |
35229 | the name of the type of a single protected object. | |
35230 | ||
35231 | * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a | |
35232 | loop with an explicit exit statement, to avoid generating an | |
35233 | out-of-range value with 'Succ leading to spurious constraint_errors | |
35234 | when compiling with -gnatVo. | |
35235 | ||
35236 | 2004-07-15 Thomas Quinot <quinot@act-europe.fr> | |
35237 | ||
35238 | * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it | |
35239 | might not be analyzed yet, even if its Etype is already set (case of an | |
35240 | unchecked conversion built using Unchecked_Convert_To, for example). | |
35241 | If the prefix has already been analyzed, this will be a nop anyway. | |
35242 | ||
35243 | * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a | |
35244 | controller type, or an assignment of a record type with controlled | |
35245 | components, copy only user data, and leave the finalization chain | |
35246 | pointers untouched. | |
35247 | ||
35248 | 2004-07-15 Vincent Celier <celier@gnat.com> | |
35249 | ||
35250 | * make.adb (Collect_Arguments): Improve error message when attempting | |
35251 | to compile a source not part of any project, when -x is not used. | |
35252 | ||
35253 | * prj.ads: (Defined_Variable_Kind): New subtype | |
35254 | ||
35255 | * prj-attr.adb (Register_New_Package): Two new procedures to register | |
35256 | a package with or without its attributes. | |
35257 | (Register_New_Attribute): Mew procedure to register a new attribute in a | |
35258 | package. | |
35259 | New attribute oriented subprograms: Attribute_Node_Id_Of, | |
35260 | Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of, | |
35261 | Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of, | |
35262 | Next_Attribute. | |
35263 | New package oriented subprograms: Package_Node_Id_Of, | |
35264 | Add_Unknown_Package, First_Attribute_Of, Add_Attribute. | |
35265 | ||
35266 | * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized | |
35267 | type. | |
35268 | (Package_Node_Id): Now a private, self initialized type | |
35269 | (Register_New_Package): New procedure to register a package with its | |
35270 | attributes. | |
35271 | New attribute oriented subprograms: Attribute_Node_Id_Of, | |
35272 | Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of, | |
35273 | Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of, | |
35274 | Next_Attribute. | |
35275 | New package oriented subprograms: Package_Node_Id_Of, | |
35276 | Add_Unknown_Package, First_Attribute_Of, Add_Attribute. | |
35277 | ||
35278 | * prj-dect.adb (Parse_Attribute_Declaration, | |
35279 | Parse_Package_Declaration): Adapt to new spec of Prj.Attr. | |
35280 | ||
35281 | * prj-makr.adb (Make): Parse existing project file before creating | |
35282 | other files. Fail if there was an error during parsing. | |
35283 | ||
35284 | * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to | |
35285 | new spec of Prj.Attr. | |
35286 | ||
35287 | * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt | |
35288 | to new spec of Prj.Attr. | |
35289 | ||
35290 | 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
35291 | ||
35292 | * utils2.c: Fix typo in comment. | |
35293 | ||
35294 | 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
2a3864bd | 35295 | |
35296 | * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL. | |
35297 | * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs. | |
35298 | ||
7e3e8f2a | 35299 | 2004-07-14 Andreas Schwab <schwab@suse.de> |
35300 | ||
35301 | * trans.c (gnat_init_stmt_group): Remove duplicate definition. | |
35302 | ||
442c80fd | 35303 | 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> |
35304 | ||
35305 | * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to | |
35306 | object type. | |
35307 | (gnat_to_gnu_entity, case E_Record_Subtype): Properly set | |
35308 | TYPE_STUB_DECL. | |
35309 | ||
35310 | * misc.c (gnat_types_compatible_p): New function. | |
35311 | (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it. | |
35312 | (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New. | |
35313 | ||
35314 | * trans.c (gigi): Move processing of main N_Compilation_Unit here. | |
35315 | (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here. | |
35316 | (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR. | |
35317 | (mark_visited): Don't mark dummy type. | |
ce45a448 | 35318 | (tree_transform <N_Procedure_Call_Statement>): Unless this is an In |
442c80fd | 35319 | parameter, we must remove any LJM building from GNU_NAME. |
35320 | (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR. | |
35321 | (pos_to_constructor): Use int_const_binop. | |
35322 | (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of | |
35323 | PARM_DECL. | |
35324 | ||
35325 | * utils.c (gnat_init_decl_processing): Don't make two "void" decls. | |
35326 | (gnat_pushlevel): Set TREE_USE on BLOCK node. | |
35327 | (gnat_install_builtins): Add __builtin_memset. | |
35328 | ||
35329 | 2004-07-13 Olivier Hainque <hainque@act-europe.fr> | |
35330 | ||
35331 | * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer | |
35332 | for a renaming, stabilize the initialization expression if we are at a | |
35333 | local level. At the local level, uses of the renaming may be performed | |
35334 | by a direct dereference of the initializing expression, and we don't | |
35335 | want possible variables there to be evaluated for every use. | |
35336 | ||
35337 | * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1): | |
35338 | Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing | |
35339 | them on the way. Account for the fact that we may introduce side | |
35340 | effects in the process. | |
35341 | ||
cc9b8628 | 35342 | 2004-07-13 Richard Henderson <rth@redhat.com> |
35343 | ||
35344 | * misc.c (default_pass_by_ref): Use pass_by_reference. | |
35345 | ||
d458bdd7 | 35346 | 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk> |
35347 | ||
35348 | * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL, | |
35349 | LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove. | |
35350 | ||
6388f9f7 | 35351 | 2004-07-08 Richard Henderson <rth@redhat.com> |
35352 | ||
35353 | * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update | |
35354 | commentary. | |
35355 | ||
5c99c290 | 35356 | 2004-07-06 Vincent Celier <celier@gnat.com> |
35357 | ||
35358 | * vms_conv.ads: Minor reformatting. | |
35359 | Alphabetical order for enumerated values of type Command_Type, to have | |
35360 | the command in alphabetical order for the usage. | |
35361 | ||
35362 | * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for | |
35363 | the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters). | |
35364 | ||
35365 | * gnat_ugn.texi: Document new switch -dn for the GNAT driver. | |
35366 | ||
35367 | * makegpr.adb (Global_Archive_Exists): New global Boolean variable | |
35368 | (Add_Archive_Path): Only add the global archive if there is one. | |
35369 | (Build_Global_Archive): Set Global_Archive_Exists depending if there is | |
35370 | or not any object file to put in the global archive, and don't build | |
35371 | a global archive if there is none. | |
35372 | (X_Switches): New table | |
35373 | (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored | |
35374 | in the X_Switches table, if any. | |
35375 | (Initialize): Make sure the X_Switches table is empty | |
35376 | (Scan_Arg): Record -X switches in table X_Switches | |
35377 | ||
35378 | * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False. | |
35379 | ||
35380 | * make.adb: Minor comment fix | |
35381 | ||
35382 | * gnatname.adb (Gnatname): When not on VMS, and gnatname has been | |
35383 | invoked with directory information, add the directory in front of the | |
35384 | path. | |
35385 | ||
35386 | * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been | |
35387 | invoked with directory information, add the directory in front of the | |
35388 | path. | |
35389 | ||
35390 | * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files | |
35391 | when Keep_Temporary_Files is False. | |
35392 | (GNATCmd): When not on VMS, and the GNAT driver has been invoked with | |
35393 | directory information, add the directory in front of the path. | |
35394 | When not on VMS, handle new switch -dn before the command to set | |
35395 | Keep_Temporary_Files to True. | |
35396 | (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid | |
35397 | everywhere. | |
35398 | ||
35399 | * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been | |
35400 | invoked with directory information, add the directory in front of the | |
35401 | path. | |
35402 | ||
35403 | 2004-07-06 Thomas Quinot <quinot@act-europe.fr> | |
35404 | ||
35405 | * snames.ads, snames.adb (Name_Stub): New name for the distributed | |
35406 | systems annex. | |
35407 | ||
35408 | * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB. | |
35409 | New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA. | |
35410 | ||
35411 | * g-socket.adb (To_Timeval): Fix incorrect conversion of | |
35412 | Selector_Duration to Timeval for the case of 0.0. | |
35413 | ||
35414 | * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of | |
35415 | documentation from Evolve_And_Then. | |
35416 | ||
35417 | 2004-07-06 Jose Ruiz <ruiz@act-europe.fr> | |
35418 | ||
35419 | * s-taprop-tru64.adb, s-taprop-os2.adb, | |
35420 | s-taprop-mingw.adb, s-taprop-posix.adb: Update comment. | |
35421 | ||
35422 | 2004-07-06 Robert Dewar <dewar@gnat.com> | |
35423 | ||
35424 | * s-osinte-hpux.ads, s-osinte-freebsd.ads, | |
35425 | s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads, | |
35426 | s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb, | |
35427 | s-interr-sigaction.adb, s-taprop-irix-athread.adb, | |
35428 | s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb, | |
35429 | s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb, | |
35430 | s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb, | |
35431 | s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb, | |
35432 | a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb, | |
35433 | a-tags.ads, bindgen.ads, checks.adb, checks.adb, | |
35434 | csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb, | |
35435 | exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb, | |
35436 | g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb, | |
35437 | i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb, | |
35438 | sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb, | |
35439 | sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb, | |
35440 | sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads, | |
35441 | s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads, | |
35442 | s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb, | |
35443 | s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb, | |
35444 | vms_data.ads: Minor reformatting, | |
35445 | Fix bad box comment format. | |
35446 | ||
35447 | * gnat_rm.texi: Fix minor grammatical error | |
35448 | ||
35449 | * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values | |
35450 | ||
35451 | * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many | |
35452 | more cases of discriminated records to be recognized as not needing a | |
35453 | secondary stack. | |
35454 | (Has_Access_Values): New function. | |
35455 | ||
35456 | * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values | |
35457 | ||
35458 | * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name | |
35459 | Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence | |
35460 | with LRM terminology). | |
35461 | Change terminology in comments primitive type => elementary type. | |
35462 | ||
35463 | 2004-07-06 Ed Schonberg <schonberg@gnat.com> | |
35464 | ||
35465 | PR ada/15602 | |
35466 | * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal | |
35467 | parameters do not impose any requirements on the presence of a body. | |
35468 | ||
35469 | 2004-07-06 Ed Schonberg <schonberg@gnat.com> | |
35470 | ||
35471 | PR ada/15593 | |
35472 | * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a | |
35473 | compilation unit and is in an open scope at the point of instantiation, | |
35474 | assume that a body may be present later. | |
35475 | ||
35476 | 2004-07-06 Ed Schonberg <schonberg@gnat.com> | |
35477 | ||
35478 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size): | |
35479 | Improve error message when specified size is not supported. | |
35480 | ||
35481 | * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram | |
35482 | is never a primitive operation. | |
35483 | ||
a240ec3e | 35484 | 2004-07-05 Andreas Schwab <schwab@suse.de> |
35485 | ||
35486 | * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use | |
35487 | RECORD_OR_UNION_CHECK. | |
35488 | (TYPE_CONTAINS_TEMPLATE_P): Likewise. | |
35489 | ||
96842896 | 35490 | 2004-07-04 Kelley Cook <kcook@gcc.gnu.org> |
35491 | ||
35492 | * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit | |
35493 | dependency on xgnatugn, instead build it via a submake. | |
35494 | (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi. | |
35495 | ||
e8825bb0 | 35496 | 2004-07-04 Richard Henderson <rth@redhat.com> |
35497 | ||
35498 | * utils2.c (gnat_mark_addressable): Don't put_var_into_stack. | |
35499 | ||
735f4358 | 35500 | 2004-07-01 Richard Henderson <rth@redhat.com> |
35501 | ||
35502 | * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR. | |
35503 | * utils.c (max_size): Likewise. | |
35504 | ||
ff72c1db | 35505 | 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> |
35506 | ||
35507 | * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation, | |
35508 | and rest_of_type_compilation; add arg to create_*_decl. | |
206929f9 | 35509 | (annotate_decl_with_node): Deleted. |
ff72c1db | 35510 | (gnat_to_gnu_entity, case E_Array_Type): Set location of fields. |
35511 | * gigi.h (get_decls, block_has_vars, pushdecl): Deleted. | |
35512 | (get_current_block_context, gnat_pushdecl): New declarations. | |
35513 | (gnat_init_stmt_group): Likewise. | |
35514 | (create_var_decl, create_type_decl, create_subprog_decl): Add new arg. | |
35515 | * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted. | |
35516 | (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted. | |
35517 | (gnat_init): Call gnat_init_stmt_group. | |
35518 | * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables. | |
35519 | (gnu_pending_elaboration_list): Deleted. | |
35520 | (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions. | |
35521 | (gigi): Rearrange initialization calls and move some to last above. | |
35522 | (gnat_to_gnu): If statement and not in procedure, go into elab proc. | |
35523 | Delete calls to add_decl_expr; add arg to create_*_decl. | |
35524 | (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR. | |
ce45a448 | 35525 | (gnat_to_gnu, case N_Subprogram_Body): Move some code to |
ff72c1db | 35526 | begin_subprog_body and call it. |
35527 | Don't push and pop ggc context. | |
35528 | (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc. | |
35529 | (add_stmt): Remove handling of DECL_EXPR from here. | |
35530 | If not in function, mark visited. | |
35531 | (add_decl_expr): Put global at top level. | |
35532 | Check for cases of DECL_INITIAL we have to handle here. | |
35533 | (process_type): Add extra arg to create_type_decl. | |
35534 | (build_unit_elab): Rework to just gimplify. | |
35535 | * utils.c (pending_elaborations, elist_stack, getdecls): Deleted. | |
35536 | (block_has_vars, mark_visited, add_pending_elaborations): Likewise. | |
35537 | (get_pending_elaborations, pending_elaborations_p): Likewise. | |
35538 | (push_pending_elaborations, pop_pending_elaborations): Likewise. | |
35539 | (get_elaboration_location, insert_elaboration_list): Likewise. | |
35540 | (gnat_binding_level): Renamed from ada_binding_level. | |
35541 | (init_gnat_to_gnu): Don't clear pending_elaborations. | |
35542 | (global_bindings_p): Treat as global if no current_binding_level. | |
35543 | (set_current_block_context): New function. | |
35544 | (gnat_pushdecl): Renamed from pushdecl; major rework. | |
35545 | All callers changed. | |
35546 | (create_type_decl, create_var_decl, create_subprog_decl): Add new arg. | |
35547 | (finish_record_type): Call call pushdecl for stub decl. | |
35548 | (function_nesting_depth): Deleted. | |
35549 | (begin_subprog_body): Delete obsolete code. | |
35550 | * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl. | |
ce45a448 | 35551 | |
c54e9270 | 35552 | 2004-06-28 Robert Dewar <dewar@gnat.com> |
35553 | ||
35554 | * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, | |
35555 | mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb, | |
35556 | mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb, | |
35557 | mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, | |
35558 | a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting | |
35559 | ||
35560 | * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to | |
35561 | deal with problem of inefficient slices on machines with strict | |
35562 | alignment, when the slice is a component of a composite. | |
35563 | ||
35564 | * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit | |
35565 | machines, we need the check there as well. | |
35566 | ||
35567 | 2004-06-28 Ed Schonberg <schonberg@gnat.com> | |
35568 | ||
35569 | * exp_ch5.adb (Expand_Assign_Array): Use correct condition to | |
35570 | determine safe copying direction for overlapping slice assignments | |
35571 | when component is controlled. | |
35572 | ||
35573 | * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a | |
35574 | formal derived type in the actual for a formal package are visible in | |
35575 | the enclosing instance. | |
35576 | ||
35577 | 2004-06-28 Ed Schonberg <schonberg@gnat.com> | |
35578 | ||
35579 | PR ada/15600 | |
35580 | * sem_util.adb (Trace_Components): Diagnose properly an illegal | |
35581 | circularity involving a private type whose completion includes a | |
35582 | self-referential component. | |
35583 | (Enter_Name): Use Is_Inherited_Operation to distinguish a source | |
35584 | renaming or an instantiation from an implicit derived operation. | |
35585 | ||
35586 | 2004-06-28 Pascal Obry <obry@gnat.com> | |
35587 | ||
35588 | * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from | |
35589 | DLL. | |
35590 | (Library_File_Name_For): Idem. | |
35591 | ||
35592 | 2004-06-28 Matthew Gingell <gingell@gnat.com> | |
35593 | ||
35594 | * g-traceb.ads: Add explanatory note on the format of addresses | |
35595 | expected by addr2line. | |
35596 | ||
35597 | 2004-06-28 Jerome Guitton <guitton@act-europe.fr> | |
35598 | ||
35599 | * Makefile.in: Force debugging information on s-tasdeb.adb, | |
35600 | a-except.adb and s-assert.adb needed by the debugger. | |
35601 | ||
35602 | 2004-06-28 Vincent Celier <celier@gnat.com> | |
35603 | ||
35604 | * make.adb (Collect_Arguments_And_Compile): Change Flag1 to | |
35605 | Need_To_Build_Lib. | |
35606 | (Gnatmake): Ditto. | |
35607 | ||
35608 | * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib | |
35609 | ||
35610 | * prj.adb: Minor reformatting | |
35611 | (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2. | |
35612 | ||
35613 | * prj.ads: Comment updates | |
35614 | Minor reformatting | |
35615 | (Project_Data): Change Flag1 to Need_To_Build_Lib. | |
35616 | Remove Flag2: not used. | |
35617 | ||
35618 | * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a | |
35619 | declaration. | |
35620 | ||
35621 | * gnat_ugn.texi: Put a "null;" declaration in one project file example | |
35622 | ||
35623 | * gnat_rm.texi: Document Empty declarations "null;". | |
35624 | ||
35625 | * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in | |
35626 | front of the linker options. | |
35627 | (Link_Foreign): Put the global archives and the libraries in front of | |
35628 | the linker options. | |
35629 | ||
35630 | 2004-06-28 Javier Miranda <miranda@gnat.com> | |
35631 | ||
35632 | * rtsfind.adb: (Get_Unit_Name): Fix typo in comment | |
35633 | (RTU_Loaded): Code cleanup | |
35634 | (Set_RTU_Loaded): New procedure to register as *loaded* explicitly | |
35635 | withed predefined units. | |
35636 | ||
35637 | * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded* | |
35638 | explicitly withed predefined units. | |
35639 | Fix typo in comment | |
35640 | ||
35641 | * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded* | |
35642 | explicitly withed predefined units. | |
35643 | ||
ba2e89ae | 35644 | 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> |
35645 | ||
35646 | * ada-tree.def (DECL_STMT): Deleted. | |
35647 | * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT. | |
35648 | (DECL_STMT_VAR): Deleted. | |
35649 | * decl.c: add_decl_stmt now add_decl_expr. | |
35650 | * gigi.h: Likewise. | |
35651 | * trans.c: Likewise. | |
206929f9 | 35652 | (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted. |
ba2e89ae | 35653 | (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus. |
35654 | (add_stmt): Only handle padded type here. | |
35655 | (add_stmt_with_node): Allow gnat_node to not be present. | |
35656 | (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null. | |
35657 | (gnat_gimplify_stmt, case DECL_STMT): Deleted. | |
35658 | (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer, | |
35659 | make a SAVE_EXPR for the entire fat pointer. | |
35660 | * utils.c (pushdecl): Walk a DECL_EXPR in global case. | |
35661 | (create_index_type): Make a DECL_EXPR. | |
35662 | (end_subprog_body): Don't call allocate_struct_function here but | |
35663 | do clear cfun. | |
35664 | ||
80d4fec4 | 35665 | 2004-06-25 Pascal Obry <obry@gnat.com> |
35666 | ||
35667 | * makegpr.adb (Build_Library): Remove parameter Lib_Address and | |
35668 | Relocatable from Build_Dynamic_Library call. | |
35669 | ||
35670 | * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and | |
35671 | Relocatable are now synonym. | |
35672 | ||
35673 | * Makefile.in: Use s-parame-mingw.adb on MingW platform. | |
35674 | ||
35675 | * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition. | |
35676 | Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library | |
35677 | call. | |
35678 | ||
35679 | * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter | |
35680 | Lib_Address and Relocatable. | |
35681 | (Default_DLL_Address): Removed. | |
35682 | ||
ce45a448 | 35683 | * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, |
35684 | mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb, | |
80d4fec4 | 35685 | mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb: |
35686 | (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable. | |
35687 | (Default_DLL_Address): Removed. | |
35688 | ||
35689 | * mlib-tgt-mingw.adb: Ditto. | |
35690 | (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name. | |
35691 | ||
35692 | * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute | |
35693 | the initial thread stack size. | |
35694 | ||
35695 | * a-strmap.ads: Move package L to private part as it is not used in | |
35696 | the spec. Found while reading code. | |
35697 | ||
35698 | 2004-06-25 Olivier Hainque <hainque@act-europe.fr> | |
35699 | ||
35700 | * tracebak.c: Introduce support for a GCC infrastructure based | |
35701 | implementation of __gnat_backtrace. | |
35702 | ||
35703 | * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record | |
35704 | any more. Use accessors instead. This eases maintenance and relaxes | |
35705 | some alignment constraints. | |
35706 | (_GNAT_Exception structure): Remove the Ada specific fields | |
35707 | (EID_For, Adjust_N_Cleanups_For): New accessors, exported by | |
35708 | a-exexpr.adb. | |
35709 | (is_handled_by, __gnat_eh_personality): Replace component references to | |
35710 | exception structure by use of the new accessors. | |
35711 | ||
35712 | * init.c (__gnat_initialize): Adjust comments to match the just | |
35713 | reverted meaning of the -static link-time option. | |
35714 | ||
35715 | * adaint.c (convert_addresses): Arrange not to define a stub for | |
35716 | mips-irix any more, as we now want to rely on a real version from a | |
35717 | recent libaddr2line. | |
35718 | ||
35719 | * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that | |
35720 | the personality routine can use them and not have to rely on a C | |
35721 | counterpart of the record anymore. This simplifies maintenance and | |
35722 | relaxes the constraint of having Standard'Maximum_Alignment match | |
35723 | BIGGEST_ALIGNMENT. | |
35724 | Update comments, and add a section on the common header alignment issue. | |
35725 | ||
35726 | 2004-06-25 Geert Bosch <bosch@gnat.com> | |
35727 | ||
35728 | * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in | |
35729 | polynomial approximation. Fixes inconsistency with Cody/Waite algorithm. | |
35730 | ||
35731 | 2004-06-25 Robert Dewar <dewar@gnat.com> | |
35732 | ||
35733 | * gnat_rm.texi: Fix section on component clauses to indicate that the | |
35734 | restriction on byte boundary placement still applies for bit packed | |
35735 | arrays. | |
35736 | Add comment on stack usage from Initialize_Scalars | |
35737 | ||
35738 | * gnat_ugn.texi: Add documentation for -gnatyLnnn | |
35739 | ||
35740 | * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for | |
35741 | limiting nesting level. | |
35742 | ||
35743 | * usage.adb: Add line for -gnatyLnnn switch | |
35744 | ||
35745 | * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads, | |
35746 | sem_ch13.adb, exp_aggr.adb: Minor reformatting | |
35747 | ||
35748 | * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base | |
35749 | type as well as on the subtype. This corrects a problem in freeze in | |
35750 | setting alignments of atomic types. | |
35751 | ||
35752 | * sem_eval.ads: Minor comment typo fixed | |
35753 | ||
35754 | * par-util.adb (Push_Scope_Stack): Check for violation of max nesting | |
35755 | level. Minor reformatting. | |
35756 | ||
35757 | * fname.adb (Is_Predefined_File_Name): Require a letter after the | |
35758 | minus sign. This means that file names like a--b.adb will not be | |
35759 | considered predefined. | |
35760 | ||
35761 | * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing | |
35762 | record Test new flag and give diagnostic for bad component clause. | |
35763 | (Freeze_Entity): Set alignment of array from component alignment in | |
35764 | cases where this is safe to do. | |
35765 | ||
35766 | * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed | |
35767 | arrays. | |
35768 | ||
35769 | * cstand.adb: (Create_Standard): Set alignment of String to 1 | |
35770 | ||
35771 | * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary | |
35772 | ||
35773 | * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated | |
35774 | code in the common constrained array cases. | |
35775 | ||
35776 | * a-storio.adb: Change implementation to avoid possible alignment | |
35777 | problems on machines requiring strict alignment (data should be moved | |
35778 | as type Buffer, not type Elmt). | |
35779 | ||
35780 | * checks.adb (Apply_Array_Size_Check): Improve these checks by | |
35781 | killing the overflow checks which we really do not need (64-bits is | |
35782 | enough). | |
35783 | ||
35784 | 2004-06-25 Vincent Celier <celier@gnat.com> | |
35785 | ||
35786 | * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function | |
35787 | (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path | |
35788 | inconditionally for the main project. | |
35789 | (Recursive_Add_Archives.Add_Archive_Path): New procedure | |
35790 | (Link_Executables.Check_Time_Stamps): New procedure | |
35791 | (Link_Executables.Link_Foreign): New procedure | |
35792 | Changes made to reduce nesting level of this package | |
35793 | (Check): New procedure | |
35794 | (Add_Switches): When not in quiet output, check that a switch is not | |
35795 | the concatenation of several valid switches. If it is, issue a warning. | |
35796 | (Build_Global_Archive): If the global archive is rebuilt, linking need | |
35797 | to be done. | |
35798 | (Compile_Sources): Rebuilding a library archive does not imply | |
35799 | rebuilding the global archive. | |
35800 | (Build_Global_Archive): New procedure | |
35801 | (Build_Library): New name for Build_Archive, now only for library | |
35802 | project | |
35803 | (Check_Archive_Builder): New procedure | |
35804 | (Create_Global_Archive_Dependency_File): New procedure | |
35805 | (Gprmake): Call Build_Global_Archive before linking | |
35806 | * makegpr.adb: Use Other_Sources_Present instead of Sources_Present | |
35807 | throughout. | |
35808 | (Scan_Arg): Display the Copyright notice when -v is used | |
35809 | ||
35810 | * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=) | |
35811 | for gnatls. | |
35812 | ||
35813 | * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT | |
35814 | COMPILE. | |
35815 | Add new GNAT LIST qualifier /FILES= | |
35816 | Added qualifier /DIRECTORY= to GNAT METRIC | |
35817 | Added qualifier /FILES= to GNAT METRIC | |
35818 | Added qualifier /FILES to GNAT PRETTY | |
35819 | ||
35820 | * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS, | |
35821 | to take into account both versions of the switch. | |
35822 | ||
35823 | * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should | |
35824 | always be the last switch to the gcc driver. Disable switch storing so | |
35825 | that switches automatically added by the gcc driver are not put in the | |
35826 | ALI file. | |
35827 | ||
35828 | * prj.adb (Project_Empty): Take into account changes in components of | |
35829 | Project_Data. | |
35830 | ||
35831 | * prj.ads (Languages_Processed): New enumaration value All_Languages. | |
35832 | ||
35833 | * prj.ads (Project_Data): Remove component Lib_Elaboration: never | |
35834 | used. Split Boolean component Ada_Sources_Present in two Boolean | |
35835 | components Ada_Sources_Present and Other_Sources_Present. | |
35836 | Minor reformatting | |
35837 | ||
35838 | * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present | |
35839 | instead of Sources_Present. | |
35840 | (Set_Ada_Paths.Add.Recursive_Add): Ditto | |
35841 | ||
35842 | * prj-nmsc.adb: Minor reformatting | |
35843 | (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme | |
35844 | (Check_Ada_Naming_Scheme_Validity): New name of previous procedure | |
35845 | Check_Ada_Naming_Scheme. | |
35846 | Change Sources_Present to Ada_Sources_Present or Other_Sources_Present | |
35847 | throughout. | |
35848 | ||
35849 | * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter | |
35850 | In_Limited. | |
35851 | Make sure that all cycles where there is at least one "limited with" | |
35852 | are detected. | |
35853 | (Parse_Single_Project): New Boolean parameter In_Limited | |
35854 | ||
35855 | * prj-proc.adb (Recursive_Check): When Process_Languages is | |
35856 | All_Languages, call first Prj.Nmsc.Ada_Check, then | |
35857 | Prj.Nmsc.Other_Languages_Check. | |
35858 | ||
35859 | * prj-proc.adb (Process): Use Ada_Sources_Present or | |
35860 | Other_Sources_Present (instead of Sources_Present) depending on | |
35861 | Process_Languages. | |
35862 | ||
35863 | * lang-specs.h: Keep -g and -m switches in the same order, and as the | |
35864 | last switches. | |
35865 | ||
35866 | * lib.adb (Switch_Storing_Enabled): New global Boolean flag | |
35867 | (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to | |
35868 | False. | |
35869 | (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is | |
35870 | False. | |
35871 | ||
35872 | * lib.ads (Disable_Switch_Storing): New procedure. | |
35873 | ||
35874 | * make.adb: Modifications to reduce nesting level of this package. | |
35875 | (Check_Standard_Library): New procedure | |
35876 | (Gnatmake.Check_Mains): New procedure | |
35877 | (Gnatmake.Create_Binder_Mapping_File): New procedure | |
35878 | (Compile_Sources.Compile): Add switch -gnatez as the last option | |
35879 | (Display): Never display -gnatez | |
35880 | ||
ce45a448 | 35881 | * Makefile.generic: |
80d4fec4 | 35882 | When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT) |
35883 | ||
35884 | * gnatcmd.adb (Check_Project): New function | |
35885 | (Process_Link): New procedure to reduce nesting depth | |
35886 | (Check_Files): New procedure to reduce the nesting depth. | |
35887 | For GNAT METRIC, include the inherited sources in extending projects. | |
35888 | (GNATCmd): When GNAT LS is invoked with a project file and no files, | |
35889 | add the list of files from the sources of the project file. If this list | |
35890 | is too long, put it in a temp text files and use switch -files= | |
35891 | (Delete_Temp_Config_Files): Delete the temp text file that contains | |
35892 | a list of source for gnatpp or gnatmetric, if one has been created. | |
35893 | (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources | |
35894 | in the project file is too large, create a temporary text file that | |
35895 | list them and pass it to the tool with "-files=<temp text file>". | |
35896 | (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch | |
35897 | ||
35898 | * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the | |
35899 | generated file is in not in Ada. | |
35900 | ||
35901 | * gnatls.adb: Remove all parameters And_Save that are no longer used. | |
35902 | (Scan_Ls_Arg): Add processing for -files= | |
35903 | (Usage): Add line for -files= | |
35904 | ||
35905 | * g-os_lib.adb (On_Windows): New global constant Boolean flag | |
35906 | (Normalize_Pathname): When on Windows and the path starts with a | |
35907 | directory separator, make sure that the resulting path will start with | |
35908 | a drive letter. | |
35909 | ||
35910 | * clean.adb (Clean_Archive): New procedure | |
35911 | (Clean_Project): When there is non-Ada code, delete the global archive, | |
35912 | the archive dependency files, the object files and their dependency | |
35913 | files, if they exist. | |
35914 | (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only. | |
35915 | ||
35916 | 2004-06-25 Thomas Quinot <quinot@act-europe.fr> | |
35917 | ||
35918 | * sinfo.ads: Fix typo in comment. | |
35919 | ||
35920 | * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses | |
35921 | the TSS for remote access-to-subprogram types, since these TSS are | |
35922 | always present once the type has been analyzed. | |
35923 | (RAS_E_Dereference): Same. | |
35924 | ||
35925 | * sem_attr.adb (Analyze_Attribute): When analysis of an attribute | |
35926 | reference raises Bad_Attribute, mark the reference as analyzed so the | |
35927 | node (and any children resulting from rewrites that could have occurred | |
35928 | during the analysis that ultimately failed) is not analyzed again. | |
35929 | ||
35930 | * exp_ch7.ads (Find_Final_List): Fix misaligned comment. | |
35931 | ||
35932 | * exp_dist.adb: Minor comment fix. | |
35933 | ||
35934 | * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected | |
35935 | type is an anonymous access type, no unchecked deallocation of the | |
35936 | allocated object can occur. If the object is controlled, attach it with | |
35937 | a count of 1. This allows attachment to the Global_Final_List, if | |
35938 | no other relevant list is available. | |
35939 | (Get_Allocator_Final_List): For an anonymous access type that is | |
35940 | the type of a discriminant or record component, the corresponding | |
35941 | finalisation list is the one of the scope of the type. | |
35942 | ||
35943 | 2004-06-25 Ed Schonberg <schonberg@gnat.com> | |
35944 | ||
35945 | * sem_ch3.adb (Replace_Type): When computing the signature of an | |
35946 | inherited subprogram, use the first subtype if the derived type | |
35947 | declaration has no constraint. | |
35948 | ||
35949 | * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array | |
35950 | before applying previous optimization. Minor code cleanup. | |
35951 | ||
35952 | * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is | |
35953 | placed at the beginning of an unpacked record without explicit | |
35954 | alignment, a slice of it will be aligned and does not need a copy when | |
35955 | used as an actual. | |
35956 | ||
35957 | 2004-06-25 Ed Schonberg <schonberg@gnat.com> | |
35958 | ||
35959 | PR ada/15591 | |
35960 | PR ada/15592 | |
35961 | * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute | |
35962 | reference is written with expressions mimicking parameters. | |
35963 | ||
35964 | 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com> | |
35965 | ||
35966 | PR ada/15589 | |
35967 | * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to | |
35968 | STEP 2a. The constraints of a full type declaration of a derived record | |
35969 | type are checked for conformance with those declared in the | |
35970 | corresponding private extension declaration. The message | |
35971 | "not conformant with previous declaration" is emitted if an error is | |
35972 | detected. | |
35973 | ||
35974 | 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr> | |
35975 | ||
35976 | * g-traceb.ads: Document the need for -E binder switch in the spec. | |
35977 | ||
35978 | * g-trasym.ads: Document the need for -E binder switch in the spec. | |
35979 | ||
35980 | 2004-06-25 Jose Ruiz <ruiz@act-europe.fr> | |
35981 | ||
35982 | * sem_prag.adb: Add handling of pragma Detect_Blocking. | |
35983 | ||
35984 | * snames.h, snames.ads, snames.adb: Add entry for pragma | |
35985 | Detect_Blocking. | |
35986 | ||
35987 | * s-rident.ads: Change reference to pragma Detect_Blocking. | |
35988 | ||
35989 | * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in | |
35990 | system.ads. | |
35991 | ||
35992 | * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False) | |
35993 | to indicate whether pragma Detect_Blocking is active. | |
35994 | ||
35995 | * par-prag.adb: Add entry for pragma Detect_Blocking. | |
35996 | ||
35997 | * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug | |
35998 | of not handling WITH. | |
35999 | Note that this replaces the previous update which was incorrect. | |
36000 | ||
36001 | 2004-06-25 Javier Miranda <miranda@gnat.com> | |
36002 | ||
36003 | * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the | |
36004 | use-clauses to have a clean environment. | |
36005 | ||
36006 | * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force | |
36007 | the installation of the use-clauses to stablish a clean environment in | |
36008 | case of compilation of a separate unit; otherwise the call to | |
36009 | use_one_package is protected by the barrier Applicable_Use. | |
36010 | ||
36011 | * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force | |
36012 | the installation of the use-clauses to stablish a clean environment in | |
36013 | case of compilation of a separate unit. | |
36014 | (End_Use_Clauses): Minor comment cleanup. | |
36015 | ||
36016 | 2004-06-25 Sergey Rybin <rybin@act-europe.fr> | |
36017 | ||
36018 | * gnat_ugn.texi: Add description of the gnatpp 'files' switch | |
36019 | ||
b6431126 | 36020 | 2004-06-23 Richard Henderson <rth@redhat.com> |
36021 | ||
36022 | * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call. | |
36023 | ||
1e5bf666 | 36024 | 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> |
36025 | ||
36026 | * decl.c (elaborate_expression, elaborate_expression_1): Arguments | |
36027 | now bool instead of int. | |
36028 | (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF. | |
36029 | * trans.c (gnu_switch_label_stack): New function. | |
36030 | (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the | |
36031 | elaboration of renamed entity returns. | |
36032 | (gnat_to_gnu, case N_Case_Statement): Add branches to end label. | |
36033 | (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE. | |
36034 | (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt. | |
36035 | (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and | |
36036 | DECL_SIZE_UNIT and simplify variable-sized case. | |
36037 | (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted. | |
36038 | Callers changes to call gimplify_type_sizes and gimplify_one_sizepos. | |
36039 | (gnat_stabilize_reference): Add arg to COMPONENT_REF. | |
36040 | (build_unit_elab): Disable for now. | |
36041 | * utils.c (mark_visited): New function. | |
36042 | (pushdecl): Walk tree to call it for global decl. | |
36043 | (update_pointer_to): Update all variants of pointer and ref types. | |
36044 | Add arg to COMPONENT_REF. | |
36045 | (convert): Likewise. | |
36046 | Move check for converting between variants lower down. | |
36047 | * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF. | |
36048 | (build_allocator): Don't force type of MODIFY_EXPR. | |
36049 | (gnat_mark_addressable, case VAR_DECL): Unconditionally call | |
36050 | put_var_into_stack. | |
36051 | ||
08faa217 | 36052 | 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> |
36053 | ||
36054 | * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation. | |
36055 | * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP. | |
36056 | * decl.c (gnat_to_gnu_entity): Also set force_global for imported | |
36057 | subprograms. | |
36058 | * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack; | |
36059 | all callers changed. | |
36060 | (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change | |
36061 | the way that EXIT_STMT finds the loop label. | |
36062 | (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise. | |
36063 | (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here. | |
36064 | (add_stmt): Use annotate_with_locus insted of setting directly. | |
36065 | (pos_to_construct): Set TREE_PURPOSE of each entry to index. | |
36066 | (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF. | |
36067 | * utils.c (gnat_install_builtins): Install __builtin_memcmp. | |
36068 | (build_vms_descriptor): Add extra args to ARRAY_REF. | |
36069 | (convert): Use VIEW_CONVERT_EXPR between aggregate types. | |
36070 | * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST): | |
36071 | New cases. | |
36072 | (build_binary_op): Don't make explicit CONVERT_EXPR. | |
36073 | Add extra rgs to ARRAY_REF. | |
36074 | ||
a05205b0 | 36075 | 2004-06-14 Pascal Obry <obry@gnat.com> |
36076 | ||
36077 | * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on | |
36078 | Windows. Fix minor typo. | |
36079 | ||
36080 | * mlib-tgt-mingw.adb: New implementation using the GCC -shared option | |
36081 | which is now supported on Windows. With this implementation using the | |
36082 | Library Project feature is no different on Windows than on UNIX. | |
36083 | ||
36084 | 2004-06-14 Vincent Celier <celier@gnat.com> | |
36085 | ||
36086 | * makegpr.adb (Compile_Sources): Nothing to do when there are no | |
36087 | non-Ada sources. | |
36088 | ||
36089 | * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment | |
36090 | ||
36091 | * prj-part.adb (Parse_Single_Project): When a duplicate project name is | |
36092 | found, show the project name and the path of the previously parsed | |
36093 | project file. | |
36094 | ||
36095 | 2004-06-14 Ed Schonberg <schonberg@gnat.com> | |
36096 | ||
36097 | * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an | |
36098 | array, avoid copying the actual before the call. | |
36099 | ||
36100 | 2004-06-14 Thomas Quinot <quinot@act-europe.fr> | |
36101 | ||
36102 | * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools. | |
36103 | Instead, allocate memory on worst-case alignment assumptions, and then | |
36104 | return an aligned address within the allocated zone. | |
36105 | ||
36106 | 2004-06-14 Robert Dewar <dewar@gnat.com> | |
36107 | ||
36108 | * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to | |
36109 | elab entities in predefined units in No_Run_Time_Mode. | |
36110 | (Gen_Adainit_C): Same fix | |
36111 | (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined | |
36112 | units in No_Run_Time_Mode | |
36113 | (Gen_Elab_Calls_C): Same fix | |
36114 | ||
36115 | * symbols-vms-alpha.adb: Minor reformatting | |
36116 | ||
36117 | * g-debpoo.ads: Minor reformatting | |
36118 | ||
36119 | * lib.adb (In_Same_Extended_Unit): Version working on node id's | |
36120 | ||
36121 | * lib.ads (In_Same_Extended_Unit): Version working on node id's | |
36122 | ||
36123 | * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit | |
36124 | working on nodes. | |
36125 | ||
36126 | * make.adb: Minor reformatting | |
36127 | ||
36128 | * par-ch12.adb: Minor reformatting | |
36129 | ||
36130 | * par-prag.adb: Add dummy entry for pragma Profile_Warnings | |
36131 | ||
36132 | * prj-strt.adb: Minor reformatting | |
36133 | ||
36134 | * restrict.ads, restrict.adb: Redo handling of profile restrictions to | |
36135 | be more general. | |
36136 | ||
36137 | * sem_attr.adb: Minor reformatting | |
36138 | ||
36139 | * sem_ch7.adb: Minor reformatting | |
36140 | ||
36141 | * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc | |
36142 | for type in the same unit as the object declaration. | |
36143 | ||
36144 | * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows | |
36145 | static string expressions and not just string literals. | |
36146 | Minor reformatting | |
36147 | (Set_Warning): Reset restriction warning flag for restriction pragma | |
36148 | Implement pragma Profile_Warnings | |
36149 | Implement pragma Profile (Restricted) | |
36150 | Give obolescent messages for old restrictions and pragmas | |
36151 | ||
36152 | * snames.h, snames.ads, snames.adb: Add new entry for pragma | |
36153 | Profile_Warnings. | |
36154 | ||
36155 | * s-rident.ads: Add declarations for restrictions required by profile | |
36156 | Restricted and profile Ravenscar. | |
36157 | ||
36158 | * targparm.ads, targparm.adb: Allow pragma Profile in system.ads | |
36159 | ||
36160 | * gnat_ugn.texi: Correct some missing entries in the list of GNAT | |
36161 | configuration pragmas. | |
36162 | ||
a2877a77 | 36163 | 2004-06-11 Vincent Celier <celier@gnat.com> |
36164 | ||
36165 | * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to | |
36166 | gnatsym, when symbol policy is Restricted. | |
36167 | ||
36168 | * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to | |
36169 | gnatsym, when symbol policy is Restricted. | |
36170 | ||
36171 | * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted, | |
36172 | read the symbol file. | |
36173 | (Finalize): Fail in symbol policy Restricted if a symbol in the original | |
36174 | symbol file is not in the object files. Do not create a new symbol file | |
36175 | when symbol policy is Restricted. | |
36176 | ||
36177 | * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used | |
36178 | in Scng. | |
36179 | ||
36180 | * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy | |
36181 | Restricted. | |
36182 | (Usage): Line for new switch -R | |
36183 | ||
36184 | * make.adb (Initialize): When the platform is not VMS, add the | |
36185 | directory where gnatmake is invoked in the front of the path, if | |
36186 | gnatmake is invoked with directory information. Change the Scan_Args | |
36187 | while loop to a for loop. | |
36188 | (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency: | |
36189 | if Depth is equal or greater than the proposed depth, there is nothing | |
36190 | to do. | |
36191 | (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1 | |
36192 | instead of 0. | |
36193 | ||
36194 | * prj.ads: Add new symbol policy Restricted. | |
36195 | ||
36196 | * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction | |
36197 | with the new parameters Check_All_Labels and Case_Location. | |
36198 | ||
36199 | * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted | |
36200 | (Library_Symbol_File needs to be defined). | |
36201 | ||
36202 | * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels | |
36203 | and Case_Location If Check_All_Labels is True, check that all values of | |
36204 | the string type are used, and output warning(s) if they are not. | |
36205 | ||
36206 | * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels | |
36207 | and Case_Location. | |
36208 | ||
36209 | * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc" | |
36210 | ||
36211 | * gnat_ugn.texi: Update documentation about the library directory in | |
36212 | Library Projects. | |
36213 | ||
36214 | * makegpr.adb (Display_Command): In verbose mode, also display the | |
36215 | value of the CPATH env var, when the compiler is gcc. | |
36216 | (Initialize): Change the Scan_Args while loop to a for loop | |
36217 | (Compile_Individual_Sources): Change directory to object directory | |
36218 | before compilations. | |
36219 | ||
36220 | * symbols.ads: New symbol policy Restricted. | |
36221 | ||
36222 | 2004-06-11 Olivier Hainque <hainque@act-europe.fr> | |
36223 | ||
36224 | * a-except.adb (Raise_After_Setup family): Remove. The responsibility | |
36225 | is now taken care of internally in the Exception_Propagation package | |
36226 | and does not require clients assistance any more. | |
36227 | ||
36228 | * a-exexpr.adb (Is_Setup_And_Not_Propagated, | |
36229 | Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New | |
36230 | functions. Helpers to maintain a predicate required in the handling of | |
36231 | occurrence transfer between tasks. | |
36232 | This is now handled internally and does not require clients assistance | |
36233 | for the setup/propagate separation anymore. | |
36234 | (Setup_Exception, Propagate_Exception): Simplify the Private_Data | |
36235 | allocation strategy, handle the Setup_And_Not_Propagated predicate and | |
36236 | document. | |
36237 | ||
36238 | * s-taenca.adb (Check_Exception): Use raise_with_msg instead of | |
36239 | raise_after_setup, now that everything is handled internally within the | |
36240 | setup/propagation engine. | |
36241 | ||
36242 | 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com> | |
36243 | ||
36244 | * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once. | |
36245 | Add additional conditions for the case of an actual being a simple | |
36246 | name or literal. Improve inlining by preventing the generation | |
36247 | of temporaries with a short lifetime (one use). | |
36248 | ||
36249 | 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com> | |
36250 | ||
36251 | PR ada/15587 | |
a2877a77 | 36252 | * einfo.ads: Minor comment updates for Has_Completion and |
36253 | E_Constant list of flags. | |
36254 | ||
36255 | * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations | |
36256 | and constant redeclarations now set the Has_Completion flag of their | |
36257 | defining identifiers. | |
36258 | ||
36259 | * sem_ch7.adb (Analyze_Package_Spec): Add procedure | |
36260 | Inspect_Deferred_Constant_Completion. | |
36261 | Used to detect private deferred constants that have not been completed | |
36262 | either by a constant redeclaration or pragma Import. Emits error message | |
36263 | "constant declaration requires initialization expression". | |
36264 | ||
36265 | * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now | |
36266 | completes a deferred constant. | |
36267 | ||
36268 | 2004-06-11 Geert Bosch <bosch@gnat.com> | |
36269 | ||
36270 | * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers. | |
36271 | ||
36272 | * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in | |
36273 | calculating exponent for scaling denormal numbers. | |
36274 | (Leading_Part): Properly raise Constraint_Error for zero or negative | |
36275 | Adjustment. | |
36276 | (Remainder): Properly raise Constraint_Error for zero divisor. | |
36277 | ||
36278 | 2004-06-11 Thomas Quinot <quinot@act-europe.fr> | |
36279 | ||
36280 | * sem_util.adb: Minor reformatting. | |
36281 | ||
36282 | * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit | |
36283 | dereference when accessing the entry parameter record. | |
36284 | (Check_Array_Type): Always check for possible implicit dereference. | |
36285 | (maybe_implicit_dereference): Rename to check_no_implicit_derefence. | |
36286 | Abort if a pointer is still present (denoting that an implicit | |
36287 | dereference was left in the tree by the front-end). | |
36288 | ||
36289 | * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit | |
36290 | dereference when accessing the entry parameter record. | |
36291 | (Check_Array_Type): Always check for possible implicit dereference. | |
36292 | (maybe_implicit_dereference): Rename to check_no_implicit_derefence. | |
36293 | Abort if a pointer is still present (denoting that an implicit | |
36294 | dereference was left in the tree by the front-end). | |
36295 | ||
36296 | 2004-06-11 Emmanuel Briot <briot@act-europe.fr> | |
36297 | ||
36298 | * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error | |
36299 | message, like the compiler itself does. Easier to parse the output. | |
36300 | ||
36301 | * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments. | |
36302 | ||
36303 | * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should | |
36304 | be base names, and not includes directories. | |
36305 | ||
36306 | 2004-06-11 Arnaud Charlet <charlet@act-europe.fr> | |
36307 | ||
36308 | * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES), | |
36309 | so that dependencies are properly taken into account by make. | |
36310 | ||
36311 | 2004-06-11 Arnaud Charlet <charlet@act-europe.fr> | |
36312 | ||
36313 | PR ada/15622 | |
36314 | * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads, | |
36315 | exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic | |
36316 | ||
36317 | 2004-06-11 Jerome Guitton <guitton@act-europe.fr> | |
36318 | ||
36319 | * Makefile.in (install-gnatlib): install target-specific run-time files. | |
36320 | ||
36321 | * Make-lang.in: Remove obsolete targets. | |
36322 | ||
36323 | 2004-06-11 Ed Schonberg <schonberg@gnat.com> | |
36324 | ||
36325 | * par-ch12.adb (P_Generic): Add scope before analyzing subprogram | |
36326 | specification, to catch misuses of program unit names. | |
36327 | ||
36328 | * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on | |
36329 | superfluous conversions in an instance. | |
36330 | ||
36331 | 2004-06-11 Ed Schonberg <schonberg@gnat.com> | |
36332 | ||
36333 | PR ada/15403 | |
a2877a77 | 36334 | * sem_ch12.adb (Save_References): If operator node has been folded to |
36335 | enumeration literal, associated_node must be discarded. | |
36336 | ||
36337 | 2004-06-11 Jose Ruiz <ruiz@act-europe.fr> | |
36338 | ||
36339 | * s-stchop-vxworks.adb: Add required pragma Convention to | |
36340 | Task_Descriptor because it is updated by a C function. | |
36341 | ||
f9d722a3 | 36342 | 2004-06-08 Arnaud Charlet <charlet@act-europe.fr> |
36343 | ||
36344 | PR ada/15568 | |
f9d722a3 | 36345 | * Makefile.in: Remove target specific SO_OPT on IRIX |
36346 | ||
1d41ee0f | 36347 | 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> |
36348 | ||
36349 | * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted. | |
36350 | (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise. | |
36351 | (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise. | |
36352 | (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise. | |
36353 | (STMT_STMT, USE_STMT): New statement codes. | |
36354 | (LOOP_STMT, EXIT_STMT): Make slight semantic changes. | |
36355 | * ada-tree.h: Reflect above changes. | |
206929f9 | 36356 | (struct tree_loop_id): Deleted. |
1d41ee0f | 36357 | (union lang_tree_node, struct lang_decl, struct lang_type): |
36358 | Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC | |
36359 | and DECL_LANGUAGE_SPECIFIC to reflect these changes. | |
36360 | (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted. | |
36361 | (IS_ADA_STMT): New macro. | |
36362 | * decl.c (annotate_decl_with_node): New function. | |
36363 | (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno. | |
36364 | (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR. | |
36365 | Call add_stmt_with_node to do needed assignments. | |
36366 | Add call to update setjmp buffer directly, not via EXPR_STMT. | |
36367 | (maybe_variable): Argment GNAT_NODE deleted. | |
36368 | * gigi.h (maybe_variable): Likewise. | |
36369 | (make_transform, add_stmt_with_node, set_block_for_group): New. | |
36370 | (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise. | |
36371 | (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise. | |
36372 | (discard_file_names, gnu_block_stack, gnat_to_code): Deleted. | |
36373 | (set_lineno, set_lineno_from_sloc): Likewise. | |
36374 | (record_code_position, insert_code_for): Likewise. | |
36375 | (gnat_poplevel): Now returns void. | |
36376 | (end_subprog_body): Now takes argument. | |
36377 | * misc.c (cgraph.h, tree-inline.h): New includes. | |
36378 | (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted. | |
36379 | (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New. | |
36380 | (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise. | |
36381 | (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise. | |
36382 | (gnat_parse_file): Don't set immediate_size_expand. | |
36383 | Call cgraph functions. | |
36384 | (gnat_expand_expr): Remove most cases. | |
36385 | (record_code_position, insert_code_for): Remove from here. | |
36386 | * trans.c (toplev.h, tree-gimple.h): Now included. | |
36387 | (discard_file_names): Deleted. | |
36388 | (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del. | |
36389 | (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise. | |
36390 | (struct stmt_group, current_stmt_group, stmt_group_free_list): New. | |
36391 | (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise. | |
36392 | (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise. | |
36393 | (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise. | |
36394 | (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise. | |
36395 | (set_block_for_group, add_stmt_list): Likewise. | |
36396 | (start_stmt_group): Renamed from start_block_stmt. | |
36397 | (end_stmt_group): Likewise, from end_block_stmt. | |
36398 | (build_stmt_group): Likewise, from build_block_stmt, also add arg. | |
36399 | (gigi): Don't set discard_file_names or call set_lineno. | |
36400 | Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code. | |
36401 | (tree_transform): Deleted, now renamed to be gnat_to_gnu. | |
36402 | Numerous changes throughout to reflect new names and complete | |
36403 | function-at-a-time implementation. | |
36404 | (gnat_expand_stmt): Delete or comment out all cases. | |
36405 | (process_inlined_subprograms): Use add_stmt. | |
36406 | (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't | |
36407 | call set_lineno; also remove unneeded block handling. | |
36408 | (process_type): Remove unneeded block handling. | |
36409 | (build_unit_elab): Remove calls to deleted functions. | |
36410 | * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include. | |
36411 | (tree-dump.h): Likewise. | |
36412 | (struct ada_binding_level): Add field jmpbuf_decl. | |
36413 | (gnat_define_builtin, gnat_install_builtins): New. | |
36414 | (gnat_gimplify_function, gnat_finalize): Likewise. | |
36415 | (gnat_poplevel): No longer return BLOCK, set it instead. | |
36416 | Remove code dealing with nested functions. | |
36417 | (gnat_init_decl_processing): Also set size_type_node. | |
36418 | Call gnat_install_builtins. | |
36419 | (create_var_decl): Don't set DECL_INIT_BY_ASSIGN. | |
36420 | (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC. | |
36421 | Remove special-case for "main". | |
36422 | (end_subprog_body): Add arg and rework for tree-ssa. | |
36423 | (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR. | |
36424 | Add case for BOOLEAN_TYPE. | |
36425 | * utils2.c (rtl.h): Now include. | |
36426 | (build_call_raise): Test Debug_Flag_NN directly. | |
36427 | (build_call_alloc_dealloc): Don't use local stack allocation for now. | |
36428 | (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted. | |
36429 | (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases. | |
36430 | ||
e2aa7314 | 36431 | 2004-06-07 Robert Dewar <dewar@gnat.com> |
36432 | ||
36433 | * a-direct.ads, einfo.ads: Minor comment updates | |
36434 | ||
36435 | * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb, | |
36436 | s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb, | |
36437 | s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb, | |
36438 | s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb, | |
36439 | s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting. | |
36440 | ||
36441 | * s-interr-sigaction.adb: Remove unreferenced variable | |
36442 | (Attached_Interrupts). Minor reformatting. | |
36443 | Avoid use of variable I (replace by J). | |
36444 | ||
36445 | * par-ch10.adb: Fix text of one error message | |
36446 | ||
36447 | * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads, | |
36448 | exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb, | |
36449 | exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb, | |
36450 | opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb, | |
36451 | par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb, | |
36452 | par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb, | |
ce45a448 | 36453 | sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb, |
e2aa7314 | 36454 | sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, |
36455 | sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb, | |
36456 | sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb, | |
36457 | snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada | |
36458 | 2005 support. | |
36459 | ||
36460 | 2004-06-07 Doug Rupp <rupp@gnat.com> | |
36461 | ||
36462 | * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb | |
36463 | ||
36464 | * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb | |
36465 | ||
36466 | * mlib-tgt-vms-ia64.adb: New file. | |
36467 | ||
36468 | * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb | |
36469 | Add mlib-tgt-vms-ia64.adb | |
36470 | Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb. | |
36471 | Move to alpha specific ifeq section. | |
36472 | Add VMS specific versions of symbols.adb | |
36473 | Renaming of 5q vms files. | |
36474 | ||
36475 | * 5qsystem.ads renamed to system-vms_64.ads. | |
36476 | ||
36477 | 2004-06-07 Vincent Celier <celier@gnat.com> | |
36478 | ||
36479 | * a-calend.ads: Add a GNAT Note comment after function Time_Of to | |
36480 | explain that when a time of day corresponding to the non existing hour | |
36481 | on the day switching to DST is specified, Split may return a different | |
36482 | value for Seconds. | |
36483 | ||
36484 | * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar | |
36485 | to GNAT PRETTY. | |
36486 | ||
36487 | * g-os_lib.adb (OpenVMS): New Boolean value imported from System. | |
36488 | (Normalize_Pathname): Only resolve VMS logical names when on VMS. | |
36489 | ||
36490 | * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize | |
36491 | to False. | |
36492 | If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to | |
36493 | the linking options. | |
36494 | (Build_Library.Check_Libs): On VMS, if there is a dependency on | |
36495 | g-trasym.ads, set Gtrasymobj_Needed to True. | |
36496 | ||
36497 | * prj-attr.adb: Add new package Metrics for gnatmetric | |
36498 | ||
36499 | * prj-nmsc.adb (Record_Other_Sources): Put source file names in | |
36500 | canonical case to take into account files with upper case characters on | |
36501 | Windows. | |
36502 | (Ada_Check): Load the reference symbol file name in the name buffer to | |
36503 | check it, not the symbol file name. | |
36504 | ||
36505 | * snames.ads, snames.adb: Add standard name Metrics (name of project | |
36506 | file package for gnatmetric). | |
36507 | ||
36508 | * vms_conv.ads: Add Metric to Comment_Type | |
36509 | ||
36510 | * vms_conv.adb (Initialize): Add component dor Metric in Command_List | |
36511 | ||
36512 | * vms_data.ads: Add qualifiers for GNAT METRIC | |
36513 | ||
36514 | * makegpr.adb (Link_Executables): Take into account the switches | |
36515 | specified in package Linker of the main project. | |
36516 | ||
36517 | 2004-06-07 Thomas Quinot <quinot@act-europe.fr> | |
36518 | ||
36519 | * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so | |
36520 | the index of the last element is Units.Last, not Units.Table'Last | |
36521 | (which is usually not a valid index within the actually allocated | |
36522 | storage for the table). | |
36523 | ||
36524 | * exp_ch4.adb (Insert_Dereference_Action): Change predicate that | |
36525 | determines whether to generate a call to a checked storage pool | |
36526 | Dereference action. | |
36527 | Generate such a call only for a dereference that either comes from | |
36528 | source, or is the result of rewriting a dereference that comes from | |
36529 | source. | |
36530 | ||
36531 | 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr> | |
36532 | ||
36533 | * bindgen.adb (Gen_Output_File): Add support for GAP builds. | |
36534 | ||
36535 | 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr> | |
36536 | ||
36537 | (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at | |
36538 | file level, elaborate the stride for inner dimensions in alignment | |
36539 | units, not bytes. | |
36540 | ||
36541 | * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned | |
36542 | in a comment. | |
36543 | ||
36544 | 2004-06-07 Javier Miranda <miranda@gnat.com> | |
36545 | ||
36546 | * exp_ch6.adb: Correct wrong modification in previous patch | |
36547 | ||
36548 | 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr> | |
36549 | ||
36550 | * g-trasym.ads: Corrected comment to properly reflect level of support | |
36551 | on VMS. | |
36552 | ||
36553 | 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com> | |
36554 | ||
36555 | * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It | |
36556 | includes case of a variable referenced on the left hand side of an | |
36557 | assignment, therefore remove redundant code. Variables and prefixes of | |
36558 | indexed or selected components are now marked as referenced on left | |
36559 | hand side. Warnings are now properly emitted when variables or prefixes | |
36560 | are assigned but not read. | |
36561 | ||
36562 | * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to | |
36563 | left hand side referenced variables. Private access types do not | |
36564 | produce the warning "variable ... is assigned but never read". | |
36565 | Add also additional checks to left hand side referenced variables. | |
36566 | Aliased, renamed objects and access types do not produce the warning | |
36567 | "variable ... is assigned but never read" since other entities may read | |
36568 | the memory location. | |
36569 | ||
36570 | 2004-06-07 Jerome Guitton <guitton@act-europe.fr> | |
36571 | ||
36572 | * Makefile.in: In the powerpc/vxworks-specific section, restore | |
36573 | EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed | |
36574 | by mistake). | |
36575 | ||
36576 | 2004-06-07 Ed Schonberg <schonberg@gnat.com> | |
36577 | ||
36578 | * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of | |
36579 | predefined operators. | |
36580 | Removes spurious type errors from g-trasym-vms.adb. | |
36581 | ||
36582 | * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is | |
36583 | distinct from the operator appearing in the source, call appropriate | |
36584 | routine to insert conversions when needed, and complete resolution of | |
36585 | node. | |
36586 | (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of | |
36587 | interpretations for rewritten right operand. | |
36588 | (Set_Mixed_Mode_Operand): Handle properly a universal real operand when | |
36589 | the other operand is overloaded and the context is a type conversion. | |
36590 | ||
36591 | 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
36592 | ||
36593 | * ada-tree.def (BLOCK_STMT): Now has two operands. | |
36594 | (BREAK_STMT): New. | |
36595 | ||
36596 | * ada-tree.h: (BLOCK_STMT_BLOCK): New macro. | |
36597 | ||
36598 | * gigi.h: (gnat_poplevel): Now returns a tree. | |
36599 | ||
36600 | * trans.c (end_block_stmt): Add arg; all callers changed. | |
36601 | (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN. | |
36602 | (start_block_stmt): Clear BLOCK_STMT_BLOCK. | |
36603 | (add_stmt): Set TREE_TYPE. | |
36604 | (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK. | |
36605 | (gnat_expand_stmt, case BREAK_STMT): New case. | |
36606 | ||
36607 | * utils.c (gnat_poplevel): Return a BLOCK, if we made one. | |
36608 | ||
36609 | 2004-06-07 Jose Ruiz <ruiz@act-europe.fr> | |
36610 | ||
36611 | * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the | |
36612 | procedure Set_Stack_Size that is not needed. | |
36613 | ||
36614 | 2004-06-07 Sergey Rybin <rybin@act-europe.fr> | |
36615 | ||
36616 | * gnat_ugn.texi: Clarify the case when non-standard naming scheme is | |
36617 | used for gnatpp input file and for the files upon which it depends | |
36618 | ||
36619 | 2004-06-07 Ben Brosgol <brosgol@gnat.com> | |
36620 | ||
36621 | * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter | |
36622 | ||
36623 | 2004-06-07 Arnaud Charlet <charlet@act-europe.fr> | |
36624 | ||
36625 | * gnatvsn.ads: Bump version numbers appropriately. | |
36626 | Add new build type. | |
36627 | ||
36628 | 2004-06-07 Pascal Obry <obry@gnat.com> | |
36629 | ||
36630 | * gnat_ugn.texi: Improve comments about imported names and link names | |
36631 | on Windows. Add a note about the requirement to use -k gnatdll's option | |
36632 | when working with a DLL which has stripped stdcall symbols (no @nn | |
36633 | suffix). | |
36634 | ||
9756a605 | 36635 | 2004-05-27 Vincent Celier <celier@gnat.com> |
36636 | ||
36637 | * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and | |
36638 | COMMENTS_LAYOUT=UNTOUCHED | |
36639 | ||
36640 | * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to | |
36641 | symbols-vms-alpha.adb | |
36642 | ||
36643 | 2004-05-27 Thomas Quinot <quinot@act-europe.fr> | |
36644 | ||
36645 | * sem.ads: Clarify documentation on checks suppression. | |
36646 | ||
36647 | * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing. | |
36648 | ||
36649 | 2004-05-27 Ed Schonberg <schonberg@gnat.com> | |
36650 | ||
36651 | * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in | |
36652 | the case of multiple derivations. | |
36653 | (Is_Object_Reference): For a selected component, verify that the prefix | |
36654 | is itself an object and not a value. | |
36655 | ||
36656 | * sem_ch12.adb (Same_Instantiated_Constant): New name for | |
36657 | Same_Instantiated_Entity. | |
36658 | (Same_Instantiated_Variable): Subsidiary to | |
36659 | Check_Formal_Package_Instance, to recognize actuals for in-out generic | |
36660 | formals that are obtained from a previous formal package. | |
36661 | (Instantiate_Subprogram_Body): Emit proper error when | |
36662 | generating code and the proper body of a stub is missing. | |
36663 | ||
36664 | * sem_ch4.adb (Remove_Address_Interpretations): If the operation still | |
36665 | has a universal interpretation, do the disambiguation here. | |
36666 | ||
36667 | * exp_ch4.adb (Expand_N_Type_Conversion, | |
36668 | Expand_N_Unchecked_Type_Conversion): Special handling when target type | |
36669 | is Address, to avoid typing anomalies when Address is a visible integer | |
36670 | type. | |
36671 | ||
36672 | * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address | |
36673 | to determine whether a subprogram should not be marked Pure, even when | |
36674 | declared in a pure package. | |
36675 | ||
36676 | 2004-05-27 Jose Ruiz <ruiz@act-europe.fr> | |
36677 | ||
36678 | * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile. | |
36679 | ||
36680 | * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length | |
36681 | Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts. | |
36682 | Update the documentation about the Ravenscar profile, following the | |
36683 | definition found in AI-249. | |
36684 | ||
36685 | * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when | |
36686 | setting the Profile (Ravenscar). This must be done in addition to | |
36687 | setting the required restrictions. | |
36688 | ||
36689 | * rtsfind.ads: Add the set of operations defined in package | |
36690 | Ada.Interrupts. | |
36691 | ||
36692 | * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment | |
36693 | restriction. | |
36694 | ||
36695 | 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr> | |
36696 | ||
36697 | lang-specs.h: Always require -c or -S and always redirect to /dev/null | |
36698 | if -gnatc or -gnats is passed. | |
36699 | ||
36700 | 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com> | |
36701 | ||
36702 | * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as | |
36703 | a significant reference. Warnings are now properly emitted when a | |
36704 | discriminated type is not referenced. | |
36705 | ||
36706 | * lib-xref.adb (Generate_Reference): A deferred constant completion, | |
36707 | record representation clause or record type discriminant does not | |
36708 | produce a reference to its corresponding entity. Warnings are now | |
36709 | properly emitted when deferred constants and record types are not | |
36710 | referenced. | |
36711 | ||
36712 | 2004-05-27 Geert Bosch <bosch@gnat.com> | |
36713 | ||
36714 | * Makefile.in: Use long version of libm routines on ia64 gnu/linux. | |
36715 | Fixes ACATS Annex G tests. | |
36716 | ||
36717 | 2004-05-27 Robert Dewar <dewar@gnat.com> | |
36718 | ||
36719 | * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not | |
36720 | handling WITH | |
36721 | ||
36722 | 2004-05-27 Arnaud Charlet <charlet@act-europe.fr> | |
36723 | ||
36724 | * s-interr.adb (Server_Task): Take into account case of early return | |
36725 | from sigwait under e.g. linux. | |
36726 | ||
36727 | 2004-05-27 Sergey Rybin <rybin@act-europe.fr> | |
36728 | ||
36729 | * gnat_ugn.texi: Add description for the new gnatpp options: | |
36730 | -rnb - replace the original source without creating its backup copy | |
36731 | -c0 - do not format comments | |
36732 | ||
5b941af6 | 36733 | 2004-05-24 Geert Bosch <bosch@gnat.com> |
36734 | ||
36735 | * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi | |
36736 | with 192 bits of precision, sufficient to reduce a double-extended | |
36737 | arguments X with a maximum relative error of T'Machine_Epsilon, for X | |
36738 | in -2.0**32 .. 2.0**32. | |
36739 | (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent | |
36740 | reduction by the processor, which only uses a 68-bit approximation of | |
36741 | Pi. | |
36742 | (Tan): Always reduce arguments and compute function either using | |
36743 | the processor's fptan instruction, or by dividing sin and cos as needed. | |
36744 | ||
36745 | 2004-05-24 Doug Rupp <rupp@gnat.com> | |
36746 | ||
36747 | * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid | |
36748 | gcc error on 32/64 bit VMS. | |
36749 | ||
36750 | 2004-05-24 Olivier Hainque <hainque@act-europe.fr> | |
36751 | ||
36752 | * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs, | |
36753 | since this is what we get for stack overflows although not documented | |
36754 | as such. | |
36755 | Document the issues which may require adjustments to our signal | |
36756 | handlers. | |
36757 | ||
36758 | 2004-05-24 Ed Schonberg <schonberg@gnat.com> | |
36759 | ||
36760 | * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the | |
36761 | enclosing dynamic scope if the instantiation is within a generic unit. | |
36762 | ||
36763 | 2004-05-24 Arnaud Charlet <charlet@act-europe.fr> | |
36764 | ||
36765 | * exp_dbug.ads: Fix typo. | |
36766 | ||
36767 | * Makefile.in: s-osinte-linux-ia64.ads was misnamed. | |
36768 | Rename it to its proper name: system-linux-ia64.ads | |
36769 | (stamp-gnatlib1): Remove extra target specific run time files when | |
36770 | setting up the rts directory. | |
36771 | ||
36772 | 2004-05-24 Javier Miranda <miranda@gnat.com> | |
36773 | ||
36774 | * einfo.ads, einfo.adb (Limited_Views): Removed. | |
36775 | (Limited_View): New attribute that replaces the previous one. It is | |
36776 | now a bona fide package with the limited-view list through the | |
36777 | first_entity and first_private attributes. | |
36778 | ||
36779 | * sem_ch10.adb (Install_Private_With_Clauses): Give support to | |
36780 | limited-private-with clause. | |
36781 | (Install_Limited_Withed_Unit): Install the private declarations of a | |
36782 | limited-private-withed package. Update the installation of the shadow | |
36783 | entities according to the new structure (see Build_Limited_Views) | |
36784 | (Build_Limited_Views): Replace the previous implementation of the | |
36785 | limited view by a package entity that references the first shadow | |
36786 | entity plus the first shadow private entity (required for limited- | |
36787 | private-with clause) | |
36788 | (New_Internal_Shadow_Entity): Code cleanup. | |
36789 | (Remove_Limited_With_Clause): Update the implementation to undo the | |
36790 | new work carried out by Build_Limited_Views. | |
36791 | (Build_Chain): Complete documentation. | |
36792 | Replace Ada0Y by Ada 0Y in comments | |
36793 | Minor reformating | |
36794 | ||
36795 | * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access | |
36796 | types the level of accessibility depends on the enclosing type | |
36797 | declaration. | |
36798 | ||
36799 | * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow | |
36800 | entities. Complete documentation of previous change. | |
36801 | ||
36802 | 2004-05-24 Robert Dewar <dewar@gnat.com> | |
36803 | ||
36804 | * namet.adb: Minor reformatting | |
36805 | Avoid use of name I (replace by J) | |
36806 | Minor code restructuring | |
36807 | ||
36808 | * sem_ch6.adb: Minor reformatting | |
36809 | ||
36810 | * lib-writ.adb: Do not set restriction as active if this is a | |
36811 | Restriction_Warning case. | |
36812 | ||
36813 | * sem_prag.adb: Reset restriction warning flag if real pragma | |
36814 | restriction encountered. | |
36815 | ||
36816 | * s-htable.adb: Minor reformatting | |
36817 | Change rotate count to 3 in Hash (improves hash for small strings) | |
36818 | ||
36819 | * 5qsystem.ads: Add comments for type Address (no literals allowed). | |
36820 | ||
36821 | * gnat_ugn.texi: Add new section of documentation "Code Generation | |
36822 | Control", which describes the use of -m switches. | |
36823 | ||
36824 | 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr> | |
36825 | ||
fe8fb39d | 36826 | trans.c (tree_transform) <N_Identifier>: Do the dereference directly |
36827 | through the DECL_INITIAL for renamed variables. | |
5b941af6 | 36828 | |
cba878cd | 36829 | 2004-05-24 Arnaud Charlet <charlet@act-europe.fr> |
36830 | ||
36831 | * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads | |
36832 | ||
9fb1fcd1 | 36833 | 2004-05-19 Joel Brobecker <brobecker@gnat.com> |
36834 | ||
36835 | * exp_dbug.ads: Correct comments concerning handling of overloading, | |
36836 | since we no longer use $ anymore. | |
36837 | ||
36838 | 2004-05-19 Sergey Rybin <rybin@act-europe.fr> | |
36839 | ||
36840 | * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not | |
36841 | ignore errors if ASIS_Mode is set. This prevents creating ASIS trees | |
36842 | with illegal subunits. | |
36843 | ||
36844 | 2004-05-19 Ed Schonberg <schonberg@gnat.com> | |
36845 | ||
36846 | * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram | |
36847 | body with front-end inlining enabled, check whether an inline pragma | |
36848 | appears immediately after the body and applies to it. | |
36849 | ||
36850 | * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is | |
36851 | enabled and the pragma appears after the body of the subprogram. | |
36852 | ||
7f9be362 | 36853 | 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> |
36854 | ||
36855 | Part of function-at-a-time conversion | |
36856 | ||
36857 | * misc.c (adjust_decl_rtl): Deleted. | |
36858 | (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): | |
36859 | Define. | |
36860 | ||
36861 | * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted. | |
36862 | (add_decl_stmt, add_stmt, block_has_vars): New functions. | |
36863 | (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel. | |
36864 | ||
36865 | * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt | |
36866 | when making a decl. | |
36867 | (gnat_to_gnu_entity): Likewise. | |
36868 | Use add_stmt to update setjmp buffer. | |
36869 | Set TREE_ADDRESSABLE instead of calling put_var_into_stack and | |
36870 | flush_addressof. | |
36871 | No longer call adjust_decl_rtl. | |
36872 | (DECL_INIT_BY_ASSIGN_P): New macro. | |
36873 | (DECL_STMT_VAR): Likewise. | |
36874 | ||
36875 | * trans.c (gigi): Call start_block_stmt to make the outermost | |
36876 | BLOCK_STMT. | |
36877 | (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type): | |
36878 | Call start_block_stmt and end_block_stmt temporarily. | |
36879 | Use gnat_expand_stmt instead of expand_expr_stmt. | |
36880 | (add_decl_stmt): New function. | |
36881 | (tree_transform): Call it. | |
36882 | (add_stmt): Also emit initializing assignment for DECL_STMT if needed. | |
36883 | (end_block_stmt): Set type and NULL_STMT. | |
36884 | (gnat_expand_stmt): Make recursize call instead of calling | |
36885 | expand_expr_stmt. | |
36886 | (gnat_expand_stmt, case DECL_STMT): New case. | |
36887 | (set_lineno_from_sloc): Do nothing if global. | |
36888 | (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables. | |
36889 | (start_block_stmt, add_stmt, end_block_stmt): New functions. | |
36890 | (build_block_stmt): Call them. | |
36891 | (gnat_to_code): Don't expand NULL_STMT. | |
36892 | (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change | |
36893 | args. | |
36894 | (tree_transform): Likewise. | |
36895 | (tree_transform, case N_Null_Statement): Return NULL_STMT. | |
36896 | (gnat_expand_stmt, case NULL_STMT): New case. | |
36897 | (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no | |
36898 | IF_STMT_TRUE. | |
36899 | ||
36900 | * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set | |
36901 | TREE_ADDRESSABLE. | |
36902 | ||
36903 | * utils.c (create_var_decl): Do not call expand_decl or | |
36904 | expand_decl_init. | |
36905 | Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable. | |
36906 | Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR | |
36907 | here. | |
36908 | (struct e_stack): Add chain_next to GTY. | |
36909 | (struct binding_level): Deleted. | |
36910 | (struct ada_binding_level): New struct. | |
36911 | (free_block_chain): New. | |
36912 | (global_binding_level, clear_binding_level): Deleted. | |
36913 | (global_bindings_p): Rework to see if no chain. | |
36914 | (kept_level_p, set_block): Deleted. | |
36915 | (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use | |
36916 | new data structure and work directly on BLOCK node. | |
36917 | (gnat_poplevel): Similarly. | |
36918 | (get_decls): Look at BLOCK_VARS. | |
36919 | (insert_block): Work directly on BLOCK node. | |
36920 | (block_has_var): New function. | |
36921 | (pushdecl): Rework for new binding structures. | |
36922 | (gnat_init_decl_processing): Rename and rework calls to pushlevel and | |
36923 | poplevel. | |
36924 | (build_subprog_body): Likewise. | |
36925 | (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL. | |
36926 | ||
36927 | * ada-tree.def (DECL_STMT, NULL_STMT): New codes. | |
36928 | ||
36929 | * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro. | |
36930 | (DECL_STMT_VAR): Likewise. | |
36931 | ||
36932 | 2004-05-17 Robert Dewar <dewar@gnat.com> | |
36933 | ||
36934 | * restrict.ads, restrict.adb (Process_Restriction_Synonym): New | |
36935 | procedure | |
36936 | ||
36937 | * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling | |
36938 | of restriction synonyums by using | |
36939 | Restrict.Process_Restriction_Synonyms. | |
36940 | ||
36941 | * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym | |
36942 | ||
36943 | * s-restri.ads (Tasking_Allowed): Correct missing comment | |
36944 | ||
36945 | * s-rident.ads: Add entries for restriction synonyms | |
36946 | ||
36947 | * ali.adb: Fix some problems with badly formatted ALI files that can | |
36948 | result in infinite loops. | |
36949 | ||
36950 | * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb, | |
36951 | s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb, | |
36952 | s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb, | |
36953 | s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb, | |
36954 | s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb, | |
36955 | s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb, | |
36956 | s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb, | |
36957 | s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb, | |
36958 | s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb, | |
36959 | a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb, | |
36960 | exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb, | |
36961 | s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb, | |
36962 | s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads, | |
36963 | s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, | |
36964 | s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads, | |
36965 | s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads, | |
36966 | s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads, | |
36967 | s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads, | |
36968 | s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb, | |
36969 | s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID | |
36970 | to Task_Id (minor cleanup). | |
36971 | ||
36972 | 2004-05-17 Vincent Celier <celier@gnat.com> | |
36973 | ||
36974 | * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing | |
36975 | directory separator. | |
36976 | ||
36977 | * prj-proc.adb (Recursive_Process): Inherit attribute Languages from | |
36978 | project being extended, if Languages is not declared in extending | |
36979 | project. | |
36980 | ||
36981 | 2004-05-17 Javier Miranda <miranda@gnat.com> | |
36982 | ||
36983 | * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the | |
36984 | limited view of a visible sibling. | |
36985 | ||
e27c85d0 | 36986 | 2004-05-14 Robert Dewar <dewar@gnat.com> |
36987 | ||
36988 | * gnat_ugn.texi: Minor change to -gnatS documentation | |
36989 | ||
36990 | * sprint.adb: Remove some instances of Assert (False) and for this | |
36991 | purpose replace them by output of a ??? string. | |
36992 | ||
36993 | * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma | |
36994 | Assert (False). | |
36995 | ||
36996 | * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit | |
36997 | flag processing. This was suppressing required dependencies in | |
36998 | No_Run_Time mode and is not needed since the binder does not generate | |
36999 | references for things in libgnat anyway. | |
37000 | ||
37001 | * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC | |
37002 | warning. | |
37003 | ||
37004 | 2004-05-14 Thomas Quinot <quinot@act-europe.fr> | |
37005 | ||
37006 | * gnat_ugn.texi: Document AIX-specific issue with initialization of | |
37007 | resolver library. | |
37008 | ||
37009 | * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference | |
37010 | action for the case of an actual parameter in an init proc call. | |
37011 | ||
37012 | 2004-05-14 Ed Schonberg <schonberg@gnat.com> | |
37013 | ||
37014 | * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected | |
37015 | subtype, check visible entities in base type. | |
37016 | ||
37017 | * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup | |
37018 | actions if the object is a renaming. | |
37019 | ||
37020 | * sem_ch12.adb (Same_Instantiated_Entity): Predicate for | |
37021 | Check_Formal_Package_Instance, to determine more precisely when the | |
37022 | formal and the actual denote the same entity. | |
37023 | ||
37024 | 2004-05-14 Javier Miranda <miranda@gnat.com> | |
37025 | ||
37026 | * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262 | |
37027 | ||
37028 | * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity | |
37029 | corresponding to a private_with must be removed from visibility; it | |
37030 | will be made visible later, just before we analyze the private part of | |
37031 | the package. | |
37032 | (Check_Private_Child_Unit): Allow private_with clauses in public | |
37033 | siblings. | |
37034 | (Install_Siblings): Make visible the private entities of private-withed | |
37035 | siblings. | |
37036 | (Install_Withed_Unit): Do not install the private withed unit if we | |
37037 | are compiling a package declaration and the Private_With_OK flag was | |
37038 | not set by the caller. These declarations will be installed later, | |
37039 | just before we analyze the private part of the package. | |
37040 | ||
37041 | * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected | |
37042 | during the evaluation of the expression that initializes the object, | |
37043 | decorate it with the expected type to avoid cascade errors. | |
37044 | Code cleanup. | |
37045 | ||
37046 | * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library | |
37047 | subprogram we have to install the private_with clauses after its | |
37048 | specification has been analyzed (as documented in AI-262.TXT). | |
37049 | ||
37050 | * sem_ch8.adb (Has_Private_With): New function. Determines if the | |
37051 | current compilation unit has a private with on a given entity. | |
37052 | (Find_Direct_Name): Detect the Beaujolais problem described in | |
37053 | AI-262.TXT | |
37054 | ||
37055 | * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It | |
37056 | provides the functionality of the function Is_Ancestor that was | |
37057 | previously available in sem_ch10. It has been renamed to avoid | |
37058 | overloading. | |
37059 | ||
37060 | * sprint.adb (Sprint_Node_Actual): Print limited_with clauses | |
37061 | ||
37062 | 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
37063 | ||
37064 | * utils.c (build_vms_descriptor): Use SImode pointers. | |
37065 | ||
37066 | 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr> | |
37067 | ||
37068 | * gnat_ugn.texi: Revised chapter "GNAT and Libraries". | |
37069 | ||
37070 | 2004-05-14 GNAT Script <nobody@gnat.com> | |
37071 | ||
37072 | * Make-lang.in: Makefile automatically updated | |
37073 | ||
3e55413d | 37074 | 2004-05-14 Arnaud Charlet <charlet@act-europe.fr> |
37075 | ||
37076 | Renaming of target specific files for clarity | |
37077 | ||
ce45a448 | 37078 | * Makefile.in: Rename GNAT target specific files. |
3e55413d | 37079 | |
37080 | * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads, | |
37081 | 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads, | |
37082 | 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb, | |
37083 | 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, | |
37084 | 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads, | |
37085 | 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads, | |
37086 | 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads, | |
37087 | 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads, | |
37088 | 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, | |
37089 | 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads, | |
37090 | 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads, | |
37091 | 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads, | |
37092 | 51osinte.adb, 51osinte.ads, 51system.ads, | |
37093 | 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads, | |
37094 | 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb, | |
37095 | 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads, | |
37096 | 56tpopsp.adb, 57system.ads, 58system.ads, | |
37097 | 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads, | |
37098 | 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, | |
37099 | 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb, | |
37100 | 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads, | |
37101 | 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb, | |
37102 | 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads, | |
37103 | 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb, | |
37104 | 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads, | |
37105 | 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb, | |
37106 | 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads, | |
37107 | 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, | |
37108 | 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, | |
37109 | 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads, | |
37110 | 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads, | |
37111 | 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads, | |
37112 | 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb, | |
37113 | 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb, | |
37114 | 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads, | |
37115 | 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb, | |
37116 | 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb, | |
37117 | 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb, | |
37118 | 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads, | |
37119 | 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb, | |
37120 | 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads, | |
37121 | 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads, | |
37122 | 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb, | |
37123 | 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb, | |
37124 | 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb, | |
37125 | 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb, | |
37126 | 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads, | |
37127 | 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads, | |
37128 | 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb, | |
37129 | 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb, | |
37130 | 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb, | |
37131 | 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb, | |
37132 | 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, | |
37133 | 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb, | |
37134 | 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb, | |
37135 | 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads, | |
37136 | 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below. | |
37137 | ||
37138 | * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb, | |
37139 | a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb, | |
37140 | a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads, | |
37141 | a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads, | |
37142 | a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads, | |
37143 | a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads, | |
37144 | a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads, | |
37145 | a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads, | |
37146 | a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads, | |
37147 | a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb, | |
37148 | g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads, | |
37149 | g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads, | |
37150 | g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads, | |
37151 | g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads, | |
37152 | g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb, | |
37153 | g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads, | |
37154 | g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads, | |
37155 | g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb, | |
37156 | interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb, | |
37157 | mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb, | |
37158 | mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb, | |
37159 | mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb, | |
37160 | s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb, | |
37161 | s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb, | |
37162 | s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb, | |
37163 | s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb, | |
37164 | s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads, | |
37165 | s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb, | |
37166 | s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb, | |
37167 | s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads, | |
37168 | s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb, | |
37169 | s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads, | |
37170 | s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads, | |
37171 | s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads, | |
37172 | s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads, | |
37173 | s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb, | |
37174 | s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb, | |
37175 | s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb, | |
37176 | s-osinte-solaris.ads, s-osinte-solaris-fsu.ads, | |
37177 | s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads, | |
37178 | s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb, | |
37179 | s-osinte-vms.ads, s-osinte-vxworks.adb, | |
37180 | s-osinte-vxworks.ads, s-osprim-mingw.adb, | |
37181 | s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb, | |
37182 | s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads, | |
37183 | s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads, | |
37184 | s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb, | |
37185 | s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads, | |
37186 | s-proinf-irix-athread.adb, s-proinf-irix-athread.ads, | |
37187 | s-stchop-vxworks.adb, s-taprop-dummy.adb, | |
37188 | s-taprop-hpux-dce.adb, s-taprop-irix.adb, | |
37189 | s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb, | |
37190 | s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb, | |
37191 | s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb, | |
37192 | s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb, | |
37193 | s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads, | |
37194 | s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads, | |
37195 | s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads, | |
37196 | s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads, | |
37197 | s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads, | |
37198 | s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb, | |
37199 | s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb, | |
37200 | s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb, | |
37201 | s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb, | |
37202 | s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb, | |
37203 | s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb, | |
37204 | s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads, | |
37205 | s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads, | |
37206 | symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads, | |
37207 | system-hpux.ads, system-interix.ads, system-irix-n32.ads, | |
37208 | system-irix-o32.ads, system-linux-x86_64.ads, | |
37209 | system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads, | |
37210 | system-mingw.ads, system-os2.ads, system-solaris-sparc.ads, | |
37211 | system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads, | |
37212 | system-unixware.ads, system-vms.ads, system-vms-zcx.ads, | |
37213 | system-vxworks-alpha.ads, system-vxworks-m68k.ads, | |
37214 | system-vxworks-mips.ads, system-vxworks-ppc.ads, | |
37215 | system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files | |
37216 | above. | |
37217 | ||
1acf0298 | 37218 | 2004-05-13 Zack Weinberg <zack@codesourcery.com> |
37219 | ||
37220 | * trans.c (gnat_stabilize_reference_1): Remove case 'b'. | |
37221 | ||
4ee9c684 | 37222 | 2004-05-13 Diego Novillo <dnovillo@redhat.com> |
37223 | ||
37224 | Merge from tree-ssa-20020619-branch. | |
37225 | ||
37226 | * config-lang.in (boot_language, build_by_default): Set | |
37227 | to no. | |
37228 | * utils.c (unchecked_convert): Use OEP_ONLY_CONST. | |
37229 | (max_size): Add static chain op for call_expr. | |
37230 | ||
e960b69a | 37231 | 2004-05-12 Richard Sandiford <rsandifo@redhat.com> |
37232 | ||
37233 | PR target/15331 | |
37234 | * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '. | |
37235 | ||
d237b94b | 37236 | 2004-05-11 Roger Sayle <roger@eyesopen.com> |
37237 | ||
37238 | * utils.c (max_size): Use MIN_EXPR to find the minimum value of a | |
37239 | COND_EXPR. | |
37240 | ||
e161d1a3 | 37241 | 2004-05-10 Doug Rupp <rupp@gnat.com> |
37242 | ||
37243 | * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to | |
37244 | system.aux_dec. | |
37245 | ||
37246 | * s-auxdec.ads: Add Short_Address subtype (moved here from System). | |
37247 | ||
37248 | * Makefile.in: [VMS]: Add translation for 5qauxdec.ads. | |
37249 | ||
37250 | * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha. | |
37251 | Fixes undefined symbols in IA64 gnatlib. | |
37252 | ||
37253 | * 5vinmaop.adb: Reference s-auxdec for Short_Address. | |
37254 | ||
37255 | * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype | |
37256 | Short_Address). This will be moved to system.auxdec. | |
37257 | ||
37258 | 2004-05-10 Thomas Quinot <quinot@act-europe.fr> | |
37259 | ||
37260 | * sem_util.adb: Replace test for presence of a node that is always | |
37261 | present with a call to Discard_Node. | |
37262 | ||
37263 | * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to | |
37264 | Analyze on the library unit node after generation of distribution stub | |
37265 | constructs. The call was a no-op because Unit_Node has already been | |
37266 | Analyzed, and the tree fragments for the distribution stubs are | |
37267 | analyzed as they are inserted in Exp_Dist. | |
37268 | Update comment regarding to distribution stubs to reflect that we | |
37269 | do not generate stub in separate files anymore. | |
37270 | ||
37271 | * einfo.ads: Clarify the fact that a tagged private type has the | |
37272 | E_Record_Type_With_Private Ekind. | |
37273 | ||
37274 | * erroutc.adb: Minor reformatting | |
37275 | ||
37276 | * erroutc.ads (Max_Msg_Length): Increase to cover possible larger | |
37277 | values if line length is increased using -gnatyM (noticed during code | |
37278 | reading). | |
37279 | ||
37280 | * eval_fat.adb: Minor reformatting | |
37281 | Put spaces around exponentiation operator | |
37282 | ||
37283 | 2004-05-10 Ed Schonberg <schonberg@gnat.com> | |
37284 | ||
37285 | PR ada/15005 | |
37286 | * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix | |
37287 | has been rewritten as an explicit dereference, retrieve type of | |
37288 | original node to check for possibly unconstrained record type. | |
37289 | ||
37290 | 2004-05-10 Ed Schonberg <schonberg@gnat.com> | |
37291 | ||
37292 | * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not | |
37293 | overriding, use the operation of the parent unconditionally. | |
37294 | ||
37295 | * sem_ch4.adb (Remove_Address_Interpretations): Remove address | |
37296 | operation when either operand is a literal, to avoid further | |
37297 | ambiguities. | |
37298 | ||
37299 | * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and | |
37300 | overridden by a previous explicit declaration, mark the previous entity | |
37301 | as overriding. | |
37302 | ||
37303 | * sem_disp.adb (Check_Dispatching_Operation): New predicate | |
37304 | Is_Visibly_Controlled, to determine whether a declaration of a | |
37305 | primitive control operation for a derived type overrides an inherited | |
37306 | one. Add warning if the explicit declaration does not override. | |
37307 | ||
37308 | 2004-05-10 Vincent Celier <celier@gnat.com> | |
37309 | ||
37310 | * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in | |
37311 | some cases when the sources are no longer present. | |
37312 | ||
37313 | * make.adb (Collect_Arguments): Fail if an external source, not part | |
37314 | of any project need to be compiled, when switch -x has not been | |
37315 | specified. | |
37316 | ||
37317 | * makeusg.adb: Document new switch -x | |
37318 | ||
37319 | * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag, | |
37320 | defaulted to False. | |
37321 | ||
37322 | * switch-m.adb (Scan_Make_Switches): New switch -x | |
37323 | ||
37324 | * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for | |
37325 | gnatmake switch -x. | |
37326 | ||
37327 | * gnat_ugn.texi: Document new gnatmake switch -x | |
37328 | ||
37329 | 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr> | |
37330 | ||
37331 | * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0. | |
37332 | ||
37333 | * utils.c (create_var_decl): Do not modify the DECL_COMMON flag. | |
37334 | (process_attributes): Likewise. | |
37335 | ||
37336 | 2004-05-10 Joel Brobecker <brobecker@gnat.com> | |
37337 | ||
37338 | * s-inmaop.ads: Fix spelling mistake in one of the comments. | |
37339 | ||
37340 | 2004-05-10 Robert Dewar <dewar@gnat.com> | |
37341 | ||
37342 | * gnat_ugn.texi: Document that for config pragma files, the maximum | |
37343 | line length is always 32767. | |
37344 | ||
37345 | * gnat_rm.texi: For pragma Eliminate, note that concatenation of string | |
37346 | literals is now allowed. | |
37347 | ||
37348 | * gnat-style.texi: Remove statement about splitting long lines before | |
37349 | an operator rather than after, since we do not follow this rule at all. | |
37350 | Clarify rule (really lack of rule) for spaces around exponentiation | |
37351 | ||
37352 | * sem_elim.adb: Allow concatenation of string literals as well as a | |
37353 | single string literal for pragma arguments. | |
37354 | ||
37355 | * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function | |
37356 | ||
37357 | * a-textio.adb (Terminate_Line): Do not add line feed if nothing | |
37358 | written for append case. | |
37359 | ||
37360 | * frontend.adb: Changes to avoid checking max line length in config | |
37361 | pragma files. | |
37362 | ||
37363 | * g-os_lib.ads: Minor reformatting | |
37364 | ||
37365 | * mlib-utl.adb: Do not define Max_Line_Length locally (definition was | |
37366 | wrong in any case. Instead use standard value. Noticed during code | |
37367 | reading. | |
37368 | ||
37369 | * opt.ads (Max_Line_Length): New field, used to implement removal of | |
37370 | limitation on length of lines when scanning config pragma files. | |
37371 | ||
37372 | * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb, | |
37373 | makeutl.ads, makeutl.adb: Minor reformatting | |
37374 | ||
37375 | * scn.adb: Do not check line length while scanning config pragma files | |
37376 | Do not check line length while scanning out license information | |
37377 | ||
37378 | * scng.adb: Changes to avoid line length checks while parsing config | |
37379 | pragma files. | |
37380 | ||
37381 | 2004-05-10 GNAT Script <nobody@gnat.com> | |
37382 | ||
37383 | * Make-lang.in: Makefile automatically updated | |
37384 | ||
71a2f03f | 37385 | 2004-05-05 Arnaud Charlet <charlet@act-europe.fr> |
37386 | ||
37387 | * osint.adb (Find_Program_Name): Fix handling of VMS version | |
37388 | number. | |
37389 | ||
1bbc9831 | 37390 | 2004-05-05 Emmanuel Briot <briot@act-europe.fr> |
37391 | ||
37392 | * g-os_lib.ads (Invalid_Time): New constant | |
37393 | ||
37394 | * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now | |
37395 | return OS_Time instead of time_t to match what is imported by Ada. | |
37396 | Now return -1 if the file doesn't exist, instead of a random value | |
37397 | ||
37398 | 2004-05-05 Robert Dewar <dewar@gnat.com> | |
37399 | ||
37400 | * usage.adb: Add line for -gnatR?s switch | |
37401 | ||
37402 | * sem_ch13.adb, exp_ch2.adb: Minor reformatting | |
37403 | ||
37404 | * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size | |
37405 | and for Match (Data_First, Data_last) | |
37406 | ||
37407 | * lib-writ.adb (Write_With_Lines): Ensure that correct index number is | |
37408 | written when we are dealing with multi-unit files. | |
37409 | ||
37410 | 2004-05-05 Jerome Guitton <guitton@act-europe.fr> | |
37411 | ||
37412 | * Makefile.in: Remove unused targets and variables. | |
37413 | ||
37414 | 2004-05-05 Vincent Celier <celier@gnat.com> | |
37415 | ||
37416 | * switch-m.adb: New gnatmake switch -eI | |
37417 | ||
37418 | * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and | |
37419 | of new gnatmake switch -eInnn. | |
37420 | ||
37421 | * makegpr.adb: Take into account new parameters Index and Src_Index in | |
37422 | Prj.Util. | |
37423 | ||
37424 | * clean.adb: Implement support for multi-unit sources, including new | |
37425 | switch -i. | |
37426 | ||
37427 | * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter | |
37428 | Src_Index. | |
37429 | ||
37430 | * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0 | |
37431 | (Extract_From_Q): New out parameter Index | |
37432 | (Mark, Is_Marked): Subprograms moved to Makeutl | |
37433 | (Switches_Of): New parameter Source_Index | |
37434 | (Add_Switch): New parameter Index | |
37435 | (Check): New parameter Source_Index | |
37436 | (Collect_Arguments): New parameter Source_Index | |
37437 | (Collect_Arguments_And_Compile): New parameter Source_Index | |
37438 | (Compile): New parameter Source_Index | |
37439 | Put subprograms in alphabetical order | |
37440 | Add support for multi-source sources, including in project files. | |
37441 | ||
37442 | * makeutl.ads, makeutl.adb (Unit_Index_Of): New function | |
37443 | (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from | |
37444 | Make. | |
37445 | ||
37446 | * makeusg.adb: New gnatmake switch -eInnn | |
37447 | ||
37448 | * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to | |
37449 | Prj.Util.Value_Of. | |
37450 | ||
37451 | * opt.ads (Main_Index): New variable, defaulted to 0. | |
37452 | ||
37453 | * osint.ads, osinte.adb (Add_File): New parameter Index | |
37454 | (Current_Source_Index): New function | |
37455 | ||
37456 | * prj.adb: Take into account new components Index and Src_Index | |
37457 | ||
37458 | * prj.ads (String_Element): New component Index | |
37459 | (Variable_Value): New component Index | |
37460 | (Array_Element): New component Src_Index | |
37461 | ||
37462 | * prj-attr.adb: Indicate that optional index may be specified for | |
37463 | attributes Main, Executable, Spec, Body and some of Switches. | |
37464 | ||
37465 | * prj-attr.ads (Attribute_Kind): New values for optional indexes | |
37466 | (Attribute_Record): New component Optional_Index | |
37467 | ||
37468 | * prj-com.ads (File_Name_Data): New component Index | |
37469 | ||
37470 | * prj-dect.adb (Parse_Attribute_Declaration): Process optional index | |
37471 | ||
37472 | * prj-env.adb (Put): Output optional index | |
37473 | ||
37474 | * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and | |
37475 | attributes Spec and Body. | |
37476 | ||
37477 | * prj-nmsc.adb: Process optional indexes | |
37478 | ||
37479 | * prj-pp.adb: Ouput "at" for optional indexes | |
37480 | ||
37481 | * prj-proc.adb: Take into account optional indexes | |
37482 | ||
37483 | * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter | |
37484 | Optional_Index. For string literal, | |
37485 | process optional index when Optional_Index is True. | |
37486 | (Parse_Expresion): New Boolean parameter Optional_Index | |
37487 | ||
37488 | * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function | |
37489 | (Set_Source_Index_Of): New procedure | |
37490 | ||
37491 | * prj-util.adb (Executable_Of, Value_Of): Take into account optional | |
37492 | index. | |
37493 | ||
37494 | * prj-util.ads (Executable_Of): New parameter Index | |
37495 | (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value): | |
37496 | New parameter Src_Index, defaulted to 0. | |
37497 | ||
37498 | 2004-05-05 Ed Schonberg <schonberg@gnat.com> | |
37499 | ||
37500 | PR ada/15257 | |
37501 | * sem_ch3.adb (Access_Definition): If this is an access parameter | |
37502 | whose designated type is imported through a limited_with clause, do | |
37503 | not add the enclosing subprogram to the list of private dependents of | |
37504 | the type. | |
37505 | ||
37506 | 2004-05-05 Ed Schonberg <schonberg@gnat.com> | |
37507 | ||
37508 | PR ada/15258 | |
37509 | * sem_ch6.adb (Base_Types_Match): True if one type is imported through | |
37510 | a limited_with clause, and the other is its non-limited view. | |
37511 | ||
37512 | 2004-05-05 Thomas Quinot <quinot@act-europe.fr> | |
37513 | ||
37514 | * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals. | |
37515 | ||
1acf0298 | 37516 | * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb, |
1bbc9831 | 37517 | exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use |
37518 | Stand.Boolean_Literals to produce references to entities | |
37519 | Standard_False and Standard_True from compile-time computed boolean | |
37520 | values. | |
37521 | ||
37522 | * stand.ads (Boolean_Literals): New variable, provides the entity | |
37523 | values for False and True, for use by the expander. | |
37524 | ||
37525 | 2004-05-05 Doug Rupp <rupp@gnat.com> | |
37526 | ||
37527 | * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype | |
37528 | 5vinmaop.adb: Unchecked convert Short_Address vice Address | |
37529 | ||
37530 | * adaint.c, raise.c: Caste CRTL function return value | |
37531 | to avoid gcc error on 32/64 bit IVMS. | |
37532 | ||
37533 | * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and | |
37534 | target = IA64/VMS. | |
37535 | ||
37536 | * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS. | |
37537 | ||
37538 | * 5qsystem.ads (Address): Declare as Long_Integer | |
37539 | (Short_Address): Declare as 32 bit subtype of Address | |
37540 | Declare abstract address operations to avoid gratuitous ambiguities. | |
37541 | ||
37542 | 2004-05-05 Jose Ruiz <ruiz@act-europe.fr> | |
37543 | ||
37544 | * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249) | |
37545 | instead of the old Boolean_Entry_Barriers. | |
37546 | Ditto for No_Task_Attributes_Package instead of No_Task_Attributes. | |
37547 | ||
37548 | 2004-05-05 GNAT Script <nobody@gnat.com> | |
37549 | ||
37550 | * Make-lang.in: Makefile automatically updated | |
37551 | ||
07dfba85 | 37552 | 2004-05-03 Arnaud Charlet <charlet@act-europe.fr> |
37553 | ||
37554 | * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used. | |
37555 | ||
93735cb8 | 37556 | 2004-05-03 Olivier Hainque <hainque@act-europe.fr> |
37557 | ||
37558 | PR ada/15152 | |
93735cb8 | 37559 | * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments |
37560 | alone. Replacing object references by literals is inappropriate in a | |
37561 | so low level context. | |
37562 | ||
37563 | 2004-05-03 Arnaud Charlet <charlet@act-europe.fr> | |
37564 | ||
37565 | * a-exexpr.adb: Add comments | |
37566 | ||
37567 | 2004-05-03 Joel Brobecker <brobecker@gnat.com> | |
37568 | ||
37569 | * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to | |
37570 | declare the Ancestor_Tags array in Type_Specific_Data with a small size | |
37571 | without risking a bounds check error when accessing one of its | |
37572 | components. | |
37573 | (Type_Specific_Data): Define Ancestor_Tags as a small array. | |
37574 | This prevents us from hitting a limitation during the debug info | |
37575 | generation when using stabs. | |
37576 | ||
37577 | * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a | |
37578 | small array. | |
37579 | This prevents us from hitting a limitation during the debug info | |
37580 | generation when using stabs. | |
37581 | ||
37582 | 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr> | |
37583 | ||
37584 | lang-specs.h: Remove -gnatz* from specs. | |
37585 | ||
37586 | 2004-05-03 Vincent Celier <celier@gnat.com> | |
37587 | ||
37588 | * gprmake.adb, makegpr.ads, makegpr.adb: New files. | |
37589 | ||
37590 | * Make-lang.in, Makefile.in: Add gprmake | |
37591 | ||
37592 | 2004-05-03 Thomas Quinot <quinot@act-europe.fr> | |
37593 | ||
37594 | * sem_aggr.adb: Fix typo in comment. | |
37595 | ||
37596 | 2004-05-03 Robert Dewar <dewar@gnat.com> | |
37597 | ||
37598 | * make.adb: Minor reformatting | |
37599 | ||
37600 | * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function | |
37601 | ||
37602 | * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address | |
37603 | so that it works when address is not a private type. | |
37604 | ||
37605 | * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal | |
37606 | properly with rewritten unchecked conversions. This prevents | |
37607 | order-of-elaboration issues that can otherwise arise. | |
37608 | (Minimum_Size): Don't check size of access types under VMS | |
37609 | ||
37610 | * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove | |
37611 | interpretations of integer literals as type System.Address. | |
37612 | ||
37613 | * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function | |
37614 | (Is_Descendent_Of): New function | |
37615 | ||
37616 | 2004-05-03 Jose Ruiz <ruiz@act-europe.fr> | |
37617 | ||
37618 | * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers. | |
37619 | Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length. | |
37620 | No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment. | |
37621 | ||
37622 | * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead | |
37623 | of the old Max_Entry_Queue_Depth. | |
37624 | ||
37625 | * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers. | |
37626 | Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length | |
37627 | No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment | |
37628 | ||
37629 | * snames.ads: New entry for proper handling of Boolean_Entry_Barriers. | |
37630 | New entry for proper handling of Max_Entry_Queue_Depth. | |
37631 | New entry for proper handling of No_Dynamic_Interrupts. | |
37632 | ||
37633 | * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that | |
37634 | supersedes the GNAT specific restriction Boolean_Entry_Barriers. | |
37635 | Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes | |
37636 | the GNAT specific restriction Max_Entry_Queue_Depth. | |
37637 | Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes | |
37638 | the GNAT specific restriction No_Dynamic_Interrupts. | |
37639 | ||
37640 | * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers | |
37641 | instead of the old Boolean_Entry_Barriers. | |
37642 | Use the new restriction No_Dynamic_Attachment instead of the old | |
37643 | No_Dynamic_Interrupts. | |
37644 | ||
37645 | * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that | |
37646 | supersedes the GNAT specific restriction Boolean_Entry_Barriers. | |
37647 | ||
37648 | * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead | |
37649 | of the old Max_Entry_Queue_Depth. | |
37650 | ||
37651 | 2004-05-03 GNAT Script <nobody@gnat.com> | |
37652 | ||
37653 | * Make-lang.in: Makefile automatically updated | |
37654 | ||
f07ea091 | 37655 | 2004-04-29 Ed Schonberg <schonberg@gnat.com> |
37656 | ||
37657 | * checks.adb (Enable_Range_Check): If the prefix of an index component | |
37658 | is an access to an unconstrained array, perform check unconditionally. | |
37659 | ||
37660 | 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
37661 | ||
37662 | * decl.c (gnat_to_gnu_field): Also call make_packable_type if | |
37663 | Component_Clause. | |
37664 | ||
37665 | 2004-04-29 Olivier Hainque <hainque@act-europe.fr> | |
37666 | ||
37667 | * init.c (__gnat_install_handler, __gnat_error_handler): Remove | |
37668 | alternate stack setting. There was no support for the tasking cases | |
37669 | and the changes eventually caused a number of side-effect failures in | |
37670 | the non-tasking case too. | |
37671 | ||
37672 | 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr> | |
37673 | ||
37674 | lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or | |
37675 | -gnats is passed. | |
37676 | ||
37677 | 2004-04-29 Vincent Celier <celier@gnat.com> | |
37678 | ||
37679 | * make.adb (Gnatmake): Increase max size of argument array for | |
37680 | gnatbind for the potential addition of -F. | |
37681 | If there are Stand-Alone Library projects, invoke gnatbind with -F to | |
37682 | be sure that elaboration flags will be checked. | |
37683 | ||
37684 | * switch-c.adb: Correct call to Scan_Pos for -gnateI | |
37685 | ||
37686 | 2004-04-29 Thomas Quinot <quinot@act-europe.fr> | |
37687 | ||
37688 | * sem_warn.adb (Check_References): Move '<access-variable> may be | |
37689 | null' warning out of under Warn_On_No_Value_Assigned. | |
37690 | ||
37691 | 2004-04-29 Ed Falis <falis@gnat.com> | |
37692 | ||
37693 | * gnat_ugn.texi: Fixed texi error | |
37694 | ||
37695 | 2004-04-29 Robert Dewar <dewar@gnat.com> | |
37696 | ||
37697 | * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove | |
37698 | abstract operations if they come from predefined files. | |
37699 | ||
37700 | * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be | |
37701 | Dynamic, not RM). | |
37702 | ||
37703 | * s-addope.adb: Correct obvious error in mod function | |
37704 | ||
37705 | 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com> | |
37706 | ||
37707 | * Makefile.in: Add target pairs for powerpc darwin* | |
37708 | tasking support. | |
37709 | ||
37710 | * a-intnam-darwin.ads, s-osinte-darwin.adb, | |
37711 | s-osinte-darwin.ads, system-darwin-ppc.ads: New files. | |
37712 | ||
ba617253 | 37713 | 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com> |
37714 | ||
37715 | * Makefile.in: Add target macro definitions for s390*-linux*. | |
37716 | * system-linux-s390.ads: New file. | |
37717 | * system-linux-s390x.ads: New file. | |
37718 | ||
91eed946 | 37719 | 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk> |
37720 | ||
37721 | * gnat_ugn.texi: Correct argument to @setfilename. | |
37722 | ||
4902721e | 37723 | 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com> |
37724 | ||
37725 | * a-exexpr.adb (Unwind_Word): New data type. | |
37726 | (Unwind_Exception): Use it as type of Private1 and Private2. | |
37727 | ||
37728 | * raise.c (db_action_for): Fix debug printf. | |
37729 | ||
8b608153 | 37730 | 2004-04-27 Ed Schonberg <schonberg@gnat.com> |
37731 | ||
37732 | * a-wtmoio.ads: Formal type must be a modular type, not a signed | |
37733 | integer type. | |
37734 | ||
37735 | 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
37736 | ||
37737 | * decl.c (gnat_to_gnu_entity, case object): Call | |
37738 | __builtin_update_setjmp_buf. | |
37739 | ||
37740 | * gigi.h (update_setjmp_buf): Deleted. | |
37741 | (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New. | |
37742 | ||
37743 | * misc.c: (update_setjmp_buf): Deleted. | |
37744 | ||
37745 | * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue | |
37746 | around block of RTL. | |
37747 | ||
37748 | * utils.c (init_gigi_decls): Initialize update_setjmp_buf. | |
37749 | ||
70769927 | 37750 | 2004-04-26 Thomas Quinot <quinot@act-europe.fr> |
37751 | ||
37752 | * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local | |
37753 | subprogram for which no pragma All_Calls_Remote applies, store the | |
37754 | address of the real subprogram in the underlying record type, so local | |
37755 | dereferences do not go through the PCS. | |
37756 | ||
37757 | 2004-04-26 Robert Dewar <dewar@gnat.com> | |
37758 | ||
37759 | * i-c.ads: Add some type qualifications to avoid ambiguities when | |
37760 | compiling with s-auxdec.ads and a non-private address type. | |
37761 | ||
37762 | 2004-04-26 Arnaud Charlet <charlet@act-europe.fr> | |
37763 | ||
37764 | * Makefile.rtl: Fix error in previous check-in: | |
37765 | Add s-addope.o to non tasking object list (rather than tasking object | |
37766 | list). | |
37767 | ||
37768 | 2004-04-26 Javier Miranda <miranda@gnat.com> | |
37769 | ||
37770 | * sem_aggr.adb: Fix typo in comments | |
37771 | (Resolve_Aggr_Expr): Propagate the type to the nested aggregate. | |
37772 | Required to check the null-exclusion attribute. | |
37773 | ||
37774 | * sem_attr.adb (Resolve_Attribute): Check the accessibility level in | |
37775 | case of anonymous access types in record and array components. For a | |
37776 | component definition the level is the same of the enclosing composite | |
37777 | type. | |
37778 | ||
37779 | * sem_ch3.adb (Analyze_Component_Declaration): In case of components | |
37780 | that are anonymous access types the level of accessibility depends on | |
37781 | the enclosing type declaration. In order to have this information, set | |
37782 | the scope of the anonymous access type to the enclosing record type | |
37783 | declaration. | |
37784 | (Array_Type_Declaration): In case of components that are anonymous | |
37785 | access types the level of accessibility depends on the enclosing type | |
37786 | declaration. In order to have this information, set the scope of the | |
37787 | anonymous access type to the enclosing array type declaration. | |
37788 | ||
37789 | * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous | |
37790 | access type. | |
37791 | ||
37792 | * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that | |
37793 | renaming of anonymous access-to-constant types allowed if and only if | |
37794 | the renamed object is access-to-constant. | |
37795 | ||
37796 | * sem_util.adb (Type_Access_Level): In case of anonymous access types | |
37797 | that are component_definition or discriminants of a nonlimited type, | |
37798 | the level is the same as that of the enclosing component type. | |
37799 | ||
37800 | 2004-04-26 Sergey Rybin <rybin@act-europe.fr> | |
37801 | ||
37802 | * sem_elim.adb: Some minor code reorganization from code reading. Fix | |
37803 | misprint in the function name (File_Name_Match). | |
37804 | ||
8a67bb47 | 37805 | 2004-04-23 Laurent Guerby <laurent@guerby.net> |
4748171a | 37806 | |
1acf0298 | 37807 | * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after |
4748171a | 37808 | install. |
1acf0298 | 37809 | |
078c5600 | 37810 | 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
37811 | ||
37812 | * Make-lang.in (GNATBIND_OBJS): Add s-addope.o. | |
37813 | ||
4a3f445c | 37814 | 2004-04-23 Emmanuel Briot <briot@act-europe.fr> |
37815 | ||
37816 | * adaint.c (__gnat_try_lock): No longer requires that the parent | |
37817 | directory be writable, the directory itself is enough. | |
37818 | (gnat_is_absolute_path): Change profile, so that the call from | |
37819 | GNAT.OS_Lib can be made more efficient. | |
37820 | ||
37821 | * adaint.h (gnat_is_absolute_path): Change profile, so that the call | |
37822 | from GNAT.OS_Lib can be made more efficient. | |
37823 | ||
37824 | * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid | |
37825 | one copy of the file name. Found by code reading. | |
37826 | ||
37827 | 2004-04-23 Vincent Celier <celier@gnat.com> | |
37828 | ||
37829 | * gnat_ugn.texi: Add documentation for gnatmake switch -eL | |
37830 | Correct documentation on gnatmake switches transmitted to the compiler | |
37831 | ||
37832 | * ali.ads: Minor comment fix | |
37833 | ||
37834 | 2004-04-23 Javier Miranda <miranda@gnat.com> | |
37835 | ||
37836 | * sem_ch6.adb: (Confirming Types): Code cleanup | |
37837 | ||
37838 | * decl.c (gnat_to_gnu_entity): Give support to anonymous access to | |
37839 | subprogram types: E_Anonymous_Access_Subprogram_Type and | |
37840 | E_Anonymous_Access_Protected_Subprogram_Type. | |
37841 | ||
37842 | 2004-04-23 Thomas Quinot <quinot@act-europe.fr> | |
37843 | ||
37844 | * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating | |
37845 | whether a pragma All_Calls_Remote applies to the subprogram on which | |
37846 | 'Access is taken. | |
37847 | No functional change is introduced by this revision; the new parameter | |
37848 | will be used to allow calls to local RCI subprograms to be optimized | |
37849 | to not use the PCS in the case where no pragma All_Calls_Remote applies, | |
37850 | as is already done in the PolyORB implementation of the DSA. | |
37851 | ||
37852 | * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating | |
37853 | whether a pragma All_Calls_Remote applies to the subprogram on which | |
37854 | 'Access is taken. | |
37855 | No functional change is introduced by this revision; the new parameter | |
37856 | will be used to allow calls to local RCI subprograms to be optimized | |
37857 | to not use the PCS in the case where no pragma All_Calls_Remote applies, | |
37858 | as is already done in the PolyORB implementation of the DSA. | |
37859 | ||
37860 | 2004-04-23 Robert Dewar <dewar@gnat.com> | |
37861 | ||
37862 | * Makefile.rtl: Add entry for s-addope.o in run time library list | |
37863 | * Make-lang.in: Add entry for s-addope.o to GNAT1 objects | |
37864 | * s-addope.ads, s-addope.adb: New files. | |
37865 | ||
1acf0298 | 37866 | * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb, |
37867 | s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb, | |
4a3f445c | 37868 | s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow |
37869 | System.Address to be non-private and signed. | |
37870 | ||
37871 | * sem_elim.adb: Minor reformatting (fairly extensive) | |
37872 | Some minor code reorganization from code reading | |
37873 | Add a couple of ??? comments | |
37874 | ||
37875 | 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
37876 | ||
37877 | * trans.c (tree_transform, build_unit_elab): Don't call getdecls. | |
1acf0298 | 37878 | (tree_transform, case N_If_Statement): Remove non-determinism. |
4a3f445c | 37879 | |
37880 | * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL. | |
37881 | ||
37882 | 2004-04-23 Sergey Rybin <rybin@act-europe.fr> | |
37883 | ||
37884 | * gnat_rm.texi: Small fixes in the changes made in the 'pragma | |
37885 | Eliminate' section. | |
37886 | ||
37887 | * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is | |
37888 | no longer used as a parameter name for Eliminate pragma). | |
37889 | ||
8a67bb47 | 37890 | 2004-04-22 Laurent Guerby <laurent@guerby.net> |
369795e5 | 37891 | |
37892 | PR optimization/14984 | |
37893 | PR optimization/14985 | |
37894 | * trans.c (gigi): Fix non determinism leading to bootstrap | |
37895 | comparison failures. | |
37896 | ||
f270dc82 | 37897 | 2004-04-21 Pascal Obry <obry@gnat.com> |
37898 | ||
37899 | * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0]) | |
37900 | passed to spawnvp() to properly handle program pathname with spaces on | |
37901 | Win32. | |
37902 | ||
37903 | 2004-04-21 Emmanuel Briot <briot@act-europe.fr> | |
37904 | ||
37905 | * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False. | |
37906 | (Allocate, Deallocate, Free_Physically): Make sure the tasks are | |
37907 | unlocked in case of exceptions. | |
37908 | ||
37909 | 2004-04-21 Joel Brobecker <brobecker@gnat.com> | |
37910 | ||
37911 | * gigi.h (get_target_no_dollar_in_label): Remove extern declaration. | |
37912 | This function does not exist anymore. | |
37913 | ||
37914 | 2004-04-21 Thomas Quinot <quinot@act-europe.fr> | |
37915 | ||
37916 | * gnatbind.adb, gnatlink.adb: Update name of imported C symbol. | |
37917 | ||
37918 | * link.c: Move variables to the __gnat name space. | |
37919 | ||
37920 | * Makefile.in: list link.o explicitly when needed. | |
37921 | ||
37922 | * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib. | |
37923 | ||
37924 | 2004-04-21 Javier Miranda <miranda@gnat.com> | |
37925 | ||
37926 | * einfo.adb (Original_Access_Type): New subprogram | |
37927 | (Set_Original_Access_Type): New subprogram | |
37928 | (Write_Field21_Name): Write the name of the new field | |
37929 | ||
37930 | * einfo.ads (Original_Access_Type): New field present in access to | |
37931 | subprogram types. | |
37932 | Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and | |
37933 | E_Anonymous_Access_Protected_Subprogram_Type. | |
37934 | ||
37935 | * lib-xref.adb (Output_One_Ref): Give support to anonymous access to | |
37936 | subprogram types. | |
37937 | ||
37938 | * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding | |
37939 | to anonymous access to subprogram types. | |
37940 | ||
37941 | * sem_attr.adb (Resolve_Attribute): Give support to anonymous access | |
37942 | to subprogram types. | |
37943 | ||
37944 | * sem_ch3.adb (Access_Definition): Complete decoration of entities | |
37945 | corresponding to anonymous access to subprogram types. | |
37946 | (Analyze_Component_Declaration): Add new actual to the call to | |
37947 | subprogram replace_anonymous_access_to_protected_subprogram. | |
37948 | (Array_Type_Declaration): Add new actual to the call to subprogram | |
37949 | replace_anonymous_access_to_protected_subprogram. | |
37950 | (Process_Discriminants): Add new actual to the call to subprogram | |
37951 | replace_anonymous_access_to_protected_subprogram. | |
37952 | (Replace_Anonymous_Access_To_Protected_Subprogram): New formal. | |
37953 | ||
37954 | * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New | |
37955 | formal. | |
37956 | ||
37957 | * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous | |
37958 | access to subprogram types. | |
37959 | ||
37960 | * sem_util.adb (Has_Declarations): Addition of package_specification | |
37961 | nodes. | |
37962 | ||
37963 | 2004-04-21 Ed Schonberg <schonberg@gnat.com> | |
37964 | ||
37965 | * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate | |
37966 | inlined flags to renamed entity only if in current unit. | |
37967 | ||
37968 | 2004-04-21 Thomas Quinot <quinot@act-europe.fr> | |
37969 | ||
37970 | * s-parint.ads: Add DSA implementation marker. | |
37971 | ||
37972 | * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the | |
37973 | value of System.Partition_Interface.DSA_Implementation to determine | |
37974 | what version of the distributed systems annex is available (no | |
37975 | implementation, GLADE, or PolyORB). | |
37976 | ||
37977 | 2004-04-21 Joel Brobecker <brobecker@gnat.com> | |
37978 | ||
37979 | * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used. | |
37980 | ||
37981 | 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
37982 | ||
37983 | * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node | |
37984 | with new type if alias sets differ. | |
37985 | Fixes ACATS c41103b. | |
37986 | ||
37987 | 2004-04-21 Vincent Celier <celier@gnat.com> | |
37988 | ||
37989 | * prj.ads: Remove FORTRAN as an accepted language: not tested yet. | |
37990 | Add array Lang_Args for the language specific compiling argument | |
37991 | switches. | |
37992 | ||
37993 | * gnat_ugn.texi: Explain in more details when a library is rebuilt. | |
37994 | ||
37995 | 2004-04-21 Sergey Rybin <rybin@act-europe.fr> | |
37996 | ||
37997 | * gnat_rm.texi: Update the descripton of the Eliminate pragma | |
37998 | according to the recent changes in the format of the parameters of the | |
37999 | pragma (replacing Homonym_Number with Source_Location). | |
38000 | ||
5329ca64 | 38001 | 2004-04-19 Arnaud Charlet <charlet@act-europe.fr> |
38002 | ||
38003 | * 5isystem.ads: Removed, unused. | |
38004 | ||
38005 | * gnat_rm.texi: Redo 1.13 change. | |
38006 | ||
38007 | 2004-04-19 Robert Dewar <dewar@gnat.com> | |
38008 | ||
38009 | * s-stoele.ads: Clean up definition of Storage_Offset (the new | |
38010 | definition is cleaner, avoids the kludge of explicit Standard operator | |
38011 | references, and also is consistent with a visible System.Address with | |
38012 | no visible operations. | |
38013 | ||
38014 | * s-geveop.adb: Add declarations to avoid assumption of visible | |
38015 | operations on type System.Address (since these might not be available | |
38016 | if Address is a non-private type for which the operations | |
38017 | are made abstract). | |
38018 | ||
38019 | * sem_eval.adb: Minor reformatting | |
38020 | ||
38021 | * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads, | |
38022 | s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor | |
38023 | reformatting (new function spec format). | |
38024 | ||
38025 | * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb, | |
38026 | s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, | |
38027 | s-caun64.adb: Add declarations to avoid assumption of visible | |
38028 | operations on type System.Address (since these might not be available | |
38029 | if Address is a non-private type for which the operations are made | |
38030 | abstract). | |
38031 | ||
38032 | * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure. | |
38033 | ||
38034 | * exp_intr.adb: Minor comment update | |
38035 | ||
38036 | * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting. | |
38037 | ||
38038 | * 5omastop.adb: Add declarations to avoid assumption of visible | |
38039 | operations on type System.Address (since these might not be available | |
38040 | if Address is a non-private type for which the operations | |
38041 | are made abstract). | |
38042 | ||
38043 | 2004-04-19 Vincent Celier <celier@gnat.com> | |
38044 | ||
38045 | * switch-m.adb: (Scan_Make_Switches): Process new switch -eL | |
38046 | ||
38047 | * prj-pars.ads (Parse): New Boolean parameter Process_Languages, | |
38048 | defaulted to Ada. | |
38049 | ||
38050 | * prj-proc.adb (Process): New Boolean parameter Process_Languages, | |
38051 | defaulted to Ada. | |
38052 | Call Check with Process_Languages. | |
38053 | (Check): New Boolean parameter Process_Languages. Call Recursive_Check | |
38054 | with Process_Languages. | |
38055 | (Recursive_Check): New Boolean parameter Process_Languages. Call | |
38056 | Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to | |
38057 | Process_Languages. | |
38058 | ||
38059 | * prj-proc.ads (Process): New Boolean parameter Process_Languages, | |
38060 | ||
38061 | * prj-util.ads, prj-util.adb (Executable_Of): New Boolean | |
38062 | parameter Ada_Main, defaulted to True. | |
38063 | Check for Ada specific characteristics only when Ada_Main is True. | |
38064 | ||
38065 | * opt.ads: (Follow_Links): New Boolean flag for gnatmake | |
38066 | ||
38067 | * prj.adb: (Project_Empty): Add new Project_Data components. | |
38068 | ||
38069 | * prj.ads: New types and tables for non Ada languages. | |
38070 | (Project_Data): New components Languages, Impl_Suffixes, | |
38071 | First_Other_Source, Last_Other_Source, Imported_Directories_Switches, | |
38072 | Include_Path, Include_Data_Set. | |
38073 | ||
38074 | * prj-env.ads, prj-env.adb: Minor reformatting | |
38075 | ||
38076 | * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure | |
38077 | Put subprograms in alphabetical order | |
38078 | ||
38079 | * prj-pars.adb (Parse): New Boolean parameter Process_Languages, | |
38080 | defaulted to Ada; Call Prj.Proc.Process with Process_Languages and | |
38081 | Opt.Follow_Links. | |
38082 | ||
38083 | * mlib-prj.adb: Back out modification in last version, as they are | |
38084 | incorrect. | |
38085 | (Build_Library.Check_Libs): Remove useless pragma Warnings (Off) | |
38086 | ||
38087 | * make.adb: (Mains): Moved to package Makeutl | |
38088 | (Linker_Opts): Moved to package Makeutl | |
38089 | (Is_External_Assignment): Moved to package Makeutl | |
38090 | (Test_If_Relative_Path): Moved to package Makeutl | |
38091 | (Gnatmake): Move sorting of linker options to function | |
38092 | Makeutl.Linker_Options_Switches. | |
38093 | ||
c0b40d7c | 38094 | * makeutl.ads, makeutl.adb: New files. |
38095 | ||
5329ca64 | 38096 | * Makefile.in: Add makeutl.o to the object files for gnatmake |
38097 | ||
38098 | * makeusg.adb: Add line for new switch -eL. | |
38099 | ||
38100 | * gnatls.adb (Image): New function. | |
38101 | (Output_Unit): If in verbose mode, output the list of restrictions | |
38102 | specified by pragmas Restrictions. | |
38103 | ||
38104 | * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use | |
38105 | Text_IO. | |
38106 | ||
38107 | * a-calend.adb (Split): Shift the date by multiple of 56 years, if | |
38108 | needed, to put it in the range 1970 (included) - 2026 (excluded). | |
38109 | (Time_Of): Do not shift Unix_Min_Year (1970). | |
38110 | Shift the date by multiple of 56 years, if needed, to put it in the | |
38111 | range 1970 (included) - 2026 (excluded). | |
38112 | ||
38113 | * adaint.h, adaint.c (__gnat_set_executable): New function. | |
38114 | ||
38115 | 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
38116 | ||
38117 | * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push | |
38118 | and pop GC context. | |
38119 | (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE. | |
38120 | (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH. | |
38121 | (tree_transform, case N_Procedure_Call_Statement): Build a tree. | |
38122 | (tree_transform, case N_Code_Statement): Likewise. | |
38123 | (gnat_expand_stmt, case LABEL_STMT): Don't look at | |
38124 | LABEL_STMT_FIRST_IN_EH. | |
38125 | (gnat_expand_stmt, case ASM_STMT): New case. | |
38126 | ||
38127 | * utils2.c (build_unary_op): Properly set TREE_READONLY of | |
38128 | UNCONSTRAINED_ARRAY_REF. | |
38129 | ||
38130 | * utils.c (poplevel): Temporarily push/pop GC context around inline | |
38131 | function expansion. | |
38132 | ||
38133 | * decl.c (maybe_variable): Properly set TREE_READONLY of | |
38134 | UNCONSTRAINED_ARRAY_REF. | |
38135 | (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE. | |
38136 | ||
38137 | * ada-tree.def: (ASM_STMT): New. | |
38138 | ||
38139 | * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted. | |
38140 | (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT, | |
38141 | ASM_STMT_INPUT): New. | |
38142 | (ASM_STMT_CLOBBER): Likewise. | |
38143 | ||
38144 | 2004-04-19 Thomas Quinot <quinot@act-europe.fr> | |
38145 | ||
38146 | * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use | |
38147 | general rcheck mechanism to raise Program_Error for E.4(18), instead | |
38148 | of a custom raiser in System.Partition_Interface. | |
38149 | Part of general cleanup work before PolyORB integration. | |
38150 | ||
38151 | * snames.ads, snames.adb: Add new runtime library entities and names | |
38152 | for PolyORB DSA. | |
38153 | ||
38154 | * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to | |
38155 | exp_dist. | |
38156 | (Build_Subprogram_Id): New subprogram provided by exp_dist | |
38157 | Code reorganisation in preparation for PolyORB integration. | |
38158 | ||
38159 | * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to | |
38160 | exp_dist. | |
38161 | (Build_Subprogram_Id): New subprogram provided by exp_dist | |
38162 | ||
38163 | * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in | |
38164 | actual parameter types for call to dereference of an | |
38165 | access-to-subprogram type. | |
38166 | ||
38167 | * rtsfind.ads: Add new runtime library entities and names for PolyORB | |
38168 | DSA. | |
38169 | ||
38170 | * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value | |
38171 | instead, which has the same behaviour here since we never pass it a | |
38172 | NULL pointer. | |
38173 | ||
38174 | * link.c (run_path_option, Solaris case): Use -Wl, as for other | |
38175 | platforms. | |
38176 | ||
38177 | * Makefile.in: adjust object file lists for gnatlink and gnatmake | |
38178 | to account for new dependency upon Interfaces.C.Strings + link.o | |
38179 | For x86 FreeBSD, use 86numaux. | |
38180 | ||
38181 | * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up | |
38182 | from Mlib.Tgt to Mlib. | |
38183 | ||
38184 | * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now | |
38185 | target-independent. | |
38186 | ||
38187 | * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove | |
38188 | target-specific versions of this subprogram, now implemented as a | |
38189 | target-independent function in Mlib. | |
38190 | ||
38191 | * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb, | |
38192 | 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb | |
38193 | (Linker_Library_Path_Option): Remove target-specific versions of this | |
38194 | subprogram, now implemented as a target-independent function in Mlib. | |
38195 | ||
38196 | * atree.adb: (Allocate_Initialize_Node): New subprogram. | |
38197 | Factors out node table slots allocation. | |
38198 | (Fix_Parents): New subprogram. | |
38199 | Encapsulate the pattern of fixing up parent pointers for syntactic | |
38200 | children of a rewritten node. | |
38201 | (New_Copy_Tree): Use New_Copy to copy non-entity nodes. | |
38202 | (Rewrite): Use New_Copy when creating saved copy of original node. | |
38203 | (Replace): Use Copy_Node to copy nodes. | |
38204 | ||
38205 | 2004-04-19 Javier Miranda <miranda@gnat.com> | |
38206 | ||
38207 | * sprint.adb (Sprint_Node_Actual): Give support to the new | |
38208 | Access_To_Subprogram node available in Access_Definition nodes. In | |
38209 | addition, give support to the AI-231 node fields: null-exclusion, | |
38210 | all-present, constant-present. | |
38211 | ||
38212 | * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram | |
38213 | ||
1acf0298 | 38214 | * sinfo.ads, sinfo.adb: |
5329ca64 | 38215 | New field Access_To_Subprogram_Definition in Access_Definition nodes |
38216 | ||
38217 | * sem_ch6.adb (Process_Formals): Move here the code that creates and | |
38218 | decorates internal subtype declaration corresponding to the | |
38219 | null-excluding formal. This code was previously in Set_Actual_Subtypes. | |
38220 | In addition, carry out some code cleanup on this code. In case of | |
38221 | access to protected subprogram call | |
38222 | Replace_Anonymous_Access_To_Protected_Subprogram. | |
38223 | (Set_Actual_Subtypes): Code cleanup. | |
38224 | ||
38225 | * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to | |
38226 | Find_Type in case of anonymous access renamings. Add warning in case of | |
38227 | null-excluding attribute used in anonymous access renaming. | |
38228 | ||
38229 | * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New | |
38230 | subprogram | |
38231 | ||
38232 | * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New | |
38233 | subprogram. | |
38234 | (Access_Definition): In case of anonymous access to subprograms call | |
38235 | the corresponding semantic routine to decorate the node. | |
38236 | (Access_Subprogram_Declaration): Addition of some comments indicating | |
38237 | some code that probably should be added here. Detected by comparison | |
38238 | with the access_definition subprogram. | |
38239 | (Analyze_Component_Declaration): In case of access to protected | |
38240 | subprogram call Replace_Anonymous_Access_To_Protected. | |
38241 | (Array_Type_Declaration): In case of access to protected subprogram call | |
38242 | Replace_Anonymous_Access_To_Protected_Subprogram. | |
38243 | (Process_Discriminants): In case of access to protected subprogram call | |
38244 | Replace_Anonymous_Access_To_Protected_Subprogram. | |
38245 | ||
38246 | * par.adb (P_Access_Definition): New formal that indicates if the | |
38247 | null-exclusion part was present. | |
38248 | (P_Access_Type_Definition): New formal that indicates if the caller has | |
38249 | already parsed the null-excluding part. | |
38250 | ||
38251 | * par-ch3.adb (P_Subtype_Declaration): Code cleanup. | |
38252 | (P_Identifier_Declarations): Code cleanup and give support to renamings | |
38253 | of anonymous access to subprogram types. | |
38254 | (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup. | |
38255 | (P_Array_Type_Definition): Give support to AI-254. | |
38256 | (P_Component_Items): Give support to AI-254. | |
38257 | (P_Access_Definition): New formal that indicates if the header was | |
38258 | already parsed by the caller. | |
38259 | (P_Access_Type_Definition): New formal that indicates if the caller has | |
38260 | already parsed the null-excluding part. | |
38261 | ||
38262 | * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the | |
38263 | call to P_Access_Definition. | |
38264 | ||
38265 | 2004-04-19 Geert Bosch <bosch@gnat.com> | |
38266 | ||
38267 | * checks.adb (Apply_Float_Conversion_Check): New procedure to implement | |
38268 | the delicate semantics of floating-point to integer conversion. | |
38269 | (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check. | |
38270 | ||
38271 | * eval_fat.adb (Machine_Mantissa): Moved to spec. | |
38272 | (Machine_Radix): New function. | |
38273 | ||
38274 | * eval_fat.ads (Machine_Mantissa): Moved from body for use in | |
38275 | conversion checks. | |
38276 | (Machine_Radix): New function also for use in conversion checks. | |
38277 | ||
38278 | 2004-04-19 Ed Schonberg <schonberg@gnat.com> | |
38279 | ||
38280 | * par-prag.adb (Source_File_Name_Project): Fix typo in error message. | |
38281 | ||
38282 | * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze | |
38283 | to decorate the access-to-protected subprogram and the equivalent type. | |
38284 | ||
38285 | * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support | |
38286 | to anonymous access to subprogram types. | |
38287 | ||
38288 | * exp_ch4.adb (Expand_N_In): Preserve Static flag before | |
38289 | constant-folding, for legality checks in contexts that require an RM | |
38290 | static expression. | |
38291 | ||
38292 | * exp_ch6.adb (Expand_N_Function_Call): If call may generate large | |
38293 | temporary but stack checking is not enabled, increment serial number | |
38294 | to so that symbol generation is consistent with and without stack | |
38295 | checking. | |
38296 | ||
38297 | * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is | |
38298 | independent on whether stack checking is enabled, caller must check | |
38299 | the corresponding flag. | |
38300 | ||
38301 | * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need | |
38302 | range checks. | |
38303 | (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from | |
38304 | parent if it has discriminants. | |
38305 | (Build_Derived_Private_Type): Constructed full view does | |
38306 | not come from source. | |
38307 | (Process_Discriminants): Default discriminants on a tagged type are | |
38308 | legal if this is the internal completion of a private untagged | |
38309 | derivation. | |
38310 | ||
38311 | * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs | |
38312 | no constraint checks, because it corresponds to an existing object. | |
38313 | ||
38314 | * sem_prag.adb (Process_Convention): Pragma applies | |
38315 | only to subprograms in the same declarative part, i.e. the same unit, | |
38316 | not the same scope. | |
38317 | ||
38318 | * sem_res.adb (Valid_Conversion): In an instance or inlined body, | |
38319 | ignore type mismatch on a numeric conversion if expression comes from | |
38320 | expansion. | |
38321 | ||
38322 | 2004-04-19 Sergey Rybin <rybin@act-europe.fr> | |
38323 | ||
38324 | * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for | |
38325 | Homonym_Number parameter, add processing for Source_Location parameter | |
38326 | corresponding. | |
38327 | (Check_Eliminated): Remove the check for homonym numbers, add the check | |
38328 | for source location traces. | |
38329 | ||
38330 | * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number | |
38331 | with Arg_Source_Location corresponding to the changes in the format of | |
38332 | the pragma. | |
38333 | ||
38334 | * sem_prag.adb: (Analyze_Pragma): Changes in the processing of | |
38335 | Eliminate pragma corresponding to the changes in the format of the | |
38336 | pragma: Homonym_Number is replaced with Source_Location, two ways of | |
38337 | distinguishing homonyms are mutially-exclusive. | |
38338 | ||
38339 | 2004-04-19 Joel Brobecker <brobecker@gnat.com> | |
38340 | ||
38341 | * get_targ.ads (Get_No_Dollar_In_Label): Remove. | |
38342 | ||
38343 | * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of | |
38344 | No_Dollar_In_Label, no longer necessary, as it is always True. | |
38345 | (Strip_Suffixes): Likewise. | |
38346 | ||
38347 | 2004-04-19 Gary Dismukes <dismukes@gnat.com> | |
38348 | ||
38349 | * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of | |
38350 | modulus for compatibility with size clause on targets with 16-bit | |
38351 | Integer. | |
38352 | ||
38353 | * layout.adb (Discrimify): In the case of private types, set Vtyp to | |
38354 | full type to fix type mismatches on calls to size functions for | |
38355 | discriminant-dependent array components. | |
38356 | ||
38357 | 2004-04-19 Jerome Guitton <guitton@act-europe.fr> | |
38358 | ||
38359 | * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time | |
38360 | lib. | |
38361 | ||
38362 | 2004-04-19 Pascal Obry <obry@gnat.com> | |
38363 | ||
38364 | * mdll-utl.adb (Locate): New version is idempotent. | |
38365 | ||
8a67bb47 | 38366 | 2004-04-17 Laurent Guerby <laurent@guerby.net> |
7859cbd6 | 38367 | |
38368 | PR ada/14988 (partial) | |
38369 | * impunit.adb: Fix typo. | |
1acf0298 | 38370 | |
53b8bb95 | 38371 | 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org> |
38372 | ||
38373 | * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none, | |
38374 | and install-rts-cert targets. Remove all gnatlib and gnattools | |
38375 | targets and all other rts-* targets (moved to libada). Remove (now) | |
38376 | unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND, | |
38377 | TRACE, GNATLIBFLAGS, GNATLIBCFLAGS. | |
38378 | ||
57a92eca | 38379 | 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> |
38380 | ||
38381 | * trans.c (tree_transform): Shortcut returning error_mark_node for | |
38382 | statements in annotate_only_mode. | |
38383 | (tree_transform, case N_Label, case N_Return_Statement, | |
38384 | N_Goto_Statement): Make statement tree instead of generating code. | |
38385 | (tree_transform, case N_Assignment_Statement): No longer check | |
38386 | type_annotate_only. | |
38387 | (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case | |
38388 | RETURN_STMT): New. | |
38389 | (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl): | |
38390 | New fcns. | |
38391 | (gnat_to_gnu): Collect any RTL generated and deal with it. | |
38392 | (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR. | |
38393 | (tree_transform case N_If_Statement): Rewrite to make IF_STMT. | |
38394 | (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases. | |
38395 | ||
38396 | * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes. | |
38397 | ||
38398 | * ada-tree.def (EXPR_STMT): Fix typo in name. | |
38399 | (BLOCK_STMT, IF_STMT): New nodes. | |
38400 | ||
38401 | * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL, | |
38402 | LABEL_STMT_FIRST_IN_EH): New macros. | |
38403 | (RETURN_STMT_EXPR): Likewise. | |
38404 | ||
38405 | * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE, | |
38406 | IF_STMT_ELSEIF, IF_STMT_ELSE): New macros. | |
38407 | ||
38408 | 2004-04-08 Thomas Quinot <quinot@act-europe.fr> | |
38409 | ||
38410 | * atree.ads: Correct documentation on extended nodes. | |
38411 | ||
38412 | * link.c: Set run_path_option for FreeBSD. | |
38413 | ||
38414 | 2004-04-08 Vincent Celier <celier@gnat.com> | |
38415 | ||
38416 | * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is | |
38417 | one of the ALI file, do not link with DEC lib. | |
38418 | ||
38419 | * par.adb Remove the last two characters ("%s" or "%b") when checking | |
38420 | if a language defined unit may be recompiled. | |
38421 | ||
38422 | 2004-04-08 Ed Schonberg <schonberg@gnat.com> | |
38423 | ||
38424 | * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when | |
38425 | removal of abstract operation leaves no possible interpretation for | |
38426 | expression. | |
38427 | ||
38428 | * sem_eval.adb (Eval_Qualified_Expression): Use | |
38429 | Set_Raises_Constraint_Error on node when needed, so that it does not | |
38430 | get optimized away by subsequent optimizations. | |
38431 | ||
38432 | * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of | |
38433 | operands even when they are not wrapped in a type conversion. | |
38434 | ||
38435 | 2004-04-08 Olivier Hainque <hainque@act-europe.fr> | |
38436 | ||
38437 | * sem_prag.adb (Set_Exported): Warn about making static as result of | |
38438 | export only when the export is coming from source. This may be not | |
38439 | be true e.g. on VMS where we expand export pragmas for exception codes | |
38440 | together with imported or exported exceptions, and we don't want the | |
38441 | user to be warned about something he didn't write. | |
38442 | ||
38443 | 2004-04-08 Thomas Quinot <quinot@act-europe.fr> | |
38444 | ||
38445 | * sem_util.adb (Note_Possible_Modification): Reorganize to remove code | |
38446 | duplication between normal entities and those declared as renamings. | |
38447 | No functional change. | |
38448 | ||
1acf0298 | 38449 | * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently |
57a92eca | 38450 | inline functions returning an unconstrained result. |
38451 | ||
38452 | 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr> | |
38453 | ||
38454 | * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to | |
38455 | conform to what other front-ends do. | |
38456 | ||
38457 | 2004-04-08 Doug Rupp <rupp@gnat.com> | |
38458 | ||
38459 | * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared | |
38460 | libraries. | |
38461 | ||
fef772a5 | 38462 | 2004-04-06 Pascal Obry <obry@gnat.com> |
38463 | ||
38464 | * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32. | |
38465 | ||
38466 | * osint.adb (Program_Name): Do not look past a directory separator. | |
38467 | ||
38468 | 2004-04-06 Thomas Quinot <quinot@act-europe.fr> | |
38469 | ||
38470 | * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists). | |
38471 | ||
38472 | * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of | |
38473 | requirement for preserving a copy of the original assignment node. | |
38474 | ||
38475 | * sinfo.ads: Update comment (Original_Tree -> Original_Node). | |
38476 | ||
38477 | 2004-04-06 Olivier Hainque <hainque@act-europe.fr> | |
38478 | ||
38479 | (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits | |
38480 | when supported. | |
38481 | ||
38482 | 2004-04-06 Ed Schonberg <schonberg@gnat.com> | |
38483 | ||
38484 | * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to | |
38485 | operator calls in functional notation, and apply | |
38486 | Universal_Interpretation to operands, not to their type. | |
38487 | ||
38488 | 2004-04-06 Robert Dewar <dewar@gnat.com> | |
38489 | ||
38490 | * 5wdirval.adb: Minor reformatting | |
38491 | ||
38492 | 2004-04-06 Ed Falis <falis@gnat.com> | |
38493 | ||
38494 | * gnat_rm.texi: Improve a reference to the GCC manual | |
38495 | ||
d24d7e81 | 38496 | 2004-04-05 Vincent Celier <celier@gnat.com> |
38497 | ||
38498 | * adaint.h, adaint.c: Add function __gnat_named_file_length | |
38499 | ||
38500 | * impunit.adb: Add Ada.Directories to the list | |
38501 | ||
38502 | * Makefile.in: Add VMS and Windows versions of | |
38503 | Ada.Directories.Validity package body. | |
38504 | ||
38505 | * Makefile.rtl: Add a-direct and a-dirval | |
38506 | ||
38507 | * mlib-tgt.ads: Minor comment update. | |
38508 | ||
38509 | * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb, | |
38510 | a-direct.ads, a-direct.adb: New files. | |
38511 | ||
38512 | 2004-04-05 Vincent Celier <celier@gnat.com> | |
38513 | ||
38514 | PR ada/13620 | |
38515 | * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not | |
38516 | just to the compiler. | |
38517 | ||
38518 | 2004-04-05 Robert Dewar <dewar@gnat.com> | |
38519 | ||
38520 | * a-except.adb (Exception_Name_Simple): Make sure lower bound of | |
38521 | returned string is 1. | |
38522 | ||
38523 | * ali-util.adb: Use proper specific form for Warnings (Off, entity) | |
38524 | ||
38525 | * eval_fat.ads: Minor reformatting | |
38526 | ||
38527 | * g-curexc.ads: Document that lower bound of returned string values | |
38528 | is always one. | |
38529 | ||
38530 | * gnatlink.adb: Add ??? comment for previous change | |
38531 | (need to document why this is VMS specific) | |
38532 | ||
38533 | * s-stoele.ads: Minor reformatting | |
38534 | ||
38535 | * tbuild.ads: Minor reformatting throughout (new function specs) | |
38536 | ||
38537 | * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon | |
38538 | after WITH. | |
38539 | ||
38540 | * scng.adb: Minor reformatting | |
38541 | ||
38542 | 2004-04-05 Geert Bosch <bosch@gnat.com> | |
38543 | ||
38544 | * eval_fat.adb (Machine): Remove unnecessary suppression of warning. | |
38545 | (Leading_Part): Still perform truncation to machine number if the | |
38546 | specified radix_digits is greater or equal to machine_mantissa. | |
38547 | ||
38548 | 2004-04-05 Javier Miranda <miranda@gnat.com> | |
38549 | ||
38550 | * par-ch3.adb: Complete documentation of previous change | |
38551 | Correct wrong syntax documentation of the OBJECT_DECLARATION rule | |
38552 | (aliased must appear before constant). | |
38553 | ||
38554 | * par-ch4.adb: Complete documentation of previous change. | |
38555 | ||
38556 | * par-ch6.adb: Complete documentation of previous change. | |
38557 | ||
38558 | * sinfo.ads: Fix typo in commment. | |
38559 | ||
38560 | 2004-04-05 Ed Schonberg <schonberg@gnat.com> | |
38561 | ||
38562 | * sem_ch3.adb (Inherit_Components): If derived type is private and has | |
38563 | stored discriminants, use its discriminants to constrain parent type, | |
38564 | as is done for non-private derived record types. | |
38565 | ||
38566 | * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement | |
38567 | Ada 2005 AI-310: an abstract non-dispatching operation is not a | |
38568 | candidate interpretation in an overloaded call. | |
38569 | ||
38570 | * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if | |
38571 | expression is Null and target type is not an access type (e.g. a | |
38572 | non-private address type). | |
38573 | ||
38574 | 2004-04-05 Thomas Quinot <quinot@act-europe.fr> | |
38575 | ||
38576 | * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment | |
38577 | statement whose right-hand side is an inlined call, save a copy of the | |
38578 | original assignment subtree to preserve enough consistency for | |
38579 | Analyze_Assignment to proceed. | |
38580 | ||
38581 | * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the | |
38582 | complete assignment subtree which is now unnecessary, as the expansion | |
38583 | of inlined call has been improved to preserve a consistent assignment | |
38584 | tree. Note_Possible_Modification must be called only | |
38585 | after checks have been applied, or else unnecessary checks will | |
38586 | be generated. | |
38587 | ||
38588 | * sem_util.adb (Note_Possible_Modification): Reorganise the handling | |
38589 | of explicit dereferences that do not Come_From_Source: | |
38590 | - be selective on cases where we must go back to the dereferenced | |
38591 | pointer (an assignment to an implicit dereference must not be | |
38592 | recorded as modifying the pointer); | |
38593 | - do not rely on Original_Node being present (Analyze_Assignment | |
38594 | calls Note_Possible_Modification on a copied tree). | |
38595 | ||
38596 | * sem_warn.adb (Check_References): When an unset reference to a pointer | |
38597 | that is never assigned is encountered, prefer '<pointer> may be null' | |
38598 | warning over '<pointer> is never assigned a value'. | |
38599 | ||
38600 | 2004-04-05 Ramon Fernandez <fernandez@gnat.com> | |
38601 | ||
38602 | * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with | |
38603 | the ABI. | |
38604 | ||
38605 | 2004-04-05 Olivier Hainque <hainque@act-europe.fr> | |
38606 | ||
38607 | * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for | |
38608 | libexc. We currently don't reference anything in this library and | |
38609 | linking it in triggers linker warnings we don't want to see. | |
38610 | ||
38611 | * init.c: Update comments. | |
38612 | ||
66d12a6c | 38613 | 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> |
38614 | ||
38615 | * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY. | |
38616 | * utils.c (create_field_decl): Likewise. | |
38617 | * utils2.c (build_unary_op, gnat_build_constructor): Likewise. | |
38618 | ||
23dfa992 | 38619 | 2004-04-02 Arnaud Charlet <charlet@act-europe.fr> |
38620 | ||
38621 | * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags. | |
38622 | Replace ifinfo by ifnottex, to make makeinfo --html happy again. | |
38623 | Add info directory entry and category. | |
38624 | ||
b0cdf642 | 38625 | 2004-04-02 Jan Hubicka <jh@suse.cz> |
38626 | ||
38627 | * utils.c: Include function.h | |
38628 | (end_subprog_body): Clear DECL_STRUCT_FUNCTION. | |
38629 | ||
f9dc9f16 | 38630 | 2004-04-01 Arnaud Charlet <charlet@act-europe.fr> |
38631 | ||
38632 | PR ada/14150 | |
38633 | * Make-lang.in: Clean up generation of documentation | |
38634 | ||
38635 | * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version | |
38636 | ||
38637 | * xgnatug.adb: Removed, replaced by xgnatugn.adb | |
38638 | ||
38639 | * xgnatugn.adb: Replaces xgnatug.adb | |
38640 | ||
38641 | * gnat_ug.texi: Removed, replaced by gnat_ugn.texi | |
38642 | ||
38643 | * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version | |
38644 | ||
38645 | * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi, | |
38646 | gnat_ug_wnt.texi: Removed. | |
38647 | ||
c0e6974d | 38648 | 2004-04-01 Arnaud Charlet <charlet@act-europe.fr> |
38649 | ||
38650 | * utils2.c: Update copyright notice. | |
38651 | ||
314a23b6 | 38652 | 2004-04-01 Robert Dewar <dewar@gnat.com> |
38653 | ||
38654 | * checks.adb: Minor reformatting throughout | |
38655 | Note that prev checkin added RM reference to alignment warning | |
38656 | ||
38657 | 2004-04-01 Ed Schonberg <schonberg@gnat.com> | |
38658 | ||
38659 | * exp_aggr.adb (Get_Component_Val): Treat a string literal as | |
38660 | non-static when building aggregate for bit-packed array. | |
38661 | ||
38662 | * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a | |
38663 | function call that is itself the actual in a procedure call, build | |
38664 | temporary for it. | |
38665 | ||
38666 | * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is | |
38667 | a string literal, create a temporary for it, constant folding only | |
38668 | handles scalars here. | |
38669 | ||
38670 | 2004-04-01 Vincent Celier <celier@gnat.com> | |
38671 | ||
38672 | * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC, | |
38673 | Error_Msg_SP): New empty procedures to instantiate the Scanner. | |
38674 | (Style, Scanner): Instantiations of Styleg and Scng to be able to scan | |
38675 | tokens. | |
38676 | (Accumulate_Checksum, Initialize_Checksum): Remove procedures. | |
38677 | (Get_File_Checksum): Use the instantiated scanner to scan all the tokens | |
38678 | and get the checksum. | |
38679 | ||
38680 | * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is | |
38681 | already in the Q. | |
38682 | Increase the Marking_Label at the end of the Multiple_Main_Loop, | |
38683 | instead of at the beginning. | |
38684 | ||
38685 | * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~' | |
38686 | directly. | |
38687 | (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if | |
38688 | on VMS. | |
38689 | ||
38690 | * osint.ads (Multi_Unit_Index_Character): New Character global variable | |
38691 | ||
38692 | * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character, | |
38693 | not '~' directly. | |
38694 | ||
38695 | * par.adb: Remove test on file name to detect language defined units. | |
38696 | Add test on unit name, after parsing, to detect language defined units | |
38697 | that are not compiled with -gnatg (except System.RPC and its children) | |
38698 | ||
38699 | * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the | |
38700 | following units without style checking. | |
38701 | ||
38702 | * switch-c.adb: Change -gnatC to -gnateI | |
38703 | ||
38704 | * usage.adb: Document new switch -gnateInnn | |
38705 | ||
38706 | * scng.adb (Accumulate_Token_Checksum): New procedure | |
38707 | (Scan): Call Accumulate_Token_Checksum after each identifier, reserved | |
38708 | word or literal number. | |
38709 | (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral | |
38710 | numbers. | |
38711 | ||
38712 | 2004-04-01 Thomas Quinot <quinot@act-europe.fr> | |
38713 | ||
38714 | * a-tasatt.adb, | |
38715 | g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb, | |
38716 | switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb, | |
38717 | 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, | |
38718 | 5vtpopde.adb: Add missing 'constant' keywords. | |
38719 | ||
38720 | 2004-04-01 Javier Miranda <miranda@gnat.com> | |
38721 | ||
38722 | * par-ch4.adb: (P_Allocator): Code cleanup | |
38723 | ||
38724 | * sem_ch3.adb (Access_Definition): Properly set the null-excluding | |
38725 | attribute. | |
38726 | ||
38727 | * sinfo.ads: Complete documentation of previous change | |
38728 | ||
38729 | 2004-04-01 Pascal Obry <obry@gnat.com> | |
38730 | ||
38731 | * gnatlink.adb (Process_Binder_File): Remove duplicate linker options | |
38732 | only on VMS. This special handling was done because an old GNU/ld bug | |
38733 | on Windows which has been fixed. | |
38734 | ||
38735 | 2004-04-01 GNAT Script <nobody@gnat.com> | |
38736 | ||
38737 | * Make-lang.in: Makefile automatically updated | |
38738 | ||
78a8ed03 | 38739 | 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> |
38740 | ||
38741 | * decl.c (gnat_to_gnu_entity, make_type_from_size): | |
38742 | Use TYPE_UNSIGNED, not TREE_UNSIGNED. | |
38743 | * trans.c (tree_transform, convert_with_check): Likewise. | |
38744 | * utils.c (gnat_signed_or_unsigned_type): Likewise. | |
38745 | (build_vms_descriptor, unchecked_convert): Likewise. | |
38746 | * utils2.c (nonbinary_modular_operation): Likewise. | |
38747 | ||
fa7497e8 | 38748 | 2004-03-29 Javier Miranda <miranda@gnat.com> |
38749 | ||
38750 | * checks.adb (Null_Exclusion_Static_Checks): New subprogram | |
38751 | (Install_Null_Excluding_Check): Local subprogram that determines whether | |
38752 | an access node requires a runtime access check and if so inserts the | |
38753 | appropriate run-time check. | |
38754 | (Apply_Access_Check): Call Install_Null_Excluding check if required | |
38755 | (Apply_Constraint_Check): Call Install_Null_Excluding check if required | |
38756 | ||
38757 | * checks.ads: (Null_Exclusion_Static_Checks): New subprogram | |
38758 | ||
38759 | * einfo.ads: Fix typo in comment | |
38760 | ||
38761 | * exp_ch3.adb (Build_Assignment): Generate conversion to the | |
38762 | null-excluding type to force the corresponding run-time check. | |
38763 | (Expand_N_Object_Declaration): Generate conversion to the null-excluding | |
38764 | type to force the corresponding run-time check. | |
38765 | ||
38766 | * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to | |
38767 | the null-excluding type to force the corresponding run-time check. | |
38768 | ||
38769 | * exp_ch6.adb (Expand_Call): Do not generate the run-time check in | |
38770 | case of access types unless they have the null-excluding attribute. | |
38771 | ||
38772 | * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing | |
38773 | part. | |
38774 | ||
38775 | * exp_util.ads: Fix typo in comment | |
38776 | ||
38777 | * par.adb (P_Null_Exclusion): New subprogram | |
38778 | (P_Subtype_Indication): New formal that indicates if the null-excluding | |
38779 | part has been scanned-out and it was present | |
38780 | ||
38781 | * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231 | |
38782 | ||
38783 | * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram | |
38784 | (Aggregate_Constraint_Checks): Generate conversion to the null-excluding | |
38785 | type to force the corresponding run-time check | |
38786 | (Resolve_Aggregate): Propagate the null-excluding attribute to the array | |
38787 | components | |
38788 | (Resolve_Array_Aggregate): Carry out some static checks | |
38789 | (Resolve_Record_Aggregate.Get_Value): Carry out some static check | |
38790 | ||
38791 | * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null | |
38792 | attribute must be set only if specified by means of the null-excluding | |
38793 | part. In addition, we must also propagate the access-constant attribute | |
38794 | if present. | |
38795 | (Access_Subprogram_Declaration, Access_Type_Declaration, | |
38796 | Analyze_Component_Declaration, Analyze_Object_Declaration, | |
38797 | Array_Type_Declaration, Process_Discriminants, | |
38798 | Analyze_Subtype_Declaration): Propagate the null-excluding attribute | |
38799 | and carry out some static checks. | |
38800 | (Build_Derived_Access_Type): Set the null-excluding attribute | |
38801 | (Derived_Type_Declaration, Process_Subtype): Carry out some static | |
38802 | checks. | |
38803 | ||
38804 | * sem_ch4.adb (Analyze_Allocator): Carry out some static checks | |
38805 | ||
38806 | * sem_ch5.adb (Analyze_Assignment): Carry out some static checks | |
38807 | ||
38808 | * sem_ch6.adb (Process_Formals): Carry out some static checks. | |
38809 | (Set_Actual_Subtypes): Generate null-excluding subtype if the | |
38810 | null-excluding part was present; it is not required to be done here in | |
38811 | case of anonymous access types. | |
38812 | (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null | |
38813 | value. | |
38814 | ||
38815 | * sem_res.adb (Resolve_Actuals): Carry out some static check | |
38816 | (Resolve_Null): Allow null in anonymous access | |
38817 | ||
38818 | * sinfo.adb: New subprogram Null_Exclusion_Present | |
38819 | All_Present and Constant_Present available on access_definition nodes | |
38820 | ||
38821 | * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration, | |
38822 | object_declaration, derived_type_definition, component_definition, | |
38823 | discriminant_specification, access_to_object_definition, | |
38824 | access_function_definition, allocator, access_procedure_definition, | |
38825 | access_definition, parameter_specification, All_Present and | |
38826 | Constant_Present flags available on access_definition nodes. | |
38827 | ||
38828 | 2004-03-29 Robert Dewar <dewar@gnat.com> | |
38829 | ||
38830 | * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads, | |
38831 | gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb, | |
38832 | opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb, | |
38833 | par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb, | |
38834 | sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb, | |
38835 | sem_prag.adb: Updates to handle multiple units/file | |
38836 | ||
38837 | * par.adb: Change test for s-rpc to s-rp for detecting rpc and children | |
38838 | ||
38839 | * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb, | |
38840 | sem_util.adb: Minor reformatting | |
38841 | ||
38842 | * sem_ch12.adb: Add comment for previous change | |
38843 | ||
38844 | 2004-03-29 Laurent Pautet <pautet@act-europe.fr> | |
38845 | ||
38846 | * osint.adb (Executable_Prefix): Set Exec_Name to the current | |
38847 | executable name when not initialized. Otherwise, use its current value. | |
38848 | ||
38849 | * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to | |
38850 | initialize it to another executable name than the current one. This | |
38851 | allows to configure paths for an executable name (gnatmake) different | |
38852 | from the current one (gnatdist). | |
38853 | ||
38854 | 2004-03-29 Ed Schonberg <schonberg@gnat.com> | |
38855 | ||
38856 | * exp_ch6.adb (Expand_Call): A call to a function declared in the | |
38857 | current unit cannot be inlined if it appears in the body of a withed | |
38858 | unit, to avoid order of elaboration problems in gigi. | |
38859 | ||
38860 | * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging | |
38861 | information for protected (wrapper) operation as well, to simplify gdb | |
38862 | use. | |
38863 | ||
38864 | * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a | |
38865 | protected body, indicate that the entity for the generated spec comes | |
38866 | from source, to ensure that references are properly generated for it. | |
38867 | (Build_Body_To_Inline): Do not inline a function that returns a | |
38868 | controlled type. | |
38869 | ||
38870 | * sem_prag.adb (Process_Convention): If subprogram is overloaded, only | |
38871 | apply convention to homonyms that are declared explicitly. | |
38872 | ||
38873 | * sem_res.adb (Make_Call_Into_Operator): If the operation is a function | |
38874 | that renames an equality operator and the operands are overloaded, | |
38875 | resolve them with the declared formal types, before rewriting as an | |
38876 | operator. | |
38877 | ||
38878 | 2004-03-29 GNAT Script <nobody@gnat.com> | |
38879 | ||
38880 | * Make-lang.in: Makefile automatically updated | |
38881 | ||
03e3a723 | 38882 | 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr> |
38883 | ||
38884 | * memtrack.adb: Log realloc calls, which are treated as free followed | |
38885 | by alloc. | |
38886 | ||
38887 | 2004-03-25 Vincent Celier <celier@gnat.com> | |
38888 | ||
38889 | * prj-makr.adb (Process_Directories): Detect when a file contains | |
38890 | several units. Do not include such files in the config pragmas or | |
38891 | in the naming scheme. | |
38892 | ||
38893 | * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode. | |
38894 | Resolve links only when not in Trusted_Mode. | |
38895 | (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory): | |
38896 | Do not resolve links for the display names. | |
38897 | ||
38898 | * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not | |
38899 | resolve links when computing the display names. | |
38900 | ||
38901 | 2004-03-25 Thomas Quinot <quinot@act-europe.fr> | |
38902 | ||
38903 | * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag | |
38904 | attribute reference does not denote a subtype, it can be any | |
38905 | expression that has a classwide type, potentially after an implicit | |
38906 | dereference. In particular, the prefix can be a view conversion for | |
38907 | a classwide type (for which Is_Object_Reference holds), but it can | |
38908 | also be a value conversion for an access-to-classwide type. In the | |
38909 | latter case, there is an implicit dereference, and the original node | |
38910 | for the prefix does not verify Is_Object_Reference. | |
38911 | ||
38912 | * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view | |
38913 | conversion of a discriminant-dependent component of a mutable object | |
38914 | is one itself. | |
38915 | ||
38916 | 2004-03-25 Ed Schonberg <schonberg@gnat.com> | |
38917 | ||
38918 | * freeze.adb (Freeze_Entity): When an inherited subprogram is | |
38919 | inherited, has convention C, and has unconstrained array parameters, | |
38920 | place the corresponding warning on the derived type declaration rather | |
38921 | than the original subprogram. | |
38922 | ||
38923 | * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default | |
38924 | indication on renaming declaration, if formal has a box and actual | |
38925 | is absent. | |
38926 | ||
38927 | * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to | |
38928 | determine whether to generate an implicit or explicit reference to | |
38929 | the renamed entity. | |
38930 | ||
38931 | * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a | |
38932 | subprogram renaming comes from a defaulted formal subprogram in an | |
38933 | instance. | |
38934 | ||
38935 | 2004-03-25 Gary Dismukes <dismukes@gnat.com> | |
38936 | ||
38937 | * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default | |
38938 | value expressions to ensure that calls within a component definition | |
38939 | will be checked (since those are evaluated during the record type's | |
38940 | elaboration). | |
38941 | ||
38942 | 2004-03-25 Arnaud Charlet <charlet@act-europe.fr> | |
38943 | ||
38944 | * s-tpobop.adb: Code clean up: | |
38945 | (Requeue_Call): Extract from PO_Service_Entries to remove duplicated | |
38946 | code. | |
38947 | (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call. | |
38948 | ||
38949 | 2004-03-25 Jose Ruiz <ruiz@act-europe.fr> | |
38950 | ||
38951 | * Makefile.in: Clean up in the ravenscar run time. | |
38952 | ||
b24423db | 38953 | 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> |
38954 | ||
38955 | * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value | |
38956 | of No_Strict_Aliasing to build_pointer_type_for_mode. | |
38957 | * utils.c (update_pointer_to): Walk pointer and ref chains. | |
38958 | ||
2d204d4b | 38959 | 2004-03-22 Cyrille Comar <comar@act-europe.fr> |
38960 | ||
38961 | * ali.ads: Fix Comment about Dynamic_Elab. | |
38962 | ||
38963 | * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab, | |
38964 | Has_RACW, Is_Generic, etc.) | |
38965 | (Output_Object, Gnatls): Take into account ALI files not attached to | |
38966 | an object. | |
38967 | ||
38968 | 2004-03-22 Vincent Celier <celier@gnat.com> | |
38969 | ||
38970 | * gprep.adb: Change all String_Access to Name_Id | |
38971 | (Is_ASCII_Letter): new function | |
38972 | (Double_File_Name_Buffer): New procedure | |
38973 | (Preprocess_Infile_Name): New procedure | |
38974 | (Process_Files): New procedure | |
38975 | (Gnatprep): Check if output and input are existing directories. | |
38976 | Call Process_Files to do the real job. | |
38977 | ||
38978 | 2004-03-22 Robert Dewar <dewar@gnat.com> | |
38979 | ||
38980 | * prj-env.adb, prj-nmsc.ads, prj-proc.ads, | |
38981 | s-stache.ads, s-stache.adb: Comment updates. Minor reformatting. | |
38982 | ||
38983 | 2004-03-22 Sergey Rybin <rybin@act-europe.fr> | |
38984 | ||
38985 | * scn.adb (Contains): Add check for EOF, is needed for a degenerated | |
38986 | case when the source contains only comments. | |
38987 | ||
38988 | 2004-03-22 Ed Schonberg <schonberg@gnat.com> | |
38989 | ||
38990 | * sem_ch10.adb (Analyze_Compilation_Unit): When generating a | |
38991 | declaration for a child subprogram body that acts as a spec, indicate | |
38992 | that the entity in the declaration needs debugging information. | |
38993 | ||
38994 | * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying | |
38995 | full view if the subtype is created for a constrained record component; | |
38996 | gigi has enough information to construct the record, and there is no | |
38997 | place in the tree for the declaration. | |
38998 | ||
38999 | * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without | |
39000 | serial number for the dummy body that is built for analysis, to avoid | |
39001 | inconsistencies in the generation of internal names when compiling | |
39002 | with -gnatN. | |
39003 | ||
39004 | 2004-03-22 Thomas Quinot <quinot@act-europe.fr> | |
39005 | ||
39006 | * sem_util.adb (Is_Object_Reference): A view conversion denotes an | |
39007 | object. | |
39008 | ||
39009 | 2004-03-22 GNAT Script <nobody@gnat.com> | |
39010 | ||
39011 | * Make-lang.in: Makefile automatically updated | |
39012 | ||
55f9d7dc | 39013 | 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> |
39014 | ||
39015 | * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR. | |
39016 | * trans.c (tree_transform, emit_index_check): Likewise. | |
39017 | * utils.c (build_template): Likewise. | |
39018 | (max_size, convert): Remove handling of WITH_RECORD_EXPR. | |
39019 | (maybe_unconstrained_array, unchecked_convert): Likewise. | |
39020 | * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise. | |
39021 | (build_unary_op): Likewise. | |
39022 | (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR. | |
39023 | (fill_vms_descriptor): Likewise. | |
39024 | (build_call_alloc_dealloc): Likewise. | |
39025 | ALIGN is unsigned. | |
39026 | * gigi.h (build_call_alloc_dealloc): Alignment is unsigned. | |
39027 | ||
8bc0afb1 | 39028 | 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk> |
39029 | ||
39030 | PR other/14630 | |
39031 | * gnat_ug.texi: Add info directory category and entry. | |
39032 | * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi, | |
39033 | gnat_ug_wnt.texi: Regenerate. | |
39034 | ||
ea3fd778 | 39035 | 2004-03-19 Arnaud Charlet <charlet@act-europe.fr> |
39036 | ||
39037 | * ada-tree.h: Update copyright notice. | |
39038 | Minor reformatting. | |
39039 | ||
39040 | 2004-03-19 Olivier Hainque <hainque@act-europe.fr> | |
39041 | ||
39042 | * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions | |
39043 | as regular exception objects and not as mere integers representing the | |
39044 | condition code. The latter approach required some dynamics to mask off | |
39045 | severity bits, which did not fit well into the GCC table based model. | |
39046 | (gnat_to_gnu_entity, objects): Don't supply an external name for VMS | |
39047 | exception data objects. We don't it and it would conflict with the other | |
39048 | external symbol we have to generate for such exceptions. | |
39049 | ||
39050 | * trans.c (tree_transform, case N_Exception_Handler): Remove part of | |
39051 | the special code for VMS exceptions, since these are now represented | |
39052 | as regular exceptions objects. | |
39053 | ||
a26d3281 | 39054 | 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> |
39055 | ||
39056 | * decl.c (debug_no_type_hash): Remove. | |
39057 | (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it. | |
39058 | * misc.c (LANG_HOOK_HASH_TYPE): Redefine. | |
39059 | ||
8a67bb47 | 39060 | 2004-03-19 Laurent Guerby <laurent@guerby.net> |
9589ca7a | 39061 | |
1acf0298 | 39062 | * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of |
9589ca7a | 39063 | aggregate, allows bootstrap from 3.3 on powerpc-darwin. |
1acf0298 | 39064 | |
82bb2115 | 39065 | 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> |
39066 | ||
39067 | * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking. | |
39068 | (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise. | |
39069 | (TYPE_RM_SIZE_INT): Directly use type.values. | |
39070 | (TREE_LOOP_ID): Clean up check. | |
39071 | * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use | |
39072 | TYPE_VALUES, not TYPE_FIELDS. | |
39073 | * trans.c (convert_with_check): Delay access of bounds of basetype | |
39074 | until sure is numeric. | |
39075 | ||
40a4417a | 39076 | 2004-03-18 Arnaud Charlet <charlet@act-europe.fr> |
39077 | ||
39078 | * 5atpopsp.adb: Remove RTEMS from list of platforms using this file. | |
39079 | ||
39080 | Code clean up: | |
39081 | * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb, | |
39082 | 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use | |
39083 | Specific.Set instead of direct call to e.g pthread_setspecific. | |
39084 | ||
39085 | 2004-03-18 Thomas Quinot <quinot@act-europe.fr> | |
39086 | ||
39087 | * adaint.c: Update comments. | |
39088 | ||
39089 | * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and | |
39090 | GNATLIB_SHARED for FreeBSD. | |
39091 | ||
39092 | 2004-03-18 Jose Ruiz <ruiz@act-europe.fr> | |
39093 | ||
39094 | * init.c [VxWorks]: Do not fix the stack size for the environment task. | |
39095 | When needed (stack checking) the stack size is retrieved | |
39096 | from the VxWorks kernel. | |
39097 | ||
39098 | * Makefile.in: Flag -nostdinc is required when building the run time | |
39099 | for avoiding looking for files in the base compiler. | |
39100 | Add the VxWorks specific version of the package body for | |
39101 | System.Stack_checking.Operations (5zstchop.adb). | |
39102 | ||
39103 | * Make-lang.in: Add the object file for | |
39104 | System.Stack_Checking.Operations. | |
39105 | ||
39106 | * Makefile.rtl: Add object file for the package | |
39107 | System.Stack_Checking.Operations. | |
39108 | ||
39109 | * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files. | |
39110 | ||
39111 | * s-stache.ads, s-stache.adb: Move the operations related to stack | |
39112 | checking from this package to package System.Stack_Checking.Operations. | |
39113 | This way, stack checking operations are only linked in the final | |
39114 | executable when using the -fstack-check flag. | |
39115 | ||
39116 | 2004-03-18 Doug Rupp <rupp@gnat.com> | |
39117 | ||
39118 | * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads). | |
39119 | Reorganize ifeq's. | |
39120 | ||
39121 | * 5qsystem.ads, 5xcrtl.ads: New files. | |
39122 | ||
39123 | 2004-03-18 Vincent Celier <celier@gnat.com> | |
39124 | ||
39125 | * prj.adb (Reset): Reset hash table Files_Htable | |
39126 | ||
39127 | * prj-env.adb (Source_Paths, Object_Paths): New tables. | |
39128 | (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace | |
39129 | the procedures Add_To_Path_File. | |
39130 | (Set_Ada_Paths): Accumulate source and object dirs in the tables, | |
39131 | making sure that each directory is present only once and, for object | |
39132 | dirs, when a directory already present is added, the duplicate is | |
39133 | removed and the directory is always put as the last in the table. | |
39134 | Write the path files at the end of these accumulations. | |
39135 | ||
39136 | * prj-nmsc.adb (Record_Source): Add source file name in hash table | |
39137 | Files_Htable for all sources. | |
39138 | ||
39139 | * prj-proc.adb (Process): Remove restrictions between not directly | |
39140 | related extending projects. | |
39141 | ||
39142 | 2004-03-18 Emmanuel Briot <briot@act-europe.fr> | |
39143 | ||
39144 | * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode. | |
39145 | (Find_Sources): Minor speed optimization. | |
39146 | ||
39147 | * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New | |
39148 | parameter Trusted_Mode. | |
39149 | ||
39150 | 2004-03-18 Sergey Rybin <rybin@act-europe.fr> | |
39151 | ||
39152 | * scn.adb (Determine_License): Take into account a degenerated case | |
39153 | when the source contains only comments. | |
39154 | ||
39155 | 2004-03-18 Ed Schonberg <schonberg@gnat.com> | |
39156 | ||
39157 | * sem_warn.adb (Check_References): For a warning on a selected | |
39158 | component that does not come from source, locate an uninitialized | |
39159 | component of the record type to produce a more precise error message. | |
39160 | ||
28ed91d4 | 39161 | 2004-03-15 Jerome Guitton <guitton@act-europe.fr> |
39162 | ||
39163 | * 3zsoccon.ads: Fix multicast options. | |
39164 | ||
39165 | * s-thread.ads: Move unchecked conversion from ATSD_Access to Address | |
39166 | in the spec. | |
39167 | ||
39168 | 2004-03-15 Robert Dewar <dewar@gnat.com> | |
39169 | ||
39170 | * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when | |
39171 | pragma used for a private type. | |
39172 | ||
39173 | * lib-xref.adb (Generate_Reference): Do not generate warning if | |
39174 | reference is in a different unit from the pragma Unreferenced. | |
39175 | ||
39176 | * 5vtpopde.adb: Minor reformatting | |
39177 | Fix casing of To_Task_ID | |
39178 | ||
39179 | * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing | |
39180 | flag if we have an unchecked conversion to an access type in the same | |
39181 | unit. | |
39182 | ||
39183 | 2004-03-15 Geert Bosch <bosch@gnat.com> | |
39184 | ||
39185 | * a-ngcoty.adb (Modulus): In alternate formula for large real or | |
39186 | imaginary parts, use Double precision throughout. | |
39187 | ||
39188 | * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only | |
39189 | we want to be able to compile run-time with -gnata for testing, but | |
39190 | this may also be instantiated in user code that is compiled with -gnata. | |
39191 | ||
39192 | 2004-03-15 Olivier Hainque <hainque@act-europe.fr> | |
39193 | ||
39194 | * s-stalib.ads (Exception_Code): New type, to represent Import/Export | |
39195 | codes. Having a separate type for this is useful to enforce consistency | |
39196 | throughout the various run-time units. | |
39197 | (Exception_Data): Use Exception_Code for Import_Code. | |
39198 | ||
39199 | * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of | |
39200 | Natural and Integer in various places. | |
39201 | (Register_VMS_Exception): Use Base_Code_In to compute the exception code | |
39202 | with the severity bits masked off. | |
39203 | (Register_VMS_Exception): Handle the additional exception data pointer | |
39204 | argument. | |
39205 | ||
39206 | * raise.c (_GNAT_Exception structure): Remove the handled_by_others | |
39207 | component, now reflected by an exported accessor. | |
39208 | (is_handled_by): New routine to compute whether the propagated | |
39209 | occurrence matches some handler choice specification. Extracted out of | |
39210 | get_action_description_for, and expanded to take care of the VMS | |
39211 | specifities. | |
39212 | (get_action_description_for): Use is_handled_by instead of an explicit | |
39213 | complex condition to decide if the current choice at hand catches the | |
39214 | propagated occurrence. | |
39215 | ||
39216 | * raise.h (Exception_Code): New type for C. | |
39217 | ||
39218 | * rtsfind.ads (RE_Id, RE_Unit_Table): Add | |
39219 | System.Standard_Library.Exception_Code, to allow references from the | |
39220 | pragma import/export expander. | |
39221 | ||
39222 | * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For): | |
39223 | New accessors to allow easy access to GNAT exception data | |
39224 | characteristics. | |
39225 | (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the | |
39226 | redundant Handled_By_Others component, helper for the personality | |
39227 | routine which will now be able to call the appropriate exception data | |
39228 | accessor instead. | |
39229 | ||
39230 | * cstand.adb (Create_Standard): Adjust the type of the Import_Code | |
39231 | component of Standard_Exception_Type to be the closest possible to | |
39232 | Exception_Code in System.Standard_Library, that we cannot get at this | |
39233 | point. Expand a ??? comment to notify that this type node should | |
39234 | probably be rewritten later on. | |
39235 | ||
39236 | * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the | |
39237 | registration call to include a pointer to the exception object in the | |
39238 | arguments. | |
39239 | ||
39240 | * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In | |
39241 | instead of int and explicit bitmasks. | |
39242 | ||
39243 | 2004-03-15 Vincent Celier <celier@gnat.com> | |
39244 | ||
39245 | * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED | |
39246 | equivalent to /STATIC and /NOSTATIC equivalent to /SHARED. | |
39247 | ||
39248 | * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no | |
39249 | longer needed now that it is in the spec of | |
39250 | System.Tasking.Task_Attributes. | |
39251 | ||
39252 | * adaint.h, adaint.c: (__gnat_create_output_file): New function | |
39253 | ||
39254 | * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of = | |
39255 | ||
39256 | * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function. | |
39257 | ||
39258 | * make.adb (Gnatmake): Do not check the executable suffix; it is being | |
39259 | taken care of in Scan_Make_Arg. | |
39260 | (Scan_Make_Arg): Add the executable suffix only if the argument | |
39261 | following -o, in canonical case, does not end with the executable | |
39262 | suffix. When in verbose mode and executable file name does not end | |
39263 | with executable suffix, output the executable name, in canonical case. | |
39264 | ||
39265 | * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing | |
39266 | to avoid warnings when instantiating Ada.Task_Attributes. | |
39267 | Minor reformating. | |
39268 | ||
39269 | * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries | |
39270 | in the correct order. | |
39271 | ||
39272 | * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but | |
39273 | redirect standard output and error to a file for the invocation of the | |
39274 | compiler, then read the file. | |
39275 | ||
39276 | * prj-nmsc.adb (Find_Sources): Use the Display_Value for each | |
39277 | directory, instead of the Value. | |
39278 | (Find_Source_Dirs): Remove useless code & comments. | |
39279 | ||
39280 | 2004-03-15 Ed Schonberg <schonberg@gnat.com> | |
39281 | ||
39282 | * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a | |
39283 | tagged type is inherited, and the parent operation is not frozen yet, | |
39284 | force generation of a freeze node for the inherited operation, so the | |
39285 | corresponding dispatch entry is properly initialized. | |
39286 | (Make_Predefined_Primitive_Specs): Check that return type is Boolean | |
39287 | when looking for user-defined equality operation. | |
39288 | ||
39289 | * exp_ch4.adb (Expand_Composite_Equality): Check that return type is | |
39290 | boolean when locating primitive equality of tagged component. | |
39291 | ||
39292 | * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a | |
39293 | bit-aligned field and the right-hand side a string literal, introduce | |
39294 | a temporary before expanding assignment into a loop. | |
39295 | ||
39296 | * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for | |
39297 | priority in full, to ensure that any expanded subepxressions of it are | |
39298 | elaborated in the scope of the init_proc. | |
39299 | ||
39300 | * exp_prag.adb (Expand_Pragma_Import): Search for initialization call | |
39301 | after object declaration, skipping over code that may have been | |
39302 | generated for validity checks. | |
39303 | ||
39304 | * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown | |
39305 | discriminants, ignore the known discriminants of its full view, if | |
39306 | any, to check legality. | |
39307 | ||
39308 | * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained | |
39309 | component if type has unknown discriminants. | |
39310 | (Analyze_Private_Extension_Declaration): Discriminant constraint is | |
39311 | null if type has unknown discriminants. | |
39312 | ||
39313 | * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference | |
39314 | for end label when present. | |
39315 | ||
39316 | * s-fileio.adb (Open): When called with a C_Stream, use given name for | |
39317 | temporary file, rather than an empty string. | |
39318 | ||
39319 | 2004-03-15 Ed Falis <falis@gnat.com> | |
39320 | ||
39321 | * s-thread.adb: Removed, no longer used. | |
39322 | ||
39323 | 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
39324 | ||
39325 | * decl.c (target.h): Now include. | |
39326 | (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE | |
39327 | in new build_pointer_from_mode calls for non-fat/non-thin pointer. | |
39328 | (validate_size): For POINTER_TYPE, get smallest size permitted on | |
39329 | machine. | |
39330 | ||
39331 | * fe.h: Sort Einfo decls and add Set_Mechanism. | |
39332 | ||
39333 | * Makefile.in: (LIBGNAT_SRCS): Remove types.h. | |
39334 | (ada/decl.o): Depends on target.h. | |
39335 | ||
39336 | * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use | |
39337 | FUNCTION_BOUNDARY; always use TYPE_ALIGN. | |
39338 | ||
39339 | 2004-03-15 Thomas Quinot <quinot@act-europe.fr> | |
39340 | ||
39341 | * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID. | |
39342 | ||
39343 | * exp_ch4.adb (Expand_N_Indexed_Component): Do not call | |
39344 | Insert_Dereference_Action when rewriting an implicit dereference into | |
39345 | an explicit one, this will be taken care of during expansion of the | |
39346 | explicit dereference. | |
39347 | (Expand_N_Slice): Same. Always do the rewriting, even for the case | |
39348 | of non-packed slices, since the dereference action generated by | |
39349 | expansion of the explicit dereference is needed in any case. | |
39350 | (Expand_N_Selected_Component): When rewriting an implicit dereference, | |
39351 | analyze and resolve the rewritten explicit dereference so it is seen | |
39352 | by the expander. | |
39353 | (Insert_Dereference_Action): This procedure is now called only for the | |
39354 | expansion of an N_Explcit_Dereference_Node. Do insert a check even for | |
39355 | dereferences that do not come from source (including explicit | |
39356 | dereferences resulting from rewriting implicit ones), but do not | |
39357 | recursively insert a check for the dereference nodes contained within | |
39358 | the check. | |
39359 | (Insert_Dereference_Action): Clarify and correct comment. | |
39360 | ||
c24c5e46 | 39361 | 2004-03-08 Paolo Bonzini <bonzini@gnu.org> |
39362 | ||
39363 | PR ada/14131 | |
39364 | Move language detection to the top level. | |
39365 | * config-lang.in: Build by default. | |
39366 | ||
3d875462 | 39367 | 2004-03-05 Robert Dewar <dewar@gnat.com> |
39368 | ||
39369 | * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions | |
39370 | ||
39371 | * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads, | |
39372 | i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads, | |
1acf0298 | 39373 | 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb, |
3d875462 | 39374 | 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move |
39375 | unchecked conversion to spec to avoid warnings. | |
39376 | ||
39377 | * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id | |
39378 | to Task_ID | |
39379 | ||
39380 | * 7stpopsp.adb: Correct casing in To_Task_ID call | |
39381 | ||
39382 | * a-strsea.ads, a-strsea.adb: Minor reformatting | |
39383 | ||
39384 | * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing | |
39385 | ||
39386 | * errout.ads: Switch for VMS is now NO_STRICT_ALIASING. | |
39387 | Adjust Max_Msg_Length to be clearly large enough. | |
39388 | ||
39389 | * fe.h: Define In_Same_Source_Unit | |
39390 | ||
39391 | * osint.adb: Add pragma Warnings Off to suppress warnings | |
39392 | * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill | |
39393 | aliasing warnings. | |
39394 | ||
39395 | * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing | |
39396 | ||
39397 | * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma | |
39398 | ||
39399 | * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc. | |
39400 | ||
39401 | * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set. | |
39402 | ||
39403 | * sem_prag.adb: Implement pragma No_Strict_Aliasing. | |
39404 | ||
39405 | * sinfo.ads: Remove obsolete comment on validate unchecked conversion | |
39406 | node. We now do generate them for gcc back end. | |
39407 | ||
39408 | * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing | |
39409 | warning. | |
39410 | ||
39411 | * sinput-c.adb: Fix bad name in header. | |
39412 | Add pragma Warnings Off to suppress aliasing warning. | |
39413 | ||
39414 | * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning. | |
39415 | ||
39416 | * snames.h, snames.ads, snames.adb: Add entry for pragma | |
39417 | No_Strict_Aliasing. | |
39418 | ||
39419 | 2004-03-05 Vincent Celier <celier@gnat.com> | |
39420 | ||
39421 | * prj-com.ads: Add hash table Files_Htable to check when a file name | |
39422 | is already a source of another project. | |
39423 | ||
39424 | * prj-nmsc.adb (Record_Source): Before recording a new source, check | |
39425 | if its file name is not already a source of another project. Report an | |
39426 | error if it is. | |
39427 | ||
39428 | * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no | |
39429 | source file name, call gnatpp with all the sources of the main project. | |
39430 | ||
39431 | * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number | |
39432 | of file names. | |
39433 | ||
39434 | * vms_data.ads: Correct documentation of new /OPTIMIZE keyword | |
39435 | NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY: | |
39436 | /RUNTIME_SYSTEM=, converted to --RTS= | |
39437 | /NOTABS, converted to -notabs | |
39438 | ||
39439 | 2004-03-05 Pascal Obry <obry@gnat.com> | |
39440 | ||
39441 | * make.adb: Minor reformatting. | |
39442 | ||
39443 | 2004-03-05 Ed Schonberg <schonberg@gnat.com> | |
39444 | ||
39445 | Part of implemention of AI-262. | |
39446 | * par-ch10.adb (P_Context_Clause): Recognize private with_clauses. | |
39447 | ||
39448 | * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New | |
39449 | procedure. | |
39450 | ||
39451 | * sem_ch3.adb (Analyze_Component_Declaration): Improve error message | |
39452 | when component type is a partially constrained class-wide subtype. | |
39453 | (Constrain_Discriminated_Type): If parent type has unknown | |
39454 | discriminants, a constraint is illegal, even if full view has | |
39455 | discriminants. | |
39456 | (Build_Derived_Record_Type): Inherit discriminants when deriving a type | |
39457 | with unknown discriminants whose full view is a discriminated record. | |
39458 | ||
39459 | * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants | |
39460 | flag, to handle properly derivations of tagged types with unknown | |
39461 | discriminants. | |
39462 | (Analyze_Package_Spec, Analyze_Package_Body): Install | |
39463 | Private_With_Clauses before analyzing private part or body. | |
39464 | ||
39465 | * einfo.ads: Indicate that both Has_Unknown_Discriminants and | |
39466 | Has_Discriminants can be true for a given type (documentation). | |
39467 | ||
39468 | 2004-03-05 Arnaud Charlet <charlet@act-europe.fr> | |
39469 | ||
39470 | * s-restri.ads: Fix license (GPL->GMGPL). | |
39471 | ||
39472 | * s-tassta.adb: Minor reformatting. | |
39473 | ||
39474 | * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level | |
39475 | by calls to Exit_One_ATC_Level, since additional clean up is performed | |
39476 | by this function. | |
39477 | ||
39478 | * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level | |
39479 | by calls to Exit_One_ATC_Level, since additional clean up is performed | |
39480 | by this function. | |
39481 | ||
39482 | 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
39483 | ||
39484 | * trans.c: Reflect GCC changes to fix bootstrap problem. | |
39485 | Add warning for suspicious aliasing unchecked conversion. | |
39486 | ||
39487 | 2004-03-05 GNAT Script <nobody@gnat.com> | |
39488 | ||
39489 | * Make-lang.in: Makefile automatically updated | |
39490 | ||
f98319dc | 39491 | 2004-03-02 Emmanuel Briot <briot@act-europe.fr> |
39492 | ||
39493 | * ali.adb (Read_Instantiation_Instance): Do not modify the | |
39494 | current_file_num when reading information about instantiations, since | |
39495 | this corrupts files in later references. | |
39496 | ||
39497 | 2004-03-02 Vincent Celier <celier@gnat.com> | |
39498 | ||
39499 | * bcheck.adb (Check_Consistency): Get the full path of an ALI file | |
39500 | before checking if it is read-only. | |
39501 | ||
39502 | * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front | |
39503 | of SRC_DIRS and eliminate duplicates. | |
39504 | ||
39505 | * gprcmd.adb: Replace command "path" with command "path_sep" to return | |
39506 | the path separator. | |
39507 | (Usage): Document path_sep | |
39508 | ||
39509 | * Makefile.generic: For Ada and GNU C++ cases, link directly with the | |
39510 | C++ compiler. No need for a script. | |
39511 | Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH. | |
39512 | Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function | |
39513 | subst. | |
39514 | ||
39515 | * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project | |
39516 | where there are Ada sources. | |
39517 | (Set_Ada_Paths): Only add to the include path the source dirs of project | |
39518 | with Ada sources. | |
39519 | (Add_To_Path): Add the Display_Values of the directories, not their | |
39520 | Values. | |
39521 | ||
39522 | * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project | |
39523 | data. | |
39524 | ||
39525 | * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value | |
39526 | is not No_Name. | |
39527 | (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only | |
39528 | Value is canonicalized. | |
39529 | (Language_Independent_Check): Do not copy Value to Display_Value when | |
39530 | canonicalizing Value. | |
39531 | ||
39532 | * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased | |
39533 | path to find limited with cycles. | |
39534 | (Parse_Single_Project): Use canonical cased path to find the end of a | |
39535 | with cycle. | |
39536 | ||
39537 | 2004-03-02 Ed Schonberg <schonberg@gnat.com> | |
39538 | ||
39539 | * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit | |
39540 | and not a child unit. | |
39541 | ||
39542 | * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can | |
39543 | appear in a with_clause. | |
39544 | ||
39545 | * decl.c (gnat_to_gnu_type): If entity is a generic type, which can | |
39546 | only happen in type_annotate mode, do not try to elaborate it. | |
39547 | ||
39548 | * exp_util.adb (Force_Evaluation): If expression is a selected | |
39549 | component on the left of an assignment, use a renaming rather than a | |
39550 | temporary to remove side effects. | |
39551 | ||
39552 | * freeze.adb (Freeze_Entity): Do not freeze a global entity within an | |
39553 | inlined instance body, which is analyzed before the end of the | |
39554 | enclosing scope. | |
39555 | ||
39556 | 2004-03-02 Robert Dewar <dewar@gnat.com> | |
39557 | ||
39558 | * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb, | |
39559 | sem_ch4.adb: Use new feature for substitution of keywords in VMS | |
39560 | ||
39561 | * errout.ads, errout.adb: Implement new circuit for substitution of | |
39562 | keywords in VMS. | |
39563 | ||
39564 | * sem_case.adb (Analyze_Choices): Place message properly when case is | |
39565 | a subtype reference rather than an explicit range. | |
39566 | ||
39567 | * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting | |
39568 | ||
39569 | 2004-03-02 Doug Rupp <rupp@gnat.com> | |
39570 | ||
39571 | * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF. | |
39572 | ||
39573 | 2004-03-02 Thomas Quinot <quinot@act-europe.fr> | |
39574 | ||
39575 | * s-tporft.adb: Add missing locking around call to Initialize_ATCB. | |
39576 | ||
39577 | 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
39578 | ||
39579 | * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a | |
39580 | BLKmode bitfield. | |
39581 | ||
632a8995 | 39582 | 2004-02-25 Robert Dewar <dewar@gnat.com> |
39583 | ||
39584 | * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads, | |
39585 | 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads, | |
39586 | 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads, | |
39587 | 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads, | |
39588 | 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads, | |
39589 | 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to | |
39590 | the defining instance of the type to avoid aliasing problems. | |
39591 | Fix copyright header. Fix bad comments in package header. | |
39592 | ||
39593 | * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting | |
39594 | ||
39595 | 2004-02-25 Ed Schonberg <schonberg@gnat.com> | |
39596 | ||
39597 | * exp_ch2.adb (Param_Entity): Handle properly formals that have been | |
39598 | rewritten as references when aliased through an address clause. | |
39599 | ||
39600 | * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking | |
39601 | whether call can be interpreted as an indirect call to the result of a | |
39602 | parameterless function call returning an access subprogram. | |
39603 | ||
39604 | 2004-02-25 Arnaud Charlet <charlet@act-europe.fr> | |
39605 | ||
39606 | Code clean up: | |
39607 | * exp_ch7.adb (Make_Clean): Remove generation of calls to | |
39608 | Unlock[_Entries], since this is now done by Service_Entries directly. | |
39609 | ||
39610 | * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto. | |
39611 | ||
39612 | * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure | |
39613 | Requeue_Call for better code readability. Change spec and update calls: | |
39614 | PO_Service_Entries now unlock the PO on exit. | |
39615 | (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to | |
39616 | PO_Service_Entries. | |
39617 | ||
39618 | * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit. | |
39619 | ||
39620 | * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries. | |
39621 | ||
39622 | 2004-02-25 Sergey Rybin <rybin@act-europe.fr> | |
39623 | ||
39624 | * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the | |
39625 | protected subprogram call and analyzing the result of such expanding | |
39626 | in case when the called protected subprogram is eliminated. | |
39627 | ||
39628 | * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope | |
39629 | names. | |
39630 | ||
39631 | 2004-02-25 Jerome Guitton <guitton@act-europe.fr> | |
39632 | ||
39633 | * Makefile.in: Clean ups. | |
39634 | ||
60fd8afc | 39635 | 2004-02-23 Ed Schonberg <schonberg@gnat.com> |
39636 | ||
39637 | * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create | |
39638 | protected operations if original subprogram is flagged as eliminated. | |
39639 | (Expand_N_Subprogram_Body): For a protected operation, create | |
39640 | discriminals for next operation before checking whether the operation | |
39641 | is eliminated. | |
39642 | ||
39643 | * exp_ch9.adb (Expand_N_Protected_Body, | |
39644 | Expand_N_Protected_Type_Declaration): Do not generate specs and bodies | |
39645 | for internal protected operations if the original subprogram is | |
39646 | eliminated. | |
39647 | ||
39648 | * sem_elim.adb (Check_Eliminated): Handle properly protected operations | |
39649 | declared in a single protected object. | |
39650 | ||
39651 | 2004-02-23 Vincent Celier <celier@gnat.com> | |
39652 | ||
39653 | * prj-attr.adb: Make attribute Builder'Executable an associative array, | |
39654 | case insensitive if file names are case insensitive, instead of a | |
39655 | standard associative array. | |
39656 | ||
39657 | * prj-attr.adb (Initialize): For 'b' associative arrays, do not set | |
39658 | them as case insensitive on platforms where the file names are case | |
39659 | sensitive. | |
39660 | ||
39661 | * prj-part.adb (Parse_Single_Project): Make sure, when checking if | |
39662 | project file has already been parsed that canonical path are compared. | |
39663 | ||
39664 | 2004-02-23 Robert Dewar <dewar@gnat.com> | |
39665 | ||
39666 | * sinput-c.ads: Correct bad unit title in header | |
39667 | ||
39668 | * freeze.adb: Minor reformatting | |
39669 | ||
39670 | 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
39671 | ||
39672 | * trans.c (tree_transform, case N_Procedure_Call_Statement): For | |
39673 | nonaddressable COMPONENT_REF that is removing padding that we are | |
39674 | taking the address of, take the address of the padded record instead | |
39675 | if item is variable size. | |
39676 | ||
cdc6fa44 | 39677 | 2004-02-20 Robert Dewar <dewar@gnat.com> |
39678 | ||
39679 | * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting | |
39680 | ||
39681 | 2004-02-20 Ed Schonberg <schonberg@gnat.com> | |
39682 | ||
39683 | * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates | |
39684 | itype references for the constrained designated type of a component | |
39685 | whose base type is already frozen. | |
39686 | ||
39687 | 2004-02-20 Arnaud Charlet <charlet@act-europe.fr> | |
39688 | ||
39689 | * init.c (__gnat_error_handler [tru64]): Rewrite previous change to | |
39690 | avoid GCC warnings. | |
39691 | ||
39692 | 2004-02-20 Sergey Rybin <rybin@act-europe.fr> | |
39693 | ||
39694 | * sem_ch12.adb (Analyze_Formal_Package): Create a new defining | |
39695 | identifier for a phantom package that rewrites the formal package | |
39696 | declaration with a box. The Add semantic decorations for the defining | |
39697 | identifier from the original node (that represents the formal package). | |
39698 | ||
ed90d522 | 39699 | 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu> |
39700 | ||
39701 | * Make-lang.in (ada/stamp-sdefault): Use the top level | |
39702 | move-if-change. | |
39703 | ||
413a7abf | 39704 | 2004-02-19 Richard Henderson <rth@redhat.com> |
39705 | ||
39706 | * misc.c (record_code_position): Add third build arg for RTL_EXPR. | |
39707 | ||
8b20af99 | 39708 | 2004-02-18 Emmanuel Briot <briot@act-europe.fr> |
39709 | ||
39710 | * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that | |
39711 | Scan_ALI can be used for multiple ALI files without reinitializing | |
39712 | between calls. | |
39713 | ||
39714 | 2004-02-18 Robert Dewar <dewar@gnat.com> | |
39715 | ||
39716 | * debug.adb: Minor reformatting. | |
39717 | ||
39718 | 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
39719 | ||
39720 | * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET | |
39721 | to zero if there is an address clause. | |
39722 | ||
39723 | 2004-02-18 Thomas Quinot <quinot@act-europe.fr> | |
39724 | ||
39725 | * exp_util.adb (Side_Effect_Free): Any literal is side effects free. | |
39726 | ||
39727 | 2004-02-18 Gary Dismukes <dismukes@gnat.com> | |
39728 | ||
39729 | * layout.adb (Layout_Component_List): Revise generation of call to | |
39730 | discriminant-checking function to pass selections of all of the type's | |
39731 | discriminants rather than just the variant-controlling discriminant. | |
39732 | ||
39733 | 2004-02-18 Olivier Hainque <hainque@act-europe.fr> | |
39734 | ||
39735 | * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to | |
39736 | fail in the current setup and triggers spurious system error messages. | |
39737 | Pretend it occurred and failed instead. | |
39738 | ||
39739 | 2004-02-18 Vincent Celier <celier@gnat.com> | |
39740 | ||
39741 | * bld.adb: Mark FLDFLAGS as saved | |
39742 | (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when | |
39743 | it is not the root project. Put each directory to be | |
39744 | extended between double quotes to prevent it to be expanded on Windows. | |
39745 | (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing | |
39746 | the project file. Set them back to their initial values if they have not | |
39747 | been set in the project file. | |
39748 | ||
39749 | * gprcmd.adb: (Gprdebug, Debug): New global variables | |
39750 | (Display_Command): New procedure | |
39751 | (Usage): Document new command "linkopts" | |
39752 | Call Display_Command when env var GPRDEBUG has the value "TRUE" | |
39753 | Implement new command "linkopts" | |
39754 | Remove quotes that may be around arguments for "extend" | |
39755 | Always call Normalize_Pathname with arguments formatted for the platform | |
39756 | ||
39757 | * Makefile.generic: Link C/C++ mains with $(FLDFLAGS) | |
39758 | Change @echo to @$(display) in target clean to be able to clean silently | |
39759 | ||
39760 | * Makefile.prolog: Save FLDFLAGS and give it an initial empty value | |
39761 | ||
39762 | * prj-part.adb (Project_Path_Name_Of): Do not put final result in | |
39763 | canonical case. | |
39764 | ||
39765 | * prj-part.adb (Parse_Single_Project): Always call with From_Extended | |
39766 | = Extending_All when current project is an extending all project. | |
39767 | ||
39768 | * vms_conv.adb (Output_File_Expected): New Boolean global variable, | |
39769 | set to True only for LINK command, after Unix switch -o. | |
39770 | (Process_Arguments): Set Output_File_Expected to True for LINK command | |
39771 | after Unix switch -o. When Output_File_Expected is True, never add an | |
39772 | extension to a file name. | |
39773 | ||
39774 | * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the | |
39775 | option file name, only to the --for-linker= switch. | |
39776 | (Option_File_Name): If option file name do not end with ".opt", append | |
39777 | "/OPTIONS". | |
39778 | ||
39779 | 2004-02-18 GNAT Script <nobody@gnat.com> | |
39780 | ||
39781 | * Make-lang.in: Makefile automatically updated | |
39782 | ||
97b31bb5 | 39783 | 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu> |
39784 | ||
39785 | * Make-lang.in (stamp-sdefault): Do not depend on | |
39786 | move-if-change. | |
39787 | ||
faa17bfc | 39788 | 2004-02-12 Zack Weinberg <zack@codesourcery.com> |
39789 | ||
39790 | * config-lang.in: Disable Ada by default until probe logic for | |
39791 | a bootstrap Ada compiler can be moved to the top level configure | |
39792 | script. | |
39793 | ||
aab8de0a | 39794 | 2004-02-12 Olivier Hainque <hainque@act-europe.fr> |
39795 | ||
39796 | * decl.c (components_to_record): Don't claim that the internal fields | |
39797 | we make to hold the variant parts are semantically addressable, because | |
39798 | they are not. | |
39799 | ||
39800 | * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and | |
39801 | adjust the comment describing the modular type form when we can use it. | |
39802 | (Install_PAT): Account for the Esiz renaming. | |
39803 | ||
39804 | * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the | |
39805 | sc_onstack context indication before raising the exception to which | |
39806 | the signal is mapped. Allows better handling of later signals possibly | |
39807 | triggered by the resumed user code if the exception is handled. | |
39808 | ||
39809 | 2004-02-12 Arnaud Charlet <charlet@act-europe.fr> | |
39810 | ||
39811 | * 5zinit.adb: Removed, no longer used. | |
39812 | ||
39813 | 2004-02-12 Robert Dewar <dewar@gnat.com> | |
39814 | ||
39815 | * ali.adb: Remove separating space between parameters on R line. Makes | |
39816 | format consistent with format used by the binder for Set_Globals call. | |
39817 | ||
39818 | * atree.ads, atree.adb: Minor reformatting (new function header format) | |
39819 | ||
39820 | * bindgen.adb: Add Run-Time Globals documentation section containing | |
39821 | detailed documentation of the globals passed from the binder file to | |
39822 | the run time. | |
39823 | ||
39824 | * gnatls.adb: Minor reformatting | |
39825 | ||
39826 | * init.c (__gnat_set_globals): Add note pointing to documentation in | |
39827 | bindgen. | |
39828 | ||
39829 | * lib-writ.ads, lib-writ.adb: Remove separating space between | |
39830 | parameters on R line. | |
39831 | Makes format consistent with format used by the binder for Set_Globals | |
39832 | call. | |
39833 | ||
39834 | * osint.ads: Add 2004 to copyright notice | |
39835 | Minor reformatting | |
39836 | ||
39837 | * snames.ads: Correct capitalization of FIFO_Within_Priorities | |
39838 | Noticed during code reading, documentation issue only | |
39839 | ||
39840 | * usage.adb: Remove junk line for obsolete C switch | |
39841 | Noticed during code reading | |
39842 | ||
39843 | 2004-02-12 Vincent Celier <celier@gnat.com> | |
39844 | ||
39845 | * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd | |
39846 | extend for each directory, so that multiple /** directories are | |
39847 | extended individually. | |
39848 | (Recursive_Process): Set the default for LANGUAGES to ada | |
39849 | ||
39850 | * gprcmd.adb: Define new command "ignore", to do nothing. | |
39851 | Implement new comment "path". | |
39852 | ||
39853 | * Makefile.generic: Suppress output when SILENT is set | |
39854 | Make sure that when compiler for C/C++ is gcc, the correct -x switch is | |
39855 | used, so that the correct compiler is invoked. | |
39856 | When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/ | |
39857 | CXX_INCLUDE_PATH, to avoid failure with too long command lines. | |
39858 | ||
39859 | 2004-02-12 Jerome Guitton <guitton@act-europe.fr> | |
39860 | ||
39861 | * Makefile.in: Clean ups and remove obsolete targets. | |
39862 | ||
39863 | 2004-02-12 Ed Schonberg <schonberg@gnat.com> | |
39864 | ||
39865 | * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar | |
39866 | predicate declared in exp_util. | |
39867 | ||
39868 | * exp_util.adb: Add comments. | |
39869 | ||
39870 | * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from | |
39871 | visibility before compiling context of the subunit. | |
39872 | ||
39873 | * sem_res.adb (Check_Parameterless_Call): If the context expects a | |
39874 | value but the name is a procedure, do not attempt to analyze as a call, | |
39875 | in order to obtain more telling diagnostics. | |
39876 | ||
39877 | * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing | |
39878 | 'Access on parameterless function calls. | |
39879 | (Normalize_Actuals): For a parameterless function call with missing | |
39880 | actuals, defer diagnostic until resolution of enclosing call. | |
39881 | ||
39882 | * sem_util.adb (Wrong_Type): If the context type is an access to | |
39883 | subprogram and the expression is a procedure name, suggest a missing | |
39884 | 'attribute. | |
39885 | ||
390e22e9 | 39886 | 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>, |
39887 | Nathanael Nerode <neroden@gcc.gnu.org> | |
39888 | ||
d4c15061 | 39889 | PR ada/6637 |
39890 | PR ada/5911 | |
390e22e9 | 39891 | Merge with libada-branch: |
1acf0298 | 39892 | * config-lang.in: Build libada only when ada is built. |
390e22e9 | 39893 | |
752e1833 | 39894 | 2004-02-09 Ed Schonberg <schonberg@gnat.com> |
39895 | ||
39896 | * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality | |
39897 | for a tagged type, verify that both formals have the same type. | |
39898 | ||
39899 | * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the | |
39900 | temporary when the formal is an in-parameter and the actual a possibly | |
39901 | unaligned slice. | |
39902 | ||
39903 | * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even | |
39904 | when expansion is disabled, to ensure proper name capture with | |
39905 | overloaded literals. Condition can be of any boolean type, resolve | |
39906 | accordingly. | |
39907 | ||
39908 | * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the | |
39909 | renaming is for a formal subprogram with a default operator name, and | |
39910 | there is a usable operator that is visible at the point of | |
39911 | instantiation. | |
39912 | ||
39913 | 2004-02-09 Robert Dewar <dewar@gnat.com> | |
39914 | ||
39915 | * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major | |
39916 | rewrite to ignore errors in ali files, intended to allow tools downward | |
39917 | compatibility with new versions of ali files. | |
39918 | ||
39919 | * ali.ads: Add new parameter Ignore_Errors | |
39920 | ||
39921 | * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes | |
39922 | duplicating the error message giving the file with restrictions. | |
39923 | ||
39924 | * debug.adb: Add debug flag I for gnatbind | |
39925 | ||
39926 | * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around | |
39927 | operators for the case where the operator is a defining operator. | |
39928 | ||
39929 | * exp_ch3.adb: Minor reformatting (new function spec format). | |
39930 | ||
39931 | * exp_ch4.adb: Add comment for previous change, and make minor | |
39932 | adjustment to loop to always check for improper loop termination. | |
39933 | Minor reformatting throughout (new function spec format). | |
39934 | ||
39935 | * gnatbind.adb: Implement -di debug flag for gnatbind | |
39936 | ||
39937 | * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True | |
39938 | ||
39939 | * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True | |
39940 | ||
39941 | * lib-load.adb: Fix bad assertion. | |
39942 | Found by testing and code reading. | |
39943 | Minor reformatting. | |
39944 | ||
39945 | * lib-load.ads: Minor reformatting. | |
39946 | ||
39947 | * lib-writ.adb: There is only one R line now. | |
39948 | ||
39949 | * lib-writ.ads: Add documentation on making downward compatible changes | |
39950 | to ali files so old tools work with new ali files. | |
39951 | There is only one R line now. | |
39952 | Add documentation on format incompatibilities (with special GPS note) | |
39953 | ||
39954 | * namet.ads, namet.adb: (Is_Operator_Name): New procedure | |
39955 | ||
39956 | * par-load.adb: Minor reformatting | |
39957 | ||
39958 | * sem_ch8.adb: Fix to error message from last update | |
39959 | Minor reformatting and restructuring of code from last update | |
39960 | ||
39961 | * par-prag.adb, snames.adb, snames.ads, snames.h, | |
39962 | sem_prag.adb: Implement pragma Profile. | |
39963 | ||
39964 | * stylesw.adb: Implement -gnatyN switch to turn off all style check | |
39965 | options. | |
39966 | ||
39967 | * usage.adb: Add line for -gnatyN switch | |
39968 | ||
39969 | * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN | |
39970 | ||
913ab0bc | 39971 | 2004-02-09 Albert Lee <lee@gnat.com> |
39972 | ||
39973 | * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX | |
39974 | ||
39975 | 2004-02-09 Ed Schonberg <schonberg@gnat.com> | |
39976 | ||
39977 | * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null | |
39978 | slices. | |
39979 | ||
39980 | * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram | |
39981 | is nested in an instance that is not frozen yet, to avoid | |
39982 | order-of-elaboration problems in gigi. | |
39983 | ||
39984 | * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined | |
39985 | body the attribute is legal. | |
39986 | ||
39987 | 2004-02-09 Robert Dewar <dewar@gnat.com> | |
39988 | ||
39989 | * s-rident.ads: Minor comment correction | |
39990 | ||
39991 | * targparm.adb: Remove dependence on uintp completely. There was | |
39992 | always a bug in Make in that it called Targparm before initializing | |
39993 | the Uint package. The old code appeared to get away with this, but | |
39994 | the new code did not! This caused an assertion error in gnatmake. | |
39995 | ||
39996 | * targparm.ads: Fix bad comment, restriction pragmas with parameters | |
39997 | are indeed fully supported. | |
39998 | ||
73234d0f | 39999 | 2004-02-06 Alan Modra <amodra@bigpond.net.au> |
40000 | ||
40001 | * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call. | |
40002 | ||
82ac3699 | 40003 | 2004-02-05 Kazu Hirata <kazu@cs.umass.edu> |
40004 | ||
40005 | * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES | |
40006 | with targetm.calls.promote_prototypes. | |
40007 | ||
1147840a | 40008 | 2004-02-04 Robert Dewar <dewar@gnat.com> |
40009 | ||
40010 | * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb, | |
40011 | ali.ads, gprcmd.adb: Minor reformatting | |
40012 | ||
40013 | * bindgen.adb: Output restrictions string for new style restrictions | |
40014 | handling | |
40015 | ||
40016 | * impunit.adb: Add s-rident.ads (System.Rident) and | |
40017 | s-restri (System.Restrictions) | |
40018 | ||
40019 | * lib-writ.adb: Fix bug in writing restrictions string (last few | |
40020 | entries wrong) | |
40021 | ||
40022 | * s-restri.ads, s-restri.adb: Change name Restrictions to | |
40023 | Run_Time_Restrictions to avoid conflict with package name. | |
40024 | Add circuit to read and acquire run time restrictions. | |
40025 | ||
40026 | 2004-02-04 Jose Ruiz <ruiz@act-europe.fr> | |
40027 | ||
40028 | * restrict.ads, restrict.adb: Use the new restriction | |
40029 | No_Task_Attributes_Package instead of the old No_Task_Attributes. | |
40030 | ||
40031 | * sem_prag.adb: No_Task_Attributes is a synonym of | |
40032 | No_Task_Attributes_Package. | |
40033 | ||
40034 | * snames.ads, snames.adb: New entry for proper handling of | |
40035 | No_Task_Attributes. | |
40036 | ||
40037 | * s-rident.ads: Adding restriction No_Task_Attributes_Package | |
40038 | (AI-00249) that supersedes the GNAT specific restriction | |
40039 | No_Task_Attributes. | |
40040 | ||
40041 | 2004-02-04 Ed Schonberg <schonberg@gnat.com> | |
40042 | ||
1acf0298 | 40043 | * sem_prag.adb: |
1147840a | 40044 | (Analyze_Pragma, case Warnings): In an inlined body, as in an instance |
40045 | body, an identifier may be wrapped in an unchecked conversion. | |
40046 | ||
40047 | 2004-02-04 Vincent Celier <celier@gnat.com> | |
40048 | ||
40049 | * lib-writ.ads: Comment update for the W lines | |
40050 | ||
40051 | * bld.adb: (Expression): An empty string list is static | |
40052 | ||
40053 | * fname-uf.adb: Minor comment update | |
40054 | ||
40055 | * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail | |
40056 | ||
40057 | * gnatbind.adb: Initialize Cumulative_Restrictions with the | |
40058 | restrictions on the target. | |
40059 | ||
27a9551b | 40060 | 2004-02-03 Kazu Hirata <kazu@cs.umass.edu> |
40061 | ||
40062 | * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of | |
40063 | gen_rtx. | |
40064 | ||
dafe4226 | 40065 | 2004-02-02 Arnaud Charlet <charlet@gnat.com> |
40066 | ||
40067 | * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded. | |
40068 | ||
1e16c51c | 40069 | 2004-02-02 Vincent Celier <celier@gnat.com> |
40070 | ||
40071 | * gprcmd.adb (Check_Args): If condition is false, print the invoked | |
40072 | comment before the usage. | |
40073 | Gprcmd: Fail when command is not recognized. | |
40074 | (Usage): Document command "prefix" | |
40075 | ||
40076 | * g-md5.adb (Digest): Process last block. | |
40077 | (Update): Do not process last block. Store remaining characters and | |
40078 | length in Context. | |
40079 | ||
40080 | * g-md5.ads (Update): Document that several call to update are | |
40081 | equivalent to one call with the concatenated string. | |
40082 | (Context): Add fields to allow new Update behaviour. | |
40083 | ||
40084 | * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail, | |
40085 | defaulted to False. | |
40086 | When May_Fail is True and no existing file can be found, return No_File. | |
40087 | ||
40088 | * 6vcstrea.adb: Inlined functions are now wrappers to implementation | |
40089 | functions. | |
40090 | ||
40091 | * lib-writ.adb (Write_With_Lines): When body file does not exist, use | |
40092 | spec file name instead on the W line. | |
40093 | ||
40094 | 2004-02-02 Robert Dewar <dewar@gnat.com> | |
40095 | ||
40096 | * ali.adb: Read and acquire info from new format restrictions lines | |
40097 | ||
40098 | * bcheck.adb: Add circuits for checking restrictions with parameters | |
40099 | ||
40100 | * bindgen.adb: Output dummy restrictions data | |
40101 | To be changed later | |
40102 | ||
40103 | * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb, | |
40104 | exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb, | |
40105 | freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb, | |
40106 | sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb, | |
40107 | sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling. | |
40108 | ||
40109 | * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses | |
40110 | the warning message on access to possibly uninitialized variable S) | |
40111 | Minor changes for new restrictions handling. | |
40112 | ||
40113 | * gnatbind.adb: Minor reformatting | |
40114 | Minor changes for new restrictions handling | |
40115 | Move circuit for -r processing here from bcheck (cleaner) | |
40116 | ||
40117 | * gnatcmd.adb, gnatlink.adb: Minor reformatting | |
40118 | ||
40119 | * lib-writ.adb: Output new format restrictions lines | |
40120 | ||
40121 | * lib-writ.ads: Document new R format lines for new restrictions | |
40122 | handling. | |
40123 | ||
40124 | * s-restri.ads/adb: New files | |
40125 | ||
40126 | * Makefile.rtl: Add entry for s-restri.ads/adb | |
40127 | ||
40128 | * par-ch3.adb: Fix bad error messages starting with upper case letter | |
40129 | Minor reformatting | |
40130 | ||
40131 | * restrict.adb: Major rewrite throughout for new restrictions handling | |
40132 | Major point is to handle restrictions with parameters | |
40133 | ||
40134 | * restrict.ads: Major changes in interface to handle restrictions with | |
40135 | parameters. Also generally simplifies setting of restrictions. | |
40136 | ||
40137 | * snames.ads/adb: New entry for proper handling of No_Requeue | |
40138 | ||
40139 | * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks | |
40140 | restriction counting. | |
40141 | Other minor changes for new restrictions handling | |
40142 | ||
40143 | * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements. | |
40144 | Restriction_Warnings now allows full parameter notation | |
40145 | Major rewrite of Restrictions for new restrictions handling | |
40146 | ||
40147 | 2004-02-02 Javier Miranda <miranda@gnat.com> | |
40148 | ||
40149 | * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y | |
40150 | syntax rule for object renaming declarations. | |
40151 | (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for | |
40152 | component definitions. | |
40153 | ||
40154 | * sem_ch3.adb (Analyze_Component_Declaration): Give support to access | |
40155 | components. | |
40156 | (Array_Type_Declaration): Give support to access components. In addition | |
40157 | it was also modified to reflect the name of the object in anonymous | |
40158 | array types. The old code did not take into account that it is possible | |
40159 | to have an unconstrained anonymous array with an initial value. | |
40160 | (Check_Or_Process_Discriminants): Allow access discriminant in | |
40161 | non-limited types. | |
40162 | (Process_Discriminants): Allow access discriminant in non-limited types | |
40163 | Initialize the new Access_Definition field in N_Object_Renaming_Decl | |
40164 | node. Change Ada0Y to Ada 0Y in comments | |
40165 | ||
40166 | * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in | |
40167 | equality operators. | |
40168 | Change Ada0Y to Ada 0Y in comments | |
40169 | ||
40170 | * sem_ch8.adb (Analyze_Object_Renaming): Give support to access | |
40171 | renamings Change Ada0Y to Ada 0Y in comments | |
40172 | ||
40173 | * sem_type.adb (Find_Unique_Type): Give support to the equality | |
40174 | operators for universal access types | |
40175 | Change Ada0Y to Ada 0Y in comments | |
40176 | ||
40177 | * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms | |
40178 | ||
40179 | * sinfo.ads (N_Component_Definition): Addition of Access_Definition | |
40180 | field. | |
40181 | (N_Object_Renaming_Declaration): Addition of Access_Definition field | |
40182 | Change Ada0Y to Ada 0Y in comments | |
40183 | ||
40184 | * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for | |
40185 | component definition and object renaming nodes | |
40186 | Change Ada0Y to Ada 0Y in comments | |
40187 | ||
40188 | 2004-02-02 Jose Ruiz <ruiz@act-europe.fr> | |
40189 | ||
40190 | * restrict.adb: Use the new restriction identifier | |
40191 | No_Requeue_Statements instead of the old No_Requeue for defining the | |
40192 | restricted profile. | |
40193 | ||
40194 | * sem_ch9.adb (Analyze_Requeue): Check the new restriction | |
40195 | No_Requeue_Statements. | |
40196 | ||
40197 | * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249) | |
40198 | that supersedes the GNAT specific restriction No_Requeue. The later is | |
40199 | kept for backward compatibility. | |
40200 | ||
40201 | 2004-02-02 Ed Schonberg <schonberg@gnat.com> | |
40202 | ||
40203 | * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads, | |
40204 | 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant | |
40205 | pragma and fix incorrect ones. | |
40206 | ||
40207 | * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a | |
40208 | warning if the pragma is redundant. | |
40209 | ||
40210 | 2004-02-02 Thomas Quinot <quinot@act-europe.fr> | |
40211 | ||
40212 | * 5staprop.adb: Add missing 'constant' keywords. | |
40213 | ||
40214 | * Makefile.in: use consistent value for SYMLIB on | |
40215 | platforms where libaddr2line is supported. | |
40216 | ||
40217 | 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
40218 | ||
40219 | * utils.c (end_subprog_body): Do not call rest_of_compilation if just | |
40220 | annotating types. | |
40221 | ||
40222 | 2004-02-02 Olivier Hainque <hainque@act-europe.fr> | |
40223 | ||
40224 | * init.c (__gnat_install_handler): Setup an alternate stack for signal | |
40225 | handlers in the environment thread. This allows proper propagation of | |
40226 | an exception on stack overflows in this thread even when the builtin | |
40227 | ABI stack-checking scheme is used without support for a stack reserve | |
40228 | region. | |
40229 | ||
40230 | * utils.c (create_field_decl): Augment the head comment about bitfield | |
40231 | creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P | |
40232 | here, because the former is not accurate enough at this point. | |
40233 | Let finish_record_type decide instead. | |
40234 | Don't make a bitfield if the field is to be addressable. | |
40235 | Always set a size for the field if the record is packed, to ensure the | |
40236 | checks for bitfield creation are triggered. | |
40237 | (finish_record_type): During last pass over the fields, clear | |
40238 | DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is | |
40239 | not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P | |
40240 | from DECL_BIT_FIELD. | |
40241 | ||
b5a57562 | 40242 | 2004-01-30 Kelley Cook <kcook@gcc.gnu.org> |
40243 | ||
1acf0298 | 40244 | * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir). |
b5a57562 | 40245 | (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise. |
40246 | (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise. | |
40247 | ||
79077158 | 40248 | 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
40249 | ||
40250 | * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB. | |
40251 | ||
40252 | * 5fsystem.ads (Functions_Return_By_DSP): Set to False. | |
40253 | (ZCX_By_Default): Likewise. | |
40254 | (Front_End_ZCX_Support): Likewise. | |
40255 | ||
40256 | * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced. | |
40257 | (Initialize_Lock): Mark Level unreferenced. | |
40258 | (Sleep): Mark Reason unreferenced. | |
40259 | (Timed_Sleep): Likewise. | |
40260 | (Wakeup): Likewise. | |
40261 | (Exit_Task): Use Result. | |
40262 | (Check_No_Locks): Mark Self_ID unreferenced. | |
1acf0298 | 40263 | |
79077158 | 40264 | * 5gtasinf.adb (New_Sproc): Make Attr constant. |
40265 | (Bound_Thread_Attributes): Make Sproc constant. | |
40266 | (New_Bound_Thread_Attributes): Likewise. | |
40267 | ||
bd550baf | 40268 | 2004-01-26 Ed Schonberg <schonberg@gnat.com> |
40269 | ||
40270 | * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for | |
40271 | one-dimensional array an slice assignments, when component type is | |
40272 | controlled. | |
40273 | ||
40274 | * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional, | |
40275 | component type is controlled, and control_actions are in effect, use | |
40276 | TSS procedure rather than generating inline code. | |
40277 | ||
40278 | * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional | |
40279 | arrays with controlled components. | |
40280 | ||
40281 | 2004-01-26 Vincent Celier <celier@gnat.com> | |
40282 | ||
40283 | * gnatcmd.adb (GNATCmd): Add specification of argument file on the | |
40284 | command line for the non VMS case. | |
40285 | ||
40286 | * gnatlink.adb (Process_Binder_File): When building object file, if | |
40287 | GNU linker is used, put all object paths between quotes, to prevent ld | |
40288 | error when there are unusual characters (such as '!') in the paths. | |
40289 | ||
40290 | * Makefile.generic: When there are sources in Ada and the main is in | |
40291 | C/C++, invoke gnatmake with -B, instead of -z. | |
40292 | ||
40293 | * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted | |
40294 | from VMS_Conversion. | |
40295 | (Process_Argument): New procedure, extracted from VMS_Conversion. Add | |
40296 | specification of argument file on the command line. | |
40297 | ||
40298 | 2004-01-26 Bernard Banner <banner@gnat.com> | |
40299 | ||
40300 | * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64 | |
40301 | ||
40302 | 2004-01-26 Ed Schonberg <schonberg@gnat.com> | |
40303 | ||
40304 | * snames.adb: Update copyright notice. | |
40305 | Add info on slice assignment for controlled arrays. | |
40306 | ||
d5b349fa | 40307 | 2004-01-23 Robert Dewar <dewar@gnat.com> |
40308 | ||
40309 | * exp_aggr.adb: Minor reformatting | |
40310 | ||
40311 | * exp_ch9.adb: Minor code clean up | |
40312 | Minor reformatting | |
40313 | Fix bad character in comment | |
40314 | ||
40315 | PR ada/13471 | |
40316 | * targparm.adb (Get_Target_Parameters): Give clean abort error on | |
40317 | unexpected end of file, along with more detailed message. | |
40318 | ||
40319 | 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
40320 | ||
40321 | * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of | |
40322 | PAT. | |
40323 | ||
40324 | * decl.c (copy_alias_set): New function. | |
40325 | (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it. | |
40326 | ||
40327 | 2004-01-23 Doug Rupp <rupp@gnat.com> | |
40328 | ||
40329 | * Makefile.in (install-gnatlib): Change occurrences of lib$$file to | |
40330 | lib$${file} in case subsequent character is not a separator. | |
40331 | ||
40332 | 2004-01-23 Vincent Celier <celier@gnat.com> | |
40333 | ||
40334 | * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc | |
40335 | when the GCC version is at least 3. | |
40336 | ||
40337 | * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches | |
40338 | Remove all "Opt.", to prepare for opt split | |
40339 | ||
40340 | * prj-part.adb (Parse_Single_Project): New Boolean out parameter | |
40341 | Extends_All. Set to True when the project parsed is an extending all | |
40342 | project. Fails for importing an extending all project only when the | |
40343 | imported project is an extending all project. | |
40344 | (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause, | |
40345 | depending on the value of Extends_All returned. | |
40346 | ||
40347 | * prj-proc.adb (Process): Check that no project shares its object | |
40348 | directory with a project that extends it, directly or indirectly, | |
40349 | including a virtual project. | |
40350 | Check that no project extended by another project shares its object | |
40351 | directory with another also extended project. | |
40352 | ||
40353 | * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for | |
40354 | Kind = N_With_Clause | |
40355 | ||
40356 | * prj-tree.ads: Minor reformatting | |
40357 | Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All). | |
40358 | ||
40359 | 2004-01-23 Ed Schonberg <schonberg@gnat.com> | |
40360 | ||
40361 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute | |
40362 | applies to a type with an incomplete view, use full view in Name of | |
40363 | clause, for consistency with uses of Get_Attribute_Definition_Clause. | |
40364 | ||
40365 | 2004-01-23 Arnaud Charlet <charlet@act-europe.fr> | |
40366 | ||
40367 | * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using | |
40368 | SCHED_RR, since other values are not supported by this policy. | |
40369 | (Initialize): Move initialization of mutex attribute to package | |
40370 | elaboration, to prevent early access to this variable. | |
40371 | ||
40372 | * Makefile.in: Remove mention of Makefile.adalib, unused. | |
40373 | ||
7a442f2b | 40374 | * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb, |
40375 | 1ssecsta.ads: Removed, unused. | |
d5b349fa | 40376 | |
5dad4396 | 40377 | 2004-01-21 Javier Miranda <miranda@gnat.com> |
40378 | ||
40379 | * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master | |
40380 | entity if already built in the current scope. | |
40381 | ||
40382 | * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity | |
40383 | reminder in internal scopes. Required for nested limited aggregates. | |
40384 | ||
40385 | 2004-01-21 Doug Rupp <rupp@gnat.com> | |
40386 | ||
40387 | * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on | |
40388 | VMS. Replace all occurences of libgnat- and libgnarl- with | |
40389 | libgnat$(hyphen) and libgnarl$(hyphen). | |
40390 | Fixed shared library build problem on VMS. | |
40391 | ||
40392 | 2004-01-21 Robert Dewar <dewar@gnat.com> | |
40393 | ||
40394 | * mlib-prj.adb: Minor reformatting | |
40395 | ||
40396 | 2004-01-21 Thomas Quinot <quinot@act-europe.fr> | |
40397 | ||
40398 | * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing | |
40399 | 'constant' keywords for declaration of pointers that are not modified. | |
40400 | ||
40401 | * exp_pakd.adb: Fix English in comment. | |
40402 | ||
40403 | 2004-01-21 Ed Schonberg <schonberg@gnat.com> | |
40404 | ||
40405 | PR ada/10889 | |
40406 | * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype, | |
40407 | copy all attributes of the parent, including the foreign language | |
40408 | convention. | |
40409 | ||
40410 | 2004-01-21 Sergey Rybin <rybin@act-europe.fr> | |
40411 | ||
40412 | PR ada/10565 | |
40413 | * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check | |
40414 | for 'delay until' statement. | |
40415 | ||
ca6eabd1 | 40416 | 2004-01-20 Kelley Cook <kcook@gcc.gnu.org> |
40417 | ||
40418 | * Make-lang.in: Replace $(docdir) with doc. | |
40419 | (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info | |
40420 | doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update | |
40421 | to use consistent MAKEINFO rule. | |
40422 | (ada.man, ada.srcman): Dummy entry. | |
40423 | (ADA_INFOFILES): Define. | |
40424 | (ada.info, ada.srcinfo): New rules. | |
40425 | ||
698d81ad | 40426 | 2004-01-19 Arnaud Charlet <charlet@act-europe.fr> |
40427 | ||
40428 | * utils.c: Update copyright notice, missed in previous change. | |
40429 | ||
40430 | 2004-01-19 Vincent Celier <celier@gnat.com> | |
40431 | ||
40432 | * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the | |
40433 | args if Bind is True. Set First_ALI, if not already done. | |
40434 | (Build_Library): For Stand Alone Libraries, extract from one ALI file | |
40435 | an eventual --RTS switch, for gnatbind, and all backend switches + | |
40436 | --RTS, for linking. | |
40437 | ||
40438 | 2004-01-19 Robert Dewar <dewar@gnat.com> | |
40439 | ||
40440 | * sem_attr.adb, memtrack.adb: Minor reformatting | |
40441 | ||
40442 | 2004-01-19 Ed Schonberg <schonberg@gnat.com> | |
40443 | ||
40444 | * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions | |
40445 | that rename enumeration literals. This is properly done in sem_eval. | |
40446 | ||
40447 | * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls | |
40448 | to functions that rename enumeration literals. | |
40449 | ||
40450 | * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to | |
40451 | functions that rename enumeration literals. | |
40452 | ||
988b8879 | 40453 | 2004-01-16 Kazu Hirata <kazu@cs.umass.edu> |
40454 | ||
40455 | * Make-lang.in (utils.o): Depend on target.h. | |
40456 | * utils.c: Include target.h. | |
40457 | (process_attributes): Use targetm.have_named_sections instead | |
40458 | of ASM_OUTPUT_SECTION_NAME. | |
40459 | ||
ce6c3084 | 40460 | 2004-01-16 Andreas Jaeger <aj@suse.de> |
40461 | ||
40462 | * Makefile.in: Add $(DESTDIR). | |
40463 | ||
ca14d7fa | 40464 | 2004-01-15 Olivier Hainque <hainque@act-europe.fr> |
40465 | ||
40466 | * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size | |
40467 | also when not defining if a Size clause applies. That information is | |
40468 | not to be ignored. | |
40469 | ||
40470 | 2004-01-15 Arnaud Charlet <charlet@act-europe.fr> | |
40471 | ||
40472 | * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up | |
40473 | symbolic links for the shared gnat run time when needed. | |
40474 | ||
40475 | 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr> | |
40476 | ||
40477 | * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened | |
40478 | for writing, and terminate with an error message if not. | |
40479 | ||
40480 | 2004-01-15 Ed Schonberg <schonberg@gnat.com> | |
40481 | ||
40482 | * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious | |
40483 | warning on an access to subprogram in an instance, when the target | |
40484 | type is declared in the same generic unit. | |
40485 | (Eval_Attribute): If 'access is known to fail accessibility check, | |
40486 | rewrite as a raise statement. | |
40487 | ||
40488 | 2004-01-15 GNAT Script <nobody@gnat.com> | |
40489 | ||
40490 | * Make-lang.in: Makefile automatically updated | |
40491 | ||
a6b4c5a9 | 40492 | 2004-01-15 Kelley Cook <kcook@gcc.gnu.org> |
40493 | ||
40494 | * Make-lang.in (ada.srcextra): Dummy entry. | |
40495 | ||
17e2788d | 40496 | 2004-01-14 Kelley Cook <kcook@gcc.gnu.org> |
40497 | ||
40498 | * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode. | |
40499 | ||
0914a918 | 40500 | 2004-01-13 Ed Schonberg <schonberg@gnat.com> |
40501 | ||
40502 | * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled | |
40503 | components that are initialized with aggregates. | |
40504 | ||
40505 | 2004-01-13 Vincent Celier <celier@gnat.com> | |
40506 | ||
40507 | * gnatlink.adb (Process_Binder_File): To find directory of shared | |
40508 | libgcc, if "gcc-lib" is not a subdirectory, look for the last | |
40509 | subdirectory "lib" in the path of the shared libgnat or libgnarl. | |
40510 | ||
40511 | * make.adb (Gnatmake): If GCC version is at least 3, link with | |
40512 | -shared-libgcc, when there is at least one shared library project. | |
40513 | ||
40514 | * opt.ads (GCC_Version): New integer constant. | |
40515 | ||
40516 | * adaint.c (get_gcc_version): New function. | |
40517 | ||
40518 | 2004-01-13 Robert Dewar <dewar@gnat.com> | |
40519 | ||
40520 | * sem_dist.adb, sem_res.adb, sem_util.adb, | |
40521 | sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb, | |
40522 | exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting | |
40523 | ||
40524 | 2004-01-13 Thomas Quinot <quinot@act-europe.fr> | |
40525 | ||
40526 | * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb, | |
40527 | g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object | |
40528 | declarations. | |
40529 | ||
6a8d485f | 40530 | 2004-01-12 Arnaud Charlet <charlet@act-europe.fr> |
40531 | ||
b28a376c | 40532 | * misc.c: Remove trailing spaces. |
40533 | Update copyright notice missed in previous change. | |
40534 | ||
6a8d485f | 40535 | PR ada/13572 |
40536 | * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of | |
40537 | prefix/share/make | |
40538 | ||
40539 | * Makefile.generic: Update copyright. | |
40540 | Add license notice. | |
40541 | ||
40542 | * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead | |
40543 | of prefix/share/make. | |
40544 | ||
40545 | * Makefile.prolog: Update copyright. | |
40546 | Add license notice. | |
40547 | ||
40548 | 2004-01-12 Laurent Pautet <pautet@act-europe.fr> | |
40549 | ||
40550 | * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb, | |
40551 | 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb, | |
40552 | g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr | |
40553 | instead of String. | |
40554 | ||
40555 | * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message | |
40556 | signature. | |
40557 | ||
40558 | 2004-01-12 Javier Miranda <miranda@gnat.com> | |
40559 | ||
40560 | * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb, | |
40561 | exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb, | |
40562 | sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb, | |
40563 | sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of | |
40564 | Component_Definition node. | |
40565 | ||
40566 | 2004-01-12 Ed Falis <falis@gnat.com> | |
40567 | ||
40568 | * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit | |
40569 | ||
40570 | 2004-01-12 Thomas Quinot <quinot@act-europe.fr> | |
40571 | ||
40572 | * link.c: Change default libgnat kind to STATIC for FreeBSD. | |
40573 | ||
40574 | 2004-01-12 Bernard Banner <banner@gnat.com> | |
40575 | ||
40576 | * Makefile.in: map 86numaux to a-numaux for x86_64 | |
40577 | ||
40578 | 2004-01-12 Ed Schonberg <schonberg@gnat.com> | |
40579 | ||
40580 | * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity | |
40581 | generated to rename a generic actual, go to the actual itself, the | |
40582 | subtype is not a user-visible entity. | |
40583 | ||
40584 | * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible | |
40585 | part is a private subtype, reset the visibility of its full view, if | |
40586 | any, to be consistent. | |
40587 | ||
40588 | PR ada/13417 | |
40589 | * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt | |
40590 | to use a generic package G as a formal package for another generic | |
40591 | declared within G. | |
40592 | ||
40593 | 2004-01-12 Robert Dewar <dewar@gnat.com> | |
40594 | ||
40595 | * trans.c (Eliminate_Error_Msg): New procedure called to generate msg | |
40596 | ||
40597 | * usage.adb: Remove mention of obsolete -gnatwb switch | |
40598 | Noticed during code reading | |
40599 | ||
40600 | 2004-01-12 Jerome Guitton <guitton@act-europe.fr> | |
40601 | ||
40602 | * 1ssecsta.adb: Minor changes for -gnatwa warnings | |
40603 | ||
40604 | 2004-01-12 GNAT Script <nobody@gnat.com> | |
40605 | ||
40606 | * Make-lang.in: Makefile automatically updated | |
40607 | ||
60ffaf4d | 40608 | 2004-01-09 Mark Mitchell <mark@codesourcery.com> |
40609 | ||
40610 | * misc.c (gnat_expand_expr): Add alt_rtl parameter. | |
40611 | ||
14f9c020 | 40612 | 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
40613 | ||
40614 | * link.c [sgi] (shared_libgnat_default): Change to STATIC. | |
40615 | ||
1dae9dd6 | 40616 | 2004-01-05 Kelley Cook <kcook@gcc.gnu.org> |
40617 | ||
ce6c3084 | 40618 | * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18. |
1dae9dd6 | 40619 | Update comment and copyright date. |
40620 | * stamp-xgnatug: Delete. | |
40621 | ||
5c61a0ff | 40622 | 2004-01-05 Robert Dewar <dewar@gnat.com> |
40623 | ||
40624 | * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may | |
40625 | be modified by the binder generated main program if the -D switch is | |
40626 | used. | |
40627 | ||
40628 | * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all | |
40629 | imported functions (since now we expect this to be done for imported | |
40630 | functions) | |
40631 | ||
40632 | * 5vtaprop.adb: Add several ??? for sections requiring more comments | |
40633 | Minor reformatting throughout | |
40634 | ||
40635 | * 5zinit.adb: Minor reformatting | |
40636 | Add 2004 to copyright date | |
40637 | Minor changes to avoid -gnatwa warnings | |
40638 | Correct some instances of using OR instead of OR ELSE (noted while | |
40639 | doing reformatting) | |
40640 | ||
40641 | * sprint.adb: Minor updates to avoid -gnatwa warnings | |
40642 | ||
ce6c3084 | 40643 | * s-secsta.ads, s-secsta.adb: |
5c61a0ff | 40644 | (SS_Get_Max): New function to obtain high water mark for ss stack |
40645 | Default_Secondary_Stack is not a constant since it may be modified by | |
40646 | the binder generated main program if the -D switch is used. | |
40647 | ||
40648 | * switch-b.adb: New -Dnnn switch for binder | |
40649 | ||
ce6c3084 | 40650 | * switch-c.adb: |
5c61a0ff | 40651 | Make -gnatg imply all warnings currently in -gnatwa |
40652 | ||
40653 | * vms_conv.adb: Minor reformatting | |
40654 | Add 2004 to copyright notice | |
40655 | Add 2004 to printed copyright notice | |
40656 | ||
40657 | * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb, | |
40658 | 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb, | |
40659 | 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb, | |
40660 | 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb, | |
40661 | 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb, | |
40662 | 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb, | |
40663 | 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb, | |
40664 | 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb, | |
40665 | 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb, | |
40666 | 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb, | |
40667 | 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb, | |
40668 | vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb, | |
40669 | xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads, | |
40670 | sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb, | |
40671 | checks.adb, clean.adb, cstand.adb, einfo.ads, | |
40672 | einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb, | |
40673 | exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb, | |
40674 | prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb, | |
40675 | sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb, | |
40676 | g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb, | |
40677 | lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb: | |
40678 | Minor reformatting and code clean ups. | |
40679 | Minor changes to prevent -gnatwa warnings | |
40680 | ||
40681 | * ali.adb: Minor reformatting and cleanup of code | |
40682 | Acquire new SS indication of secondary stack use from ali files | |
40683 | ||
40684 | * a-numaux.ads: Add Pure_Function pragmas for all imported functions | |
40685 | (since now we expect this to be done for imported functions) | |
40686 | ||
40687 | * bindgen.adb: Generate call to modify default secondary stack size if | |
40688 | -Dnnn switch given | |
40689 | ||
40690 | * bindusg.adb: Add line for new -D switch | |
40691 | ||
40692 | * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate | |
40693 | replacement name for Type_May_Have_Non_Bit_Aligned_Components! | |
40694 | Add circuitry for both records and arrays to avoid gigi | |
40695 | processing if the type involved has non-bit-aligned components | |
40696 | ||
40697 | * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that | |
40698 | N_String_Literal node always references an E_String_Literal_Subtype | |
40699 | entity. This may not be true in the future. | |
40700 | (Possible_Bit_Aligned_Component): Move processing of | |
40701 | Component_May_Be_Bit_Aligned from exp_ch5 to exp_util | |
40702 | ||
40703 | * exp_ch6.adb (Expand_Thread_Body): Pick up | |
40704 | Default_Secondary_Stack_Size as variable so that we get value modified | |
40705 | by possible -Dnnn binder parameter. | |
40706 | ||
40707 | * exp_util.adb (Component_May_Be_Bit_Aligned): New function. | |
40708 | (Type_May_Have_Bit_Aligned_Components): New function. | |
40709 | ||
40710 | * exp_util.ads (Component_May_Be_Bit_Aligned): New function. | |
40711 | (Type_May_Have_Bit_Aligned_Components): New function. | |
40712 | ||
40713 | * fe.h: (Set_Identifier_Casing): Fix prototype. | |
40714 | Add declaration for Sem_Elim.Eliminate_Error_Msg. | |
40715 | Minor reformatting. | |
40716 | ||
40717 | * freeze.adb (Freeze_Entity): Add RM reference to error message about | |
40718 | importing constant atomic/volatile objects. | |
40719 | (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram | |
40720 | unless explicit Pure_Function pragma given, to avoid insidious bug of | |
40721 | call to non-pure imported function getting eliminated. | |
40722 | ||
40723 | * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, | |
40724 | gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb, | |
40725 | gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting | |
40726 | Add 2004 to printed copyright notice | |
40727 | ||
40728 | * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary | |
40729 | stack used. | |
40730 | ||
40731 | * Makefile.rtl: Add entry for g-sestin.o | |
40732 | g-sestin.ads: New file. | |
40733 | ||
40734 | * mdll.adb: Minor changes to avoid -gnatwa warnings | |
40735 | ||
40736 | * mlib-tgt.adb: Minor reformatting | |
40737 | ||
40738 | * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND) | |
40739 | New switch Sec_Stack_Used (GNAT, GNATBIND) | |
40740 | Make Default_Secondary_Stack_Size a variable instead of a constant, | |
40741 | so that it can be modified by the new -Dnnn bind switch. | |
40742 | ||
40743 | * rtsfind.adb (Load_Fail): Give full error message in configurable | |
40744 | run-time mode if all_errors mode is set. This was not done in the case | |
40745 | of a file not found, which was an oversight. | |
40746 | Note if secondary stack unit is used by compiler. | |
40747 | ||
40748 | * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put | |
40749 | ineffective elaborate all pragmas on non-visible packages (this | |
40750 | happened when a renamed subprogram was called). Now the elaborate all | |
40751 | always goes on the package containing the renaming rather than the one | |
40752 | containing the renamed subprogram. | |
40753 | ||
40754 | * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure | |
40755 | (Process_Eliminate_Pragma): Add parameter to capture pragma location. | |
40756 | ||
40757 | * sem_eval.adb (Eval_String_Literal): Do not assume that string literal | |
40758 | has an Etype that references an E_String_Literal. | |
40759 | (Eval_String_Literal): Avoid assumption that N_String_Literal node | |
40760 | always references an E_String_Literal_Subtype entity. This may not | |
40761 | be true in the future. | |
40762 | ||
40763 | * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture | |
40764 | pragma location. | |
40765 | ||
40766 | * sem_res.adb (Resolve): Specialize msg for function name used in proc | |
40767 | call. | |
40768 | ||
40769 | 2004-01-05 Ed Falis <falis@gnat.com> | |
40770 | ||
40771 | * g-debuti.adb: Replaced direct boolean operator with short-circuit | |
40772 | form. | |
40773 | ||
40774 | 2004-01-05 Vincent Celier <celier@gnat.com> | |
40775 | ||
40776 | * bld.adb: Minor comment updates | |
40777 | (Process_Declarative_Items): Correct incorrect name (Index_Name instead | |
40778 | of Item_Name). | |
40779 | ||
40780 | * make.adb (Gnatmake): Special process for files to compile/check when | |
40781 | -B is specified. Fail when there are only foreign mains in attribute | |
40782 | Main of the project file and -B is not specified. Do not skip bind/link | |
40783 | steps when -B is specified. | |
40784 | ||
40785 | * makeusg.adb: Document new switch -B | |
40786 | ||
40787 | * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag | |
40788 | ||
40789 | * switch-m.adb: (Scan_Make_Switches): Process -B switch | |
40790 | ||
40791 | * vms_data.ads: Add new GNAT PRETTY qualifier | |
40792 | /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff | |
40793 | ||
40794 | 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
40795 | ||
40796 | * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer | |
40797 | case. | |
40798 | ||
40799 | * misc.c (gnat_printable_name): If VERBOSITY is 2, call | |
40800 | Set_Identifier_Casing. | |
40801 | ||
40802 | * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type | |
40803 | has size that overflows. | |
40804 | ||
40805 | 2004-01-05 Gary Dismukes <dismukes@gnat.com> | |
40806 | ||
40807 | * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid | |
40808 | -gnatwa warning on static condition. | |
40809 | ||
40810 | 2004-01-05 Doug Rupp <rupp@gnat.com> | |
40811 | ||
40812 | * link.c: (shared_libgnat_default) [VMS]: Change to STATIC. | |
40813 | ||
40814 | 2004-01-05 Arnaud Charlet <charlet@act-europe.fr> | |
40815 | ||
40816 | * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve | |
40817 | all attributes, including read-only attribute. | |
40818 | ||
40819 | 2004-01-05 Pascal Obry <obry@gnat.com> | |
40820 | ||
40821 | * bindgen.adb (Gen_Object_Files_Options): Generate the new shared | |
40822 | library naming scheme. | |
40823 | ||
40824 | * mlib-prj.adb (Build_Library): Generate different names for the static | |
40825 | or dynamic version of the GNAT runtime. This is needed to support the | |
40826 | new shared library naming scheme. | |
40827 | (Process_Binder_File): Add detection of shared library in binder file | |
40828 | based on the new naming scheme. | |
40829 | ||
40830 | * gnatlink.adb (Process_Binder_File): Properly detect the new naming | |
40831 | scheme for the shared runtime libraries. | |
40832 | ||
40833 | * Makefile.in: | |
40834 | (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming | |
40835 | scheme. | |
40836 | (install-gnatlib): Do not create symlinks for shared libraries. | |
40837 | (gnatlib-shared-default): Idem. | |
40838 | (gnatlib-shared-dual-win32): New target. Not used for now as the | |
40839 | auto-import feature does not support arrays/records. | |
40840 | (gnatlib-shared-win32): Do not create copy for the shared libraries. | |
40841 | (gnatlib-shared-vms): Fix shared runtime libraries names. | |
40842 | ||
40843 | * osint.ads, osint.adb (Shared_Lib): New routine, returns the target | |
40844 | dependent runtime shared library name. | |
40845 | ||
40846 | 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr> | |
40847 | ||
40848 | * osint.adb (Read_Library_Info): Remove bogus check if ALI is older | |
40849 | than the object. | |
40850 | ||
40851 | 2004-01-05 Ed Schonberg <schonberg@gnat.com> | |
40852 | ||
40853 | * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic | |
40854 | protected objects when allocator has a subtype indication, not a | |
40855 | qualified expression. Note that qualified expressions may have to be | |
40856 | checked when limited aggregates are implemented. | |
40857 | ||
40858 | * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is | |
40859 | pure, emit warning. | |
40860 | (Analyze_Pragma, case Pure_Function): If enclosing package is pure and | |
40861 | subprogram is imported, remove warning. | |
40862 | ||
40863 | 2004-01-05 Geert Bosch <bosch@gnat.com> | |
40864 | ||
40865 | * s-poosiz.adb: Update copyright notice. | |
40866 | (Allocate): Use Task_Lock to protect against concurrent access. | |
40867 | (Deallocate): Likewise. | |
40868 | ||
40869 | 2004-01-05 Joel Brobecker <brobecker@gnat.com> | |
40870 | ||
40871 | * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ??? | |
40872 | comment. | |
40873 | ||
8fc713c0 | 40874 | 2003-12-23 Kelley Cook <kcook@gcc.gnu.org> |
40875 | ||
40876 | * gnat_ug.texi: Force a CVS commit by updating copyright. | |
40877 | * gnat_ug_vxw.texi: Regenerate. | |
40878 | * gnat_ug_wnt.texi: Regenerate. | |
40879 | * gnat_ug_vms.texi: Regenerate. | |
40880 | * gnat_ug_unx.texi: Regenerate. | |
40881 | ||
0d9830ab | 40882 | 2003-12-20 Kazu Hirata <kazu@cs.umass.edu> |
40883 | ||
40884 | * trans.c: Remove uses of "register" specifier in | |
40885 | declarations of local variables. | |
40886 | ||
cb8ea839 | 40887 | 2003-12-18 Kelley Cook <kcook@gcc.gnu.org> |
40888 | ||
40889 | * stamp-xgnatug: New stamp file. | |
40890 | * Make-lang.in (stamp-xgnatug): New stamp file and comment. | |
40891 | (ada/doctools/xgnatug): Add $(build_exeext). | |
40892 | (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi | |
40893 | ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug. | |
40894 | ||
d66aa9f6 | 40895 | 2003-12-17 Ed Falis <falis@gnat.com> |
40896 | ||
40897 | * a-elchha.adb (Tailored_Exception_Information): made Info constant to | |
40898 | eliminate warning. | |
40899 | ||
40900 | * a-exextr.adb: Add context clause for | |
40901 | Ada.Exceptions.Last_Chance_Handler. | |
40902 | ||
40903 | 2003-12-17 Sergey Rybin <rybin@act-europe.fr> | |
40904 | ||
40905 | * cstand.adb (Create_Standard): Change the way how the declaration of | |
40906 | the Duration type is created (making it the same way as it is for all | |
40907 | the other standard types). | |
40908 | ||
40909 | 2003-12-17 Robert Dewar <dewar@gnat.com> | |
40910 | ||
40911 | * s-crtl.ads: Fix header format | |
40912 | Change Pure to Preelaborate | |
40913 | ||
40914 | 2003-12-17 Ed Schonberg <schonberg@gnat.com> | |
40915 | ||
40916 | * checks.adb (Selected_Length_Checks): Generate an Itype reference for | |
40917 | the expression type only if it is declared in the current unit. | |
40918 | ||
40919 | * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds | |
40920 | are universal and already analyzed, as can occur in constrained | |
40921 | subcomponents that depend on discriminants, when one constraint is a | |
40922 | subtype mark. | |
40923 | ||
40924 | * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of | |
40925 | type Any_Fixed is legal as the argument of a conversion, if only one | |
40926 | fixed-point type is in context. | |
40927 | ||
40928 | 2003-12-17 GNAT Script <nobody@gnat.com> | |
40929 | ||
40930 | * Make-lang.in: Makefile automatically updated | |
40931 | ||
9e0ecfab | 40932 | 2003-12-15 Robert Dewar <dewar@gnat.com> |
40933 | ||
40934 | * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default | |
40935 | sec stack size. | |
40936 | ||
40937 | 2003-12-15 Vincent Celier <celier@gnat.com> | |
40938 | ||
40939 | * gnatchop.adb: (Error_Msg): Do not exit on error for a warning | |
40940 | (Gnatchop): Do not set failure status when reporting the number of | |
40941 | warnings. | |
40942 | ||
40943 | 2003-12-15 Doug Rupp <rupp@gnat.com> | |
40944 | ||
40945 | * s-ctrl.ads: New file. | |
40946 | ||
40947 | * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext). | |
40948 | ||
40949 | * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o. | |
40950 | (GNATBIND_OBJS): Add ada/s-crtl.o. | |
40951 | ||
40952 | * Makefile.in [VMS]: Clean up ifeq rules. | |
40953 | ||
40954 | * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb, | |
40955 | a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb, | |
40956 | g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb, | |
40957 | s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb, | |
40958 | s-tasdeb.adb: Update copyright. | |
40959 | Import System.CRTL. | |
40960 | Make minor modifications to use System.CRTL declared functions instead | |
40961 | of importing locally. | |
40962 | ||
40963 | 2003-12-15 GNAT Script <nobody@gnat.com> | |
40964 | ||
40965 | * Make-lang.in: Makefile automatically updated | |
40966 | ||
723bead6 | 40967 | 2003-12-11 Ed Falis <falis@gnat.com> |
40968 | ||
40969 | * 5zinit.adb: Clean up. | |
40970 | ||
40971 | * 5zintman.adb (Notify_Exception): replaced case statement with a call | |
40972 | to __gnat_map_signal, imported from init.c to support | |
40973 | signal -> exception mappings that depend on the vxWorks version. | |
40974 | ||
ce6c3084 | 40975 | * init.c: |
723bead6 | 40976 | Created and exported __gnat_map_signal to support signal -> exception |
40977 | mapping that is dependent on the VxWorks version. | |
40978 | Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks | |
40979 | ||
40980 | 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr> | |
40981 | ||
40982 | * 5wosinte.ads: Link with -mthreads switch. | |
40983 | ||
40984 | 2003-12-11 Arnaud Charlet <charlet@act-europe.fr> | |
40985 | ||
40986 | * init.c (__gnat_install_handler [NetBSD]): Set | |
40987 | __gnat_handler_installed, as done on all other platforms. | |
40988 | Remove duplicated code. | |
40989 | ||
40990 | 2003-12-11 Jerome Guitton <guitton@act-europe.fr> | |
40991 | ||
40992 | * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a. | |
40993 | ||
40994 | 2003-12-11 Thomas Quinot <quinot@act-europe.fr> | |
40995 | ||
40996 | * sinfo.ads: Fix inconsistent example code in comment. | |
40997 | ||
40998 | 2003-12-11 Robert Dewar <dewar@gnat.com> | |
40999 | ||
41000 | * a-tiinau.adb: Add a couple of comments | |
41001 | ||
41002 | * sem_ch3.adb: Minor reformatting | |
41003 | ||
ce6c3084 | 41004 | * sem_prag.adb: |
723bead6 | 41005 | Fix bad prototype of Same_Base_Type in body (code reading cleanup) |
41006 | Minor reformatting throughout | |
41007 | ||
41008 | 2003-12-11 Ed Schonberg <schonberg@gnat.com> | |
41009 | ||
41010 | * exp_ch7.adb (Establish_Transient_Scope): If the call is within the | |
41011 | bounds of a loop, create a separate block in order to generate proper | |
41012 | cleanup actions to prevent memory leaks. | |
41013 | ||
41014 | * sem_res.adb (Resolve_Call): After a call to | |
41015 | Establish_Transient_Scope, the call may be rewritten and relocated, in | |
41016 | which case no further processing is needed. | |
41017 | ||
41018 | * sem_util.adb: (Wrong_Type): Refine previous fix. | |
41019 | Fixes ACATS regressions. | |
41020 | ||
41021 | PR ada/13353 | |
723bead6 | 41022 | * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always |
41023 | be inlined. | |
41024 | ||
bdd64cbe | 41025 | 2003-12-08 Jerome Guitton <guitton@act-europe.fr> |
41026 | ||
41027 | * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb, | |
41028 | i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of | |
41029 | obsolete files. | |
41030 | ||
41031 | * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a. | |
41032 | (rts-zfp): Ditto. | |
41033 | ||
41034 | 2003-12-08 Robert Dewar <dewar@gnat.com> | |
41035 | ||
41036 | * 7sintman.adb: Minor reformatting | |
41037 | ||
41038 | * bindgen.adb: Configurable_Run_Time mode no longer suppresses the | |
41039 | standard linker options to get standard libraries linked. We now plan | |
41040 | to provide dummy versions of these libraries to match the appropriate | |
41041 | configurable run-time (e.g. if a library is not needed at all, provide | |
41042 | a dummy empty library). | |
41043 | ||
41044 | * targparm.ads: Configurable_Run_Time mode no longer affects linker | |
41045 | options (-L parameters and standard libraries). What we plan to do is | |
41046 | to provide dummy libraries where the libraries are not required. | |
41047 | ||
41048 | * gnatbind.adb: Minor comment improvement | |
41049 | ||
41050 | 2003-12-08 Javier Miranda <miranda@gnat.com> | |
41051 | ||
41052 | * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded | |
41053 | aggregate in the parent. Otherwise constants with limited aggregates | |
41054 | are not supported. Add new formal to pass the component type (Ctype). | |
41055 | It is required to call the corresponding IP subprogram in case of | |
41056 | default initialized components. | |
41057 | (Gen_Assign): In case of default-initialized component, generate a | |
41058 | call to the IP subprogram associated with the component. | |
41059 | (Build_Record_Aggr_Code): Remove the aggregate from the parent in case | |
41060 | of aggregate with default initialized components. | |
41061 | (Has_Default_Init_Comps): Improve implementation to recursively check | |
41062 | all the present expressions. | |
41063 | ||
41064 | * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal | |
41065 | to indicate that the initialization call corresponds to a | |
41066 | default-initialized component of an aggregate. | |
41067 | In case of default initialized aggregate with tasks this parameter is | |
41068 | used to generate a null string (this is just a workaround that must be | |
41069 | improved later). In case of discriminants, this parameter is used to | |
41070 | generate a selected component node that gives access to the discriminant | |
41071 | value. | |
41072 | ||
41073 | * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New | |
41074 | subprogram, based on Build_Task_Allocate_Block, but adapted to expand | |
41075 | allocated aggregates with default-initialized components. | |
41076 | ||
41077 | * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if | |
41078 | the box notation is used in positional aggregates. | |
41079 | ||
41080 | 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr> | |
41081 | ||
41082 | * lib.ads: Fix typo in comment | |
41083 | ||
41084 | 2003-12-08 Vincent Celier <celier@gnat.com> | |
41085 | ||
41086 | * prj.adb (Project_Empty): New component Unkept_Comments | |
41087 | (Scan): Remove procedure; moved to Prj.Err. | |
41088 | ||
41089 | * prj.ads (Project_Data): New Boolean component Unkept_Comments | |
41090 | (Scan): Remove procedure; moved to Prj.Err. | |
41091 | ||
41092 | * prj-dect.adb: Manage comments for the different declarations. | |
41093 | ||
41094 | * prj-part.adb (With_Record): New component Node | |
41095 | (Parse): New Boolean parameter Store_Comments, defaulted to False. | |
41096 | Set the scanner to return ends of line and comments as tokens, if | |
41097 | Store_Comments is True. | |
41098 | (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that | |
41099 | comments are associated with these nodes. Store the node IDs in the | |
41100 | With_Records. | |
41101 | (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the | |
41102 | With_Records. | |
41103 | (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating | |
41104 | the N_Project node. Call Tree.Save and Tree.Reset before scanning the | |
41105 | current project. Call Tree.Restore afterwards. Set the various nodes | |
41106 | for comment storage (Next_End, End_Of_Line, Previous_Line, | |
41107 | Previous_End). | |
41108 | ||
41109 | * prj-part.ads (Parse): New Boolean parameter Store_Comments, | |
41110 | defaulted to False. | |
41111 | ||
41112 | * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted | |
41113 | to False. When Truncated is True, truncate the string, never go to the | |
41114 | next line. | |
41115 | (Write_End_Of_Line_Comment): New procedure | |
41116 | (Print): Process comments for nodes N_With_Clause, | |
41117 | N_Package_Declaration, N_String_Type_Declaration, | |
41118 | N_Attribute_Declaration, N_Typed_Variable_Declaration, | |
41119 | N_Variable_Declaration, N_Case_Construction, N_Case_Item. | |
41120 | Process nodes N_Comment. | |
41121 | ||
41122 | * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node | |
41123 | without comments and there are some comments, set the flag | |
41124 | Unkept_Comments to True. | |
41125 | (Scan): If there are comments, set the flag Unkept_Comments to True and | |
41126 | clear the comments. | |
41127 | (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment | |
41128 | (Next_End_Nodes: New table | |
41129 | (Comment_Zones_Of): New function | |
41130 | (Scan): New procedure; moved from Prj. Accumulate comments in the | |
41131 | Comments table and set end of line comments, comments after, after end | |
41132 | and before end. | |
41133 | (Add_Comments): New procedure | |
41134 | (Save, Restore, Seset_State): New procedures | |
41135 | (There_Are_Unkept_Comments): New function | |
41136 | (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures | |
41137 | (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New | |
41138 | procedures. | |
41139 | (First_Comment_After, First_Comment_After_End): New functions | |
41140 | (First_Comment_Before, First_Comment_Before_End): New functions | |
41141 | (Next_Comment): New function | |
41142 | (End_Of_Line_Comment, Follows_Empty_Line, | |
41143 | Is_Followed_By_Empty_Line): New functions | |
41144 | (Set_First_Comment_After, Set_First_Comment_After_End): New procedures | |
41145 | (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures | |
41146 | (Set_Next_Comment): New procedure | |
41147 | (Default_Project_Node): Associate comment before if the node can store | |
41148 | comments. | |
41149 | ||
41150 | * scans.ads (Token_Type): New enumeration value Tok_Comment | |
41151 | (Comment_Id): New global variable | |
41152 | ||
41153 | * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable, | |
41154 | defaulted to False. | |
41155 | (Scan): Store position of start of comment. If comments are tokens, set | |
41156 | Comment_Id and set Token to Tok_Comment when scanning a comment. | |
41157 | (Set_Comment_As_Token): New procedure | |
41158 | ||
41159 | * sinput-p.adb: Update Copyright notice | |
41160 | (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan | |
41161 | that no longer exists. | |
41162 | ||
41163 | 2003-12-08 Javier Miranda <miranda@gnat.com> | |
41164 | ||
41165 | * sem_aggr.adb: Add dependence on Exp_Tss package | |
41166 | Correct typo in comment | |
41167 | (Resolve_Aggregate): In case of array aggregates set the estimated | |
41168 | type of the aggregate before calling resolve. This is needed to know | |
41169 | the name of the corresponding IP in case of limited array aggregates. | |
41170 | (Resolve_Array_Aggregate): Delay the resolution to the expansion phase | |
41171 | in case of default initialized array components. | |
41172 | ||
41173 | * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited | |
41174 | types. Required to give support to limited aggregates in generic | |
41175 | formals. | |
41176 | ||
41177 | 2003-12-08 Ed Schonberg <schonberg@gnat.com> | |
41178 | ||
41179 | * sem_ch3.adb (Check_Initialization): For legality purposes, an | |
41180 | inlined body functions like an instantiation. | |
41181 | (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype | |
41182 | until bounds are analyzed, to diagnose premature use of type. | |
41183 | ||
41184 | * sem_util.adb (Wrong_Type): Improve error message when the type of | |
41185 | the expression is used prematurely. | |
41186 | ||
41187 | 2003-12-08 GNAT Script <nobody@gnat.com> | |
41188 | ||
41189 | * Make-lang.in: Makefile automatically updated | |
41190 | ||
b1e28256 | 41191 | 2003-12-08 Arnaud Charlet <charlet@act-europe.fr> |
41192 | ||
a1109f14 | 41193 | * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since |
41194 | they are automatically generated by Make-lang.in and cause nothing but | |
b1e28256 | 41195 | maintenance troubles. |
41196 | ||
cc5c9949 | 41197 | 2003-12-05 Thomas Quinot <quinot@act-europe.fr> |
41198 | ||
41199 | * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare, | |
41200 | version of this unit). | |
41201 | ||
41202 | 2003-12-05 Olivier Hainque <hainque@act-europe.fr> | |
41203 | ||
41204 | * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads, | |
41205 | 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads, | |
41206 | 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from | |
41207 | the body of System.Interrupt_Management common to several targets. | |
41208 | Update copyright notice when appropriate. | |
41209 | ||
41210 | * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO | |
41211 | constant. | |
41212 | ||
41213 | * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags, | |
41214 | to ensure that the kernel fills in the interrupted context structure | |
41215 | before calling a signal handler, which is necessary to be able to | |
41216 | unwind past it. Update the copyright notice. | |
41217 | ||
41218 | 2003-12-05 Jerome Guitton <guitton@act-europe.fr> | |
41219 | ||
41220 | * a-elchha.ads: New file. | |
41221 | ||
41222 | * a-elchha.adb: New default last chance handler. Contents taken from | |
41223 | Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate. | |
41224 | ||
41225 | * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine | |
41226 | is moved to a-elchha.adb to provide a target-independent default last | |
41227 | chance handler. | |
41228 | ||
41229 | * Makefile.rtl: Add a-elchha.o | |
41230 | ||
41231 | * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o. | |
41232 | ||
41233 | 2003-12-05 Ed Schonberg <schonberg@gnat.com> | |
41234 | ||
41235 | * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is | |
41236 | declared in an instance, do not inline the call if the instance is not | |
41237 | frozen yet, to prevent order of elaboration problems. | |
41238 | ||
41239 | * sem_prag.adb: Add comments for previous fix. | |
41240 | ||
41241 | 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr> | |
41242 | ||
41243 | * g-table.adb: Use the right variable in Set_Item. | |
41244 | Update copyright notice. | |
41245 | ||
41246 | 2003-12-05 Arnaud Charlet <charlet@act-europe.fr> | |
41247 | ||
41248 | * Makefile.in: Remove unused rules. | |
41249 | ||
41250 | 2003-12-05 Vincent Celier <celier@gnat.com> | |
41251 | ||
41252 | * switch-c.adb (Scan_Front_End_Switches): Remove processing of | |
41253 | -nostdlib. Not needed here after all. | |
41254 | ||
cf6d853e | 41255 | 2003-12-03 Thomas Quinot <quinot@act-europe.fr> |
41256 | ||
41257 | PR ada/11724 | |
ce6c3084 | 41258 | * adaint.h, adaint.c, g-os_lib.ads: |
cf6d853e | 41259 | Do not assume that the offset argument to lseek(2) is a 32 bit integer, |
41260 | on some platforms (including FreeBSD), it is a 64 bit value. | |
41261 | Introduce a __gnat_lseek wrapper in adaint.c to allow for portability. | |
41262 | ||
41263 | 2003-12-03 Arnaud Charlet <charlet@act-europe.fr> | |
41264 | ||
41265 | * gnatvsn.ads (Library_Version): Now contain only the relevant | |
41266 | version info. | |
41267 | (Verbose_Library_Version): New constant. | |
41268 | ||
41269 | * g-spipat.adb, g-awk.adb, g-debpoo.adb, | |
41270 | g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb, | |
41271 | s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa. | |
41272 | ||
41273 | * gnatlbr.adb: Clean up: replace Library_Version by | |
41274 | Verbose_Library_Version. | |
41275 | ||
ce6c3084 | 41276 | * make.adb, lib-writ.adb, exp_attr.adb: |
cf6d853e | 41277 | Clean up: replace Library_Version by Verbose_Library_Version. |
41278 | ||
41279 | * 5lintman.adb: Removed. | |
41280 | ||
ce6c3084 | 41281 | * Makefile.in: |
cf6d853e | 41282 | Update and simplify computation of LIBRARY_VERSION. |
41283 | Fix computation of GSMATCH_VERSION. | |
41284 | 5lintman.adb is no longer used: replaced by 7sintman.adb. | |
41285 | ||
41286 | 2003-12-03 Robert Dewar <dewar@gnat.com> | |
41287 | ||
ce6c3084 | 41288 | * exp_ch5.adb: |
cf6d853e | 41289 | (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new |
41290 | name. Modified to consider small non-bit-packed arrays as troublesome | |
41291 | and in need of component-by-component assigment expansion. | |
41292 | ||
41293 | 2003-12-03 Vincent Celier <celier@gnat.com> | |
41294 | ||
41295 | * lang-specs.h: Process nostdlib as nostdinc | |
41296 | ||
41297 | * back_end.adb: Update Copyright notice | |
41298 | (Scan_Compiler_Arguments): Process -nostdlib directly. | |
41299 | ||
41300 | 2003-12-03 Jose Ruiz <ruiz@act-europe.fr> | |
41301 | ||
ce6c3084 | 41302 | * Makefile.in: |
cf6d853e | 41303 | When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the |
41304 | redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always | |
41305 | included in HIE_NONE_TARGET_PAIRS. | |
41306 | ||
41307 | 2003-12-03 Ed Schonberg <schonberg@gnat.com> | |
41308 | ||
ce6c3084 | 41309 | * sem_attr.adb: |
cf6d853e | 41310 | (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it |
41311 | is legal in an instance, because legality is cheched in the template. | |
41312 | ||
ce6c3084 | 41313 | * sem_prag.adb: |
cf6d853e | 41314 | (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be |
41315 | appplied to an unchecked conversion of a formal parameter. | |
41316 | ||
ce6c3084 | 41317 | * sem_warn.adb: |
cf6d853e | 41318 | (Output_Unreferenced_Messages): Suppress "not read" warnings on imported |
41319 | variables. | |
41320 | ||
41321 | 2003-12-03 Olivier Hainque <hainque@act-europe.fr> | |
41322 | ||
41323 | * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New | |
41324 | routines. The second one is new functionality to deal with backtracing | |
41325 | through signal handlers. | |
41326 | (unwind): Split into the two separate subroutines above. | |
41327 | Update the documentation, and deal properly with sizeof (REG) different | |
41328 | from sizeof (void*). | |
41329 | ||
9988dae3 | 41330 | 2003-12-01 Nicolas Setton <setton@act-europe.fr> |
41331 | ||
41332 | * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point, | |
41333 | so that the debugger can reliably access the value of the parameter, | |
41334 | and therefore is able to display the exception name when an exception | |
41335 | breakpoint is reached. | |
41336 | ||
41337 | 2003-12-01 Thomas Quinot <quinot@act-europe.fr> | |
41338 | ||
41339 | * fmap.adb: Fix typo in warning message. | |
41340 | ||
41341 | * g-socket.ads, g-socket.adb: Make Free a visible instance of | |
41342 | Ada.Unchecked_Deallocation (no need to wrap it in a subprogram). | |
41343 | ||
41344 | 2003-12-01 Vincent Celier <celier@gnat.com> | |
41345 | ||
41346 | * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if | |
41347 | ther is no Afile. | |
41348 | (Build_Library): Get the switches only if Default_Switches is declared | |
41349 | in package Binder. | |
41350 | ||
41351 | 2003-12-01 Ed Schonberg <schonberg@gnat.com> | |
41352 | ||
41353 | * exp_ch6.adb (Expand_Actuals): When applying validity checks to | |
41354 | actuals that are indexed components, reanalyze actual to ensure that | |
41355 | packed array references are properly expanded. | |
41356 | ||
41357 | * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for | |
41358 | attempted assignment to a discriminant. | |
41359 | ||
41360 | 2003-12-01 Robert Dewar <dewar@gnat.com> | |
41361 | ||
41362 | * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor | |
41363 | reformatting. | |
41364 | ||
41365 | * switch-c.adb: Minor reformatting of comments | |
41366 | ||
41367 | 2003-12-01 Arnaud Charlet <charlet@act-europe.fr> | |
41368 | ||
41369 | * Makefile.in: Clean ups. | |
41370 | ||
41371 | 2003-12-01 GNAT Script <nobody@gnat.com> | |
41372 | ||
41373 | * Make-lang.in: Makefile automatically updated | |
41374 | ||
5f81aab0 | 41375 | 2003-12-01 Arnaud Charlet <charlet@act-europe.fr> |
41376 | ||
41377 | * 5wsystem.ads: Disable zero cost exception, not ready yet. | |
41378 | ||
f41c88aa | 41379 | 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com> |
41380 | ||
41381 | * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb | |
41382 | to force serialization. | |
41383 | ||
37cb33b0 | 41384 | 2003-11-26 Thomas Quinot <quinot@act-europe.fr> |
41385 | ||
ce6c3084 | 41386 | * g-socket.ads, g-socket.adb: |
37cb33b0 | 41387 | Clarify documentation of function Stream. Introduce a Free procedure |
41388 | to release the returned Stream once it becomes unused. | |
41389 | ||
41390 | * 5asystem.ads: For Alpha Tru64, enable ZCX by default. | |
41391 | ||
41392 | 2003-11-26 Arnaud Charlet <charlet@act-europe.fr> | |
41393 | ||
41394 | (Cond_Timed_Wait): Introduce new constant Time_Out_Max, | |
41395 | since NT 4 cannot handle timeout values that are too large, | |
41396 | e.g. DWORD'Last - 1. | |
41397 | ||
41398 | 2003-11-26 Ed Schonberg <schonberg@gnat.com> | |
41399 | ||
ce6c3084 | 41400 | * exp_ch4.adb: |
37cb33b0 | 41401 | (Expand_N_Slice): Recognize all cases of slices that appear as actuals |
41402 | in procedure calls and whose expansion must be deferred. | |
41403 | ||
41404 | * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix | |
41405 | is in exp_ch4. | |
41406 | ||
ce6c3084 | 41407 | * sem_ch3.adb: |
37cb33b0 | 41408 | (Build_Derived_Array_Type): Create operator for unconstrained type |
41409 | if ancestor is unconstrained. | |
41410 | ||
41411 | 2003-11-26 Vincent Celier <celier@gnat.com> | |
41412 | ||
41413 | * make.adb (Project_Object_Directory): New global variable | |
41414 | (Change_To_Object_Directory): New procedure | |
41415 | (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead | |
41416 | of Change_Dir directly. Do not change working directory to object | |
41417 | directory of main project after each compilation. | |
41418 | (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir | |
41419 | directly. | |
41420 | Change to object directory of main project before binding step. | |
41421 | (Initialize): Initialize Project_Object_Directory to No_Project | |
41422 | ||
ce6c3084 | 41423 | * mlib-prj.adb: |
37cb33b0 | 41424 | (Build_Library): Take into account Builder'Default_Switches ("Ada") when |
41425 | binding a Stand-Alone Library. | |
41426 | ||
41427 | * output.adb: Update Copyright notice | |
41428 | (Write_Char): Output buffer when full | |
41429 | ||
41430 | 2003-11-26 Robert Dewar <dewar@gnat.com> | |
41431 | ||
41432 | * sem_ch13.adb: (Check_Size): Reset size if size is too small | |
41433 | ||
ce6c3084 | 41434 | * sem_ch13.ads: |
37cb33b0 | 41435 | (Check_Size): Fix documentation to include bit-packed array case |
41436 | ||
41437 | * sem_res.adb: Implement restriction No_Direct_Boolean_Operators | |
41438 | ||
41439 | * s-rident.ads: Put No_Direct_Boolean_Operators in proper order | |
41440 | ||
41441 | * s-rident.ads: Add new restriction No_Direct_Boolean_Operators | |
41442 | ||
8a67bb47 | 41443 | 2003-11-24 Arnaud Charlet <charlet@act-europe.fr> |
c1396673 | 41444 | |
41445 | PR ada/13142 | |
41446 | * utils.c (init_gigi_decls): Change name of built-in setjmp to | |
41447 | __builtin_setjmp, since this is apparently needed by recent | |
41448 | non Ada changes. | |
41449 | ||
e277897f | 41450 | 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
41451 | ||
c1396673 | 41452 | * adadecode.c: Only include ctype.h if not IN_GCC. |
e277897f | 41453 | (__gnat_decode): Use ISDIGIT from safe-ctype.h. |
41454 | ||
cf428c6c | 41455 | 2003-11-24 Jose Ruiz <ruiz@act-europe.fr> |
41456 | ||
ce6c3084 | 41457 | * Makefile.in: |
cf428c6c | 41458 | Use 5zintman.ads for VxWorks targets. This file avoid confusion between |
41459 | signals and interrupts. | |
41460 | ||
41461 | * 5zintman.ads: New File. | |
41462 | ||
41463 | * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and | |
41464 | add exception signals to the set of unmasked signals. | |
41465 | ||
ce6c3084 | 41466 | * 5ztaprop.adb: |
cf428c6c | 41467 | Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion |
41468 | between signals and interrupts. | |
41469 | Add to Unblocked_Signal_Mask the set of signals that are in | |
41470 | Keep_Unmasked. | |
41471 | ||
ce6c3084 | 41472 | * 7sinmaop.adb: |
cf428c6c | 41473 | Adding a check to see whether the Interrupt_ID we want to unmask is in |
41474 | the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The | |
41475 | reason is that the index type of the Keep_Unmasked array is not always | |
41476 | Interrupt_ID; it may be a subtype of Interrupt_ID. | |
41477 | ||
41478 | 2003-11-24 Gary Dismukes <dismukes@gnat.com> | |
41479 | ||
ce6c3084 | 41480 | * exp_util.adb: |
cf428c6c | 41481 | (Remove_Side_Effects): Condition constantness of object created for a |
41482 | an unchecked type conversion on the constantness of the expression | |
41483 | to ensure the correct value for 'Constrained when passing components | |
41484 | of view-converted class-wide objects. | |
41485 | ||
41486 | 2003-11-24 Robert Dewar <dewar@gnat.com> | |
41487 | ||
41488 | * par-load.adb (Load): Improve handling of misspelled and missing units | |
41489 | Removes several cases of compilation abandoned messages | |
41490 | ||
41491 | * lib.adb: (Remove_Unit): New procedure | |
41492 | ||
41493 | * lib.ads: (Remove_Unit): New procedure | |
41494 | ||
41495 | * lib-load.adb: Minor reformatting | |
41496 | ||
41497 | 2003-11-24 Vincent Celier <celier@gnat.com> | |
41498 | ||
ce6c3084 | 41499 | * make.adb: |
cf428c6c | 41500 | (Gnatmake, Initialize): Call Usage instead of Makeusg directly |
41501 | (Marking_Label): Label to mark processed source files. Incremented for | |
41502 | each executable. | |
41503 | (Gnatmake): Increase Marking_Labet for each executable | |
41504 | (Is_Marked): Compare against marking label | |
41505 | (Mark): Mark with marking label | |
41506 | ||
41507 | 2003-11-24 Jerome Guitton <guitton@act-europe.fr> | |
41508 | ||
ce6c3084 | 41509 | * s-thread.ads: |
cf428c6c | 41510 | Move the declaration of the TSD for System.Threads to System.Soft_Links. |
41511 | Add some comments. | |
41512 | ||
41513 | * Makefile.in: Added target pair for s-thread.adb for cert runtime. | |
41514 | (rts-cert): build a single relocatable object for the run-time lib. | |
41515 | Fix perms. | |
41516 | ||
41517 | 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr> | |
41518 | ||
ce6c3084 | 41519 | * Make-lang.in: |
cf428c6c | 41520 | Use gnatls rather than gcc to obtain the location of GNAT RTL for |
41521 | crosstools build. | |
41522 | ||
41523 | 2003-11-24 Sergey Rybin <rybin@act-europe.fr> | |
41524 | ||
41525 | * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we | |
41526 | can not use it as before (that is, as a variable) when dumping it into | |
41527 | the tree file. Add a local variable to store the result of this | |
41528 | function and to be used as the string to be written into the tree. | |
41529 | ||
41530 | * scn.adb (Initialize_Scanner): Add comments explaining the recent | |
41531 | changes. | |
41532 | ||
41533 | * sinput.adb (Source_First, Source_Last): In case of | |
41534 | Internal_Source_File, replace returning attributes of | |
41535 | Internal_Source_Ptr (which is wrong) with returning attributes of | |
41536 | Internal_Source. | |
41537 | ||
41538 | 2003-11-24 Ed Schonberg <schonberg@gnat.com> | |
41539 | ||
ce6c3084 | 41540 | * sem_ch3.adb: |
cf428c6c | 41541 | (New_Concatenation_Op): Proper name for New_Binary_Operator, only |
41542 | used for implicit concatenation operators. | |
41543 | Code cleanup. | |
41544 | ||
ce6c3084 | 41545 | * sem_elab.adb: |
cf428c6c | 41546 | (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in |
41547 | task bodies that are in the scope of a Suppress pragma. | |
41548 | (Check_A Call): Use the flag to prevent spurious elaboration checks. | |
41549 | ||
ce6c3084 | 41550 | * sinfo.ads, sinfo.adb: |
cf428c6c | 41551 | New flag No_Elaboration_Check on function/procedure calls, to properly |
41552 | suppress checks on calls in task bodies that are within a local suppress | |
41553 | pragma. | |
41554 | ||
ce6c3084 | 41555 | * exp_ch4.adb: |
cf428c6c | 41556 | (Expand_Concatenate_Other): Use the proper integer type for the |
41557 | expression for the upper bound, to avoid universal_integer computations | |
41558 | when possible. | |
41559 | ||
51267812 | 41560 | 2003-11-21 Kelley Cook <kcook@gcc.gnu.org> |
41561 | ||
41562 | * .cvsignore: Delete. | |
41563 | ||
c12b3a65 | 41564 | 2003-11-21 Andreas Schwab <schwab@suse.de> |
41565 | ||
41566 | * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True. | |
41567 | ||
cb284d5c | 41568 | 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr> |
41569 | ||
41570 | * 5wsystem.ads: Enable zero cost exception. | |
41571 | ||
be4b2f73 | 41572 | 2003-11-21 Jerome Guitton <guitton@act-europe.fr> |
41573 | ||
41574 | * 5ztiitho.adb: Remove an unreferenced variable. | |
41575 | ||
41576 | 2003-11-21 Thomas Quinot <quinot@act-europe.fr> | |
41577 | ||
41578 | * adaint.c: For FreeBSD, use mkstemp. | |
41579 | ||
41580 | 2003-11-21 Arnaud Charlet <charlet@act-europe.fr> | |
41581 | ||
41582 | * gnatlbr.adb: Now reference Gnat_Static_Version_String. | |
41583 | ||
41584 | 2003-11-21 Robert Dewar <dewar@gnat.com> | |
41585 | ||
41586 | * bld.adb: Remove useless USE of gnatvsn | |
41587 | ||
41588 | * gnatchop.adb: Minor reformatting | |
41589 | Clean up version handling to be more consistent | |
41590 | ||
41591 | * gnatxref.adb: Minor reformatting | |
41592 | ||
41593 | * gprcmd.adb: Minor reformatting | |
41594 | Fix output of copyright to be more consistent with other tools | |
41595 | ||
41596 | 2003-11-21 Vincent Celier <celier@gnat.com> | |
41597 | ||
41598 | * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink | |
41599 | ||
41600 | 2003-11-21 Sergey Rybin <rybin@act-europe.fr> | |
41601 | ||
41602 | * atree.adb (Initialize): Add initializations for global variables | |
41603 | used in New_Copy_Tree. | |
41604 | ||
41605 | * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with | |
41606 | Internal_Source_File as the actual). | |
41607 | Put the set of statements creating Any_Character before the set of | |
41608 | statements creating Any_Array to have Any_Character fully initialized | |
41609 | when it is used in creating Any_Array. | |
41610 | ||
41611 | * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do | |
41612 | not call Scan in case if the actual is Internal_Source_File | |
41613 | Add 2003 to copyright note. | |
41614 | ||
41615 | * sinput.adb (Source_First, Source_Last, Source_Text): Add code for | |
41616 | processing Internal_Source_File. | |
41617 | ||
41618 | * types.ads: Add the constant Internal_Source_File representing the | |
41619 | source buffer for artificial source-code-like strings created within | |
41620 | the compiler (the definition of Source_File_Index is changed). | |
41621 | ||
7a321e10 | 41622 | 2003-11-20 Arnaud Charlet <charlet@act-europe.fr> |
41623 | ||
41624 | * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads, | |
41625 | 56system.ads: New file, FreeBSD version. | |
41626 | ||
80e909c6 | 41627 | 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk> |
41628 | ||
41629 | * Make-lang.in (ada.extraclean): Delete. | |
41630 | ||
a4740ca0 | 41631 | 2003-11-19 Arnaud Charlet <charlet@act-europe.fr> |
41632 | ||
41633 | * gnatmem.adb: Clean up verbose output. | |
41634 | ||
41635 | * gprcmd.adb: Change copyright to FSF. | |
41636 | ||
41637 | 2003-11-19 Vincent Celier <celier@gnat.com> | |
41638 | ||
41639 | * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy | |
41640 | and Version (ignored). | |
41641 | ||
41642 | * symbols.ads: (Policy): New type | |
41643 | (Initialize): New parameter Reference, Symbol_Policy and | |
41644 | Library_Version. | |
41645 | Remove parameter Force. | |
41646 | Minor reformatting. | |
41647 | ||
41648 | * snames.ads, snames.adbadb: New standard names | |
41649 | Library_Reference_Symbol_File and Library_Symbol_Policy | |
41650 | ||
ce6c3084 | 41651 | * mlib-prj.adb: |
a4740ca0 | 41652 | (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the |
41653 | project. | |
41654 | ||
ce6c3084 | 41655 | * mlib-tgt.adb: |
a4740ca0 | 41656 | (Build_Dynamic_Library): New parameter Symbol_Data (ignored) |
41657 | ||
41658 | * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data | |
41659 | ||
41660 | * prj.adb: (Project_Empty): New component Symbol_Data | |
41661 | ||
41662 | * prj.ads: (Policy, Symbol_Record): New types | |
41663 | (Project_Data): New component Symbol_Data | |
41664 | ||
ce6c3084 | 41665 | * prj-attr.adb: |
a4740ca0 | 41666 | New attributes Library_Symbol_File, Library_Symbol_Policy and |
41667 | Library_Reference_Symbol_File. | |
41668 | ||
ce6c3084 | 41669 | * prj-nmsc.adb: |
a4740ca0 | 41670 | (Ada_Check): When project is a Stand-Alone library project, process |
41671 | attribute Library_Symbol_File, Library_Symbol_Policy and | |
41672 | Library_Reference_Symbol_File. | |
41673 | ||
41674 | * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, | |
41675 | 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb, | |
41676 | 5sml-tgt.adb (Build_Dynamic_Library): New parameter | |
41677 | Symbol_Data (ignored). | |
41678 | ||
41679 | * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0 | |
41680 | (Build_Dynamic_Library): New parameter Symbol_Data. New internal | |
41681 | functions Option_File_Name and Version_String. Set new options of | |
41682 | gnatsym related to symbol file, symbol policy and reference symbol | |
41683 | file. | |
41684 | ||
ce6c3084 | 41685 | * 5vsymbol.adb: |
a4740ca0 | 41686 | Extensive modifications to take into account the reference symbol file, |
41687 | the symbol policy, the library version and to put in the symbol file the | |
41688 | minor and major IDs. | |
41689 | ||
41690 | * bld.adb (Process_Declarative_Items): Put second argument of | |
41691 | gprcmd to_absolute between single quotes, to avoid problems with | |
41692 | Windows. | |
41693 | ||
41694 | * bld-io.adb: Update Copyright notice. | |
41695 | (Flush): Remove last character of a line, if it is a back slash, to | |
41696 | avoid make problems. | |
41697 | ||
ce6c3084 | 41698 | * gnatsym.adb: |
a4740ca0 | 41699 | Implement new scheme with reference symbol file and symbol policy. |
41700 | ||
41701 | * g-os_lib.ads: (Is_Directory): Clarify comment | |
41702 | ||
41703 | 2003-11-19 Robert Dewar <dewar@gnat.com> | |
41704 | ||
41705 | * atree.adb: Move New_Copy_Tree global variables to head of package | |
41706 | ||
41707 | * errout.adb: Minor reformatting | |
41708 | ||
41709 | 2003-11-19 Javier Miranda <miranda@gnat.com> | |
41710 | ||
41711 | * sem_ch4.adb: (Diagnose_Call): Improve error message. | |
41712 | Add reference to Ada0Y (AI-50217) | |
41713 | ||
41714 | * sem_ch6.adb, sem_ch8.adb, sem_type.adb, | |
41715 | sem_util.adb: Add reference to AI-50217 | |
41716 | ||
41717 | * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217 | |
41718 | ||
41719 | * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287) | |
41720 | ||
41721 | * sem_aggr.adb: Complete documentation of AI-287 changes | |
41722 | ||
41723 | * par-ch4.adb: Document previous changes. | |
41724 | ||
41725 | * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb, | |
41726 | sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to | |
41727 | Ada0Y (AI-50217) | |
41728 | ||
41729 | * exp_aggr.adb: Add references to AI-287 in previous changes | |
41730 | ||
41731 | 2003-11-19 Ed Schonberg <schonberg@gnat.com> | |
41732 | ||
ce6c3084 | 41733 | * exp_ch6.adb: |
a4740ca0 | 41734 | (Add_Call_By_Copy_Node): Do not original node of rewritten expression |
41735 | in the rewriting is the result of an inlined call. | |
41736 | ||
41737 | * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out | |
41738 | parameter is a type conversion, use original node to construct the | |
41739 | post-call assignment, because expression may have been rewritten, e.g. | |
41740 | if it is a packed array. | |
41741 | ||
ce6c3084 | 41742 | * sem_attr.adb: |
a4740ca0 | 41743 | (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined |
41744 | body, just as it is in an instance. | |
41745 | Categorization routines | |
41746 | ||
41747 | * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram, | |
41748 | Instantiate_Object): Set proper sloc reference for message on missing | |
41749 | actual. | |
41750 | ||
41751 | 2003-11-19 Thomas Quinot <quinot@act-europe.fr> | |
41752 | ||
41753 | * Makefile.in: Add FreeBSD libgnat pairs. | |
41754 | ||
41755 | * usage.adb: Fix typo in usage message. | |
41756 | ||
41757 | 2003-11-19 Jerome Guitton <guitton@act-europe.fr> | |
41758 | ||
41759 | * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?, | |
41760 | s-thrini.ad? and s-tiitho.adb to the full runtime, to support the | |
41761 | pragma Thread_Body. | |
41762 | Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore. | |
41763 | ||
41764 | * s-thread.adb: This file is now a dummy implementation of | |
41765 | System.Thread. | |
41766 | ||
41767 | 2003-11-19 Sergey Rybin <rybin@act-europe.fr> | |
41768 | ||
41769 | * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available | |
41770 | ||
41771 | 2003-11-19 Emmanuel Briot <briot@act-europe.fr> | |
41772 | ||
41773 | * xref_lib.adb (Parse_Identifier_Info): Add handling of generic | |
41774 | instanciation references in the parent type description. | |
41775 | ||
c73904bb | 41776 | 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> |
41777 | ||
41778 | * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s". | |
41779 | ||
41780 | * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set | |
41781 | TYPE_PRECISION directly from esize. | |
41782 | ||
41783 | 2003-11-18 Thomas Quinot <quinot@act-europe.fr> | |
41784 | ||
ce6c3084 | 41785 | * cstreams.c: |
c73904bb | 41786 | Use realpath(3) on FreeBSD. Fix typo in comment while we are at it. |
41787 | ||
41788 | * init.c: Initialization routines for FreeBSD | |
41789 | ||
41790 | * link.c: Link info for FreeBSD | |
41791 | ||
41792 | * sysdep.c: Add the case of FreeBSD | |
41793 | ||
6981f512 | 41794 | 2003-11-17 Jerome Guitton <guitton@act-europe.fr> |
41795 | ||
41796 | * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is | |
41797 | already called in System.Threads. | |
41798 | ||
41799 | * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the | |
41800 | environment task, as it has been moved to System.Threads.Initialization. | |
41801 | ||
41802 | 2003-11-17 Arnaud Charlet <charlet@act-europe.fr> | |
41803 | ||
41804 | * adaint.c (__gnatlib_install_locks): Only reference | |
41805 | __gnat_install_locks on VMS, since other platforms can avoid using | |
41806 | --enable-threads=gnat | |
41807 | ||
41808 | 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
41809 | ||
41810 | * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro. | |
41811 | ||
41812 | * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set | |
41813 | TYPE_PACKED_ARRAY_TYPE_P. | |
41814 | (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P. | |
41815 | ||
41816 | Part of PR ada/12806 | |
41817 | * utils.c (float_type_for_precision): Renamed from float_type_for_size. | |
41818 | Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE. | |
41819 | ||
41820 | 2003-11-17 Vincent Celier <celier@gnat.com> | |
41821 | ||
41822 | * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted | |
41823 | to False. | |
41824 | Do not set exit status to Failure when Warning is True. | |
41825 | (Gnatchop): Make errors "no compilation units found" and | |
41826 | "no source files written" warnings only. | |
41827 | ||
41828 | * make.adb (Gnatmake): When using a project file, set | |
41829 | Look_In_Primary_Dir to False. | |
41830 | (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas | |
41831 | and Local_Configuration_Pragmas in the project where they are declared | |
41832 | not an extending project which might have inherited them. | |
41833 | ||
41834 | * osint.adb (Locate_File): If Name is already an absolute path, do not | |
41835 | look for a directory. | |
41836 | ||
41837 | * par-ch10.adb (P_Compilation_Unit): If source contains no token, and | |
41838 | -gnats (Check_Syntax) is used, issue only a warning, not an error. | |
41839 | ||
41840 | * prj.adb (Register_Default_Naming_Scheme): Add new component Project | |
41841 | in objects of type Variable_Value. | |
41842 | ||
41843 | * prj.ads: (Variable_Value): New component Project | |
41844 | ||
41845 | * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source | |
41846 | is in a project extended by Project. | |
41847 | ||
41848 | * prj-proc.adb (Add_Attributes): New parameter Project. Set component | |
41849 | Project of Variable_Values to this new parameter value. | |
41850 | (Expression): Set component Project of Variable_Values. | |
41851 | (Process_Declarative_Items): Call Add_Attributes with parameter Project. | |
41852 | Set the component Project in array elements. | |
41853 | ||
41854 | 2003-11-17 Sergey Rybin <rybin@act-europe.fr> | |
41855 | ||
41856 | * errout.adb: (Initialize): Add initialization for error nodes. | |
41857 | ||
41858 | * sem_ch12.adb (Initialize): Add missing initializations for | |
41859 | Exchanged_Views and Hidden_Entities. | |
41860 | ||
41861 | 2003-11-17 Ed Schonberg <schonberg@gnat.com> | |
41862 | ||
41863 | * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an | |
41864 | already instantiated tree for use in subsequent inlining. | |
41865 | (Analyze_Associations, Instantiate_Formal_Subprogram, | |
41866 | Instantiate_Object): improve error message for mismatch in | |
41867 | instantiations. | |
41868 | ||
41869 | * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle | |
41870 | instantiations of subprograms declared in instances. | |
41871 | ||
41872 | 2003-11-17 Javier Miranda <miranda@gnat.com> | |
41873 | ||
41874 | * sem_ch4.adb (Analyze_Allocator): Previous modification must be | |
41875 | executed only under the Extensions_Allowed flag. | |
41876 | ||
41877 | 2003-11-17 Robert Dewar <dewar@gnat.com> | |
41878 | ||
41879 | * a-exexda.adb (Address_Image): Fix documentation to indicate leading | |
41880 | zeroes suppressed. | |
41881 | (Address_Image): Fix bug of returning 0x instead of 0x0 | |
41882 | Minor reformatting (function specs). | |
41883 | ||
41884 | * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array | |
41885 | (missed case of 33-63) | |
41886 | ||
41887 | * freeze.adb, sem_ch13.adb: Properly check size of packed bit array | |
41888 | ||
41889 | * s-thread.adb: Add comments for pragma Restriction | |
41890 | ||
41891 | * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb, | |
41892 | sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting | |
41893 | ||
41894 | 2003-11-17 Ed Falis <falis@gnat.com> | |
41895 | ||
41896 | * s-thread.adb: Added No_Tasking restriction for this implementation. | |
41897 | ||
41898 | 2003-11-17 Emmanuel Briot <briot@act-europe.fr> | |
41899 | ||
41900 | * xref_lib.adb (Parse_Identifier_Info): Add handling of generic | |
41901 | instanciation references in the parent type description. | |
41902 | ||
41903 | 2003-11-17 GNAT Script <nobody@gnat.com> | |
41904 | ||
41905 | * Make-lang.in: Makefile automatically updated | |
41906 | ||
39aebbc3 | 41907 | 2003-11-16 Jason Merrill <jason@redhat.com> |
41908 | ||
41909 | * Make-lang.in (ada.tags): Create TAGS.sub files in each directory | |
41910 | and TAGS files that include them for each front end. | |
41911 | ||
fc742c04 | 41912 | 2003-11-14 Andreas Jaeger <aj@suse.de> |
41913 | ||
752e26e8 | 41914 | * lang.opt: Change -Wno-long-long to -Wlong-long since the latter |
ce6c3084 | 41915 | is the canonical version. |
752e26e8 | 41916 | * misc.c (gnat_handle_option): Likewise. |
41917 | ||
fc742c04 | 41918 | * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux. |
41919 | ||
41920 | * 5nsystem.ads: New file for x86_64-linux-gnu. | |
41921 | ||
b68f61d9 | 41922 | 2003-11-14 Arnaud Charlet <charlet@act-europe.fr> |
41923 | ||
9e5f5f6a | 41924 | * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated. |
b68f61d9 | 41925 | |
7f4131ab | 41926 | * comperr.adb: Fix logic in previous change. |
41927 | ||
fccb5da7 | 41928 | 2003-11-13 Vincent Celier <celier@gnat.com> |
41929 | ||
41930 | * 5bml-tgt.adb (Build_Dynamic_Library): Use | |
41931 | Osint.Include_Dir_Default_Prefix instead of | |
41932 | Sdefault.Include_Dir_Default_Name. | |
41933 | ||
41934 | * gnatlbr.adb: Update Copyright notice | |
41935 | (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of | |
41936 | Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix | |
41937 | instead of Sdefault.Object_Dir_Default_Name | |
41938 | ||
fc742c04 | 41939 | * gnatlink.adb: |
fccb5da7 | 41940 | (Process_Binder_File): Never suppress the option following -Xlinker |
41941 | ||
fc742c04 | 41942 | * mdll-utl.adb: |
fccb5da7 | 41943 | (Gcc): Use Osint.Object_Dir_Default_Prefix instead of |
41944 | Sdefault.Object_Dir_Default_Name. | |
41945 | ||
fc742c04 | 41946 | * osint.ads, osint.adb: |
fccb5da7 | 41947 | (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions |
41948 | Minor reformatting. | |
41949 | ||
41950 | * vms_conv.ads: Minor reformating | |
41951 | Remove GNAT STANDARD and GNAT PSTA | |
41952 | ||
fc742c04 | 41953 | * vms_conv.adb: |
fccb5da7 | 41954 | Allow GNAT MAKE to have several files on the command line. |
41955 | (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of | |
41956 | Sdefault.Object_Dir_Default_Name. | |
41957 | Minor Reformating | |
41958 | Remove data for GNAT STANDARD | |
41959 | ||
fc742c04 | 41960 | * vms_data.ads: |
fccb5da7 | 41961 | Add new compiler qualifier /PRINT_STANDARD (-gnatS) |
41962 | Remove data for GNAT STANDARD | |
41963 | Remove options and documentation for -gnatwb/-gnatwB: these warning | |
41964 | options no longer exist. | |
41965 | ||
41966 | 2003-11-13 Ed Falis <falis@gnat.com> | |
41967 | ||
41968 | * 5zthrini.adb: (Init_RTS): Made visible | |
41969 | ||
fc742c04 | 41970 | * 5zthrini.adb: |
fccb5da7 | 41971 | (Register): Removed unnecessary call to taskVarGet that checked whether |
41972 | an ATSD was already set as a task var for the argument thread. | |
41973 | ||
fc742c04 | 41974 | * s-thread.adb: |
fccb5da7 | 41975 | Updated comment to reflect that this is a VxWorks version |
41976 | Added context clause for System.Threads.Initialization | |
41977 | Added call to System.Threads.Initialization.Init_RTS | |
41978 | ||
41979 | 2003-11-13 Jerome Guitton <guitton@act-europe.fr> | |
41980 | ||
fc742c04 | 41981 | * 5zthrini.adb: |
fccb5da7 | 41982 | (Init_RTS): New procedure, for the initialization of the run-time lib. |
41983 | ||
fc742c04 | 41984 | * s-thread.adb: |
fccb5da7 | 41985 | Remove dependancy on System.Init, so that this file can be used in the |
41986 | AE653 sequential run-time lib. | |
41987 | ||
41988 | 2003-11-13 Robert Dewar <dewar@gnat.com> | |
41989 | ||
41990 | * bindgen.adb: Minor reformatting | |
41991 | ||
41992 | 2003-11-13 Ed Schonberg <schonberg@gnat.com> | |
41993 | ||
fc742c04 | 41994 | * checks.adb: |
fccb5da7 | 41995 | (Apply_Discriminant_Check): Do no apply check if target type is derived |
41996 | from source type with no applicable constraint. | |
41997 | ||
fc742c04 | 41998 | * lib-writ.adb: |
fccb5da7 | 41999 | (Ensure_System_Dependency): Do not apply the style checks that may have |
42000 | been specified for the main unit. | |
42001 | ||
fc742c04 | 42002 | * sem_ch8.adb: |
fccb5da7 | 42003 | (Find_Selected_Component): Further improvement in error message, with |
42004 | RM reference. | |
42005 | ||
fc742c04 | 42006 | * sem_res.adb: |
fccb5da7 | 42007 | (Resolve): Handle properly the case of an illegal overloaded protected |
42008 | procedure. | |
42009 | ||
42010 | 2003-11-13 Javier Miranda <miranda@gnat.com> | |
42011 | ||
fc742c04 | 42012 | * exp_aggr.adb: |
fccb5da7 | 42013 | (Has_Default_Init_Comps): New function to check the presence of |
42014 | default initialization in an aggregate. | |
42015 | (Build_Record_Aggr_Code): Recursively expand the ancestor in case of | |
42016 | extension aggregate of a limited record. In addition, a new formal | |
42017 | was added to do not initialize the record controller (if any) during | |
42018 | this recursive expansion of ancestors. | |
42019 | (Init_Controller): Add support for limited record components. | |
42020 | (Expand_Record_Aggregate): In case of default initialized components | |
42021 | convert the aggregate into a set of assignments. | |
42022 | ||
42023 | * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment | |
42024 | describing the new syntax. | |
42025 | Nothing else needed to be done because this subprogram delegates part of | |
42026 | its work to P_Precord_Or_Array_Component_Association. | |
42027 | (P_Record_Or_Array_Component_Association): Give support to the new | |
42028 | syntax for default initialization of components. | |
42029 | ||
fc742c04 | 42030 | * sem_aggr.adb: |
fccb5da7 | 42031 | (Resolve_Aggregate): Relax the strictness of the frontend in case of |
42032 | limited aggregates. | |
42033 | (Resolve_Record_Aggregate): Give support to default initialized | |
42034 | components. | |
42035 | (Get_Value): In case of default initialized components, duplicate | |
42036 | the corresponding default expression (from the record type | |
42037 | declaration). In case of default initialization in the *others* | |
42038 | choice, do not check that all components have the same type. | |
42039 | (Resolve_Extension_Aggregate): Give support to limited extension | |
42040 | aggregates. | |
42041 | ||
fc742c04 | 42042 | * sem_ch3.adb: |
fccb5da7 | 42043 | (Check_Initialization): Relax the strictness of the front-end in case |
42044 | of aggregate and extension aggregates. This test is now done in | |
42045 | Get_Value in a per-component manner. | |
42046 | ||
42047 | * sem_ch4.adb (Analyze_Allocator): Don't post an error if the | |
42048 | expression corresponds to a limited aggregate. This test is now done | |
42049 | in Get_Value. | |
42050 | ||
42051 | * sinfo.ads, sinfo.adb (N_Component_Association): Addition of | |
42052 | Box_Present flag. | |
42053 | ||
42054 | * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if | |
42055 | present in an N_Component_Association node | |
42056 | ||
42057 | 2003-11-13 Thomas Quinot <quinot@act-europe.fr> | |
42058 | ||
42059 | * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a | |
42060 | type-conformant entry only if they are homographs. | |
42061 | ||
42062 | 2003-11-13 GNAT Script <nobody@gnat.com> | |
42063 | ||
42064 | * Make-lang.in: Makefile automatically updated | |
42065 | ||
cbc72f1a | 42066 | 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
42067 | ||
42068 | * adadecode.c: Use <> form of include for ctype.h. | |
42069 | * sysdep.c [IN_RTS]: Use <> form of include for time.h. | |
42070 | ||
12bec95b | 42071 | 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
42072 | ||
42073 | * 5gsystem.ads (Functions_Return_By_DSP): Set to False. | |
42074 | Works around PR middle-end/6552. | |
42075 | ||
dbfc3506 | 42076 | 2003-11-10 Ed Falis <falis@gnat.com> |
42077 | ||
42078 | * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted | |
42079 | ||
42080 | * 5zinit.adb: (Install_Handler): Moved back to spec | |
42081 | (Install_Signal_Handlers): Deleted | |
42082 | ||
42083 | * 5zthrini.adb: Added context clause for System.Storage_Elements | |
42084 | (Register): Only handles creation of taskVar; initialization moved to | |
42085 | Thread_Body_Enter. | |
42086 | (Reset_TSD): Deleted; replaced by Thread_Body_Enter | |
42087 | Added declaration of environment task secondary stack and | |
42088 | initialization. | |
42089 | ||
42090 | * s-thread.adb: Implement bodies for thread body processing | |
42091 | ||
fc742c04 | 42092 | * s-thread.ads: |
dbfc3506 | 42093 | Added comment identifying supported targets for pragma Thread_Body. |
42094 | ||
42095 | 2003-11-10 Pascal Obry <obry@gnat.com> | |
42096 | ||
42097 | * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than | |
42098 | GNAT_MAX_PATH_LEN. | |
42099 | ||
fc742c04 | 42100 | * s-fileio.adb: |
dbfc3506 | 42101 | (Open): Properly check for string length before copying into the buffer. |
42102 | Raises Name_Error if buffer is too small. Note that this was a potential | |
42103 | buffer overflow. | |
42104 | ||
42105 | 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr> | |
42106 | ||
42107 | * bindgen.adb, comperr.adb: Code clean ups. | |
42108 | * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function. | |
42109 | ||
42110 | 2003-11-10 Sergey Rybin <rybin@act-europe.fr> | |
42111 | ||
42112 | * gnat1drv.adb: Add call to Sem_Elim.Initialize. | |
42113 | ||
42114 | 2003-11-10 Vincent Celier <celier@gnat.com> | |
42115 | ||
fc742c04 | 42116 | * gprcmd.adb: |
dbfc3506 | 42117 | (Gprcmd): Add new command "prefix" to get the prefix of the GNAT |
42118 | installation. | |
42119 | ||
42120 | * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler | |
42121 | ||
42122 | * prj.adb: (Project_Empty): Add new boolean component Virtual | |
42123 | ||
42124 | * prj.ads: (Virtual_Prefix): New constant string | |
42125 | (Project_Data): New boolean component Virtual | |
42126 | ||
42127 | * prj-nmsc.adb (Language_Independent_Check): Adjust error message when | |
42128 | a library project is extended by a virtual extending project. | |
42129 | ||
fc742c04 | 42130 | * prj-part.adb: |
dbfc3506 | 42131 | Modifications throughout to implement extending-all project, including: |
42132 | (Virtual_Hash, Processed_Hash): New hash tables | |
42133 | (Create_Virtual_Extending_Project): New procedure | |
42134 | (Look_For_Virtual_Projects_For): New procedure | |
42135 | ||
fc742c04 | 42136 | * prj-proc.adb: |
dbfc3506 | 42137 | (Process): After checking the projects, if main project is an |
42138 | extending-all project, set the object directory of all virtual extending | |
42139 | project to the object directory of the main project. | |
42140 | Adjust error message when a virtual extending project has the same | |
42141 | object directory as an project being extended. | |
42142 | (Recursive_Process): If name starts with the virtual prefix, set Virtual | |
42143 | to True in the project data. | |
42144 | ||
fc742c04 | 42145 | * prj-tree.adb: |
dbfc3506 | 42146 | (Default_Project_Node): Add new boolean component Extending_All |
42147 | (Is_Extending_All): New function | |
42148 | (Set_Is_Extending_All): New procedure | |
42149 | ||
42150 | * prj-tree.ads: (Is_Extending_All): New function | |
42151 | (Set_Is_Extending_All): New procedure | |
42152 | (Project_Node_Record): New boolean component Extending_All | |
42153 | ||
42154 | * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib | |
42155 | ||
fc742c04 | 42156 | * vms_data.ads: |
dbfc3506 | 42157 | Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler |
42158 | ||
42159 | * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call | |
42160 | "gprcmd prefix" to define it. | |
42161 | ||
42162 | 2003-11-10 Thomas Quinot <quinot@act-europe.fr> | |
42163 | ||
42164 | * einfo.ads: Fix a typo and remove an extraneous word in comments. | |
42165 | ||
fc742c04 | 42166 | * lib-load.adb: |
dbfc3506 | 42167 | (Create_Dummy_Package_Unit): Set the scope of the entity for the |
42168 | created dummy package to Standard_Standard, not to itself, to | |
42169 | defend other parts of the front-end against encoutering a cycle in | |
42170 | the scope chain. | |
42171 | ||
fc742c04 | 42172 | * sem_ch10.adb: |
dbfc3506 | 42173 | (Analyze_With_Clause): When setting the entities for the successive |
42174 | N_Expanded_Names that constitute the name of a child unit, do not | |
42175 | attempt to go further than Standard_Standard in the chain of scopes. | |
42176 | This case arises from the placeholder units created by | |
42177 | Create_Dummy_Package_Unit in the case of a with_clause for a | |
42178 | nonexistent child unit. | |
42179 | ||
42180 | 2003-11-10 Ed Schonberg <schonberg@gnat.com> | |
42181 | ||
fc742c04 | 42182 | * exp_ch6.adb: |
dbfc3506 | 42183 | (Expand_Thread_Body): Place subprogram on scope stack, so that new |
42184 | declarations are given the proper scope. | |
42185 | ||
fc742c04 | 42186 | * sem_ch13.adb: |
dbfc3506 | 42187 | (Check_Expr_Constants): Reject an expression that contains a constant |
42188 | created during expansion, and that appears after the object to which | |
42189 | the address clause applies. | |
42190 | ||
42191 | * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of | |
42192 | Analyze_Iteration_Scheme, to rewrite a loop parameter specification | |
42193 | that uses 'Range of a function call with controlled components, so | |
42194 | that the function result can be finalized before starting the loop. | |
42195 | ||
fc742c04 | 42196 | * sem_ch8.adb: |
dbfc3506 | 42197 | (Find_Selected_Component): Improve error message when prefix is |
42198 | an implicit dereference of an incomplete type. | |
42199 | ||
42200 | 2003-11-10 Robert Dewar <dewar@gnat.com> | |
42201 | ||
42202 | * opt.ads: New Print_Standard flag for -gnatS switch | |
42203 | ||
42204 | * sem_ch13.adb: Remove some additional checks for unaligned arrays | |
42205 | ||
42206 | * cstand.adb (Create_Standard): Print out package standard if -gnatS | |
42207 | switch set | |
42208 | ||
42209 | * debug.adb: Update doc for -gnatds to discuss relationship with new | |
42210 | -gnatS flag | |
42211 | ||
42212 | * sinfo.adb: Add new field Entity_Or_Associated_Node | |
42213 | ||
42214 | * sinfo.ads: Add new field Entity_Or_Associated_Node | |
42215 | Update documentation for Associated_Node and Entity fields to clarify | |
42216 | relationship and usage. | |
42217 | ||
fc742c04 | 42218 | * sprint.adb: |
dbfc3506 | 42219 | (Write_Id): Properly process Associated_Node field in generic template |
42220 | ||
fc742c04 | 42221 | * switch-c.adb: |
dbfc3506 | 42222 | Recognize new -gnatS switch for printing package Standard |
42223 | This replaces gnatpsta | |
42224 | ||
fc742c04 | 42225 | * usage.adb: |
dbfc3506 | 42226 | Add line for new -gnatS switch for printing package Standard |
42227 | This replaces gnatpsta | |
42228 | ||
8ab65b8f | 42229 | 2003-11-10 Andreas Jaeger <aj@suse.de> |
42230 | ||
42231 | * 7sosprim.adb: tv_usec of struct_timeval and time_t are long | |
42232 | integer. | |
42233 | ||
fb8715f7 | 42234 | 2003-11-10 Arnaud Charlet <charlet@act-europe.fr> |
42235 | ||
42236 | * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed | |
42237 | by gnat1. | |
42238 | ||
b09ffcd3 | 42239 | 2003-11-10 Arnaud Charlet <charlet@act-europe.fr> |
42240 | ||
42241 | * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta, | |
42242 | no longer needed. | |
42243 | ||
42244 | * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed. | |
42245 | ||
42246 | * sysdep.c: Add handling of cygwin. | |
42247 | ||
6cb035f4 | 42248 | 2003-11-10 GNAT Script <nobody@gnat.com> |
42249 | ||
42250 | * Make-lang.in: Makefile automatically updated | |
42251 | ||
3ccabd75 | 42252 | 2003-11-10 Arnaud Charlet <charlet@act-europe.fr> |
42253 | ||
42254 | PR 12950 | |
42255 | * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New | |
42256 | functions. Used to handle dynamic prefix relocation, via set_std_prefix. | |
42257 | Replace GNAT_ROOT by GCC_ROOT. | |
42258 | ||
42259 | * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb | |
42260 | ||
7c0390e7 | 42261 | 2003-11-06 Zack Weinberg <zack@codesourcery.com> |
42262 | ||
42263 | * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION | |
42264 | and update for changed meaning of GET_MODE_BITSIZE. | |
42265 | ||
7554bbf5 | 42266 | 2003-11-04 Doug Rupp <rupp@gnat.com> |
42267 | ||
42268 | * sysdep.c: Problem discovered during IA64 VMS port. | |
42269 | [VMS] #include <unixio.h> to get proper prototypes. | |
42270 | ||
7c0390e7 | 42271 | * adaint.c: |
7554bbf5 | 42272 | Issues discovered/problems fixed during IA64 VMS port. |
42273 | [VMS] #define _POSIX_EXIT for proper semantics. | |
42274 | [VMS] #include <unixio.h> for proper prototypes. | |
42275 | [VMS] (fork): #define IA64 version. | |
42276 | (__gnat_os_exit): Remove unnecessary VMS specific code. | |
42277 | ||
42278 | 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
42279 | ||
42280 | Part of PR ada/12806 | |
7554bbf5 | 42281 | * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as |
42282 | tree, not integer. | |
42283 | ||
7c0390e7 | 42284 | * decl.c: |
7554bbf5 | 42285 | (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree, |
42286 | not integer. | |
42287 | ||
42288 | * targtyps.c, decl.c, misc.c, | |
42289 | gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary | |
42290 | routines to work around change in FP sizing semantics in GCC. | |
42291 | ||
7c0390e7 | 42292 | * utils.c: |
7554bbf5 | 42293 | (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer. |
42294 | ||
42295 | * gigi.h: (enumerate_modes): New function. | |
42296 | ||
42297 | * Make-lang.in: (ada/misc.o): Add real.h. | |
42298 | ||
42299 | * misc.c: (enumerate_modes): New function. | |
42300 | ||
42301 | 2003-11-04 Robert Dewar <dewar@gnat.com> | |
42302 | ||
42303 | * 3vtrasym.adb: Minor reformatting | |
42304 | Use terminology encoded/decoded name, rather than C++ specific notion | |
42305 | of mangling (this is the terminology used throughout GNAT). | |
42306 | ||
42307 | * einfo.h: Regenerated | |
42308 | ||
42309 | * einfo.ads, einfo.adb: Add new flag Is_Thread_Body | |
42310 | ||
7c0390e7 | 42311 | * exp_ch6.adb: |
7554bbf5 | 42312 | (Expand_N_Subprogram_Body): Handle expansion of thread body procedure |
42313 | ||
42314 | * par-prag.adb: Add dummy entry for Thread_Body pragma | |
42315 | ||
7c0390e7 | 42316 | * rtsfind.ads: |
7554bbf5 | 42317 | Add entries for System.Threads entities for thread body processing |
42318 | ||
7c0390e7 | 42319 | * sem_attr.adb: |
7554bbf5 | 42320 | (Analyze_Pragma, Access attributes): Check these are not applied to a |
42321 | thread body, since this is not permitted | |
42322 | ||
42323 | * sem_prag.adb: Add processing for Thread_Body pragma. | |
42324 | Minor comment fix. | |
42325 | ||
7c0390e7 | 42326 | * sem_res.adb: |
7554bbf5 | 42327 | (Resolve_Call): Check for incorrect attempt to call a thread body |
42328 | procedure with a direct call. | |
42329 | ||
42330 | * snames.ads, snames.adb: Add entry for Thread_Body pragma | |
42331 | Add names associated with thread body expansion | |
42332 | ||
42333 | * snames.h: Add entry for Thread_Body pragma | |
42334 | ||
42335 | * s-thread.adb: Add entries for thread body processing | |
42336 | These are dummy bodies so far | |
42337 | ||
42338 | * s-thread.ads: Add documentation on thread body handling. | |
42339 | Add entries for thread body processing. | |
42340 | ||
42341 | 2003-11-04 Javier Miranda <miranda@gnat.com> | |
42342 | ||
7c0390e7 | 42343 | * sem_ch10.adb: |
7554bbf5 | 42344 | (Build_Limited_Views): Return after posting an error in case of limited |
42345 | with_clause on subprograms, generics, instances or generic renamings | |
42346 | (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause | |
42347 | on subprograms, generics, instances or generic renamings | |
42348 | ||
42349 | 2003-11-04 Arnaud Charlet <charlet@act-europe.fr> | |
42350 | ||
42351 | * raise.c (setup_to_install): Correct mistake in last revision; two | |
42352 | arguments out of order. | |
42353 | ||
42354 | * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c, | |
42355 | gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright | |
42356 | notice, missed in previous change. | |
42357 | Remove trailing blanks and other style errors introduced in previous | |
42358 | change. | |
42359 | ||
42360 | 2003-11-04 Olivier Hainque <hainque@act-europe.fr> | |
42361 | ||
42362 | * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get | |
42363 | rid of the wrapper for a LJM type, ensuring we don't do that if the | |
42364 | field is addressable. This avoids potential low level type view | |
42365 | mismatches later on, for instance in a by-reference argument passing | |
42366 | process. | |
42367 | ||
42368 | 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
42369 | ||
42370 | * decl.c (gnat_to_gnu_field): No longer check for BLKmode being | |
42371 | aligned at byte boundary. | |
42372 | ||
42373 | 2003-11-04 Joel Brobecker <brobecker@gnat.com> | |
42374 | ||
42375 | * decl.c (components_to_record): Do not delete the empty variants from | |
42376 | the end of the union type. | |
42377 | ||
42378 | 2003-11-04 Ed Schonberg <schonberg@gnat.com> | |
42379 | ||
42380 | * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive | |
42381 | operation for a derived type, an explicit declaration may use a local | |
42382 | subtype of Boolean. | |
42383 | ||
42384 | 2003-11-04 Vincent Celier <celier@gnat.com> | |
42385 | ||
42386 | * make.adb (Gnatmake): Allow main sources on the command line with a | |
42387 | library project when it is only for compilation (no binding or | |
42388 | linking). | |
42389 | ||
cd90b09e | 42390 | 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
42391 | ||
42392 | * Makefile.in: Remove many duplicate variables. | |
42393 | ||
1e94fc11 | 42394 | 2003-11-03 Kelley Cook <kcook@gcc.gnu.org> |
42395 | ||
42396 | * Make-lang.in (dvi): Move targets to $(docobjdir). | |
42397 | (gnat_ug_vms.dvi): Simplify rule and adjust target. | |
42398 | (gnat_ug_wnt.dvi): Likewise. | |
42399 | (gnat_ug_unx.dvi): Likewise. | |
42400 | (gnat_ug_vxw.dvi): Likewise. | |
42401 | (gnat_rm.dvi): Likewise. | |
42402 | (gnat-style.dvi): Likewise. | |
42403 | ||
ecb9fc21 | 42404 | 2003-10-31 Kelley Cook <kcook@gcc.gnu.org> |
42405 | ||
42406 | * gigi.h: Missed commit from update for C90. | |
42407 | ||
6e00bb03 | 42408 | 2003-10-31 Kelley Cook <kcook@gcc.gnu.org> |
42409 | ||
42410 | * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error. | |
42411 | ||
bdc373f4 | 42412 | 2003-10-31 Andreas Schwab <schwab@suse.de> |
42413 | ||
42414 | * raise.c (get_action_description_for): Fix typo in last change. | |
42415 | ||
84d6ffe2 | 42416 | 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org> |
42417 | ||
42418 | PR ada/12761 | |
42419 | * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS, | |
42420 | T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in. | |
42421 | ||
6f2c2693 | 42422 | 2003-10-30 Kelley Cook <kcook@gcc.gnu.org> |
42423 | ||
42424 | * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c, | |
42425 | ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c, | |
42426 | gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c, | |
42427 | sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c, | |
42428 | trans.c, utils.c, utils2.c: Convert function prototypes to C90. | |
42429 | ||
ec621b58 | 42430 | 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr> |
42431 | ||
7c0390e7 | 42432 | * 3vtrasym.adb: |
ec621b58 | 42433 | Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line |
42434 | numbers when symbol name is too long. | |
42435 | ||
42436 | 2003-10-30 Ed Falis <falis@gnat.com> | |
42437 | ||
42438 | * g-signal.ads, g-signal.adb: New files | |
42439 | ||
42440 | * impunit.adb: (Non_Imp_File_Names): Added "g-signal" | |
42441 | ||
42442 | * Makefile.rtl: Introduce GNAT.Signals | |
42443 | ||
42444 | 2003-10-30 Robert Dewar <dewar@gnat.com> | |
42445 | ||
42446 | * freeze.adb: Minor reformatting | |
42447 | ||
42448 | * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified | |
42449 | ||
7c0390e7 | 42450 | * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb, |
42451 | par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb: | |
ec621b58 | 42452 | New handling of Id_Check parameter to improve recognition of keywords |
42453 | used as identifiers. | |
42454 | Update copyright notice to include 2003 | |
42455 | ||
05e5286d | 42456 | 2003-10-29 Robert Dewar <dewar@gnat.com> |
42457 | ||
42458 | * 3vtrasym.adb, 5vtraent.ads, sprint.adb, | |
42459 | sem_ch10.adb: Minor reformatting | |
42460 | ||
42461 | * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands | |
42462 | (Expand_Assign_Record): Test right hand side for bit unaligned as well | |
42463 | ||
42464 | 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr> | |
42465 | ||
7c0390e7 | 42466 | * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c: |
05e5286d | 42467 | Support for TBK$SYMBOLIZE-based symbolic traceback. |
42468 | ||
42469 | 2003-10-29 Jose Ruiz <ruiz@act-europe.fr> | |
42470 | ||
7c0390e7 | 42471 | * exp_disp.adb: |
05e5286d | 42472 | Revert previous change, that did not work well when pragma No_Run_Time |
42473 | was used in conjunction with a run-time other than ZFP. | |
42474 | ||
42475 | 2003-10-29 Vincent Celier <celier@gnat.com> | |
42476 | ||
7c0390e7 | 42477 | * make.adb: |
05e5286d | 42478 | (Gnatmake): When there are no Ada mains in attribute Main, disable the |
42479 | bind and link steps only is switch -z is not used. | |
42480 | ||
42481 | 2003-10-29 Arnaud Charlet <charlet@act-europe.fr> | |
42482 | ||
42483 | * Makefile.generic: Remove duplicated setting of CC. | |
42484 | ||
42485 | * Makefile.prolog: Set CC to gcc by default, to override make's | |
42486 | default (cc). | |
42487 | ||
42488 | * einfo.h: Regenerated. | |
42489 | ||
42490 | 2003-10-29 Ed Schonberg <schonberg@gnat.com> | |
42491 | ||
42492 | * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for | |
42493 | current body, after compiling subunit. | |
42494 | ||
42495 | * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype | |
42496 | when in deleted code, because gigi needs properly ordered freeze | |
42497 | actions to annotate types. | |
42498 | ||
42499 | * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to | |
42500 | prevent the premature freezing of record type that contains | |
42501 | subcomponents with a private type that does not yet have a completion. | |
42502 | ||
42503 | 2003-10-29 Javier Miranda <miranda@gnat.com> | |
42504 | ||
7c0390e7 | 42505 | * sem_ch12.adb: |
05e5286d | 42506 | (Analyze_Package_Instantiation): Check that instances can not be used in |
42507 | limited with_clauses. | |
42508 | ||
7c0390e7 | 42509 | * sem_ch8.adb: |
05e5286d | 42510 | (Analyze_Package_Renaming): Check that limited withed packages cannot |
42511 | be renamed. Improve text on error messages related to limited | |
42512 | with_clauses. | |
42513 | ||
42514 | * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute. | |
42515 | ||
42516 | * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses. | |
42517 | Update copyright notice. | |
42518 | ||
42519 | * sem_ch10.adb: (Build_Limited_Views): Complete its documentation. | |
42520 | (Install_Limited_Context_Clauses): New subprogram that isolates all the | |
42521 | checks required for limited context_clauses and installs the limited | |
42522 | view. | |
42523 | (Install_Limited_Withed_Unit): Complete its documentation. | |
42524 | (Analyze_Context): Check that limited with_clauses are only allowed in | |
42525 | package specs. | |
42526 | (Install_Context): Call Install_Limited_Context_Clauses after the | |
42527 | parents have been installed. | |
42528 | (Install_Limited_Withed_Unit): Add documentation. Mark the installed | |
42529 | package as 'From_With_Type'; this mark indicates that the limited view | |
42530 | is installed. Used to check bad usages of limited with_clauses. | |
42531 | (Build_Limited_Views): Do not add shadow entities to the scope's list | |
42532 | of entities. Do not add real entities to the Non_Limited_Views chain. | |
42533 | Improve error notification. | |
42534 | (Remove_Context_Clauses): Remove context clauses in two phases: | |
42535 | limited views first and regular views later (to maintain the | |
42536 | stack model). | |
42537 | (Remove_Limited_With_Clause): If the package is analyzed then reinstall | |
42538 | its visible entities. | |
42539 | ||
42540 | 2003-10-29 Thomas Quinot <quinot@act-europe.fr> | |
42541 | ||
42542 | * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible | |
42543 | with any type that Is_Fixed_Point_Type. | |
42544 | ||
42545 | * sinfo.ads: Fix documentation for Associated_Node attribute. | |
42546 | ||
42547 | 2003-10-29 Sergey Rybin <rybin@act-europe.fr> | |
42548 | ||
42549 | * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when | |
42550 | both '-gnatc' and '-gnatt' are specified. | |
42551 | ||
42552 | * atree.adb (Initialize): Add initialization for Node_Count (set to | |
42553 | zero). | |
42554 | ||
42555 | 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
42556 | ||
42557 | * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value, | |
42558 | do not consider as Pure. | |
42559 | ||
42560 | Part of implementation of function-at-a-time: | |
42561 | ||
42562 | * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt. | |
42563 | (tree_transform): Add new argument to build_component_ref. | |
42564 | (tree_transform, case N_Assignment_Statement): Make and return an | |
42565 | EXPR_STMT. | |
42566 | (tree_transform): If result IS_STMT, set flags and return it. | |
42567 | (gnat_expand_stmt, set_lineno_from_sloc): New functions. | |
42568 | ||
42569 | * utils2.c (build_simple_component_ref, build_component_ref): Add new | |
42570 | arg, NO_FOLD_P. | |
42571 | (build_binary_op, case EQ_EXPR): Pass additional arg to it. | |
42572 | (build_allocator): Likewise. | |
42573 | ||
42574 | * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert): | |
42575 | Add new arg to build_component_ref. | |
42576 | (maybe_unconstrained_array, unchecked_convert): Likewise. | |
42577 | ||
42578 | * ada-tree.def (EXPR_STMT): New code. | |
42579 | ||
42580 | * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros. | |
42581 | ||
42582 | * decl.c (gnat_to_gnu_entity, case object): Add extra arg to | |
42583 | build_component_ref calls. | |
42584 | ||
42585 | * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt. | |
42586 | ||
42587 | * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions. | |
42588 | (build_component_ref): Add new argument, NO_FOLD_P. | |
42589 | ||
b3fb26fd | 42590 | 2003-10-27 Arnaud Charlet <charlet@act-europe.fr> |
42591 | ||
42592 | * Makefile.generic: Add missing substitution on object_deps handling. | |
42593 | ||
d4c15061 | 42594 | PR ada/5909 |
b3fb26fd | 42595 | * Make-lang.in (check-ada): Enable ACATS test suite. |
42596 | ||
42597 | 2003-10-27 Robert Dewar <dewar@gnat.com> | |
42598 | ||
7c0390e7 | 42599 | * exp_ch3.adb: |
b3fb26fd | 42600 | (Freeze_Array_Type): We do not need an initialization routine for types |
42601 | derived from String or Wide_String. They should be treated the same | |
42602 | as String and Wide_String themselves. This caused problems with the | |
42603 | use of Initialize_Scalars. | |
42604 | ||
7c0390e7 | 42605 | * exp_ch5.adb: |
b3fb26fd | 42606 | (Expand_Assign_Record): Do component-wise assignment of non-byte aligned |
42607 | composites. This allows use of component clauses that are not byte | |
42608 | aligned. | |
42609 | ||
7c0390e7 | 42610 | * sem_prag.adb: |
b3fb26fd | 42611 | (Analyze_Pragma, case Pack): Generate warning and ignore pack if there |
42612 | is an attempt to pack an array of atomic objects. | |
42613 | ||
42614 | * make.adb, prj-env.adb, prj-env.ads: Minor reformatting | |
42615 | ||
42616 | 2003-10-27 Pascal Obry <obry@gnat.com> | |
42617 | ||
7c0390e7 | 42618 | * g-dirope.adb: |
b3fb26fd | 42619 | (Basename): Check for drive letters in a pathname only on DOS based OS. |
42620 | ||
42621 | 2003-10-27 Vincent Celier <celier@gnat.com> | |
42622 | ||
7c0390e7 | 42623 | * make.adb: |
b3fb26fd | 42624 | (Gnatmake): When unable to change dir to the object dir, display the |
42625 | content of the parent dir of the obj dir, to try to understand why this | |
42626 | happens. | |
42627 | ||
42628 | 2003-10-27 GNAT Script <nobody@gnat.com> | |
42629 | ||
42630 | * Make-lang.in: Makefile automatically updated | |
42631 | ||
42632 | 2003-10-27 Ed Schonberg <schonberg@gnat.com> | |
42633 | ||
7c0390e7 | 42634 | * sem_ch12.adb: |
b3fb26fd | 42635 | (Inline_Instance_Body): Indicate that the save/restore of use_clauses |
42636 | should not be done in Save/Restore_Scope_Stack, because it is performed | |
42637 | locally. | |
42638 | ||
7c0390e7 | 42639 | * sem_ch8.adb: |
b3fb26fd | 42640 | (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate |
42641 | whether use clauses should be removed/restored. | |
42642 | ||
7c0390e7 | 42643 | * sem_ch8.ads: |
b3fb26fd | 42644 | (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate |
42645 | whether use clauses should be removed/restored. | |
42646 | ||
da45fc41 | 42647 | 2003-10-26 Andreas Jaeger <aj@suse.de> |
42648 | ||
42649 | * Makefile.in: Remove duplicated lines. | |
42650 | ||
318159eb | 42651 | 2003-10-24 Arnaud Charlet <charlet@act-europe.fr> |
42652 | ||
42653 | * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to | |
42654 | minimize the differences with ACT tree. | |
42655 | ||
42656 | * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb, | |
42657 | gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of | |
42658 | Gnatvsn.Gnat_Static_Version_String to reduce differences between | |
42659 | ACT and FSF trees. | |
42660 | ||
42661 | 2003-10-24 Pascal Obry <obry@gnat.com> | |
42662 | ||
d4c15061 | 42663 | PR ada/12014 |
318159eb | 42664 | * adadecode.c (ostrcpy): New function. |
42665 | (__gnat_decode): Use ostrcpy of strcpy. | |
42666 | (has_prefix): Set first parameter a const. | |
42667 | (has_suffix): Set first parameter a const. | |
42668 | Update copyright notice. Fix source name in header. | |
42669 | Removes a trailing space. | |
318159eb | 42670 | |
42671 | 2003-10-24 Jose Ruiz <ruiz@act-europe.fr> | |
42672 | ||
da45fc41 | 42673 | * exp_disp.adb: |
318159eb | 42674 | Remove the test against being in No_Run_Time_Mode before generating a |
42675 | call to Register_Tag. It is redundant with the test against the | |
42676 | availability of the function Register_Tag. | |
42677 | ||
42678 | 2003-10-24 Vincent Celier <celier@gnat.com> | |
42679 | ||
42680 | * g-catiio.adb: (Month_Name): Correct spelling of February | |
42681 | ||
42682 | * make.adb: (Mains): New package | |
42683 | (Initialize): Call Mains.Delete | |
42684 | (Gnatmake): Check that each main on the command line is a source of a | |
42685 | project file and, if there are several mains, each of them is a source | |
42686 | of the same project file. | |
42687 | (Gnatmake): When a foreign language is specified in attribute Languages, | |
42688 | no main is specified on the command line and attribute Mains is not | |
42689 | empty, only build the Ada main. If there is no Ada main, just compile | |
42690 | the Ada sources and their closure. | |
42691 | (Gnatmake): If a main is specified on the command line with directory | |
42692 | information, check that the source exists and, if it does, that the path | |
42693 | is the actual path of a source of a project. | |
42694 | ||
da45fc41 | 42695 | * prj-env.adb: |
318159eb | 42696 | (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When |
42697 | Full_Path is True, return the full path instead of the simple file name. | |
42698 | (Project_Of): New function | |
42699 | ||
da45fc41 | 42700 | * prj-env.ads: |
318159eb | 42701 | (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path, |
42702 | defaulted to False. | |
42703 | (Project_Of): New function | |
42704 | ||
42705 | 2003-10-24 Arnaud Charlet <charlet@act-europe.fr> | |
42706 | ||
da45fc41 | 42707 | * Makefile.generic: |
318159eb | 42708 | Ensure objects of main project are always checked and rebuilt if needed. |
42709 | Set CC to gcc by default. | |
42710 | Prepare new handling of link by creating a global archive (not activated | |
42711 | yet). | |
42712 | ||
42713 | * adadecode.h, atree.h, elists.h, nlists.h, raise.h, | |
42714 | stringt.h: Update copyright notice. Remove trailing blanks. | |
42715 | Fix source name in header. | |
42716 | ||
42717 | 2003-10-24 Robert Dewar <dewar@gnat.com> | |
42718 | ||
42719 | * sem_ch12.adb: Minor reformatting | |
42720 | ||
da45fc41 | 42721 | * sem_ch3.adb: |
318159eb | 42722 | Minor reformatting (including new function return style throughout) |
42723 | ||
da45fc41 | 42724 | * sem_ch3.ads: |
318159eb | 42725 | Minor reformatting (including new function return style throughout) |
42726 | ||
42727 | 2003-10-24 Arnaud Charlet <charlet@act-europe.fr> | |
42728 | ||
42729 | * adadecode.h, atree.h, elists.h, nlists.h, raise.h, | |
42730 | stringt.h: Update copyright notice. Remove trailing blanks. | |
42731 | Fix source name in header. | |
42732 | ||
42733 | 2003-10-24 GNAT Script <nobody@gnat.com> | |
42734 | ||
42735 | * Make-lang.in: Makefile automatically updated | |
42736 | ||
ba4fc7df | 42737 | 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org> |
42738 | ||
42739 | * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h, | |
42740 | stringt.h: Convert to ISO C90 declarations and definitions. | |
42741 | ||
b743d2fe | 42742 | 2003-10-23 Thomas Quinot <quinot@act-europe.fr> |
42743 | ||
d4c15061 | 42744 | PR ada/11978 |
b743d2fe | 42745 | * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited |
42746 | External_Tag attribute definition clauses. | |
42747 | ||
42748 | 2003-10-23 Ed Schonberg <schonberg@gnat.com> | |
42749 | ||
d4c15061 | 42750 | PR ada/7613 |
b743d2fe | 42751 | * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a |
42752 | child unit, generate a fully qualified name to avoid spurious errors | |
42753 | when the context contains renamings of different child units with | |
42754 | the same simple name. | |
42755 | ||
42756 | * exp_dbug.ads: Add documentation on name qualification for renamings | |
42757 | of child units. | |
42758 | ||
42759 | 2003-10-23 Robert Dewar <dewar@gnat.com> | |
42760 | ||
42761 | * g-regpat.ads, g-regpat.adb: Minor reformatting | |
42762 | ||
42763 | 2003-10-23 Jose Ruiz <ruiz@act-europe.fr> | |
42764 | ||
42765 | * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times. | |
42766 | ||
42767 | 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
42768 | ||
42769 | * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to | |
42770 | Machine call. | |
42771 | ||
42772 | * urealp.h: (Machine): Update to proper definition. | |
42773 | ||
fabb7dc5 | 42774 | 2003-10-23 Arnaud Charlet <charlet@act-europe.fr> |
42775 | ||
42776 | * init.c, adaint.c: Minor reformatting. | |
42777 | ||
982e2721 | 42778 | 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net> |
42779 | ||
fabb7dc5 | 42780 | * adaint.c (w32_epoch_offset): Define static const at file level. |
982e2721 | 42781 | (win32_filetime): Replace offset with w32_epoch_offset. Use NULL |
42782 | rather than t_create, t_access in call to GetFileTime. Use union | |
42783 | to convert between FILETIME and unsigned long long. | |
42784 | (__gnat_file_time_name): Test for invalid file handle. | |
42785 | (__gnat_set_filetime_name): Support win32 targets using | |
42786 | w32api SetFileTime. | |
42787 | ||
f0a28ccb | 42788 | 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net> |
42789 | ||
42790 | * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW. | |
42791 | ||
42792 | * ctrl_c.c (__gnat_int_handler): Remove declaration. | |
42793 | ||
42794 | * decl.c (creat_concat_name): Const-ify prefix. | |
42795 | ||
42796 | * adaint.c: Include ctype.h if __MINGW32__. | |
42797 | (__gnat_readlink): Mark arguments as possibly unused. | |
42798 | (__gnat_symlink): Likewise. | |
42799 | (__gnat_is_symbolic_link): Likewise. | |
42800 | (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match | |
42801 | declaration | |
da45fc41 | 42802 | (__gnat_file_time_name): Don't declare struct stat statbuf when |
f0a28ccb | 42803 | not needed. |
42804 | (__gnat_is_absolute_path): Add parenthesis around condition of | |
42805 | 'if' statement to avoid warning. | |
42806 | (__gnat_plist_init): Specify void as parameter. | |
42807 | (plist_enter): Likewise. | |
42808 | (plist_leave): Likewise. | |
42809 | (remove_handle): Make static. Initialize prev. | |
42810 | ||
6189d3b3 | 42811 | 2003-10-22 Arnaud Charlet <charlet@act-europe.fr> |
42812 | ||
d4c15061 | 42813 | PR ada/10110 |
42814 | * Makefile.in: Disable build of gnatpsta. | |
6189d3b3 | 42815 | * cstreams.c (__gnat_full_name): Minor improvements and clean up |
42816 | of previous change. | |
42817 | ||
418d5594 | 42818 | 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
42819 | ||
42820 | * tracebak.c (MAX): Avoid redefinition warning. | |
42821 | ||
42822 | * init.c [sgi] (__gnat_error_handler): Remove i, unused. | |
42823 | Change msg to const char *. | |
42824 | (__gnat_install_handler): Remove ss, unused. | |
42825 | [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg | |
42826 | to const char *. | |
42827 | * cstreams.c (__gnat_full_name): Declare p only when used. | |
42828 | (__gnat_full_name) [sgi] Return buffer. | |
42829 | ||
07ef7a10 | 42830 | 2003-10-22 Arnaud Charlet <charlet@act-europe.fr> |
42831 | ||
42832 | * mingw32.h: New file. | |
36504070 | 42833 | * gnat_wrapper.adb: New file. |
42834 | ||
fabb7dc5 | 42835 | 2003-10-22 Jerome Roussel <roussel@act-europe.fr> |
36504070 | 42836 | |
42837 | * g-regpat.ads, g-regpat.adb (Match): new function, to know if a | |
42838 | string match a pre compiled regular expression (the corresponding | |
42839 | version of the function working on a raw regular expression) | |
42840 | Fix typos in various comments | |
42841 | Update copyright notice in spec | |
42842 | ||
fabb7dc5 | 42843 | 2003-10-21 Gary Dismukes <dismukes@gnat.com> |
36504070 | 42844 | |
da45fc41 | 42845 | * exp_ch3.adb: |
36504070 | 42846 | (Component_Needs_Simple_Initialization): Return False when the type is a |
42847 | packed bit array. Revise spec comments to document this case. | |
42848 | ||
da45fc41 | 42849 | * exp_prag.adb: |
36504070 | 42850 | (Expand_Pragma_Import): Set any expression on the imported object to |
42851 | empty to avoid initializing imported objects (in particular this | |
42852 | covers the case of zero-initialization of bit arrays). | |
42853 | Update copyright notice. | |
42854 | ||
fabb7dc5 | 42855 | 2003-10-21 Ed Schonberg <schonberg@gnat.com> |
36504070 | 42856 | |
da45fc41 | 42857 | * sem_ch12.adb: |
36504070 | 42858 | (Load_Parent_Of_Generic): If parent is compilation unit, stop search, |
42859 | a subunit is missing. | |
42860 | (Instantiate_Subprogram_Body): If body of function is missing, set type | |
42861 | of return expression explicitly in dummy body, to prevent cascaded | |
42862 | errors when a subunit is missing. | |
42863 | Fixes PR 5677. | |
42864 | ||
da45fc41 | 42865 | * sem_ch3.adb: |
36504070 | 42866 | (Access_Subprogram_Declaration): Verify that return type is valid. |
42867 | Fixes PR 8693. | |
42868 | ||
da45fc41 | 42869 | * sem_elab.adb: |
36504070 | 42870 | (Check_Elab_Calls): Do not apply elaboration checks if the main unit is |
42871 | generic. | |
42872 | Fixes PR 12318. | |
42873 | ||
da45fc41 | 42874 | * sem_util.adb: |
36504070 | 42875 | (Corresponding_Discriminant): If the scope of the discriminant is a |
42876 | private type without discriminant, use its full view. | |
42877 | Fixes PR 8247. | |
07ef7a10 | 42878 | |
9dfe12ae | 42879 | 2003-10-21 Arnaud Charlet <charlet@act-europe.fr> |
42880 | ||
42881 | * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads, | |
42882 | 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads, | |
42883 | 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads, | |
42884 | 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb, | |
42885 | 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads, | |
42886 | 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads, | |
42887 | 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb, | |
42888 | 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads, | |
42889 | 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads, | |
42890 | 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb, | |
42891 | 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads, | |
42892 | 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb, | |
42893 | 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb, | |
42894 | 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb, | |
42895 | 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb, | |
42896 | a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb, | |
42897 | a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb, | |
42898 | a-stwisu.ads, bld.adb, bld.ads, bld-io.adb, | |
42899 | bld-io.ads, clean.adb, clean.ads, ctrl_c.c, | |
42900 | erroutc.adb, erroutc.ads, errutil.adb, errutil.ads, | |
42901 | err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads, | |
42902 | g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb, | |
42903 | g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads, | |
42904 | g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb, | |
42905 | g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb, | |
42906 | g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb, | |
42907 | g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads, | |
42908 | gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb, | |
42909 | g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads, | |
42910 | g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb, | |
42911 | i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl, | |
42912 | prep.adb, prep.ads, prepcomp.adb, prepcomp.ads, | |
42913 | prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb, | |
42914 | s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb, | |
42915 | s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb, | |
42916 | s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb, | |
42917 | s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb, | |
42918 | s-caun64.ads, scng.adb, scng.ads, s-exnint.adb, | |
42919 | s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb, | |
42920 | s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb, | |
42921 | s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads, | |
42922 | socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb, | |
42923 | s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads, | |
42924 | s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads, | |
42925 | s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb, | |
42926 | styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb, | |
42927 | s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads, | |
42928 | tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads, | |
42929 | vms_conv.ads, vms_conv.adb, vms_data.ads, | |
42930 | vxaddr2line.adb: Files added. Merge with ACT tree. | |
42931 | ||
42932 | * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads, | |
42933 | 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb, | |
42934 | 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads, | |
42935 | 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c, | |
42936 | g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb, | |
42937 | s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads, | |
42938 | s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads, | |
42939 | s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads, | |
42940 | s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads, | |
42941 | s-expssi.ads, style.adb: Files removed. Merge with ACT tree. | |
42942 | ||
42943 | * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads, | |
42944 | 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads, | |
42945 | 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, | |
42946 | 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads, | |
42947 | 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, | |
42948 | 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, | |
42949 | 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, | |
42950 | 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads, | |
42951 | 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads, | |
42952 | 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads, | |
42953 | 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, | |
42954 | 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, | |
42955 | 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb, | |
42956 | 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads, | |
42957 | 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads, | |
42958 | 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads, | |
42959 | 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads, | |
42960 | 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb, | |
42961 | 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads, | |
42962 | 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads, | |
42963 | 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, | |
42964 | 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb, | |
42965 | 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb, | |
42966 | 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads, | |
42967 | 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb, | |
42968 | 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads, | |
42969 | 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb, | |
42970 | 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads, | |
42971 | 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, | |
42972 | 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb, | |
42973 | 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb, | |
42974 | 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, | |
42975 | 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb, | |
42976 | 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, | |
42977 | 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, | |
42978 | 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb, | |
42979 | 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb, | |
42980 | a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads, | |
42981 | a-comlin.adb, adaint.c, adaint.h, ada-tree.def, | |
42982 | a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb, | |
42983 | a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads, | |
42984 | a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads, | |
42985 | ali.adb, ali.ads, ali-util.adb, ali-util.ads, | |
42986 | a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb, | |
42987 | a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb, | |
42988 | a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb, | |
42989 | a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb, | |
42990 | a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads, | |
42991 | a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb, | |
42992 | a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, | |
42993 | a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb, | |
42994 | a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb, | |
42995 | a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb, | |
42996 | a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, | |
42997 | a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads, | |
42998 | atree.adb, atree.ads, a-witeio.adb, a-witeio.ads, | |
42999 | a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb, | |
43000 | a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb, | |
43001 | bcheck.adb, binde.adb, bindgen.adb, bindusg.adb, | |
43002 | checks.adb, checks.ads, cio.c, comperr.adb, | |
43003 | comperr.ads, csets.adb, cstand.adb, cstreams.c, | |
43004 | debug_a.adb, debug_a.ads, debug.adb, decl.c, | |
43005 | einfo.adb, einfo.ads, errout.adb, errout.ads, | |
43006 | eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb, | |
43007 | expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb, | |
43008 | exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, | |
43009 | exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads, | |
43010 | exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb, | |
43011 | exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c, | |
43012 | exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, | |
43013 | exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb, | |
43014 | exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb, | |
43015 | fe.h, fmap.adb, fmap.ads, fname.adb, | |
43016 | fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb, | |
43017 | freeze.ads, frontend.adb, g-awk.adb, g-awk.ads, | |
43018 | g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads, | |
43019 | g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, | |
43020 | g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, | |
43021 | g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads, | |
43022 | g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads, | |
43023 | g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads, | |
43024 | g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads, | |
43025 | g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb, | |
43026 | g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb, | |
43027 | g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h, | |
43028 | g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, | |
43029 | g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads, | |
43030 | gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb, | |
43031 | gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb, | |
43032 | gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb, | |
43033 | gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb, | |
43034 | gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb, | |
43035 | g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb, | |
43036 | g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads, | |
43037 | g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads, | |
43038 | g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads, | |
43039 | g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads, | |
43040 | g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb, | |
43041 | g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb, | |
43042 | g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads, | |
43043 | i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads, | |
43044 | i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c, | |
43045 | inline.adb, interfac.ads, i-pacdec.ads, itypes.adb, | |
43046 | itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h, | |
43047 | layout.adb, lib.adb, lib.ads, lib-list.adb, | |
43048 | lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb, | |
43049 | lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads, | |
43050 | link.c, live.adb, make.adb, make.ads, | |
43051 | Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb, | |
43052 | mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, | |
43053 | mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb, | |
43054 | misc.c, mkdir.c, mlib.adb, mlib.ads, | |
43055 | mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, | |
43056 | mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, | |
43057 | namet.adb, namet.ads, namet.h, nlists.ads, | |
43058 | nlists.h, nmake.adt, opt.adb, opt.ads, | |
43059 | osint.adb, osint.ads, osint-b.adb, osint-c.adb, | |
43060 | par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb, | |
43061 | par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, | |
43062 | par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb, | |
43063 | par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb, | |
43064 | prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, | |
43065 | prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads, | |
43066 | prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads, | |
43067 | prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads, | |
43068 | prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads, | |
43069 | prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads, | |
43070 | prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads, | |
43071 | prj-util.adb, prj-util.ads, raise.c, raise.h, | |
43072 | repinfo.adb, repinfo.h, restrict.adb, restrict.ads, | |
43073 | rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads, | |
43074 | s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb, | |
43075 | s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb, | |
43076 | scans.ads, scn.adb, scn.ads, s-crc32.adb, | |
43077 | s-crc32.ads, s-direio.adb, sem.adb, sem.ads, | |
43078 | sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb, | |
43079 | sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb, | |
43080 | sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, | |
43081 | sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, | |
43082 | sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads, | |
43083 | sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, | |
43084 | sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb, | |
43085 | sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb, | |
43086 | sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads, | |
43087 | sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads, | |
43088 | sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb, | |
43089 | s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads, | |
43090 | s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads, | |
43091 | s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads, | |
43092 | s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb, | |
43093 | s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb, | |
43094 | s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads, | |
43095 | s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb, | |
43096 | sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb, | |
43097 | sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads, | |
43098 | sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads, | |
43099 | s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads, | |
43100 | s-memory.adb, s-memory.ads, snames.adb, snames.ads, | |
43101 | snames.h, s-osprim.ads, s-parame.ads, s-parint.ads, | |
43102 | s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb, | |
43103 | s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads, | |
43104 | s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads, | |
43105 | s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads, | |
43106 | s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads, | |
43107 | s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads, | |
43108 | s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, | |
43109 | s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads, | |
43110 | s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb, | |
43111 | s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb, | |
43112 | s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, | |
43113 | s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads, | |
43114 | s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads, | |
43115 | s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads, | |
43116 | s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, | |
43117 | s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads, | |
43118 | stringt.adb, stringt.ads, stringt.h, style.ads, | |
43119 | stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads, | |
43120 | s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb, | |
43121 | s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb, | |
43122 | switch.ads, switch-b.adb, switch-c.adb, switch-m.adb, | |
43123 | s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads, | |
43124 | table.adb, table.ads, targparm.adb, targparm.ads, | |
43125 | targtyps.c, tbuild.adb, tbuild.ads, tracebak.c, | |
43126 | trans.c, tree_io.adb, treepr.adb, treeprs.adt, | |
43127 | ttypes.ads, types.ads, types.h, uintp.adb, | |
43128 | uintp.ads, uintp.h, uname.adb, urealp.adb, | |
43129 | urealp.ads, urealp.h, usage.adb, utils2.c, | |
43130 | utils.c, validsw.adb, validsw.ads, widechar.adb, | |
43131 | xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads, | |
43132 | xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb, | |
43133 | einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb, | |
43134 | gnatvsn.ads: Merge with ACT tree. | |
43135 | ||
43136 | * gnatvsn.adb: Rewritten in a simpler and more efficient way. | |
43137 | ||
e9d2d60f | 43138 | 2003-10-20 Mark Mitchell <mark@codesourcery.com> |
43139 | ||
e03aeb15 | 43140 | * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir. |
43141 | (gnat_ug_vmx.info): Likewise. | |
43142 | (gnat_ug_vxw.info): Likewise. | |
43143 | (gnat_ug_wnt.info): Likewise. | |
43144 | (gnat_rm.info): Likewise. | |
43145 | (gnat-style.info): Likewise. | |
43146 | ||
e9d2d60f | 43147 | * Make-lang.in (ada.install-info): Remove target. |
43148 | (info): New target. | |
43149 | (install-info): Likewise. | |
43150 | (gnat_ug_unx.info): Simplify rule. | |
43151 | (gnat_ug_vmx.info): Likewise. | |
43152 | (gnat_ug_vxw.info): Likewise. | |
43153 | (gnat_ug_wnt.info): Likewise. | |
43154 | (gnat_rm.info): Likewise. | |
43155 | (gnat-style.info): Likewise. | |
43156 | ||
8ef79bec | 43157 | 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org> |
43158 | ||
43159 | * Make-lang.in: Replace uses of $(target_alias) with | |
43160 | $(target_noncanonical). | |
43161 | * ada/Makefile.in: Remove unused mention of $(target_alias). | |
43162 | ||
d5cd09c5 | 43163 | 2003-10-06 Mark Mitchell <mark@codesourcery.com> |
43164 | ||
43165 | * Make-lang.in (ada.info): Replace with ... | |
43166 | (info): ... this. | |
43167 | (ada.dvi): Replace with ... | |
43168 | (dvi): ... this. | |
43169 | ||
48d79b3b | 43170 | 2003-09-29 Zack Weinberg <zack@codesourcery.com> |
43171 | ||
43172 | * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to | |
43173 | initialize dconstp5 and dconstmp5. | |
43174 | ||
867bd639 | 43175 | 2003-09-28 Richard Henderson <rth@redhat.com> |
43176 | ||
43177 | * trans.c (tree_transform): Update call to expand_asm_operands. | |
43178 | ||
346064d9 | 43179 | 2003-09-21 Richard Henderson <rth@redhat.com> |
43180 | ||
43181 | * trans.c, utils.c: Revert. | |
43182 | ||
5e06f14c | 43183 | 2003-09-21 Richard Henderson <rth@redhat.com> |
43184 | ||
43185 | * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and | |
43186 | change to const. | |
43187 | ||
dda9289c | 43188 | 2003-09-04 Michael Matz <matz@suse.de> |
43189 | ||
43190 | * misc.c: Include "target.h". | |
43191 | * Make-lang.in (misc.o): Add dependency on target.h. | |
43192 | ||
45550790 | 43193 | 2003-09-03 DJ Delorie <dj@redhat.com> |
43194 | ||
43195 | * misc.c (default_pass_by_ref): Convert to calls.return_in_memory | |
43196 | hook. | |
43197 | ||
a455468e | 43198 | 2003-08-30 Zack Weinberg <zack@codesourcery.com> |
43199 | ||
43200 | * Makefile.in: Update substitutions to match changes to | |
43201 | configure. Use include directives instead of @-insertions | |
43202 | to read in host and target fragments. Add a rule to | |
43203 | regenerate ada/Makefile. | |
43204 | ||
47b8b71b | 43205 | 2003-07-18 Neil Booth <neil@daikokuya.co.uk> |
43206 | ||
43207 | * lang-options.h: Remove. | |
43208 | * lang.opt: Add help text. | |
43209 | ||
bccd9980 | 43210 | 2003-07-07 Nathan Sidwell <nathan@codesourcery.com> |
43211 | ||
43212 | * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note | |
43213 | calls. | |
43214 | ||
76bf7746 | 43215 | 2003-07-06 Neil Booth <neil@daikokuya.co.uk> |
43216 | ||
43217 | * misc.c (gnat_handle_option): Don't handle filenames. | |
43218 | ||
8a67bb47 | 43219 | 2003-07-04 H.J. Lu <hongjiu.lu@intel.com> |
7a8ca04a | 43220 | |
43221 | * Make-lang.in: Replace PWD with PWD_COMMAND. | |
43222 | * Makefile.adalib: Likewise. | |
43223 | * Makefile.in: Likewise. | |
43224 | ||
ffe0b5db | 43225 | 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu> |
43226 | ||
43227 | * misc.c (gnat_argv): Revert last change. | |
43228 | (gnat_handle_option, gnat_init_options): Copy arguments. | |
43229 | ||
8fba22d5 | 43230 | 2003-07-03 Neil Booth <neil@daikokuya.co.uk> |
43231 | ||
ffe0b5db | 43232 | * misc.c (gnat_argv): Make const. |
8fba22d5 | 43233 | |
4cf9eeb2 | 43234 | 2003-07-02 Neil Booth <neil@daikokuya.co.uk> |
43235 | ||
43236 | * misc.c (save_argc, save_argv): Keep non-static! | |
43237 | ||
4838a8b6 | 43238 | 2003-07-02 Neil Booth <neil@daikokuya.co.uk> |
43239 | ||
43240 | * misc.c (save_argc, save_argv): Make static. | |
43241 | (gnat_init_options): New prototype. | |
43242 | (gnat_init_options): Update. | |
43243 | ||
c2c77147 | 43244 | 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu> |
43245 | ||
43246 | * gnat_ug.texi: Remove unlikely characters from @vars. | |
43247 | * gnat_ug_vms.texi: Regenerate. | |
43248 | ||
31b97e8f | 43249 | 2003-06-27 Nathan Sidwell <nathan@codesourcery.com> |
43250 | ||
43251 | * misc.c (record_code_position): Adjust emit_note call. | |
43252 | ||
29689179 | 43253 | 2003-06-26 Neil Booth <neil@daikokuya.co.uk> |
43254 | ||
43255 | * misc.c (gnat_handle_option): Don't check for missing arguments. | |
43256 | ||
014d421e | 43257 | 2003-06-20 Nathan Sidwell <nathan@codesourcery.com> |
43258 | ||
43259 | * utils.c (end_subprog_body): Adjust expand_function_end call. | |
43260 | ||
ba335df7 | 43261 | 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu> |
43262 | ||
43263 | * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test | |
43264 | Bind_Main_Program. | |
43265 | ||
edc4d549 | 43266 | 2003-06-15 Neil Booth <neil@daikokuya.co.uk> |
43267 | ||
43268 | * lang.opt: Declare Ada. | |
43269 | * misc.c (gnat_init_options): Update. | |
43270 | ||
f0c569c7 | 43271 | 2003-06-14 Nathan Sidwell <nathan@codesourcery.com> |
43272 | ||
43273 | * utils.c (begin_subprog_body): Adjust init_function_start call. | |
43274 | ||
3272db82 | 43275 | 2003-06-14 Neil Booth <neil@daikokuya.co.uk> |
43276 | ||
43277 | * Make-lang.in: Update to use options.c and options.h. | |
43278 | * misc.c: Include options.h not aoptions.h. | |
43279 | (gnat_handle_option): Abort on unrecognized switch. | |
43280 | (gnat_init_options): Request Ada switches. | |
43281 | ||
dcde31e2 | 43282 | 2003-06-14 Neil Booth <neil@daikokuya.co.uk> |
43283 | ||
43284 | * lang.opt: Add -Wall. | |
43285 | * misc.c (gnat_handle_option): Handle it. | |
43286 | ||
fb3b06a1 | 43287 | 2003-06-12 Neil Booth <neil@daikokuya.co.uk> |
43288 | ||
43289 | * misc.c (gnat_handle_option): Fix warnings. | |
43290 | ||
907823ba | 43291 | 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu> |
43292 | ||
43293 | * Make-lang.in (gnatbind): Remove $(LIBIBERTY). | |
43294 | ||
9dd183ce | 43295 | 2003-06-11 Neil Booth <neil@daikokuya.co.uk> |
43296 | ||
43297 | * Make-lang.in: Update to handle command-line options. | |
43298 | * lang.opt: New file. | |
43299 | * misc.c: Include aoptions.h. | |
43300 | (cl_options_count, cl_options): Remove. | |
43301 | (gnat_handle_option): New. | |
43302 | (gnat_decode_option): Remove. | |
43303 | (LANG_HOOKS_DECODE_OPTION): Remove. | |
43304 | (LANG_HOOKS_HANDLE_OPTION): Override. | |
43305 | ||
b552ff4d | 43306 | 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org> |
43307 | ||
43308 | * init.c, misc.c, trans.c, utils.c: Remove dead code. | |
43309 | ||
4f442f07 | 43310 | 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org> |
43311 | ||
43312 | * Makefile.in: Replace "host_canonical" with "host" for autoconf | |
43313 | substitution. | |
43314 | ||
69b7ac1e | 43315 | 2003-06-08 Neil Booth <neil@daikokuya.co.uk> |
43316 | ||
43317 | * Make-lang.in: Update. | |
43318 | * misc.c: Include opts.h. Define cl_options_count and cl_options. | |
43319 | ||
5457b645 | 43320 | 2003-06-07 Neil Booth <neil@daikokuya.co.uk> |
43321 | ||
43322 | * misc.c (gnat_init_options): Update. | |
43323 | ||
eb773980 | 43324 | 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu> |
43325 | ||
43326 | * Make-lang.in (ada/b_gnatb.o-warn): Remove. | |
43327 | * bindgen.adb (Gen_Main_C): Mark ensure_reference with | |
43328 | __attribute__ ((__unused__)). | |
43329 | ||
90306e5c | 43330 | 2003-06-05 Jan Hubicka <jh@suse.cz> |
ef3bb540 | 43331 | |
43332 | * Make-lang.in: Add support for stageprofile and stagefeedback | |
43333 | ||
3512acf1 | 43334 | 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu> |
43335 | ||
43336 | * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C) | |
43337 | (Gen_Main_C, Gen_Output_File_C): Generate ISO C. | |
43338 | ||
deaf5cbc | 43339 | 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu> |
43340 | ||
43341 | * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr): | |
43342 | Remove non-VMS directive. | |
43343 | (Switches for gnatlbr, Optimization Levels): Remove non-VMS | |
43344 | alternatives. | |
43345 | (Examples of gnatls Usage): Remove VMS alternative. | |
07e400aa | 43346 | |
43347 | 2003-06-04 Olivier Hainque <hainque@act-europe.fr> | |
43348 | ||
d4c15061 | 43349 | PR ada/9953 |
a455468e | 43350 | * 5hsystem.ads: Remove pragma Linker_Option for pthreads library, |
43351 | and turn ZCX_By_Default back to False since the underlying support | |
43352 | is not quite there yet. | |
07e400aa | 43353 | |
41f288e0 | 43354 | 2003-06-01 Andreas Jaeger <aj@suse.de> |
43355 | ||
43356 | * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE | |
43357 | and ROUND_TYPE_SIZE_UNIT. | |
43358 | ||
8a67bb47 | 43359 | 2003-05-22 Geert Bosch <bosch@gnat.com> |
d817c44c | 43360 | |
43361 | * gnat_rm.texi : Remove reference to Ada Core Technologies. | |
43362 | ||
0d32ca97 | 43363 | 2003-05-03 Nathan Sidwell <nathan@codesourcery.com> |
43364 | ||
43365 | * trans.c (tree_transform): Use location_t and input_location | |
43366 | directly. | |
43367 | (build_unit_elab): Likewise. | |
43368 | * utils.c (create_label_decl): Likewise. | |
43369 | ||
fa70df70 | 43370 | 2003-05-01 Nathan Sidwell <nathan@codesourcery.com> |
43371 | ||
5dd3ae3c | 43372 | * trans.c (tree_transform, build_unit_elab, |
43373 | set_lineno): Rename lineno to input_line. | |
fa70df70 | 43374 | * utils.c (pushdecl, create_label_decl, begin_subprog_body, |
43375 | end_subprog_body): Likewise. | |
43376 | * utils2.c (build_call_raise): Likewise. | |
43377 | ||
8a67bb47 | 43378 | 2003-05-01 Laurent Guerby <guerby@acm.org> |
fad6d0dc | 43379 | |
a455468e | 43380 | PR ada/10546 |
43381 | * 5iosinte.ads: Increase pthread_cond_t size to match recent | |
43382 | LinuxThread and NPTL version, merge from ACT. | |
41f288e0 | 43383 | |
b56337d2 | 43384 | 2003-04-28 Zack Weinberg <zack@codesourcery.com> |
43385 | ||
43386 | * utils.c (convert): No need to clear TREE_CST_RTL. | |
43387 | ||
8a67bb47 | 43388 | 2003-04-23 Geert Bosch <bosch@gnat.com> |
3670c51d | 43389 | |
43390 | * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb, | |
43391 | 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads, | |
43392 | 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads, | |
43393 | 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, | |
43394 | 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads, | |
43395 | 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb, | |
43396 | 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads, | |
43397 | 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads, | |
43398 | 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb, | |
43399 | 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, | |
43400 | 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, | |
43401 | 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb, | |
43402 | 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads, | |
43403 | 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads, | |
43404 | 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb, | |
43405 | 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads, | |
43406 | 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb, | |
43407 | 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, | |
43408 | 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb, | |
43409 | 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads, | |
43410 | 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb, | |
43411 | 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads, | |
43412 | 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb, | |
43413 | 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, | |
43414 | 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, | |
43415 | 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb, | |
43416 | 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads, | |
43417 | 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads, | |
43418 | 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb, | |
43419 | 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads, | |
43420 | 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, | |
43421 | 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb, | |
43422 | 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb, | |
43423 | 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads, | |
43424 | 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, | |
43425 | 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb, | |
43426 | 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb, | |
43427 | 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads, | |
43428 | 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, | |
43429 | 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb, | |
43430 | 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb, | |
43431 | 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads, | |
43432 | 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads, | |
43433 | 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, | |
43434 | 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb, | |
43435 | 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads, | |
43436 | 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads, | |
43437 | 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb, | |
43438 | a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb, | |
43439 | a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, | |
43440 | a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads, | |
43441 | a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads, | |
43442 | a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads, | |
43443 | a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads, | |
43444 | a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads, | |
43445 | a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb, | |
43446 | a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads, | |
43447 | a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads, | |
43448 | a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads, | |
43449 | a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads, | |
43450 | a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, | |
43451 | a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, | |
43452 | a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads, | |
43453 | a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, | |
43454 | a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, | |
43455 | a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads, | |
43456 | a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads, | |
43457 | a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb, | |
43458 | a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads, | |
43459 | a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads, | |
43460 | a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads, | |
43461 | a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads, | |
43462 | a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb, | |
43463 | a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads, | |
43464 | a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads, | |
43465 | a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads, | |
43466 | a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads, | |
43467 | a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads, | |
43468 | a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads, | |
43469 | a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb, | |
43470 | a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb, | |
43471 | a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb, | |
43472 | a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb, | |
43473 | a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb, | |
43474 | a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb, | |
43475 | a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb, | |
43476 | a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb, | |
43477 | a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb, | |
43478 | a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb, | |
43479 | a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb, | |
43480 | a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads, | |
43481 | a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb, | |
43482 | a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb, | |
43483 | a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb, | |
43484 | a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb, | |
43485 | a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb, | |
43486 | a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb, | |
43487 | a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb, | |
43488 | a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, | |
43489 | a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb, | |
43490 | a-wttest.ads, ada-tree.h, ada.ads, ada.h, | |
43491 | adadecode.c, adadecode.h, ali-util.adb, ali-util.ads, | |
43492 | ali.adb, ali.ads, alloc.ads, argv.c, | |
43493 | atree.adb, atree.ads, atree.h, aux-io.c, | |
43494 | back_end.adb, back_end.ads, bcheck.adb, bcheck.ads, | |
43495 | binde.adb, binde.ads, binderr.adb, binderr.ads, | |
43496 | bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, | |
43497 | butil.adb, butil.ads, cal.c, calendar.ads, | |
43498 | casing.adb, casing.ads, ceinfo.adb, checks.adb, | |
43499 | checks.ads, cio.c, comperr.adb, comperr.ads, | |
43500 | config-lang.in, csets.adb, csets.ads, csinfo.adb, | |
43501 | cstand.adb, cstand.ads, cuintp.c, debug.adb, | |
43502 | debug.ads, debug_a.adb, debug_a.ads, dec-io.adb, | |
43503 | dec-io.ads, dec.ads, deftarg.c, directio.ads, | |
43504 | einfo.adb, einfo.ads, elists.adb, elists.ads, | |
43505 | elists.h, errno.c, errout.adb, errout.ads, | |
43506 | eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb, | |
43507 | exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads, | |
43508 | exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads, | |
43509 | exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, | |
43510 | exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads, | |
43511 | exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads, | |
43512 | exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, | |
43513 | exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads, | |
43514 | exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads, | |
43515 | exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads, | |
43516 | exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, | |
43517 | exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads, | |
43518 | exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads, | |
43519 | exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads, | |
43520 | exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads, | |
43521 | fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads, | |
43522 | fname-uf.adb, fname-uf.ads, fname.adb, fname.ads, | |
43523 | freeze.adb, freeze.ads, frontend.adb, frontend.ads, | |
43524 | g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads, | |
43525 | g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads, | |
43526 | g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, | |
43527 | g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, | |
43528 | g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads, | |
43529 | g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb, | |
43530 | g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb, | |
43531 | g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb, | |
43532 | g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb, | |
43533 | g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads, | |
43534 | g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, | |
43535 | g-htable.adb, g-htable.ads, g-io.adb, g-io.ads, | |
43536 | g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb, | |
43537 | g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb, | |
43538 | g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads, | |
43539 | g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb, | |
43540 | g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads, | |
43541 | g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb, | |
43542 | g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, | |
43543 | g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads, | |
43544 | g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads, | |
43545 | g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads, | |
43546 | get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads, | |
43547 | gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads, | |
43548 | gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads, | |
43549 | gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads, | |
43550 | gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, | |
43551 | gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb, | |
43552 | gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads, | |
43553 | gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb, | |
43554 | hlo.adb, hlo.ads, hostparm.ads, i-c.adb, | |
43555 | i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads, | |
43556 | i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads, | |
43557 | i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads, | |
43558 | i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb, | |
43559 | i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb, | |
43560 | i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads, | |
43561 | inline.adb, inline.ads, interfac.ads, ioexcept.ads, | |
43562 | itypes.adb, itypes.ads, krunch.adb, krunch.ads, | |
43563 | layout.adb, layout.ads, lib-list.adb, lib-load.adb, | |
43564 | lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads, | |
43565 | lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads, | |
43566 | lib.adb, lib.ads, live.adb, live.ads, | |
43567 | machcode.ads, make.adb, make.ads, makeusg.adb, | |
43568 | makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads, | |
43569 | mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads, | |
43570 | memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb, | |
43571 | mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb, | |
43572 | mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb, | |
43573 | mlib.ads, namet.adb, namet.ads, nlists.adb, | |
43574 | nlists.ads, opt.adb, opt.ads, osint-b.adb, | |
43575 | osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb, | |
43576 | osint-l.ads, osint-m.adb, osint-m.ads, osint.adb, | |
43577 | osint.ads, output.adb, output.ads, par-ch10.adb, | |
43578 | par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, | |
43579 | par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, | |
43580 | par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb, | |
43581 | par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, | |
43582 | par-tchk.adb, par-util.adb, par.adb, par.ads, | |
43583 | prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads, | |
43584 | prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads, | |
43585 | prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads, | |
43586 | prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, | |
43587 | prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads, | |
43588 | prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads, | |
43589 | prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads, | |
43590 | prj.adb, prj.ads, repinfo.adb, repinfo.ads, | |
43591 | restrict.adb, restrict.ads, rident.ads, rtsfind.adb, | |
43592 | rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb, | |
43593 | s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb, | |
43594 | s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb, | |
43595 | s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads, | |
43596 | s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads, | |
43597 | s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb, | |
43598 | s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads, | |
43599 | s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads, | |
43600 | s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads, | |
43601 | s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads, | |
43602 | s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads, | |
43603 | s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads, | |
43604 | s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb, | |
43605 | s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads, | |
43606 | s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads, | |
43607 | s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads, | |
43608 | s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads, | |
43609 | s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads, | |
43610 | s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, | |
43611 | s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, | |
43612 | s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads, | |
43613 | s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads, | |
43614 | s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads, | |
43615 | s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, | |
43616 | s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, | |
43617 | s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads, | |
43618 | s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb, | |
43619 | s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb, | |
43620 | s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads, | |
43621 | s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads, | |
43622 | s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads, | |
43623 | s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, | |
43624 | s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, | |
43625 | s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads, | |
43626 | s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads, | |
43627 | s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads, | |
43628 | s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, | |
43629 | s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, | |
43630 | s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads, | |
43631 | s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads, | |
43632 | s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads, | |
43633 | s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, | |
43634 | s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, | |
43635 | s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads, | |
43636 | s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads, | |
43637 | s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads, | |
43638 | s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, | |
43639 | s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, | |
43640 | s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads, | |
43641 | s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads, | |
43642 | s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads, | |
43643 | s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, | |
43644 | s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, | |
43645 | s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads, | |
43646 | s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads, | |
43647 | s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads, | |
43648 | s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, | |
43649 | s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads, | |
43650 | s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads, | |
43651 | s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb, | |
43652 | s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads, | |
43653 | s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, | |
43654 | s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads, | |
43655 | s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads, | |
43656 | s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads, | |
43657 | s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads, | |
43658 | s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb, | |
43659 | s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb, | |
43660 | s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb, | |
43661 | s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads, | |
43662 | s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, | |
43663 | s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads, | |
43664 | s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads, | |
43665 | s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb, | |
43666 | s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb, | |
43667 | s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb, | |
43668 | s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb, | |
43669 | s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb, | |
43670 | s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads, | |
43671 | s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads, | |
43672 | s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads, | |
43673 | s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads, | |
43674 | s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, | |
43675 | s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, | |
43676 | s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, | |
43677 | s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads, | |
43678 | s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads, | |
43679 | s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, | |
43680 | s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb, | |
43681 | s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, | |
43682 | s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb, | |
43683 | s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, | |
43684 | s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, | |
43685 | s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb, | |
43686 | scn-slit.adb, scn.adb, scn.ads, sdefault.ads, | |
43687 | sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads, | |
43688 | sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads, | |
43689 | sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads, | |
43690 | sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads, | |
43691 | sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, | |
43692 | sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads, | |
43693 | sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads, | |
43694 | sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, | |
43695 | sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads, | |
43696 | sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads, | |
43697 | sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads, | |
43698 | sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads, | |
43699 | sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, | |
43700 | sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads, | |
43701 | sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads, | |
43702 | sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads, | |
43703 | sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb, | |
43704 | sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb, | |
43705 | sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb, | |
43706 | sinput-p.ads, sinput.adb, sinput.ads, snames.adb, | |
43707 | snames.ads, sprint.adb, sprint.ads, stand.adb, | |
43708 | stand.ads, stringt.adb, stringt.ads, style.adb, | |
43709 | style.ads, stylesw.adb, stylesw.ads, switch-b.adb, | |
43710 | switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb, | |
43711 | switch-m.ads, switch.adb, switch.ads, system.ads, | |
43712 | table.adb, table.ads, targparm.adb, targparm.ads, | |
43713 | tbuild.adb, tbuild.ads, text_io.ads, trans.c, | |
43714 | tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads, | |
43715 | tree_io.adb, tree_io.ads, treepr.adb, treepr.ads, | |
43716 | ttypef.ads, ttypes.ads, types.adb, types.ads, | |
43717 | uintp.adb, uintp.ads, uname.adb, uname.ads, | |
43718 | unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads, | |
43719 | usage.adb, usage.ads, validsw.adb, validsw.ads, | |
43720 | widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb, | |
43721 | xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads, | |
43722 | xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header, | |
43723 | formatting and other trivial changes from ACT. | |
43724 | ||
46518bf2 | 43725 | 2003-04-12 Zack Weinberg <zack@codesourcery.com> |
43726 | ||
43727 | * gigi.h, utils2.c (build_constructor): | |
43728 | Rename gnat_build_constructor. Use build_constructor. | |
43729 | * decl.c (gnat_to_gnu_entity) | |
43730 | * trans.c (tree_transform, pos_to_constructor, extract_values) | |
43731 | * ada/utils.c (build_template, convert_to_fat_pointer, convert) | |
43732 | (unchecked_convert) | |
43733 | * ada/utils2.c (build_binary_op, build_call_raise, build_allocator) | |
43734 | (fill_vms_descriptor): | |
43735 | Update to match. | |
43736 | ||
295e387a | 43737 | 2003-04-06 Zack Weinberg <zack@codesourcery.com> |
43738 | ||
43739 | * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero. | |
43740 | * misc.c (gnat_tree_size): New function. | |
43741 | (LANG_HOOKS_TREE_SIZE): Override. | |
43742 | ||
f5712181 | 43743 | 2003-04-03 Jason Merrill <jason@redhat.com> |
43744 | ||
43745 | * misc.c (gnat_adjust_rli): #if 0. | |
43746 | ||
8a67bb47 | 43747 | 2003-03-31 Geert Bosch <bosch@gnat.com> |
daecbaed | 43748 | |
43749 | PR ada/10020 | |
43750 | * link.c : Fix misspelled "const" keyword | |
43751 | ||
be5097d8 | 43752 | 2003-03-23 Mark Mitchell <mark@codesourcery.com> |
43753 | ||
43754 | PR c++/7086 | |
43755 | * utils2.c: Adjust calls to put_var_into_stack. | |
43756 | ||
8f891505 | 43757 | 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org> |
43758 | ||
43759 | * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC. | |
43760 | ||
03bde601 | 43761 | 2003-03-08 Neil Booth <neil@daikokuya.co.uk> |
43762 | ||
43763 | * misc.c (gnat_init): Update for new prototype. | |
43764 | ||
d69de5b2 | 43765 | 2003-03-05 Olivier Hainque <hainque@gnat.com> |
43766 | ||
43767 | ada/9961 | |
f5712181 | 43768 | * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid |
43769 | warning, and fix return type for the IN_RTS && !SJLJ case. | |
d69de5b2 | 43770 | |
c156b8b6 | 43771 | 2003-03-04 Tom Tromey <tromey@redhat.com> |
43772 | ||
43773 | * Make-lang.in (ada.tags): New target. | |
43774 | ||
d69de5b2 | 43775 | 2003-03-04 Olivier Hainque <hainque@act-europe.fr> |
15f50c41 | 43776 | |
43777 | ada/9911 | |
43778 | * a-except.adb (Unwind_RaiseException): Import a GNAT specific | |
43779 | wrapper, which name remains constant whatever underlying GCC | |
43780 | scheme. | |
43781 | ||
43782 | * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing | |
43783 | the stable interface needed for a-except. | |
43784 | ||
e0bc630f | 43785 | 2003-03-02 Andreas Jaeger <aj@suse.de> |
43786 | ||
43787 | * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi, | |
43788 | gnat_ug_wnt.texi: Regenerate. | |
43789 | ||
8a67bb47 | 43790 | 2003-03-02 Laurent Guerby <guerby@acm.org> |
0f0c858f | 43791 | |
e0bc630f | 43792 | * Makefile.in (install-gnatlib): Match previous change there |
0f0c858f | 43793 | so it works. |
e0bc630f | 43794 | |
995f3149 | 43795 | 2003-02-28 Andreas Schwab <schwab@suse.de> |
43796 | ||
43797 | * Make-lang.in (install-gnatlib): Change to ada directory before | |
43798 | running make instead of using ada/Makefile directly. | |
43799 | ||
3df7811b | 43800 | 2003-02-18 Ben Elliston <bje@redhat.com> |
43801 | ||
d4c15061 | 43802 | Part of PR ada/9406 |
3df7811b | 43803 | * gnat_ug.texi (Binder output file): Grammar fix. |
43804 | ||
c465b94a | 43805 | 2003-02-18 Ben Elliston <bje@redhat.com> |
43806 | ||
43807 | PR other/7350 | |
43808 | * 5qtaprop.adb (Sleep): Fix typo in comment. | |
43809 | ||
5533bc76 | 43810 | 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk> |
43811 | ||
43812 | * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2. | |
43813 | * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi, | |
43814 | gnat_ug_wnt.texi: Regenerate. | |
43815 | ||
8a67bb47 | 43816 | 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de> |
a3f708e5 | 43817 | |
43818 | * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir) | |
43819 | be created if necessary. | |
43820 | (ada.install-common): Let $(DESTDIR)$(bindir) be created | |
43821 | if necessary. Remove erroneous and redundant gnatchop | |
43822 | installation commands. Test for gnatdll before attempting | |
43823 | to install it. | |
43824 | (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr, | |
43825 | and gnatdll from all plausible locations. | |
43826 | ||
c1771f2c | 43827 | 2003-02-01 Richard Sandiford <rsandifo@redhat.com> |
43828 | ||
43829 | * utils2.c (build_unary_op): Don't check flag_volatile. | |
43830 | * gnat_ug.texi: Remove -fvolatile from example. | |
43831 | * gnat_ug_vxw.texi: Likewise. | |
43832 | ||
8a67bb47 | 43833 | 2003-01-29 Laurent Guerby <guerby@acm.org> |
86df24a7 | 43834 | |
295e387a | 43835 | PR ada/8344 |
43836 | * final.c: rename to adafinal.c to avoid file name conflicts with gcc file. | |
43837 | * Makefile.in: match previous change. | |
43838 | * Make-lang.in: match previous change. | |
86df24a7 | 43839 | |
8a67bb47 | 43840 | 2003-01-29 Joel Sherrill <joel@OARcorp.com> |
a34263a1 | 43841 | |
43842 | * 5rosinte.ads: Add SIGXCPU. | |
43843 | * 5rtpopsp.adb: New file. | |
43844 | * Make-lang.in: Do not build gnatpsta and gnatpsys when cross. | |
43845 | * Makefile.in: Recognize more RTEMS targets and add the RTEMS | |
43846 | specific file 5rtpopsp.adb. | |
43847 | * adaint.h: Add include of <stdio.h> when target is RTEMS. This | |
43848 | is likely needed for all newlib targets. | |
43849 | * init.c: Add RTEMS specific version of __gnat_initialize(). | |
43850 | ||
09e210d6 | 43851 | 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
43852 | ||
43853 | * adaint.c, adaint.h, gmem.c, init.c: Update copyright year. | |
43854 | ||
4c7b1e38 | 43855 | 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
43856 | ||
43857 | * init.c (__gnat_error_handler): Make msg const. | |
43858 | ||
43859 | * gmem.c (convert_addresses): Move declaration ... | |
43860 | * adaint.h: ... here. | |
43861 | * adaint.c (convert_addresses): Adapt addrs type to match | |
43862 | prototype. | |
43863 | ||
43864 | * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format. | |
43865 | ||
fcc0efea | 43866 | 2003-01-24 Andreas Schwab <schwab@suse.de> |
43867 | ||
43868 | * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to | |
43869 | size_t to avoid warning. | |
43870 | ||
e11b48c4 | 43871 | 2003-01-21 Zack Weinberg <zack@codesourcery.com> |
43872 | ||
831f2afa | 43873 | * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c. |
e11b48c4 | 43874 | |
573aba85 | 43875 | 2003-01-09 Geoffrey Keating <geoffk@apple.com> |
43876 | ||
43877 | * gnat_rm.texi: Remove RCS version number. | |
43878 | ||
43879 | * ada-tree.h (union lang_tree_node): Add chain_next option. | |
43880 | ||
67e1d6ff | 43881 | 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de> |
43882 | ||
43883 | * Make-lang.in (ada.install-info, ada.install-common, | |
43884 | ada.uninstall): Prepend $(DESTDIR) to the destination | |
43885 | directory in all (un)installation commands. | |
43886 | * Makefile.in (install-gnatlib, install-rts): Ditto. | |
43887 | ||
372b1b1b | 43888 | 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk> |
43889 | ||
43890 | * gnat_rm.texi, gnat_ug.texi: Use @copying. | |
43891 | * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi, | |
43892 | gnat_ug_wnt.texi: Regenerate. | |
43893 | ||
3aedf6d6 | 43894 | 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk> |
43895 | ||
43896 | * gnat_rm.texi: Include gcc-common.texi. Use GCC version number | |
43897 | only. | |
43898 | * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info, | |
43899 | $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info, | |
43900 | $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info, | |
43901 | ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi, | |
43902 | ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on | |
43903 | $(srcdir)/doc/include/gcc-common.texi. | |
43904 | ||
8a67bb47 | 43905 | 2002-12-15 Geert Bosch <bosch@gnat.com> |
fcd2b105 | 43906 | |
43907 | * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting | |
43908 | ||
8a67bb47 | 43909 | 2002-12-14 Geert Bosch <bosch@gnat.com> |
d94a811e | 43910 | |
d4c15061 | 43911 | PR ada/5690 |
805e22b2 | 43912 | * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional |
43913 | case of a body created for a Renaming_As_Body, on which | |
d4c15061 | 43914 | conformance checks are not performed. |
805e22b2 | 43915 | |
43916 | 2002-11-30 Zack Weinberg <zack@codesourcery.com> | |
43917 | ||
43918 | * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c, | |
43919 | utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when | |
43920 | not already included. | |
43921 | * Make-lang.in: Update dependencies. | |
d94a811e | 43922 | |
86c4bd35 | 43923 | 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org> |
43924 | * adaint.c (__gnat_tmp_name): Better, but good enough for now, | |
805e22b2 | 43925 | solution to buffer overflow bug on GNU/Linux. |
86c4bd35 | 43926 | |
c87be58c | 43927 | 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org> |
d4c15061 | 43928 | |
43929 | PR ada/5856 | |
43930 | PR ada/6919 | |
c87be58c | 43931 | * bindgen.adb: Remove all references to Public_Version. |
43932 | * comperr.adb: Remove all references to Public_Version and | |
43933 | GNATPRO_Version; correct bug reporting instructions. | |
43934 | * comperr.ads: Change to match bug box. | |
43935 | * gnatvsn.ads: Remove all references to Public version and | |
43936 | GNATPRO version. | |
43937 | ||
bc4d331c | 43938 | 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org> |
d4c15061 | 43939 | |
b9824c82 | 43940 | PR ada/6919 |
43941 | * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on | |
43942 | GNU/Linux. | |
43943 | ||
bc4d331c | 43944 | PR ada/6558 |
43945 | * config-lang.in: Remove diff_excludes. | |
43946 | ||
efa9ae36 | 43947 | 2002-11-05 Graham Stott <graham.stott@btinternet.com> |
d4c15061 | 43948 | |
efa9ae36 | 43949 | PR ada/8358 |
43950 | * trans.c (gnu_pending_elaboration_lists): New GC root. | |
805e22b2 | 43951 | (build_unit_elab): Use.. |
efa9ae36 | 43952 | |
8a67bb47 | 43953 | 2002-10-30 Geert Bosch <bosch@gnat.com> |
d4c15061 | 43954 | |
3b9c8c09 | 43955 | PR ada/6558 |
43956 | * misc.c : Include optabs.h | |
43957 | ||
43958 | * Make-lang.in (misc.o): Add dependency on optabs.h | |
43959 | ||
8a67bb47 | 43960 | 2002-10-29 Geert Bosch <bosch@gnat.com> |
d4c15061 | 43961 | |
805e22b2 | 43962 | PR ada/6558 |
b58e64ac | 43963 | * Make-lang.in (gnatbind): Depend on CONFIG_H |
43964 | ||
d4c1057a | 43965 | 2002-10-29 Geert bosch <bosch@gnat.com> |
d4c15061 | 43966 | |
805e22b2 | 43967 | PR ada/6558 |
43968 | * misc.c: Unrevert misc.c (1.13) | |
d4c1057a | 43969 | |
10acaf19 | 43970 | 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org> |
43971 | ||
43972 | * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update | |
43973 | maintainership comments. | |
43974 | ||
43975 | 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org> | |
d4c15061 | 43976 | |
83f07f11 | 43977 | PR ada/5904 |
805e22b2 | 43978 | * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb |
43979 | 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb | |
43980 | 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb | |
43981 | 7staprop.adb: Correct statements in comments about | |
83f07f11 | 43982 | maintainership of GNAT. |
43983 | ||
8f0c0af8 | 43984 | PR ada/5904 |
805e22b2 | 43985 | * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c |
43986 | gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads | |
43987 | osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb | |
43988 | osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads | |
43989 | s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb | |
43990 | s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb | |
43991 | sinput-d.ads switch-b.adb switch-b.ads switch-c.adb | |
8f0c0af8 | 43992 | switch-c.ads switch-m.adb switch-m.ads: Correct statements in |
43993 | comments about maintainership of GNAT. | |
43994 | ||
e78e8c8e | 43995 | PR ada/6919 (forward port of patch for PR ada/5904) |
805e22b2 | 43996 | * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads |
43997 | 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb | |
43998 | 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads | |
43999 | 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads | |
44000 | 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb | |
44001 | 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb | |
44002 | 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb | |
44003 | 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads | |
44004 | 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads | |
44005 | 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads | |
44006 | 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads | |
44007 | 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb | |
44008 | 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads | |
44009 | 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads | |
44010 | 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads | |
44011 | 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads | |
44012 | 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads | |
44013 | 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads | |
44014 | 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb | |
44015 | 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads | |
44016 | 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads | |
44017 | 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb | |
44018 | 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads | |
44019 | 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb | |
44020 | 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb | |
44021 | 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb | |
44022 | 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb | |
44023 | 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb | |
44024 | 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb | |
44025 | a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb | |
44026 | a-chahan.ads a-colien.adb a-colien.ads a-colire.adb | |
44027 | a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads | |
44028 | a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads | |
44029 | a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads | |
44030 | a-except.adb a-except.ads a-excpol.adb a-exctra.adb | |
44031 | a-exctra.ads a-filico.adb a-filico.ads a-finali.adb | |
44032 | a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads | |
44033 | a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb | |
44034 | a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads | |
44035 | a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb | |
44036 | a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb | |
44037 | a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb | |
44038 | a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads | |
44039 | a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads | |
44040 | a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads | |
44041 | a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads | |
44042 | a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb | |
44043 | a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb | |
44044 | a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads | |
44045 | a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads | |
44046 | a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads | |
44047 | a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads | |
44048 | a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads | |
44049 | a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads | |
44050 | a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads | |
44051 | a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads | |
44052 | a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads | |
44053 | a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads | |
44054 | a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads | |
44055 | a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb | |
44056 | a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads | |
44057 | a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads | |
44058 | a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads | |
44059 | a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads | |
44060 | a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads | |
44061 | a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads | |
44062 | a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb | |
44063 | a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h | |
44064 | adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads | |
44065 | alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb | |
44066 | back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads | |
44067 | binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb | |
44068 | bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads | |
44069 | ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads | |
44070 | csets.adb csets.ads csinfo.adb cstand.adb cstand.ads | |
44071 | cstreams.c cuintp.c debug.adb debug.ads debug_a.adb | |
44072 | debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c | |
44073 | einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h | |
44074 | errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c | |
44075 | exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads | |
44076 | exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb | |
44077 | exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads | |
44078 | exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb | |
44079 | exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads | |
44080 | exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb | |
44081 | exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb | |
44082 | exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb | |
44083 | exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb | |
44084 | exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb | |
44085 | exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb | |
44086 | exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads | |
44087 | exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h | |
44088 | final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads | |
44089 | fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb | |
44090 | freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb | |
44091 | g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads | |
44092 | g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h | |
44093 | gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb | |
44094 | gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb | |
44095 | gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb | |
44096 | gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads | |
44097 | gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads | |
44098 | gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads | |
44099 | i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb | |
44100 | i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads | |
44101 | i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads | |
44102 | i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads | |
44103 | impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c | |
44104 | itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h | |
44105 | lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb | |
44106 | lib-load.ads lib-sort.adb lib-util.adb lib-util.ads | |
44107 | lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb | |
44108 | lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb | |
44109 | makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c | |
44110 | namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h | |
44111 | nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb | |
44112 | osint.ads output.adb output.ads par-ch10.adb par-ch11.adb | |
44113 | par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb | |
44114 | par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb | |
44115 | par-endh.adb par-labl.adb par-load.adb par-prag.adb | |
44116 | par-sync.adb par-tchk.adb par-util.adb par.adb par.ads | |
44117 | prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb | |
44118 | prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads | |
44119 | prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads | |
44120 | prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads | |
44121 | prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads | |
44122 | prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h | |
44123 | repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads | |
44124 | rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads | |
44125 | s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads | |
44126 | s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb | |
44127 | s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads | |
44128 | s-direio.adb s-direio.ads s-except.ads s-exctab.adb | |
44129 | s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads | |
44130 | s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads | |
44131 | s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads | |
44132 | s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads | |
44133 | s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads | |
44134 | s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads | |
44135 | s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb | |
44136 | s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads | |
44137 | s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads | |
44138 | s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads | |
44139 | s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb | |
44140 | s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb | |
44141 | s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb | |
44142 | s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb | |
44143 | s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb | |
44144 | s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb | |
44145 | s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb | |
44146 | s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb | |
44147 | s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads | |
44148 | s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb | |
44149 | s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads | |
44150 | s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads | |
44151 | s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads | |
44152 | s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads | |
44153 | s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads | |
44154 | s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads | |
44155 | s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads | |
44156 | s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads | |
44157 | s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads | |
44158 | s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads | |
44159 | s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads | |
44160 | s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads | |
44161 | s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads | |
44162 | s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads | |
44163 | s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads | |
44164 | s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads | |
44165 | s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads | |
44166 | s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads | |
44167 | s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads | |
44168 | s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads | |
44169 | s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads | |
44170 | s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads | |
44171 | s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads | |
44172 | s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads | |
44173 | s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads | |
44174 | s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads | |
44175 | s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads | |
44176 | s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads | |
44177 | s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads | |
44178 | s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads | |
44179 | s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads | |
44180 | s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads | |
44181 | s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads | |
44182 | s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb | |
44183 | s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb | |
44184 | s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb | |
44185 | s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb | |
44186 | s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb | |
44187 | s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb | |
44188 | s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads | |
44189 | s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads | |
44190 | s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads | |
44191 | s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads | |
44192 | s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads | |
44193 | s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads | |
44194 | s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads | |
44195 | s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads | |
44196 | s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads | |
44197 | s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads | |
44198 | s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads | |
44199 | s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads | |
44200 | s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb | |
44201 | s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb | |
44202 | s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb | |
44203 | s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb | |
44204 | s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb | |
44205 | s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb | |
44206 | s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads | |
44207 | scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb | |
44208 | sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads | |
44209 | sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb | |
44210 | sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb | |
44211 | sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads | |
44212 | sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb | |
44213 | sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads | |
44214 | sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb | |
44215 | sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb | |
44216 | sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb | |
44217 | sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb | |
44218 | sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb | |
44219 | sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads | |
44220 | sem_type.adb sem_type.ads sem_util.adb sem_util.ads | |
44221 | sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads | |
44222 | sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb | |
44223 | sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb | |
44224 | sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads | |
44225 | snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb | |
44226 | stringt.ads stringt.h style.adb style.ads stylesw.adb | |
44227 | stylesw.ads switch.adb switch.ads sysdep.c system.ads | |
44228 | table.adb table.ads targparm.adb targparm.ads targtyps.c | |
44229 | tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads | |
44230 | tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb | |
44231 | treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads | |
44232 | types.adb types.ads types.h uintp.adb uintp.ads uintp.h | |
44233 | uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb | |
44234 | usage.ads utils.c utils2.c validsw.adb validsw.ads | |
44235 | widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb | |
44236 | xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb | |
e78e8c8e | 44237 | xtreeprs.adb: Correct statements in comments about maintainership |
44238 | of GNAT. | |
44239 | ||
0aeec26c | 44240 | 2002-09-23 Zack Weinberg <zack@codesourcery.com> |
44241 | ||
44242 | * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o. | |
44243 | * Makefile.in (TOOLS_LIBS): Add ../../version.o. | |
44244 | * gnatvsn.ads: Gnat_Version_String is now a function. | |
44245 | * gnatvsn.adb: New file. When asked for Gnat_Version_String, | |
44246 | copy the C version_string into a String and return it. | |
44247 | * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb, | |
44248 | gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb: | |
44249 | Remove pragma Ident (Gnat_Version_String). If this was the | |
44250 | sole use of package Gnatvsn, remove the with statement too. | |
44251 | * gnat1drv.adb: Tweak -gnatv output. | |
44252 | ||
bd58682f | 44253 | 2002-09-17 Richard Henderson <rth@redhat.com> |
44254 | ||
44255 | * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP. | |
44256 | * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN. | |
44257 | * config/mips/mips.md (fixuns_truncdfsi2): Likewise. | |
44258 | (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise. | |
44259 | * config/m68k/m68k.c (floating_exact_log2): Use real_exponent | |
44260 | and real_2expN instead of a loop. | |
44261 | * doc/tm.texi (REAL_VALUE_LDEXP): Remove. | |
44262 | (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove. | |
44263 | ||
8a67bb47 | 44264 | 2002-08-25 Andre Leis <a.leis@gmx.net> |
44265 | David Billinghurst <David.Billinghurst@riotinto.com> | |
fbb76a77 | 44266 | |
e0bc630f | 44267 | * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin |
fbb76a77 | 44268 | |
32807ee5 | 44269 | 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
44270 | ||
44271 | * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS). | |
44272 | Remove $(CONFIG_H) dependency. | |
44273 | ||
d5a37d75 | 44274 | 2002-08-08 Nathan Sidwell <nathan@codesourcery.com> |
44275 | ||
44276 | * ada/Make-lang.in (ada.mostlyclean): Remove coverage files. | |
44277 | ||
9591cb7b | 44278 | 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
44279 | ||
44280 | * adadecode.c (ada_demangle): Use xstrdup in lieu of | |
44281 | xmalloc/strcpy. | |
44282 | * misc.c (gnat_decode_option): Likewise. | |
44283 | ||
c0eb8726 | 44284 | 2002-07-15 Florian Weimer <fw@deneb.enyo.de> |
44285 | ||
44286 | * make.adb (Add_Switch): Make Generic_Position a procedure. The | |
44287 | function approach did not work well because of a side effect (the | |
44288 | function call could reallocate the table which was being indexed | |
44289 | using its result). Fixes ada/4851. [RESURRECTED] | |
44290 | ||
a06abcfb | 44291 | 2002-07-01 Roger Sayle <roger@eyesopen.com> |
44292 | ||
44293 | * ada/utils.c (builtin_function): Accept an additional parameter. | |
44294 | ||
69c5b8c6 | 44295 | 2002-06-28 Andreas Jaeger <aj@suse.de> |
44296 | ||
44297 | PR ada/7144 | |
44298 | * Makefile.in: Fix typo in comment, patch by Adrian Knoth | |
44299 | <adi@thur.de>. | |
44300 | ||
89dc5e05 | 44301 | 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
44302 | ||
44303 | * Makefile.in (SHELL): Set to @SHELL@. | |
44304 | ||
0480d780 | 44305 | 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
44306 | ||
44307 | * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit | |
44308 | array size calculation. | |
44309 | ||
a2dd943a | 44310 | 2002-06-04 Andreas Jaeger <aj@suse.de> |
44311 | ||
44312 | * Make-lang.in (gnatbind): Readd rule that has been lost in last | |
44313 | patch. | |
44314 | ||
1f3233d1 | 44315 | 2002-06-03 Geoffrey Keating <geoffk@redhat.com> |
44316 | ||
44317 | Merge from pch-branch: | |
44318 | ||
44319 | * config-lang.in (gtfiles): Add ada-tree.h. | |
44320 | * ada-tree.h (SET_TYPE_CI_CO_LIST): New. | |
44321 | (SET_TYPE_MODULUS): New. | |
44322 | (SET_TYPE_INDEX): New. | |
44323 | (SET_TYPE_DIGITS_VALUE): New. | |
44324 | (SET_TYPE_RM_SIZE): New. | |
44325 | (SET_TYPE_UNCONSTRAINED_ARRAY): New. | |
44326 | (SET_TYPE_ADA_SIZE): New. | |
44327 | (SET_TYPE_ACTUAL_BOUNDS): New. | |
44328 | (SET_DECL_CONST_CORRESPONDING_VAR): New. | |
44329 | (SET_DECL_ORIGINAL_FIELD): New. | |
44330 | (TREE_LOOP_ID): Correct typo. | |
44331 | * decl.c: Use new macros. | |
44332 | * utils.c: Include debug.h, use new macros. | |
a2dd943a | 44333 | * utils2.c: Use new macros. |
1f3233d1 | 44334 | |
44335 | * ada-tree.h: Update all macros for new tree description. | |
44336 | (struct tree_loop_id): New. | |
44337 | (union lang_tree_node): New. | |
44338 | (struct lang_decl): New. | |
44339 | (struct lang_type): New. | |
44340 | * misc.c (gnat_mark_tree): Delete. | |
44341 | (LANG_HOOKS_MARK_TREE): Delete. | |
44342 | * trans.c (tree_transform): No longer any need to cast | |
44343 | for TREE_LOOP_ID. | |
44344 | ||
44345 | * utils.c (struct language_function): New dummy structure. | |
44346 | ||
44347 | * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir. | |
44348 | (misc.o): Likewise. | |
44349 | (utils.o): Likewise; also gtype-ada.h. | |
44350 | * Make-lang.in (gnat1): Add dependency on s-gtype. | |
44351 | (gnatbind): Add dependency on $(CONFIG_H). | |
44352 | * utils.c: Correct last #include. | |
44353 | (stuct e_stack): Remove unnecessary 'static'. | |
44354 | (mark_e_stack): Remove unused prototype. | |
44355 | ||
44356 | * scn-nlit.adb: Remove whitespace after version number to | |
44357 | keep lines under 80 chars. | |
44358 | * snames.adb: Likewise. | |
44359 | * treepr.ads: Likewise. | |
a2dd943a | 44360 | |
1f3233d1 | 44361 | * Makefile.in (decl.o): Include gt-ada-<filename>.h. |
44362 | (misc.o): Likewise. | |
44363 | (utils.o): Include gt-ada-<filename>.h and gtype-ada.h. | |
44364 | * config-lang.in (gtfiles): New. | |
44365 | * decl.c: Use gengtype for roots. | |
44366 | * gigi.h: Use gengtype for roots. | |
44367 | * trans.c: Use gengtype for roots. | |
44368 | * utils.c: Use gengtype for roots, marking. Include gtype-ada.h. | |
44369 | ||
c003992a | 44370 | 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com> |
44371 | ||
44372 | * misc.c (gnat_init): Adjust setting of internal_error_function. | |
44373 | ||
bc09eb06 | 44374 | 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk> |
44375 | ||
44376 | * gnat_ug.texi: Use @ifnottex instead of @ifinfo. | |
44377 | * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi, | |
44378 | gnat_ug_wnt.texi: Regenerate. | |
44379 | ||
8896af58 | 44380 | 2002-05-31 Florian Weimer <fw@deneb.enyo.de> |
44381 | ||
7d66afa0 | 44382 | * 5ntaprop.adb (with System.OS_Primitives): Remove. |
44383 | ||
e633acdc | 44384 | * cstreams.c (max_path_len): Move from here ... |
44385 | * adaint.c (__gnat_max_path_len): ... to here. | |
44386 | * adaint.c (__gnat_max_path_len): Declare. | |
44387 | * g-dirope.adb (Max_Path): Adjust. | |
44388 | * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust. | |
a2dd943a | 44389 | * i-cstrea.ads (max_path_len): Adjust. |
e633acdc | 44390 | * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust. |
44391 | * xr_tabls.adb (Dir_Name.Max_Path: Adjust. | |
44392 | ||
8896af58 | 44393 | * Makefile.in, Make-lang.in: Documentation is now built in |
44394 | Make-lang.in. Store Info and generated Texinfo files in the | |
44395 | source directory. | |
44396 | * gnat_ug.texi: Remove CVS keywords, correct version number. | |
44397 | Set file name correctly. | |
44398 | ||
44399 | * gnat_ug_*.texi: Add. | |
44400 | * .cvsignore: Ignore generated Texinfo files. | |
44401 | ||
a4849352 | 44402 | 2002-05-30 Zack Weinberg <zack@codesourcery.com> |
44403 | ||
44404 | * ada.h: Add MI guard macro. | |
44405 | (SUBTYPE): Define constants with an anonymous enum, not static | |
44406 | const variables. | |
44407 | (IN): Cast constants to appropriate type before use. | |
44408 | ||
73b85c37 | 44409 | 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk> |
44410 | ||
44411 | * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526 | |
44412 | (experimental)". | |
44413 | ||
0ba0ef70 | 44414 | 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
44415 | ||
44416 | * Make-lang.in (CP, ECHO): Copy from Makefile.in. | |
44417 | (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise. | |
44418 | (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise. | |
44419 | (ALL_ADA_CFLAGS): Likewise. | |
44420 | (ADA_INCLUDES): Likewise. | |
44421 | Adapt for new working dir. | |
44422 | (GNATBIND): Use Makefile.in version. | |
44423 | (.SUFFIXES): Copy from Makefile.in. | |
44424 | (ada-warn): Define. | |
44425 | (.adb.o, .ads.o): Copy from Makefile.in. | |
44426 | Added $(OUTPUT_OPTION). | |
44427 | (GNAT1_C_OBJS): Moved from Makefile.in. | |
44428 | Prefix with ada subdir. | |
44429 | (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise. | |
44430 | (EXTRA_GNAT1_OBJS): Moved from Makefile.in. | |
44431 | Adapt for new working dir. | |
44432 | (EXTRA_GNATBIND_OBJS): Likewise. | |
44433 | (ADA_BACKEND): Moved from Makefile.in. | |
44434 | Renamed to avoid conflict with global BACKEND. | |
44435 | Use that one. | |
44436 | (TARGET_ADA_SRCS): Moved from Makefile.in. | |
44437 | (gnat1$(exeext)): Replaced recursive rule with Makefile.in version. | |
44438 | Use ADA_BACKEND. | |
44439 | (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version. | |
44440 | (ada_extra_files): Moved from Makefile.in. | |
44441 | Prefix with ada subdir. | |
44442 | (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise. | |
44443 | (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise. | |
44444 | (ada/nmake.ads): Likewise. | |
44445 | (update-sources): Moved from Makefile.in. | |
44446 | Prefix with ada subdir. | |
44447 | (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise. | |
44448 | (ADA_TREE_H): Likewise. | |
44449 | (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise. | |
44450 | (ada/memtrack.o): Likewise. | |
44451 | (ada/adadecode.o): Likewise. | |
44452 | Update dependencies. | |
44453 | (ada/adaint.o): New. | |
44454 | (ada/argv.o): Moved from Makefile.in. | |
44455 | Prefix with ada subdir. | |
a2dd943a | 44456 | Update dependencies. |
0ba0ef70 | 44457 | (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise. |
44458 | (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise. | |
44459 | (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in. | |
44460 | Prefix with ada subdir. | |
44461 | (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise. | |
44462 | (GNAT DEPENDENCIES): Regenerate. | |
44463 | * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by | |
44464 | toplevel Makefile.in. | |
44465 | (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed. | |
44466 | (TARGET_ADA_SRCS): Removed. | |
44467 | (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise. | |
44468 | (GNATBIND_OBJS): Likewise. | |
44469 | (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here. | |
44470 | (BACKEND): Removed. | |
44471 | (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise. | |
44472 | (TREE_H): Likewise. | |
44473 | (ada_extra_files): Likewise. | |
44474 | (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise. | |
44475 | (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise. | |
44476 | (update-sources): Likewise. | |
44477 | (sdefault.adb, stamp-sdefault, sdefault.o): Likewise | |
44478 | (ADA_TREE_H): Likewise. | |
44479 | (adadecoce.o): Likewise. | |
44480 | (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise. | |
44481 | (GNAT DEPENDENCIES): Likewise. | |
44482 | ||
3354d061 | 44483 | 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
44484 | ||
44485 | * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd. | |
44486 | * Makefile.in: Likewise. | |
44487 | ||
33618e55 | 44488 | 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
44489 | ||
44490 | * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools): | |
44491 | Restore $(CONFIG_H) and prefix.o dependencies. | |
44492 | (ada.stage[1-4]): Depend on stage?-start. | |
44493 | ||
44494 | * Makefile.in (b_gnatb.c): Depend on interfac.o. | |
44495 | ||
2258e6ff | 44496 | 2002-05-02 Jim Wilson <wilson@redhat.com> |
44497 | ||
44498 | * utils.c (finish_record_type): Change record_size to record_type. | |
44499 | ||
4cba7138 | 44500 | 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca> |
44501 | ||
44502 | * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides. | |
44503 | (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in | |
44504 | ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC. | |
a2dd943a | 44505 | |
1c542e4c | 44506 | 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk> |
44507 | ||
44508 | * misc.c (gnat_parse_file): Update. | |
44509 | ||
f8e93a2e | 44510 | 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk> |
44511 | ||
44512 | * misc.c (gnat_init): Don't set lang_attribute_common. | |
44513 | ||
266e6059 | 44514 | 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk> |
44515 | ||
44516 | * gnat_rm.texi: Use @ifnottex instead of @ifinfo. | |
44517 | ||
8710821d | 44518 | 2002-04-21 Florian Weimer <fw@deneb.enyo.de> |
44519 | ||
0aeec26c | 44520 | * gnat_ug.texi: New file. |
2f4cf45c | 44521 | |
8710821d | 44522 | * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi |
44523 | instead of gfdl.texi | |
44524 | ||
44525 | * xgnatug.adb, ug_words: New files. | |
44526 | ||
44527 | * Makefile.in (doc, dvi): New targets. Build gnat_ug_*, | |
0aeec26c | 44528 | gnat_rm and gnat-style manuals. |
8710821d | 44529 | |
1dd25100 | 44530 | 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk> |
44531 | ||
44532 | * gigi.h (incomplete_type_error): Remove. | |
44533 | * utils.c (incomplete_type_error): Remove. | |
44534 | ||
7e83d989 | 44535 | 2002-04-16 Mark Mitchell <mark@codesourcery.com> |
44536 | ||
44537 | * trans.c (tree_transform): Add has_scope argument to | |
44538 | expand_start_stmt_expr. | |
44539 | ||
aff9e656 | 44540 | 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk> |
44541 | ||
44542 | * gigi.h (truthvalue_conversion): Rename. | |
44543 | * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine. | |
44544 | * trans.c (tree_transform): Update. | |
44545 | * utils2.c (truthvalue_conversion): Rename, update. | |
44546 | (build_binary_op, build_unary_op): Update. | |
44547 | ||
4973c3be | 44548 | 2002-04-04 Laurent Guerby <guerby@acm.org> |
44549 | ||
44550 | * make.adb: Implement -margs, remove restriction about file name placement. | |
44551 | * makeusg.adb: Documentation update. | |
44552 | * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir). | |
44553 | * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line. | |
44554 | ||
26afc61d | 44555 | 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk> |
44556 | ||
44557 | * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME. | |
44558 | (builtin_function): Similarly. | |
44559 | ||
9b86eec0 | 44560 | 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk> |
44561 | ||
44562 | * decl.c (gnat_to_gnu_entity): Update. | |
44563 | * gigi.h (mark_addressable): Rename. | |
44564 | * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine. | |
44565 | * trans.c (tree_transform): Update. | |
44566 | * utils.c (create_var_decl): Update. | |
44567 | * util2.c (build_binary_op, build_unary_op, | |
44568 | fill_vms_descriptor): Update. | |
44569 | (mark_addressable): Rename, update. | |
44570 | ||
4070745f | 44571 | 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk> |
44572 | ||
44573 | * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type): | |
44574 | Rename. | |
44575 | * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE, | |
44576 | LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New. | |
44577 | * trans.c (tree_transform, convert_with_check): Update. | |
44578 | * utils.c (unsigned_type, signed_type, signed_or_unsigned_type): | |
44579 | Rename. | |
44580 | ||
ee23fd7b | 44581 | 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk> |
44582 | ||
44583 | * gigi.h (finish_incomplete_decl): Rename. | |
44584 | * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine. | |
44585 | * utils.c (gnat_init_decl_processing): Don't set hook. | |
44586 | (finish_incomplete_decl): Rename. | |
44587 | ||
62f25347 | 44588 | 2002-03-29 Andreas Schwab <schwab@suse.de> |
44589 | ||
44590 | * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts | |
44591 | directory. | |
44592 | ||
8a67bb47 | 44593 | 2001-03-28 Robert Dewar <dewar@gnat.com> |
226494a3 | 44594 | |
44595 | * checks.ads: | |
44596 | (Remove_Checks): New procedure | |
44597 | ||
44598 | * checks.adb: | |
44599 | (Remove_Checks): New procedure | |
44600 | ||
44601 | * exp_util.adb: | |
44602 | Use new Duplicate_Subexpr functions | |
44603 | (Duplicate_Subexpr_No_Checks): New procedure | |
44604 | (Duplicate_Subexpr_No_Checks_Orig): New procedure | |
44605 | (Duplicate_Subexpr): Restore original form (checks duplicated) | |
44606 | (Duplicate_Subexpr): Call Remove_Checks | |
44607 | ||
26afc61d | 44608 | * exp_util.ads: |
226494a3 | 44609 | (Duplicate_Subexpr_No_Checks): New procedure |
44610 | (Duplicate_Subexpr_No_Checks_Orig): New procedure | |
44611 | Add 2002 to copyright notice | |
44612 | ||
44613 | * sem_util.adb: Use new Duplicate_Subexpr functions | |
44614 | ||
26afc61d | 44615 | * sem_eval.adb: |
226494a3 | 44616 | (Eval_Indexed_Component): This is the place to call |
44617 | Constant_Array_Ref and to replace the value. We simply merge | |
44618 | the code of this function in here, since it is now no longer | |
44619 | used elsewhere. This fixes the problem of the back end not | |
44620 | realizing we were clever enough to see that this was | |
44621 | constant. | |
44622 | (Expr_Val): Remove call to Constant_Array_Ref | |
44623 | (Expr_Rep_Val): Remove call to Constant_Array_Ref | |
44624 | Minor reformatting | |
44625 | (Constant_Array_Ref): Deal with string literals (patch | |
44626 | suggested by Zack Weinberg on the gcc list) | |
44627 | ||
8a67bb47 | 44628 | 2001-03-28 Ed Schonberg <schonber@gnat.com> |
226494a3 | 44629 | |
26afc61d | 44630 | * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig => |
226494a3 | 44631 | Duplicate_Subexpr_Move_Checks. |
44632 | ||
26afc61d | 44633 | * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig => |
226494a3 | 44634 | Duplicate_Subexpr_Move_Checks. |
44635 | ||
26afc61d | 44636 | * sem_eval.adb: (Constant_Array_Ref): Verify that constant |
44637 | value of array exists before retrieving it (it may a private | |
226494a3 | 44638 | protected component in a function). |
44639 | ||
8a67bb47 | 44640 | 2002-03-28 Geert Bosch <bosch@gnat.com> |
fcb1a956 | 44641 | |
44642 | * prj-pp.adb : New file. | |
44643 | ||
44644 | * prj-pp.ads : New file. | |
44645 | ||
c50773a3 | 44646 | 2002-03-28 Andreas Jaeger <aj@suse.de> |
44647 | ||
44648 | * Makefile.in (stamp-sdefault): Fix path for Makefile. | |
44649 | ||
91618e6b | 44650 | 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk> |
44651 | ||
44652 | * misc.c (gnat_expand_expr): Move prototype. | |
44653 | ||
26ca6c20 | 44654 | 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk> |
44655 | ||
44656 | * misc.c (insert_default_attributes): Remove. | |
44657 | ||
b467ecc1 | 44658 | 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk> |
44659 | ||
44660 | * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine. | |
44661 | (gnat_init): Don't set hook. | |
44662 | (gnat_expand_expr): Fix prototype. | |
44663 | ||
914e1fee | 44664 | 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk> |
44665 | ||
44666 | * misc.c (ggc_p): Remove. | |
44667 | ||
ce3319d9 | 44668 | 2002-03-27 Geert Bosch <bosch@gnat.com> |
44669 | ||
44670 | * prj-makr.ads, prj-makr.adb : New files. | |
44671 | ||
6d26a3ee | 44672 | 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk> |
44673 | ||
44674 | * misc.c (LANG_HOOKS_MARK_TREE): Redefine. | |
44675 | (lang_mark_tree): Make static, rename. | |
44676 | ||
04745efb | 44677 | 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk> |
44678 | ||
44679 | * misc.c (maybe_build_cleanup): Remove. | |
44680 | ||
90491e21 | 44681 | 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk> |
44682 | ||
44683 | * gigi.h (yyparse): Remove. | |
44684 | ||
31adbf10 | 44685 | 2002-03-23 Florian Weimer <fw@deneb.enyo.de> |
44686 | ||
8a67bb47 | 44687 | From Ben Brosgol <brosgol@gnat.com> |
26afc61d | 44688 | * gnat_rm.texi: Sync with ACT version. |
31adbf10 | 44689 | |
96554925 | 44690 | 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk> |
44691 | ||
44692 | * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine. | |
44693 | (gnat_init): Remove old hook. | |
44694 | ||
b78207a0 | 44695 | 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk> |
44696 | ||
44697 | * misc.c (LANG_HOOKS_PARSE_FILE): Redefine. | |
44698 | (yyparse): Rename gnat_parse_file. | |
44699 | ||
cd0ed284 | 44700 | 2002-03-14 Geoffrey Keating <geoffk@redhat.com> |
44701 | ||
44702 | Delete all lines containing "$Revision:". | |
44703 | * xeinfo.adb: Don't look for revision numbers. | |
44704 | * xnmake.adb: Likewise. | |
44705 | * xsinfo.adb: Likewise. | |
44706 | * xsnames.adb: Likewise. | |
44707 | * xtreeprs.adb: Likewise. | |
44708 | ||
ab1a776d | 44709 | 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
44710 | ||
44711 | * misc.c (gnat_tree_code_type, gnat_tree_code_length, | |
44712 | gnat_tree_code_name): Delete. | |
44713 | (tree_code_type, tree_code_length, tree_code_name): Define. | |
44714 | (gnat_init): Don't try to copy into the various tree_code | |
44715 | arrays. | |
44716 | ||
b65e027c | 44717 | 2002-03-11 Richard Henderson <rth@redhat.com> |
44718 | ||
44719 | * Makefile.in (.NOTPARALLEL): Add fake tag. | |
44720 | ||
b9e214e0 | 44721 | 2002-03-07 Geert Bosch <bosch@gnat.com> |
44722 | ||
26afc61d | 44723 | * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads, |
44724 | s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads, | |
44725 | switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, | |
b9e214e0 | 44726 | switch-m.adb, switch-m.ads : New files. |
44727 | ||
f15731c4 | 44728 | 2002-03-07 Geert Bosch <bosch@gnat.com> |
44729 | ||
44730 | * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads, | |
44731 | 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads, | |
44732 | 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads, | |
44733 | 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads, | |
44734 | 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb, | |
44735 | 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads, | |
44736 | 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, | |
44737 | 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, | |
44738 | 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb, | |
44739 | 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb, | |
44740 | 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads, | |
44741 | 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb, | |
44742 | 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads, | |
44743 | 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb, | |
44744 | 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb, | |
44745 | 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, | |
44746 | 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, | |
44747 | 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb, | |
44748 | 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb, | |
44749 | 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb, | |
44750 | 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb, | |
44751 | Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads, | |
44752 | a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb, | |
44753 | a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads, | |
44754 | a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb, | |
44755 | a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb, | |
44756 | a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb, | |
44757 | a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb, | |
44758 | a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h, | |
44759 | adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb, | |
44760 | atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb, | |
44761 | bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb, | |
44762 | csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c, | |
44763 | einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads, | |
44764 | eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb, | |
44765 | exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, | |
44766 | exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads, | |
44767 | exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads, | |
44768 | exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb, | |
44769 | exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads, | |
44770 | expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb, | |
44771 | freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb, | |
44772 | g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads, | |
44773 | g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb, | |
44774 | g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb, | |
44775 | g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb, | |
44776 | g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb, | |
44777 | g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c, | |
44778 | gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb, | |
44779 | gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads, | |
44780 | gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb, | |
44781 | i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads, | |
44782 | impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb, | |
44783 | lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb, | |
44784 | lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb, | |
44785 | memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads, | |
44786 | mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb, | |
44787 | nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads, | |
44788 | output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb, | |
44789 | par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb, | |
44790 | prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb, | |
44791 | prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb, | |
44792 | prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads, | |
44793 | rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb, | |
44794 | s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads, | |
44795 | s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb, | |
44796 | s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb, | |
44797 | s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb, | |
44798 | s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb, | |
44799 | s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb, | |
44800 | s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, | |
44801 | s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads, | |
44802 | s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb, | |
44803 | s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads, | |
44804 | s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads, | |
44805 | s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb, | |
44806 | s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, | |
44807 | s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads, | |
44808 | s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb, | |
44809 | sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb, | |
44810 | sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, | |
44811 | sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads, | |
44812 | sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb, | |
44813 | sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb, | |
44814 | sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb, | |
44815 | sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb, | |
44816 | sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb, | |
44817 | sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb, | |
44818 | sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads, | |
44819 | snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads, | |
44820 | stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads, | |
44821 | table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb, | |
44822 | tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb, | |
44823 | treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads, | |
44824 | types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb, | |
44825 | utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb, | |
44826 | xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes. | |
44827 | ||
44828 | * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads, | |
44829 | g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads, | |
44830 | mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads, | |
44831 | osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files | |
44832 | ||
44833 | * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb, | |
44834 | 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed | |
44835 | ||
44836 | * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed | |
44837 | to mdll-fil.ad[bs] and mdll-util.ad[bs] | |
44838 | ||
44839 | * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed | |
44840 | from mdllfile.ad[bs] and mdlltool.ad[bs] | |
44841 | ||
3585dac7 | 44842 | 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
44843 | ||
44844 | * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in | |
44845 | lieu of explicit sizeof/sizeof. | |
44846 | ||
dbc42b78 | 44847 | 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk> |
44848 | ||
44849 | * misc.c (copy_lang_decl): Remove. | |
44850 | ||
455730ef | 44851 | 2002-02-27 Zack Weinberg <zack@codesourcery.com> |
44852 | ||
44853 | * misc.c: Delete traditional-mode-related code copied from the | |
44854 | C front end but not used, or used only to permit the compiler | |
44855 | to link. | |
44856 | ||
033f2bef | 44857 | 2002-02-07 Richard Henderson <rth@redhat.com> |
44858 | ||
44859 | * adaint.c (__gnat_to_gm_time): First arg is int, not time_t. | |
44860 | * adaint.h (__gnat_to_gm_time): Update prototype. | |
44861 | ||
b193f2d5 | 44862 | 2002-01-30 Richard Henderson <rth@redhat.com> |
cab14df7 | 44863 | |
44864 | * trans.c (tree_transform) [N_Loop_Statement]: Use | |
44865 | expand_exit_loop_top_cond. | |
44866 | ||
3ae29d01 | 44867 | 2001-12-23 Richard Henderson <rth@redhat.com> |
44868 | ||
44869 | * utils.c (end_subprog_body): Push GC context around | |
44870 | rest_of_compilation for nested functions. | |
44871 | ||
a9a8096c | 44872 | 2001-12-23 Richard Henderson <rth@redhat.com> |
44873 | ||
44874 | * 5nosinte.ads: Get definition of "int" from Interfaces.C. | |
44875 | ||
00590f82 | 44876 | 2001-12-23 Florian Weimer <fw@deneb.enyo.de> |
44877 | ||
de7639ee | 44878 | * gnat-style.texi (Declarations and Types): Remove ancient style |
44879 | rule which was mandated by code generation issues. | |
26afc61d | 44880 | |
00590f82 | 44881 | * gnat-style.texi (header): Add @dircategory, @direntry. |
44882 | (title page): Remove date. | |
44883 | (general) Add @./@: where approriate, and two spaces after the | |
44884 | full stop at the end of a sentence. Use @samp markup when | |
44885 | referring concrete lexical entities (keywords, attribute names | |
44886 | etc.), and @syntax for ARM grammar elements. Use @r for English | |
44887 | text in comments. Use @emph for emphasis. Change "if-statements" | |
44888 | etc. to "if statements" (without @samp). Break long lines. Make | |
44889 | casing of section names consistent. | |
44890 | (Identifiers): Use @samp markup for variable names. | |
44891 | (Comments): Use @samp markup for comment characters. Line-end | |
44892 | comments may follow any Ada code, not just statements. Fix | |
44893 | misspelling of "Integer" as "integer". | |
44894 | (Loop statements): Do not use variable name "I", use "J". | |
44895 | (Subprogram Declarations): Document alignment. | |
44896 | (Subprogram Bodies, Block statements): Document empty line before | |
44897 | "begin". | |
44898 | ||
3c5d6ca1 | 44899 | 2001-12-22 Florian Weimer <fw@deneb.enyo.de> |
44900 | ||
44901 | * make.adb (Add_Switch): Make Generic_Position a procedure. The | |
44902 | function approach did not work well because of a side effect (the | |
44903 | function call could reallocate the table which was being indexed | |
44904 | using its result). Fixes ada/4851. | |
44905 | ||
8a67bb47 | 44906 | 2001-12-19 Robert Dewar <dewar@gnat.com> |
4c2698ed | 44907 | |
44908 | * bindgen.adb: Minor reformatting | |
26afc61d | 44909 | |
4c2698ed | 44910 | * cstand.adb: Minor reformatting |
26afc61d | 44911 | |
4c2698ed | 44912 | * fmap.adb: Minor reformatting |
44913 | Change name from Add for Add_To_File_Map (Add is much too generic) | |
44914 | Change Path_Name_Of to Mapped_Path_Name | |
44915 | Change File_Name_Of to Mapped_File_Name | |
44916 | Fix copyright dates in header | |
26afc61d | 44917 | |
4c2698ed | 44918 | * fmap.ads: |
44919 | Change name from Add for Add_To_File_Map (Add is much too generic) | |
44920 | Change Path_Name_Of to Mapped_Path_Name | |
44921 | Change File_Name_Of to Mapped_File_Name | |
44922 | Fix copyright dates in header | |
26afc61d | 44923 | |
4c2698ed | 44924 | * fname-uf.adb: Minor reformatting. New names of stuff in Fmap. |
44925 | Add use clause for Fmap. | |
26afc61d | 44926 | |
4c2698ed | 44927 | * make.adb: Minor reformatting |
26afc61d | 44928 | |
4c2698ed | 44929 | * osint.adb: Minor reformatting. Change of names in Fmap. |
44930 | Add use clause for Fmap. | |
26afc61d | 44931 | |
4c2698ed | 44932 | * prj-env.adb: Minor reformatting |
26afc61d | 44933 | |
4c2698ed | 44934 | * prj-env.ads: Minor reformatting |
26afc61d | 44935 | |
f15731c4 | 44936 | * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if |
44937 | error found (there were odd exceptions to this general rule in | |
4c2698ed | 44938 | -gnatec/-gnatem processing) |
26afc61d | 44939 | |
8a67bb47 | 44940 | 2001-12-19 Olivier Hainque <hainque@gnat.com> |
4c2698ed | 44941 | |
f15731c4 | 44942 | * raise.c (__gnat_eh_personality): Exception handling personality |
44943 | routine for Ada. Still in rough state, inspired from the C++ version | |
4c2698ed | 44944 | and still containing a bunch of debugging artifacts. |
f15731c4 | 44945 | (parse_lsda_header, get_ttype_entry): Local (static) helpers, also |
4c2698ed | 44946 | inspired from the C++ library. |
26afc61d | 44947 | |
f15731c4 | 44948 | * raise.c (eh_personality): Add comments. Part of work for the GCC 3 |
4c2698ed | 44949 | exception handling integration. |
26afc61d | 44950 | |
8a67bb47 | 44951 | 2001-12-19 Arnaud Charlet <charlet@gnat.com> |
4c2698ed | 44952 | |
44953 | * Makefile.in: Remove use of 5smastop.adb which is obsolete. | |
44954 | (HIE_SOURCES): Add s-secsta.ad{s,b}. | |
44955 | (HIE_OBJS): Add s-fat*.o | |
f15731c4 | 44956 | (RAVEN_SOURCES): Remove files that are no longer required. Add |
4c2698ed | 44957 | interrupt handling files. |
44958 | (RAVEN_MOD): Removed, no longer needed. | |
26afc61d | 44959 | |
8a67bb47 | 44960 | 2001-12-19 Robert Dewar <dewar@gnat.com> |
4c2698ed | 44961 | |
44962 | * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always | |
44963 | Add 2001 to copyright date | |
26afc61d | 44964 | |
f15731c4 | 44965 | * g-regpat.adb: Change pragma Inline_Always to Inline. There is no |
4c2698ed | 44966 | need to force universal inlining for these cases. |
26afc61d | 44967 | |
8a67bb47 | 44968 | 2001-12-19 Arnaud Charlet <charlet@gnat.com> |
4c2698ed | 44969 | |
f15731c4 | 44970 | * s-taprob.adb: Minor clean ups so that this unit can be used in |
4c2698ed | 44971 | Ravenscar HI. |
26afc61d | 44972 | |
4c2698ed | 44973 | * exp_ch7.adb: Allow use of secondary stack in HI mode. |
44974 | Disallow it when pragma Restrictions (No_Secondary_Stack) is specified. | |
26afc61d | 44975 | |
8a67bb47 | 44976 | 2001-12-19 Vincent Celier <celier@gnat.com> |
4c2698ed | 44977 | |
f15731c4 | 44978 | * prj-tree.ads (Project_Node_Record): Add comments for components |
4c2698ed | 44979 | Pkg_Id and Case_Insensitive. |
26afc61d | 44980 | |
8a67bb47 | 44981 | 2001-12-19 Pascal Obry <obry@gnat.com> |
4c2698ed | 44982 | |
44983 | * g-socket.adb: Minor reformatting. Found while reading code. | |
26afc61d | 44984 | |
8a67bb47 | 44985 | 2001-12-19 Robert Dewar <dewar@gnat.com> |
4c2698ed | 44986 | |
44987 | * prj-tree.ads: Minor reformatting | |
44988 | ||
9219ed16 | 44989 | 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk> |
44990 | ||
44991 | * config-lang.in (diff_excludes): Remove. | |
44992 | ||
8a67bb47 | 44993 | 2001-12-17 Ed Schonberg <schonber@gnat.com> |
e4bd5d4a | 44994 | |
f15731c4 | 44995 | * sem_res.adb (Resolve_Selected_Component): do not generate a |
44996 | discriminant check if the selected component is a component of | |
e4bd5d4a | 44997 | the argument of an initialization procedure. |
44998 | ||
f15731c4 | 44999 | * trans.c (tree_transform, case of arithmetic operators): If result |
45000 | type is private, the gnu_type is the base type of the full view, | |
e4bd5d4a | 45001 | given that the full view itself may be a subtype. |
26afc61d | 45002 | |
8a67bb47 | 45003 | 2001-12-17 Robert Dewar <dewar@gnat.com> |
e4bd5d4a | 45004 | |
45005 | * sem_res.adb: Minor reformatting | |
26afc61d | 45006 | |
f15731c4 | 45007 | * trans.c (tree_transform, case N_Real_Literal): Add missing third |
45008 | parameter in call to Machine (unknown horrible effects from this | |
e4bd5d4a | 45009 | omission). |
26afc61d | 45010 | |
e4bd5d4a | 45011 | * urealp.h: Add definition of Round_Even for call to Machine |
45012 | Add third parameter for Machine | |
26afc61d | 45013 | |
8a67bb47 | 45014 | 2001-12-17 Ed Schonberg <schonber@gnat.com> |
e4bd5d4a | 45015 | |
f15731c4 | 45016 | * sem_warn.adb (Check_One_Unit): Suppress warnings completely on |
e4bd5d4a | 45017 | predefined units in No_Run_Time mode. |
26afc61d | 45018 | |
8a67bb47 | 45019 | 2001-12-17 Richard Kenner <kenner@gnat.com> |
e4bd5d4a | 45020 | |
45021 | * misc.c (insn-codes.h): Now include. | |
26afc61d | 45022 | |
8a67bb47 | 45023 | 2001-12-17 Olivier Hainque <hainque@gnat.com> |
e4bd5d4a | 45024 | |
f15731c4 | 45025 | * a-except.adb: Preparation work for future integration of the GCC 3 |
e4bd5d4a | 45026 | exception handling mechanism |
45027 | (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines | |
45028 | to factorize previous code sequences and make them externally callable, | |
45029 | e.g. for the Ada personality routine when the GCC 3 mechanism is used. | |
45030 | (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler): | |
45031 | Use the new notification routines. | |
26afc61d | 45032 | |
8a67bb47 | 45033 | 2001-12-17 Emmanuel Briot <briot@gnat.com> |
e4bd5d4a | 45034 | |
45035 | * prj-tree.ads (First_Choice_Of): Document the when others case | |
26afc61d | 45036 | |
8a67bb47 | 45037 | 2001-12-17 Arnaud Charlet <charlet@gnat.com> |
e4bd5d4a | 45038 | |
f15731c4 | 45039 | * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in |
e4bd5d4a | 45040 | HI-E mode, in order to support Ravenscar profile properly. |
26afc61d | 45041 | |
f15731c4 | 45042 | * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E |
e4bd5d4a | 45043 | mode on 32 bits targets. |
26afc61d | 45044 | |
8a67bb47 | 45045 | 2001-12-17 Vincent Celier <celier@gnat.com> |
e4bd5d4a | 45046 | |
45047 | * fmap.adb: Initial version. | |
26afc61d | 45048 | |
e4bd5d4a | 45049 | * fmap.ads: Initial version. |
26afc61d | 45050 | |
e4bd5d4a | 45051 | * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped. |
45052 | If search is successfully done, add to mapping. | |
26afc61d | 45053 | |
e4bd5d4a | 45054 | * frontend.adb: Initialize the mapping if a -gnatem switch was used. |
26afc61d | 45055 | |
e4bd5d4a | 45056 | * make.adb: |
45057 | (Gnatmake): Add new local variable Mapping_File_Name. | |
45058 | Create mapping file when using project file(s). | |
45059 | Delete mapping file before exiting. | |
26afc61d | 45060 | |
e4bd5d4a | 45061 | * opt.ads (Mapping_File_Name): New variable |
26afc61d | 45062 | |
e4bd5d4a | 45063 | * osint.adb (Find_File): Use path name found in mapping, if any. |
26afc61d | 45064 | |
e4bd5d4a | 45065 | * prj-env.adb (Create_Mapping_File): New procedure |
26afc61d | 45066 | |
e4bd5d4a | 45067 | * prj-env.ads (Create_Mapping_File): New procedure. |
26afc61d | 45068 | |
f15731c4 | 45069 | * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem |
e4bd5d4a | 45070 | (Mapping_File) |
26afc61d | 45071 | |
e4bd5d4a | 45072 | * usage.adb: Add entry for new switch -gnatem. |
26afc61d | 45073 | |
e4bd5d4a | 45074 | * Makefile.in: Add dependencies for fmap.o. |
26afc61d | 45075 | |
8a67bb47 | 45076 | 2001-12-17 Ed Schonberg <schonber@gnat.com> |
e4bd5d4a | 45077 | |
f15731c4 | 45078 | * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit |
e4bd5d4a | 45079 | is a package instantiation rewritten as a package body. |
45080 | (Install_Withed_Unit): Undo previous change, now redundant. | |
26afc61d | 45081 | |
8a67bb47 | 45082 | 2001-12-17 Gary Dismuke <dismukes@gnat.com> |
e4bd5d4a | 45083 | |
45084 | * layout.adb: | |
45085 | (Compute_Length): Move conversion to Unsigned to callers. | |
45086 | (Get_Max_Size): Convert Len expression to Unsigned after calls to | |
45087 | Compute_Length and Determine_Range. | |
45088 | (Layout_Array_Type): Convert Len expression to Unsigned after calls to | |
45089 | Compute_Length and Determine_Range. | |
45090 | Above changes fix problem with length computation for supernull arrays | |
f15731c4 | 45091 | where Max (Len, 0) wasn't getting applied due to the Unsigned |
e4bd5d4a | 45092 | conversion used by Compute_Length. |
26afc61d | 45093 | |
8a67bb47 | 45094 | 2001-12-17 Arnaud Charlet <charlet@gnat.com> |
e4bd5d4a | 45095 | |
45096 | * rtsfind.ads: | |
45097 | (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and | |
45098 | System.Secondary_Stack. | |
45099 | (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar | |
45100 | in HI-E mode. | |
45101 | Remove unused entity RE_Exception_Data. | |
26afc61d | 45102 | |
e4bd5d4a | 45103 | * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode. |
26afc61d | 45104 | |
e4bd5d4a | 45105 | * rident.ads (No_Secondary_Stack): New restriction. |
45106 | ||
8a67bb47 | 45107 | 2001-12-17 Joel Brobecker <brobecke@gnat.com> |
1d7e0b5b | 45108 | |
f15731c4 | 45109 | * gnat_rm.texi: Fix minor typos. Found while reading the section |
1d7e0b5b | 45110 | regarding "Bit_Order Clauses" that was sent to a customer. |
45111 | Very interesting documentation! | |
26afc61d | 45112 | |
8a67bb47 | 45113 | 2001-12-17 Robert Dewar <dewar@gnat.com> |
1d7e0b5b | 45114 | |
f15731c4 | 45115 | * sem_case.adb (Choice_Image): Avoid creating improper character |
45116 | literal names by using the routine Set_Character_Literal_Name. This | |
1d7e0b5b | 45117 | fixes bombs in certain error message cases. |
26afc61d | 45118 | |
8a67bb47 | 45119 | 2001-12-17 Arnaud Charlet <charlet@gnat.com> |
1d7e0b5b | 45120 | |
45121 | * a-reatim.adb: Minor reformatting. | |
26afc61d | 45122 | |
8a67bb47 | 45123 | 2001-12-17 Ed Schonberg <schonber@gnat.com> |
1d7e0b5b | 45124 | |
f15731c4 | 45125 | * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the |
45126 | case where the formal is an extension of another formal in the current | |
1d7e0b5b | 45127 | unit or in a parent generic unit. |
26afc61d | 45128 | |
8a67bb47 | 45129 | 2001-12-17 Arnaud Charlet <charlet@gnat.com> |
1d7e0b5b | 45130 | |
f15731c4 | 45131 | * s-tposen.adb: Update comments. Minor reformatting. |
1d7e0b5b | 45132 | Minor code clean up. |
26afc61d | 45133 | |
1d7e0b5b | 45134 | * s-tarest.adb: Update comments. Minor code reorganization. |
26afc61d | 45135 | |
8a67bb47 | 45136 | 2001-12-17 Gary Dismukes <dismukes@gnat.com> |
1d7e0b5b | 45137 | |
f15731c4 | 45138 | * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag |
1d7e0b5b | 45139 | when Java_VM. |
26afc61d | 45140 | |
8a67bb47 | 45141 | 2001-12-17 Robert Dewa <dewar@gnat.com> |
1d7e0b5b | 45142 | |
45143 | * exp_attr.adb: Minor reformatting | |
26afc61d | 45144 | |
8a67bb47 | 45145 | 2001-12-17 Ed Schonberg <schonber@gnat.com> |
1d7e0b5b | 45146 | |
f15731c4 | 45147 | * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle |
1d7e0b5b | 45148 | derivations nested within a child unit: verify that the parent |
45149 | type is declared in an outer scope. | |
26afc61d | 45150 | |
8a67bb47 | 45151 | 2001-12-17 Robert Dewar <dewar@gnat.com> |
1d7e0b5b | 45152 | |
45153 | * sem_ch12.adb: Minor reformatting | |
26afc61d | 45154 | |
8a67bb47 | 45155 | 2001-12-17 Ed Schonberg <schonber@gnat.com> |
1d7e0b5b | 45156 | |
f15731c4 | 45157 | * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post |
45158 | warning if current unit is a predefined one, from which bodies may | |
1d7e0b5b | 45159 | have been deleted. |
26afc61d | 45160 | |
8a67bb47 | 45161 | 2001-12-17 Robert Dewar <dewar@gnat.com> |
1d7e0b5b | 45162 | |
45163 | * eval_fat.ads: Add comment that Round_Even is referenced in Ada code | |
45164 | Fix header format. Add 2001 to copyright date. | |
26afc61d | 45165 | |
f15731c4 | 45166 | * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference, |
1d7e0b5b | 45167 | which caused CE during compilation if checks were enabled. |
45168 | ||
8a67bb47 | 45169 | 2001-12-17 Vincent Celier <celier@gnat.com> |
53336019 | 45170 | |
45171 | * make.adb: | |
45172 | (Switches_Of): New function | |
45173 | (Test_If_Relative_Path): New procedure | |
45174 | (Add_Switches): Use new function Switches_Of | |
45175 | (Collect_Arguments_And_Compile): Use new function Switches_Of. | |
45176 | When using a project file, test if there are any relative | |
45177 | search path. Fail if there are any. | |
f15731c4 | 45178 | (Gnatmake): Only add switches for the primary directory when not using |
45179 | a project file. When using a project file, change directory to the | |
45180 | object directory of the main project file. When using a project file, | |
45181 | test if there are any relative search path. Fail if there are any. | |
45182 | When using a project file, fail if specified executable is relative | |
45183 | path with directory information, and prepend executable, if not | |
45184 | specified as an absolute path, with the exec directory. Make sure | |
53336019 | 45185 | that only one -o switch is transmitted to the linker. |
26afc61d | 45186 | |
53336019 | 45187 | * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir |
26afc61d | 45188 | |
53336019 | 45189 | * prj-nmsc.adb: |
45190 | (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc, | |
45191 | when using a non standard naming scheme. | |
45192 | (Check_Ada_Naming_Scheme): Make sure that error messages | |
45193 | do not raise exceptions. | |
45194 | (Is_Illegal_Append): Return True if there is no dot in the suffix. | |
45195 | (Language_Independent_Check): Check the exec directory. | |
26afc61d | 45196 | |
53336019 | 45197 | * prj.adb (Project_Empty): Add new component Exec_Directory |
26afc61d | 45198 | |
53336019 | 45199 | * prj.ads: |
45200 | (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults. | |
45201 | (Project_Data): Add component Exec_Directory | |
26afc61d | 45202 | |
53336019 | 45203 | * snames.adb: Updated to match snames.ads revision 1.215 |
26afc61d | 45204 | |
53336019 | 45205 | * snames.ads: Added Exec_Dir |
26afc61d | 45206 | |
8a67bb47 | 45207 | 2001-12-17 Robert Dewar <dewar@gnat.com> |
53336019 | 45208 | |
45209 | * make.adb: Minor reformatting | |
26afc61d | 45210 | |
53336019 | 45211 | * prj-nmsc.adb: Minor reformatting |
26afc61d | 45212 | |
53336019 | 45213 | * snames.adb: Updated to match snames.ads |
26afc61d | 45214 | |
53336019 | 45215 | * snames.ads: Alphebetize entries for project file |
45216 | ||
8a67bb47 | 45217 | 2001-12-17 Ed Schonberg <schonber@gnat.com> |
53336019 | 45218 | |
f15731c4 | 45219 | * trans.c (process_freeze_entity): Do nothing if the entity is a |
53336019 | 45220 | subprogram that was already elaborated. |
26afc61d | 45221 | |
8a67bb47 | 45222 | 2001-12-17 Richard Kenner <kenner@gnat.com> |
26afc61d | 45223 | |
f15731c4 | 45224 | * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment |
53336019 | 45225 | and Esize if object is referenced via pointer. |
45226 | ||
8a67bb47 | 45227 | 2001-12-17 Ed Schonberg <schonber@gnat.com> |
26bdbe28 | 45228 | |
f15731c4 | 45229 | * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant |
26bdbe28 | 45230 | is discrete before analyzing choices. |
26afc61d | 45231 | |
8a67bb47 | 45232 | 2001-12-17 Joel Brobecker <brobecke@gnat.com> |
26bdbe28 | 45233 | |
f15731c4 | 45234 | * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string |
45235 | containing the name of the Ada Main Program. This string is mainly | |
26bdbe28 | 45236 | intended for the debugger. |
45237 | (Gen_Output_File_C): Do the equivalent change when generating a C file. | |
26afc61d | 45238 | |
8a67bb47 | 45239 | 2001-12-17 Robert Dewar <dewar@gnat.com> |
26bdbe28 | 45240 | |
45241 | * ali.adb: Set new Dummy_Entry field in dependency entry | |
26afc61d | 45242 | |
26bdbe28 | 45243 | * ali.ads: Add Dummy_Entry field to source dependency table |
26afc61d | 45244 | |
26bdbe28 | 45245 | * bcheck.adb (Check_Consistency): Ignore dummy D lines |
26afc61d | 45246 | |
26bdbe28 | 45247 | * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files |
26afc61d | 45248 | |
26bdbe28 | 45249 | * lib-writ.ads: Document dummy D lines for missing files. |
26afc61d | 45250 | |
26bdbe28 | 45251 | * types.ads: (Dummy_Time_Stamp): New value for non-existant files |
45252 | ||
8a67bb47 | 45253 | 2001-12-17 Robert Dewar <dewar@gnat.com> |
8880be85 | 45254 | |
45255 | * ali.adb: Type reference does not reset current file. | |
26afc61d | 45256 | |
8880be85 | 45257 | * ali.adb: Recognize and scan renaming reference |
26afc61d | 45258 | |
8880be85 | 45259 | * ali.ads: Add spec for storing renaming references. |
26afc61d | 45260 | |
8880be85 | 45261 | * lib-xref.ads: Add documentation for handling of renaming references |
26afc61d | 45262 | |
8880be85 | 45263 | * lib-xref.adb: Implement output of renaming reference. |
26afc61d | 45264 | |
8880be85 | 45265 | * checks.adb: |
45266 | (Determine_Range): Document local variables | |
45267 | (Determine_Range): Make sure Hbound is initialized. It looks as though | |
45268 | there could be a real problem here with an uninitialized reference | |
45269 | to Hbound, but no actual example of failure has been found. | |
26afc61d | 45270 | |
8a67bb47 | 45271 | 2001-12-17 Laurent Pautet <pautet@gnat.com> |
8880be85 | 45272 | |
45273 | * g-socket.ads: | |
45274 | Fix comment of Shutdown_Socket and Close_Socket. These functions | |
45275 | should not fail silently because if they are called twice, this | |
45276 | probably means that there is a race condition in the user program. | |
45277 | Anyway, this behaviour is consistent with the rest of this unit. | |
45278 | When an error occurs, an exception is raised with the error message | |
45279 | as exception message. | |
45280 | ||
8a67bb47 | 45281 | 2001-12-17 Robert Dewar <dewar@gnat.com> |
303e8291 | 45282 | |
f15731c4 | 45283 | * frontend.adb: Move call to Check_Unused_Withs from Frontend, so |
303e8291 | 45284 | that it happens before modification of Sloc values for -gnatD. |
26afc61d | 45285 | |
f15731c4 | 45286 | * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend, |
303e8291 | 45287 | so that it happens before modification of Sloc values for -gnatD. |
26afc61d | 45288 | |
303e8291 | 45289 | * switch.adb: Minor reformatting |
45290 | ||
8c62da85 | 45291 | 2001-12-15 Richard Henderson <rth@redhat.com> |
45292 | ||
45293 | * sem_ch7.adb: Wrap comment. | |
45294 | ||
3d069ad4 | 45295 | 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk> |
45296 | ||
45297 | * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb, | |
45298 | 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb, | |
45299 | 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb, | |
45300 | 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb, | |
45301 | 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb, | |
45302 | 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in, | |
45303 | a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb, | |
45304 | a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb, | |
45305 | cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb, | |
45306 | exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb, | |
45307 | exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads, | |
45308 | g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb, | |
45309 | gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c, | |
45310 | make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads, | |
45311 | par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb, | |
45312 | repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, | |
45313 | s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb, | |
45314 | s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads, | |
45315 | s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads, | |
45316 | s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb, | |
45317 | sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb, | |
45318 | sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb, | |
45319 | sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads, | |
45320 | sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix | |
45321 | spelling errors. | |
45322 | ||
8a67bb47 | 45323 | 2001-12-14 Vincent Celier <celier@gnat.com> |
159eb63c | 45324 | |
f15731c4 | 45325 | * osint.adb(Create_Debug_File): When an object file is specified, |
159eb63c | 45326 | put the .dg file in the same directory as the object file. |
26afc61d | 45327 | |
8a67bb47 | 45328 | 2001-12-14 Robert Dewar <dewar@gnat.com> |
159eb63c | 45329 | |
45330 | * osint.adb: Minor reformatting | |
26afc61d | 45331 | |
f15731c4 | 45332 | * lib-xref.adb (Output_Instantiation): New procedure to generate |
159eb63c | 45333 | instantiation references. |
26afc61d | 45334 | |
159eb63c | 45335 | * lib-xref.ads: Add documentation of handling of generic references. |
26afc61d | 45336 | |
f15731c4 | 45337 | * ali.adb (Read_Instantiation_Ref): New procedure to read |
159eb63c | 45338 | instantiation references |
26afc61d | 45339 | |
159eb63c | 45340 | * ali.ads: Add spec for storing instantiation references |
26afc61d | 45341 | |
159eb63c | 45342 | * bindusg.adb: Minor reformatting |
26afc61d | 45343 | |
159eb63c | 45344 | * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5) |
26afc61d | 45345 | |
159eb63c | 45346 | * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5) |
26afc61d | 45347 | |
159eb63c | 45348 | * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5) |
26afc61d | 45349 | |
159eb63c | 45350 | * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5) |
26afc61d | 45351 | |
159eb63c | 45352 | * csets.ads: |
45353 | Fix header format | |
45354 | Add 2001 to copyright date | |
45355 | Add entry for Latin-5 (Cyrillic ISO-8859-5) | |
26afc61d | 45356 | |
8a67bb47 | 45357 | 2001-12-14 Matt Gingell <gingell@gnat.com> |
159eb63c | 45358 | |
f15731c4 | 45359 | * adaint.c: mktemp is a macro on Lynx and can not be used as an |
159eb63c | 45360 | expression. |
26afc61d | 45361 | |
8a67bb47 | 45362 | 2001-12-14 Richard Kenner <kenner@gnat.com> |
159eb63c | 45363 | |
f15731c4 | 45364 | * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR |
159eb63c | 45365 | if operand is CONSTRUCTOR. |
26afc61d | 45366 | |
8a67bb47 | 45367 | 2001-12-14 Ed Schonberg <schonber@gnat.com> |
159eb63c | 45368 | |
f15731c4 | 45369 | * trans.c (tree_transform, case N_Assignment_Statement): Set lineno |
45370 | before emiting check on right-hand side, so that exception information | |
159eb63c | 45371 | is correct. |
45372 | ||
8a67bb47 | 45373 | 2001-12-14 Richard Kenner <kenner@gnat.com> |
26afc61d | 45374 | |
f15731c4 | 45375 | * utils.c (create_var_decl): Throw away initializing expression |
159eb63c | 45376 | if just annotating types and non-constant. |
26afc61d | 45377 | |
8a67bb47 | 45378 | 2001-12-14 Vincent Celier <celier@gnat.com> |
159eb63c | 45379 | |
45380 | * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to | |
45381 | Default_Ada_... | |
26afc61d | 45382 | |
f15731c4 | 45383 | * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix): |
159eb63c | 45384 | Remove functions. |
45385 | (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec. | |
26afc61d | 45386 | |
f15731c4 | 45387 | * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix): |
159eb63c | 45388 | Remove functions. |
45389 | (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body. | |
45390 | ||
050fb55b | 45391 | 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk> |
45392 | ||
45393 | * ChangeLog: Remove piece of diff output. | |
45394 | ||
8a67bb47 | 45395 | 2001-12-14 Geert Bosch <bosch@gnat.com> |
346b609d | 45396 | |
45397 | * config-lang.in: Update copyright notice | |
45398 | ||
45399 | * layout.adb: Remove commented out code. | |
45400 | ||
45401 | * mdllfile.ads: Update copyright notice. Fix header format. | |
45402 | ||
45403 | * sem_case.ads: Likewise. | |
45404 | ||
45405 | * sem_ch3.adb: Minor reformatting. | |
45406 | ||
8a67bb47 | 45407 | 2001-12-12 Geert Bosch <bosch@gnat.com> |
0b860214 | 45408 | |
45409 | * freeze.ads: Update copyright date. | |
45410 | ||
45411 | * g-comlin.ads: Minor reformatting. | |
45412 | ||
45413 | * gnat-style.texi: Fix typo. | |
45414 | ||
8a67bb47 | 45415 | 2001-12-12 Geert Bosch <bosch@gnat.com> |
c3f199f2 | 45416 | |
45417 | * einfo.h: Regenerate. | |
45418 | ||
8a67bb47 | 45419 | 2001-12-12 Ed Schonberg <schonber@gnat.com> |
521d7b58 | 45420 | |
f15731c4 | 45421 | * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names |
521d7b58 | 45422 | on known node types, rather than untyped fields. Further cleanups. |
26afc61d | 45423 | |
8a67bb47 | 45424 | 2001-12-12 Robert Dewar <dewar@gnat.com> |
521d7b58 | 45425 | |
45426 | * sem_ch12.adb: | |
45427 | (Save_Entity_Descendant): Minor comment update. | |
45428 | (Copy_Generic_Node): Deal with incorrect reference to Associated_Node | |
f15731c4 | 45429 | of an N_Attribute_Reference node. As per note below, this does not |
521d7b58 | 45430 | eliminate need for Associated_Node in attribute ref nodes. |
f15731c4 | 45431 | (Associated_Node): Documentation explicitly mentions attribute |
521d7b58 | 45432 | reference nodes, since this field is used in such nodes. |
26afc61d | 45433 | |
521d7b58 | 45434 | * sem_ch12.adb (Associated_Node): Minor documentation cleanup. |
45435 | ||
8a67bb47 | 45436 | 2001-12-12 Robert Dewar <dewar@gnat.com> |
790472fc | 45437 | |
45438 | * s-stalib.adb: Add more comments on with statements being needed | |
26afc61d | 45439 | |
790472fc | 45440 | * par-ch12.adb: Minor reformatting |
26afc61d | 45441 | |
790472fc | 45442 | * prj-dect.ads: Fix copyright header |
26afc61d | 45443 | |
f15731c4 | 45444 | * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both |
790472fc | 45445 | inputs fit in 32 bits, but the result still overflows. |
26afc61d | 45446 | |
790472fc | 45447 | * s-fatgen.ads: Minor comment improvement |
26afc61d | 45448 | |
8a67bb47 | 45449 | 2001-12-12 Ed Schonberg <schonber@gnat.com> |
790472fc | 45450 | |
f15731c4 | 45451 | * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a |
45452 | formal derived type, look for an inherited component from the full | |
790472fc | 45453 | view of the parent, if any. |
26afc61d | 45454 | |
8a67bb47 | 45455 | 2001-12-12 Robert Dewar <dewar@gnat.com> |
790472fc | 45456 | |
45457 | * checks.ads (Apply_Alignment_Check): New procedure. | |
26afc61d | 45458 | |
f15731c4 | 45459 | * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to |
45460 | ensure that the alignment of objects with address clauses is | |
790472fc | 45461 | appropriate, and raise PE if not. |
45462 | ||
f15731c4 | 45463 | * exp_util.ads (Must_Be_Aligned): Removed, replaced by |
790472fc | 45464 | Exp_Pakd.Known_Aligned_Enough |
26afc61d | 45465 | |
790472fc | 45466 | * mdllfile.ads: Minor reformatting |
45467 | ||
45468 | * mlib-fil.ads: Minor reformatting | |
26afc61d | 45469 | |
8a67bb47 | 45470 | 2001-12-12 Ed Schonberg <schonber@gnat.com> |
790472fc | 45471 | |
f15731c4 | 45472 | * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous |
45473 | fix to any component reference if enclosing record has non-standard | |
790472fc | 45474 | representation. |
26afc61d | 45475 | |
8a67bb47 | 45476 | 2001-12-12 Vincent Celier <celier@gnat.com> |
790472fc | 45477 | |
f15731c4 | 45478 | * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package |
790472fc | 45479 | Iteration |
26afc61d | 45480 | |
8a67bb47 | 45481 | 2001-12-12 Ed Schonberg <schonber@gnat.com> |
790472fc | 45482 | |
f15731c4 | 45483 | * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in |
790472fc | 45484 | sem_attr. |
26afc61d | 45485 | |
8a67bb47 | 45486 | 2001-12-12 Robert Dewar <dewar@gnat.com> |
790472fc | 45487 | |
45488 | * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration | |
26afc61d | 45489 | |
8a67bb47 | 45490 | 2001-12-12 Emmanuel Briot <briot@gnat.com> |
790472fc | 45491 | |
45492 | * g-regexp.adb: Remove all debug code, since it isn't required anymore, | |
45493 | and it adds dependencies to system.io. | |
26afc61d | 45494 | |
8a67bb47 | 45495 | 2001-12-12 Pascal Obry <obry@gnat.com> |
790472fc | 45496 | |
f15731c4 | 45497 | * g-dirope.adb (Expand_Path.Var): Correctly detect end of |
790472fc | 45498 | variable name. |
45499 | ||
8a67bb47 | 45500 | 2001-12-11 Ed Schonberg <schonber@gnat.com> |
d0cb8b4c | 45501 | |
45502 | * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance | |
f15731c4 | 45503 | that is the parent of other generics, the instance body replaces the |
45504 | instance node. Retrieve the instance of the spec, which is the one | |
d0cb8b4c | 45505 | that is visible in clients and within the body. |
45506 | ||
8a67bb47 | 45507 | 2001-12-11 Vincent Celier <celier@gnat.com> |
9ffca0cd | 45508 | |
45509 | * gnatmain.adb: Initial version. | |
26afc61d | 45510 | |
9ffca0cd | 45511 | * gnatmain.ads: Initial version. |
26afc61d | 45512 | |
9ffca0cd | 45513 | * prj-attr.adb (Initialisation_Data): Add package Gnatstub. |
26afc61d | 45514 | |
9ffca0cd | 45515 | * snames.adb: Updated to match snames.ads. |
26afc61d | 45516 | |
9ffca0cd | 45517 | * snames.ads: Added Gnatstub. |
26afc61d | 45518 | |
8a67bb47 | 45519 | 2001-12-11 Vincent Celier <celier@gnat.com> |
9ffca0cd | 45520 | |
f15731c4 | 45521 | * prj-attr.adb (Initialization_Data): Change name from |
9ffca0cd | 45522 | Initialisation_Data. |
26afc61d | 45523 | |
8a67bb47 | 45524 | 2001-12-11 Emmanuel Briot <briot@gnat.com> |
9ffca0cd | 45525 | |
45526 | * g-regpat.adb (Parse_Literal): Properly handle simple operators ?, | |
45527 | + and * applied to backslashed expressions like \r. | |
26afc61d | 45528 | |
8a67bb47 | 45529 | 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com> |
9ffca0cd | 45530 | |
f15731c4 | 45531 | * g-os_lib.ads: String_List type added, Argument_List type is now |
9ffca0cd | 45532 | subtype of String_List. |
26afc61d | 45533 | |
8a67bb47 | 45534 | 2001-12-11 Robert Dewar <dewar@gnat.com> |
9ffca0cd | 45535 | |
45536 | * g-os_lib.ads: Change copyright to FSF | |
45537 | Add comments for String_List type | |
26afc61d | 45538 | |
8a67bb47 | 45539 | 2001-12-11 Vincent Celier <celier@gnat.com> |
9ffca0cd | 45540 | |
f15731c4 | 45541 | * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a |
9ffca0cd | 45542 | string to the buffer). |
45543 | ||
8a67bb47 | 45544 | 2001-12-11 Ed Schonberg <schonber@gnat.com> |
56dfc8ca | 45545 | |
45546 | * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in | |
45547 | sem_attr. | |
26afc61d | 45548 | |
56dfc8ca | 45549 | * sem_attr.adb: Simplify previous fix for Address. |
f15731c4 | 45550 | (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now, |
45551 | to avoid anomalies where the bound of the type appears to raise | |
56dfc8ca | 45552 | constraint error. |
45553 | ||
8a67bb47 | 45554 | 2001-12-11 Robert Dewar <dewar@gnat.com> |
56dfc8ca | 45555 | |
f15731c4 | 45556 | * lib-xref.adb (Output_Refs): Make sure pointers are always properly |
56dfc8ca | 45557 | handled. |
26afc61d | 45558 | |
8a67bb47 | 45559 | 2001-12-11 Ed Schonber <schonber@gnat.com> |
56dfc8ca | 45560 | |
f15731c4 | 45561 | * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a |
56dfc8ca | 45562 | renamed unit before checking for recursive instantiations. |
26afc61d | 45563 | |
8a67bb47 | 45564 | 2001-12-11 Emmanuel Briot <briot@gnat.com> |
56dfc8ca | 45565 | |
45566 | * prj.ads: Add comments for some of the fields. | |
45567 | ||
8a67bb47 | 45568 | 2001-12-11 Robert Dewar <dewar@gnat.com> |
95a5c38e | 45569 | |
f15731c4 | 45570 | * lib-xref.adb (Output_Refs): Don't output type references outside |
95a5c38e | 45571 | the main unit if they are not otherwise referenced. |
26afc61d | 45572 | |
8a67bb47 | 45573 | 2001-12-11 Ed Schonberg <schonber@gnat.com> |
95a5c38e | 45574 | |
f15731c4 | 45575 | * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify |
95a5c38e | 45576 | code and diagnose additional illegal uses |
26afc61d | 45577 | |
f15731c4 | 45578 | * sem_util.adb (Is_Object_Reference): An indexed component is an |
95a5c38e | 45579 | object only if the prefix is. |
26afc61d | 45580 | |
8a67bb47 | 45581 | 2001-12-11 Vincent Celier <celier@gnat.com> |
95a5c38e | 45582 | |
45583 | * g-diopit.adb: Initial version. | |
26afc61d | 45584 | |
95a5c38e | 45585 | * g-diopit.ads: Initial version. |
26afc61d | 45586 | |
95a5c38e | 45587 | * g-dirope.adb: |
45588 | (Expand_Path): Avoid use of Unbounded_String | |
45589 | (Find, Wildcard_Iterator): Moved to child package Iteration | |
26afc61d | 45590 | |
95a5c38e | 45591 | * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS |
26afc61d | 45592 | |
8a67bb47 | 45593 | 2001-12-11 Robert Dewar <dewar@gnat.com> |
95a5c38e | 45594 | |
45595 | * sem_attr.adb: Minor reformatting | |
45596 | ||
8a67bb47 | 45597 | 2001-12-11 Ed Schonberg <schonber@gnat.com> |
713c00d6 | 45598 | |
45599 | * sem_ch3.adb: Clarify some ???. | |
26afc61d | 45600 | |
8a67bb47 | 45601 | 2001-12-11 Robert Dewar <dewar@gnat.com> |
713c00d6 | 45602 | |
f15731c4 | 45603 | * exp_util.adb (Must_Be_Aligned): Removed, replaced by |
713c00d6 | 45604 | Exp_Pakd.Known_Aligned_Enough |
26afc61d | 45605 | |
f15731c4 | 45606 | * sem_ch13.adb (Check_Address_Alignment): Removed, extended |
713c00d6 | 45607 | version is moved to Exp_Ch13. |
45608 | ||
8a67bb47 | 45609 | 2001-12-11 Robert Dewar <dewar@gnat.com> |
713c00d6 | 45610 | |
45611 | * einfo.ads: Minor reformatting | |
26afc61d | 45612 | |
713c00d6 | 45613 | * exp_ch5.adb: Add comment for previous.change |
26afc61d | 45614 | |
713c00d6 | 45615 | * ali.adb: New interface for extended typeref stuff. |
26afc61d | 45616 | |
713c00d6 | 45617 | * ali.ads: New interface for typeref stuff. |
26afc61d | 45618 | |
713c00d6 | 45619 | * checks.adb (Apply_Alignment_Check): New procedure. |
26afc61d | 45620 | |
713c00d6 | 45621 | * debug.adb: Add -gnatdM for modified ALI output |
26afc61d | 45622 | |
713c00d6 | 45623 | * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough. |
26afc61d | 45624 | |
f15731c4 | 45625 | * lib-xref.adb: Extend generation of <..> notation to cover |
45626 | subtype/object types. Note that this is a complete rewrite, | |
45627 | getting rid of the very nasty quadratic algorithm previously | |
713c00d6 | 45628 | used for derived type output. |
26afc61d | 45629 | |
f15731c4 | 45630 | * lib-xref.ads: Extend description of <..> notation to cover |
45631 | subtype/object types. Uses {..} for these other cases. | |
713c00d6 | 45632 | Also use (..) for pointer types. |
26afc61d | 45633 | |
713c00d6 | 45634 | * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup. |
26afc61d | 45635 | |
f15731c4 | 45636 | * exp_pakd.adb: Minor reformatting. Note that prevous RH should say: |
713c00d6 | 45637 | (Known_Aligned_Enough): Replaces Must_Be_Aligned. |
45638 | ||
8a67bb47 | 45639 | 2001-12-11 Vincent Celier <celier@gnat.com> |
57f302e5 | 45640 | |
45641 | * gnatcmd.adb: | |
45642 | Changed /COMPILE_ONLY to /ACTIONS=COMPILE | |
45643 | Changed /BIND_ONLY to /ACTIONS=BIND | |
45644 | Changed /LINK_ONLY to /ACTIONS=LINK | |
26afc61d | 45645 | |
57f302e5 | 45646 | 2001-12-11 Ed Schonberg <schonber@gnat.com> |
45647 | ||
45648 | * sem_ch8.adb (Find_Selected_Component): improved search for a | |
45649 | candidate package in case of error. | |
26afc61d | 45650 | |
57f302e5 | 45651 | * sem_ch12.adb (Inline_Instance_Body): place head of use_clause |
45652 | chain back on scope stack before reinstalling use clauses. | |
26afc61d | 45653 | |
57f302e5 | 45654 | * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings |
45655 | is enabled, do not kill the code for the condition, to preserve | |
45656 | warning. | |
45657 | ||
8a67bb47 | 45658 | 2001-12-11 Robert Dewar <dewar@gnat.com> |
8b718dab | 45659 | |
f15731c4 | 45660 | * checks.adb (Insert_Valid_Check): Apply validity check to expression |
8b718dab | 45661 | of conversion, not to result of conversion. |
45662 | ||
8a67bb47 | 45663 | 2001-12-11 Ed Schonberg <schonber@gnat.com> |
26afc61d | 45664 | |
f15731c4 | 45665 | * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag |
45666 | before freezing parent. If the declarations are mutually recursive, | |
45667 | an access to the current record type may be frozen before the | |
8b718dab | 45668 | derivation is complete. |
45669 | ||
8a67bb47 | 45670 | 2001-12-05 Vincent Celier <celier@gnat.com> |
9d40d585 | 45671 | |
f15731c4 | 45672 | * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY, |
9d40d585 | 45673 | -c /COMPILE_ONLY, -l /LINK_ONLY |
26afc61d | 45674 | |
9d40d585 | 45675 | * opt.ads: |
45676 | (Bind_Only): New Flag | |
45677 | (Link_Only): New flag | |
26afc61d | 45678 | |
f15731c4 | 45679 | * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only) |
9d40d585 | 45680 | and -l (Link_Only) |
26afc61d | 45681 | |
9d40d585 | 45682 | * makeusg.adb: Add new switches -b and -l. Update Copyright notice. |
26afc61d | 45683 | |
9d40d585 | 45684 | * make.adb: |
45685 | (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags. | |
45686 | (Gnatmake): Set the step flags. Only perform a step if the | |
45687 | corresponding step flag is True. | |
45688 | (Scan_Make_Arg): Reset the bind and link step flags when -u | |
45689 | or -gnatc has been specified. | |
45690 | ||
8a67bb47 | 45691 | 2001-12-05 Ed Schonberg <schonber@gnat.com> |
db1260ab | 45692 | |
f15731c4 | 45693 | * sem_eval.adb (Eval_Concatenation): If left operand is a null string, |
db1260ab | 45694 | get bounds from right operand. |
26afc61d | 45695 | |
db1260ab | 45696 | * sem_eval.adb: Minor reformatting |
26afc61d | 45697 | |
f15731c4 | 45698 | * exp_util.adb (Make_Literal_Range): use bound of literal rather |
db1260ab | 45699 | than Index'First, its lower bound may be different from 1. |
26afc61d | 45700 | |
f15731c4 | 45701 | * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B |
db1260ab | 45702 | and C48009J |
26afc61d | 45703 | |
8a67bb47 | 45704 | 2001-12-05 Vincent Celier <celier@gnat.com> |
db1260ab | 45705 | |
45706 | * prj-nmsc.adb Minor reformatting | |
26afc61d | 45707 | |
f15731c4 | 45708 | * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if |
db1260ab | 45709 | set and libraries are not supported. |
26afc61d | 45710 | |
8a67bb47 | 45711 | 2001-12-05 Ed Schonberg <schonber@gnat.com> |
db1260ab | 45712 | |
f15731c4 | 45713 | * sem_ch3.adb (Build_Derived_Private_Type): set Public status of |
45714 | private view explicitly, so the back-end can treat as a global | |
db1260ab | 45715 | when appropriate. |
45716 | ||
8a67bb47 | 45717 | 2001-12-05 Ed Schonberg <schonber@gnat.com> |
1999d6ac | 45718 | |
45719 | * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation | |
45720 | unit, always replace instance node with new body, for ASIS use. | |
45721 | ||
8a67bb47 | 45722 | 2001-12-05 Vincent Celier <celier@gnat.com> |
26afc61d | 45723 | |
f15731c4 | 45724 | * prj-nmsc.adb (Language_Independent_Check): Issue a warning if |
45725 | libraries are not supported and both attributes Library_Name and | |
1999d6ac | 45726 | Library_Dir are specified. |
26afc61d | 45727 | |
f15731c4 | 45728 | * prj-proc.adb (Expression): Set location of Result to location of |
1999d6ac | 45729 | first term. |
26afc61d | 45730 | |
1999d6ac | 45731 | * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS. |
45732 | (prj-nmsc is now importing MLib.Tgt) | |
26afc61d | 45733 | |
1999d6ac | 45734 | * prj-proc.adb: Put the change indicated above that was forgotten. |
45735 | ||
8a67bb47 | 45736 | 2001-12-05 Robert Dewar <dewar@gnat.com> |
1fe2b3a4 | 45737 | |
45738 | * Makefile.in: Add dependencies for System.IO for GNAT.Regexp | |
45739 | ||
8a67bb47 | 45740 | 2001-12-05 Ed Schonberg <schonber@gnat.com> |
ecf31452 | 45741 | |
45742 | * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a | |
45743 | constraint, introduce explicit subtype declaration and derive from it. | |
26afc61d | 45744 | |
ecf31452 | 45745 | * sem_ch3.adb: Minor reformatting |
45746 | ||
8a67bb47 | 45747 | 2001-12-05 Robert Dewar <dewar@gnat.com> |
6af1bdbc | 45748 | |
f15731c4 | 45749 | * checks.adb (Determine_Range): Increase cache size for checks. |
6af1bdbc | 45750 | Minor reformatting |
26afc61d | 45751 | |
6af1bdbc | 45752 | * exp_ch6.adb: Minor reformatting |
45753 | (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has | |
45754 | a parameter whose root type is System.Address, since treating such | |
45755 | subprograms as pure in the code generator is almost surely a mistake | |
45756 | that will lead to unexpected results. | |
26afc61d | 45757 | |
f15731c4 | 45758 | * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and |
6af1bdbc | 45759 | change handling of conversions. |
26afc61d | 45760 | |
6af1bdbc | 45761 | * g-regexp.adb: Use System.IO instead of Ada.Text_IO. |
45762 | ||
8a67bb47 | 45763 | 2001-12-05 Ed Schonberg <schonber@gnat.com> |
ab276d45 | 45764 | |
f15731c4 | 45765 | * sem_ch3.adb (Analyze_Object_Declaration): If expression is an |
45766 | aggregate with static wrong size, attach generated Raise node to | |
ab276d45 | 45767 | declaration. |
45768 | ||
8a67bb47 | 45769 | 2001-12-05 Robert Dewar <dewar@gnat.com> |
bea091c9 | 45770 | |
f15731c4 | 45771 | * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute. |
bea091c9 | 45772 | Fixes compilation abandoned bomb in B24009B. |
45773 | ||
8a67bb47 | 45774 | 2001-12-05 Ed Schonberg <schonber@gnat.com> |
17bcf69d | 45775 | |
45776 | * sem_ch12.adb: | |
45777 | Document use of Associated_Node on Selected_Components. | |
45778 | (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants, | |
45779 | to clarify use of untyped descendant fields. | |
45780 | ||
8a67bb47 | 45781 | 2001-12-05 Robert Dewar <dewar@gnat.com> |
d18ea14b | 45782 | |
45783 | * prj-dect.ads: Add ??? comment | |
45784 | Add 2001 to copyright notice (was not done in after all) | |
26afc61d | 45785 | |
d18ea14b | 45786 | * prj-part.adb: Minor reformatting. Reword one awkward error message. |
26afc61d | 45787 | |
d18ea14b | 45788 | * prj.ads: Minor reformatting throughout, and add some ??? comments |
26afc61d | 45789 | |
d18ea14b | 45790 | * snames.ads: Minor reformatting |
45791 | ||
8a67bb47 | 45792 | 2001-12-05 Geert Bosch <bosch@gnat.com> |
6343322f | 45793 | |
45794 | * snames.adb: Autoupdate | |
45795 | ||
8a67bb47 | 45796 | 2001-12-05 Vincent Celier <celier@gnat.com> |
04ff47e1 | 45797 | |
45798 | * prj-dect.adb (Parse): Rename parameter Modifying to Extends. | |
26afc61d | 45799 | |
04ff47e1 | 45800 | * prj-dect.ads (Parse): Rename parameter Modifying to Extends. |
26afc61d | 45801 | |
04ff47e1 | 45802 | * prj-env.adb: Minor comment changes (modifying -> extends). |
26afc61d | 45803 | |
04ff47e1 | 45804 | * prj-nmsc.adb: Minor comment changes (modifying -> extends). |
26afc61d | 45805 | |
f15731c4 | 45806 | * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to |
04ff47e1 | 45807 | Tok_Extends. |
26afc61d | 45808 | |
04ff47e1 | 45809 | * prj.adb (Initialize): Change Modifying to Extends. |
26afc61d | 45810 | |
04ff47e1 | 45811 | * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends. |
26afc61d | 45812 | |
04ff47e1 | 45813 | * prj.ads: Minor comment change (Modifying -> extending). |
26afc61d | 45814 | |
04ff47e1 | 45815 | * snames.ads: Change modifying to extends. |
45816 | ||
8a67bb47 | 45817 | 2001-12-05 Robert Dewar <dewar@gnat.com> |
6666a55d | 45818 | |
f15731c4 | 45819 | * sem_warn.adb: Remove stuff for conditionals, we are not going to |
6666a55d | 45820 | do this after all. |
26afc61d | 45821 | |
f15731c4 | 45822 | * sem_warn.ads: Remove stuff for conditionals, we are not going to |
6666a55d | 45823 | do this after all. Add 2001 to copyright notice |
45824 | ||
8a67bb47 | 45825 | 2001-12-04 Geert Bosch <bosch@gnat.com> |
698c9d04 | 45826 | |
45827 | * einfo.h, sinfo.h, treeprs.ads: Regenerate. | |
45828 | ||
8a67bb47 | 45829 | 2001-12-04 Robert Dewar <dewar@gnat.com> |
16aac930 | 45830 | |
f15731c4 | 45831 | * errout.adb (Error_Msg): Ignore attempt to put error msg at junk |
45832 | location if we already have errors. Stops some cases of cascaded | |
16aac930 | 45833 | errors. |
26afc61d | 45834 | |
16aac930 | 45835 | * errout.adb: Improve comment. |
45836 | ||
8a67bb47 | 45837 | 2001-12-04 Robert Dewar <dewar@gnat.com> |
d5d05c93 | 45838 | |
45839 | * sem_ch12.adb: | |
45840 | (Analyze_Formal_Type_Definition): Defend against Error. | |
45841 | (Analyze_Formal_Subprogram): Defend against Error. | |
26afc61d | 45842 | |
f15731c4 | 45843 | * par-ch12.adb (F_Formal_Type_Declaration): In case of error, |
d5d05c93 | 45844 | remove following semicolon if present. Removes cascaded error. |
45845 | ||
8a67bb47 | 45846 | 2001-12-04 Douglas B. Rupp <rupp@gnat.com> |
c669eb7a | 45847 | |
45848 | * bindgen.adb: | |
45849 | (Gen_Exception_Table_Ada): Write "begin" and then return if Num | |
45850 | exceptions equals 0. | |
45851 | (Gen_Exception_Table_C): Return if Num exceptions equals 0. | |
45852 | Fixes PIWG E tests (which have to be run with -gnatL). | |
45853 | ||
8a67bb47 | 45854 | 2001-12-04 Robert Dewar <dewar@gnat.com> |
08c47197 | 45855 | |
45856 | * einfo.ads: Minor reformatting | |
45857 | ||
8a67bb47 | 45858 | 2001-12-04 Ed Schonberg <schonber@gnat.com> |
8357ef8e | 45859 | |
f15731c4 | 45860 | * einfo.ads: Block_Node points to the identifier of the block, not to |
45861 | the block node itself, to preserve the link when the block is | |
45862 | rewritten, e.g. within an if-statement with a static condition. | |
26afc61d | 45863 | |
f15731c4 | 45864 | * inline.adb (Cleanup_Scopes): recover block statement from block |
8357ef8e | 45865 | entity using new meaning of Block_Node. |
26afc61d | 45866 | |
f15731c4 | 45867 | * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to |
8357ef8e | 45868 | identifier of block node, rather than to node itself. |
45869 | ||
8a67bb47 | 45870 | 2001-12-04 Gary Dismukes <dismukes@gnat.com> |
26afc61d | 45871 | |
5ddfef5e | 45872 | * layout.adb: |
45873 | (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size. | |
45874 | (Discrimify): Go back to setting the Etypes of the selected component | |
f15731c4 | 45875 | because the Vname component does not exist at this point and will |
5ddfef5e | 45876 | fail name resolution. Also set Analyzed. |
45877 | Remove with and use of Sem_Res. | |
45878 | ||
8a67bb47 | 45879 | 2001-12-04 Arnaud Charlet <charlet@gnat.com> |
084bd802 | 45880 | |
45881 | * Makefile.in: (HIE_SOURCES): add s-fat*. | |
45882 | ||
8a67bb47 | 45883 | 2001-12-04 Robert Dewar <dewar@gnat.com> |
ff4e6100 | 45884 | |
45885 | * sem_attr.adb: | |
45886 | (Compile_Time_Known_Attribute): New procedure. | |
45887 | (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure | |
45888 | proper range check. | |
45889 | ||
8a67bb47 | 45890 | 2001-12-04 Ed Schonberg <schonber@gnat.com> |
c8e5f290 | 45891 | |
f15731c4 | 45892 | * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before |
c8e5f290 | 45893 | processing discriminants to diagnose illegal default values. |
45894 | ||
8a67bb47 | 45895 | 2001-12-04 Ed Schonberg <schonber@gnat.com> |
b45b4c30 | 45896 | |
f15731c4 | 45897 | * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide |
45898 | access discriminant within a type extension that constrains its | |
b45b4c30 | 45899 | parent discriminants. |
45900 | ||
8a67bb47 | 45901 | 2001-12-04 Ed Schonberg <schonber@gnat.com> |
8803f199 | 45902 | |
f15731c4 | 45903 | * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication |
8803f199 | 45904 | is malformed, use instance of Any_Id to allow analysis to proceed. |
26afc61d | 45905 | |
f15731c4 | 45906 | * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if |
8803f199 | 45907 | type definition is illegal. |
45908 | (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is | |
45909 | misplaced. | |
45910 | ||
8a67bb47 | 45911 | 2001-12-04 Ed Schonberg <schonber@gnat.com> |
6afd31fc | 45912 | |
f15731c4 | 45913 | * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to |
6afd31fc | 45914 | constants. |
45915 | ||
8a67bb47 | 45916 | 2001-12-04 Robert Dewar <dewar@gnat.com> |
71aa0fe5 | 45917 | |
45918 | * errout.adb: Minor reformatting | |
45919 | ||
8a67bb47 | 45920 | 2001-12-04 Robert Dewar <dewar@gnat.com> |
7f7b0e02 | 45921 | |
45922 | * exp_util.adb: Minor reformatting from last change | |
26afc61d | 45923 | |
f15731c4 | 45924 | * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node |
45925 | which is a rewriting of an expression, traverse the original | |
7f7b0e02 | 45926 | expression to remove warnings that may have been posted on it. |
45927 | ||
8a67bb47 | 45928 | 2001-12-04 Ed Schonberg <schonber@gnat.com> |
f1907dd1 | 45929 | |
f15731c4 | 45930 | * exp_util.adb (Must_Be_Aligned): Return false for a component of a |
f1907dd1 | 45931 | record that has other packed components. |
45932 | ||
8a67bb47 | 45933 | 2001-12-04 Douglass B. Rupp <rupp@gnat.com> |
71a3e619 | 45934 | |
45935 | * adaint.c: Minor cleanups. | |
45936 | ||
8a67bb47 | 45937 | 2001-12-04 Douglass B. Rupp <rupp@gnat.com> |
9d9321ec | 45938 | |
45939 | * adaint.c: Do not use utime.h on vxworks. | |
45940 | ||
8a67bb47 | 45941 | 2001-12-04 Arnaud Charlet <charlet@gnat.com> |
8c29f5ad | 45942 | |
f15731c4 | 45943 | * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes |
8c29f5ad | 45944 | more confusion than it solves. |
45945 | ||
8a67bb47 | 45946 | 2001-12-04 Geert bosch <bosch@gnat.com> |
67cd941f | 45947 | |
45948 | * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate. | |
45949 | ||
8b79a1e5 | 45950 | 2001-12-04 Geert Bosch <bosch@gnat.com> |
45951 | ||
f15731c4 | 45952 | * Makefile.in (update-sources): New target. |
8b79a1e5 | 45953 | For use by gcc_release script. |
45954 | ||
8a67bb47 | 45955 | 2001-12-04 Ed Schonberg <schonber@gnat.com> |
aeb01fde | 45956 | |
f15731c4 | 45957 | * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as |
aeb01fde | 45958 | a configuration pragma, it is now legal wherever a pragma can appear. |
45959 | ||
0fc07c25 | 45960 | 2001-12-04 Zack Weinberg <zack@codesourcery.com> |
45961 | ||
45962 | * Makefile.in: Don't set ALL. Delete @cross_defines@, | |
45963 | @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS | |
45964 | is now @CROSS@ -DIN_GCC; update comment. | |
45965 | ||
8a67bb47 | 45966 | 2001-12-04 Robert Dewar <dewar@gnat.com> |
c2aed977 | 45967 | |
45968 | * einfo.adb (Has_Pragma_Pure_Function): New flag. | |
45969 | Fix problem that stopped ceinfo from working | |
26afc61d | 45970 | |
c2aed977 | 45971 | * einfo.ads (Has_Pragma_Pure_Function): New flag. |
26afc61d | 45972 | |
c2aed977 | 45973 | * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function. |
45974 | ||
8a67bb47 | 45975 | 2001-12-04 Douglas B. Rupp <rupp@gnat.com> |
d8dd2062 | 45976 | |
45977 | * gnatchop.adb: | |
45978 | (File_Time_Stamp): New procedure. | |
45979 | (Preserve_Mode): New boolean. | |
45980 | (Write_Unit): Pass time stamp. | |
45981 | Implement -p switch (preserve time stamps). | |
26afc61d | 45982 | |
d8dd2062 | 45983 | * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE). |
26afc61d | 45984 | |
d8dd2062 | 45985 | * gnatchop.adb: Do usage info for -p switch |
26afc61d | 45986 | |
d8dd2062 | 45987 | * adaint.h (__gnat_set_file_time_name): New function |
26afc61d | 45988 | |
d8dd2062 | 45989 | * adaint.c (__gnat_set_file_time_name): Implement |
26afc61d | 45990 | |
d8dd2062 | 45991 | * adaint.h: Fix typo |
45992 | ||
8a67bb47 | 45993 | 2001-12-03 Robert Dewar <dewar@gnat.com> |
1d2f0f50 | 45994 | |
cd8d7ab1 | 45995 | * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not |
0aeec26c | 45996 | have Associated_Node. |
1d2f0f50 | 45997 | |
8a67bb47 | 45998 | 2001-12-03 Robert Dewar <dewar@gnat.com> |
76fb600d | 45999 | |
46000 | * prj-proc.adb: Minor reformatting | |
cd8d7ab1 | 46001 | |
76fb600d | 46002 | * make.adb: Minor reformatting |
46003 | ||
8a67bb47 | 46004 | 2001-12-03 Geert Bosch <bosch@gnat.com> |
f2463f28 | 46005 | |
cd8d7ab1 | 46006 | * make.adb: Minor reformatting. |
f2463f28 | 46007 | |
554f5839 | 46008 | 2001-12-03 Robert Dewar <dewar@gnat.com> |
d351bf74 | 46009 | |
46010 | * sem_ch12.adb: Minor reformatting | |
46011 | ||
8a67bb47 | 46012 | 2001-12-03 Ed Schonberg <schonber@gnat.com> |
5edbb398 | 46013 | |
cd8d7ab1 | 46014 | * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and |
46015 | push Standard on the stack before analyzing the instance body, | |
5edbb398 | 46016 | in order to have a clean visibility environment. |
cd8d7ab1 | 46017 | |
46018 | * sem_ch12.adb (Inline_Instance_Body): Remove redundant code. | |
5edbb398 | 46019 | |
8a67bb47 | 46020 | 2001-12-03 Ed Schonberg <schonber@gnat.com> |
1345ea6b | 46021 | |
cd8d7ab1 | 46022 | * sem_ch12.adb (Instantiate_Package_Body): Protect against double |
1345ea6b | 46023 | instantiation of a body that contains an inlined body. |
46024 | ||
8a67bb47 | 46025 | 2001-12-03 Ed Schonberg <schonber@gnat.com> |
bf6a0490 | 46026 | |
46027 | * sem_ch12.adb: | |
46028 | (Analyze_generic_subprogram_Declaration): Set outer_generic_scope, | |
46029 | to prevent freezing within formal packages. | |
46030 | (Freeze_Subprogram_Body): If body comes from another instance that | |
46031 | appeared before its own body, place freeze node at end of current | |
46032 | declarative part, to prevent a back-end crash. | |
46033 | (Inline_Instance_Body): Handle properly a package instance within | |
46034 | a subprogram instance that is a child unit. | |
46035 | ||
7757c1eb | 46036 | 2001-12-01 Graham Stott <grahams@redhat.com> |
46037 | ||
46038 | * Makefile.in (misc.o): Add missing $(srcdir) prefix | |
46039 | and add optabs.h dependency. | |
46040 | ||
46041 | * misc.c: Include optabs.h | |
46042 | (gnat_tree_code_type): Make static and const. | |
46043 | (gnat_tree_code_length): Likewise. | |
46044 | (gnat_tree_code_name): Likewise. | |
46045 | (update_setjmp_buf): Obtain operands mode from insn_data. | |
46046 | ||
4605907b | 46047 | 2001-11-29 Richard Henderson <rth@redhat.com> |
46048 | ||
46049 | * init.c: Remove obsolete dwarf2 frame.h section. | |
46050 | ||
8cc4e5de | 46051 | 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk> |
46052 | ||
46053 | * Make-lang.in (ada.generated-manpages): New dummy target. | |
46054 | ||
8a67bb47 | 46055 | 2001-11-29 Ed Schonberg <schonber@gnat.com> |
35c5c314 | 46056 | |
cd8d7ab1 | 46057 | * g-os_lib.adb (Add_To_Command): use explicit loop to move string |
46058 | into Command, an array conversion is illegal here. Uncovered by | |
35c5c314 | 46059 | ACATS B460005. |
46060 | ||
8a67bb47 | 46061 | 2001-11-28 Geert Bosch <bosch@gnat.com> |
adbadc16 | 46062 | |
46063 | * init.c: Minor whitespace changes. | |
46064 | ||
8a67bb47 | 46065 | 2001-11-28 Doug Rupp <rupp@gnat.com> |
2f79c7a6 | 46066 | |
cd8d7ab1 | 46067 | * init.c: (__gnat_install_handler,VMS): Increase size of alternate |
2f79c7a6 | 46068 | signal stack. |
46069 | ||
1bd2ffa3 | 46070 | 2001-11-28 Zack Weinberg <zack@codesourcery.com> |
46071 | ||
46072 | * misc.c (gnat_expand_constant): Move declaration above | |
46073 | definition of lang_hooks. | |
46074 | (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant. | |
46075 | (gnat_init): lang_expand_constant no longer exists. | |
46076 | ||
46077 | (internal_error_function): Remove #ifdef HAVE_VPRINTF. We | |
46078 | always have vprintf. | |
46079 | (gnat_init): Always call set_internal_error_function. | |
46080 | ||
857370b2 | 46081 | 2001-11-27 Andreas Jaeger <aj@suse.de> |
46082 | ||
46083 | * Makefile.in (stamp-tool_src_dir): Use symbolic link. | |
46084 | ||
b1dff56a | 46085 | 2001-11-27 Laurent Guerby <guerby@acm.org> |
46086 | ||
46087 | * Makefile.in: Regenerate Ada dependencies. | |
46088 | ||
292a1b7e | 46089 | 2001-11-26 Richard Henderson <rth@redhat.com> |
46090 | ||
46091 | * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd, | |
46092 | gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys, | |
46093 | gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o. | |
46094 | ||
4c76b312 | 46095 | 2001-11-25 Laurent Guerby <guerby@acm.org> |
46096 | ||
46097 | * sysdep.c (rts_get_*): Fix style. | |
46098 | ||
5db7eddc | 46099 | 2001-11-19 Laurent Guerby <guerby@acm.org> |
46100 | ||
46101 | * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include | |
46102 | since it is of no apparent use and cause warnings. | |
46103 | ||
cdc9fa3e | 46104 | 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk> |
46105 | ||
46106 | * misc.c (gnat_decode_option, gnat_init_options): Make definitions | |
46107 | static too. | |
46108 | (gnat_init): Don't return NULL. | |
46109 | (finish_parse): Remove. | |
46110 | ||
0f13b49d | 46111 | 2001-11-17 Laurent Guerby <guerby@acm.org> |
46112 | ||
46113 | * Make-lang.in (GNATLIBFLAGS): Add -W -Wall. | |
46114 | * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing. | |
46115 | * io-aux.c: Provide K&R prototypes to all functions, reformat code. | |
46116 | * lang-spec.h: Add missing struct field to silence warnings. | |
46117 | * sysdep.c (rts_get_*): Provide K&R prototype. | |
46118 | * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype. | |
46119 | * traceback.c (Unlock_Task, Lock_Task): Likewise. | |
46120 | * tracebak.c (__gnat_backtrace): Remove unused variable. | |
46121 | * utils.c (end_subprog_body): Move to K&R style. | |
46122 | ||
1bf4f4d8 | 46123 | Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> |
46124 | ||
46125 | * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference. | |
46126 | ||
9ceb1c29 | 46127 | 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk> |
46128 | ||
46129 | * misc.c (gnat_init): Change prototype. Include the | |
46130 | functionality of the old init_parse and init_decl_processing. | |
46131 | (gnat_init_decl_processing): New prototype. | |
46132 | (init_parse): Remove. | |
46133 | * utils.c (init_decl_processing): Rename gnat_init_decl_processing. | |
46134 | ||
b7fced5e | 46135 | 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk> |
46136 | ||
46137 | * misc.c (gnat_print_decl, gnat_print_type): Renamed. | |
46138 | (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override. | |
46139 | (print_lang_statistics, lang_print_xnode, print_lang_identifier, | |
46140 | set_yydebug): Remove. | |
46141 | ||
d19bd1f0 | 46142 | 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk> |
46143 | ||
46144 | * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override. | |
46145 | (struct lang_hooks): Constify. | |
46146 | (language_string, lang_identify): Remove. | |
46147 | * utils.c (init_decl_processing): Update. | |
46148 | ||
b0278d39 | 46149 | 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk> |
46150 | ||
46151 | * misc.c: Include langhooks-def.h. | |
46152 | * Makefile.in: Update. | |
46153 | ||
8a67bb47 | 46154 | 2001-10-30 Robert Dewar <dewar@gnat.com> |
19b5831a | 46155 | |
46156 | * style.adb: | |
46157 | (Check_Identifier): Rewrite circuit to be compatible with use of letters | |
46158 | in the upper half of ASCII. | |
46159 | (Check_Identifier): Minor reformatting | |
46160 | ||
8a67bb47 | 46161 | 2001-10-30 Geert Bosch <bosch@gnat.com> |
d5f504eb | 46162 | |
857370b2 | 46163 | * (Associated_Node, Set_Associated_Node): Do not check for |
d5f504eb | 46164 | Freeze_Entity. |
46165 | ||
8a67bb47 | 46166 | 2001-10-30 Robert Dewar <dewar@gnat.com> |
c7fa332e | 46167 | |
46168 | * a-reatim.ads: Minor reformatting | |
46169 | ||
8a67bb47 | 46170 | 2001-10-30 Robert Dewar <dewar@gnat.com> |
8e51e9b7 | 46171 | |
857370b2 | 46172 | * gnatdll.adb: Minor reformatting throughout. Many ??? added for |
8e51e9b7 | 46173 | undocumented declarations. |
46174 | ||
8a67bb47 | 46175 | 2001-10-30 Pascal Obry <obry@gnat.com> |
c492ad46 | 46176 | |
857370b2 | 46177 | * gnatdll.adb (Parse_Command_Line): handle -g option to be passed |
c492ad46 | 46178 | to the binder and linker. |
46179 | Minor style fix. | |
857370b2 | 46180 | |
c492ad46 | 46181 | * mdll.ads: Fix layout. Update copyright notice. |
46182 | ||
46183 | * mdll.adb: Fix layout. Update copyright notice. | |
46184 | ||
8a67bb47 | 46185 | 2001-10-30 Robert Dewar <dewar@gnat.com> |
f6f5e2e7 | 46186 | |
46187 | * usage.adb: Minor fix to output for -gnaty. | |
46188 | ||
8a67bb47 | 46189 | 2001-10-30 Ed Schonberg <schonber@gnat.com> |
784b5d91 | 46190 | |
857370b2 | 46191 | * a-reatim.ads: Makes Seconds_Count into a 64-bit integer, |
46192 | to accommodate all its possible values. | |
784b5d91 | 46193 | |
857370b2 | 46194 | * a-reatim.adb (Split): Special-case handling of Time_Span_First |
784b5d91 | 46195 | and of small absolute values of T. |
46196 | ||
8a67bb47 | 46197 | 2001-10-30 Richard Kenner <kenner@gnat.com> |
7ae0fe44 | 46198 | |
857370b2 | 46199 | * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to |
46200 | set_mem_attributes since not needed and wrong if RESULT if a REG; | |
7ae0fe44 | 46201 | fixes ACATS failures. |
46202 | ||
8a67bb47 | 46203 | 2001-10-30 Geert Bosch <bosch@gnat.com> |
f82a66fd | 46204 | |
46205 | * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads, | |
46206 | s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice. | |
46207 | ||
8a67bb47 | 46208 | 2001-10-30 Robert Dewar <dewar@gnat.com> |
857370b2 | 46209 | |
86f5f2af | 46210 | * bindusg.adb: Undocument -f switch. |
857370b2 | 46211 | |
86f5f2af | 46212 | * gnatcmd.adb: Remove /FULL_ELABORATION. |
857370b2 | 46213 | |
46214 | * opt.ads (Force_RM_Elaboration_Order): Document that this is | |
86f5f2af | 46215 | obsolescent. |
857370b2 | 46216 | |
86f5f2af | 46217 | * gnatbind.adb: Output new warning for use of obsolescent -f switch. |
857370b2 | 46218 | |
86f5f2af | 46219 | * gnatbind.adb: Minor update of warning msg. |
46220 | ||
8a67bb47 | 46221 | 2001-10-30 Vincent Celier <celier@gnat.com> |
dda57e59 | 46222 | |
857370b2 | 46223 | * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations |
dda57e59 | 46224 | for project file switches (-P (/PROJECT_FILE=), |
857370b2 | 46225 | -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT |
dda57e59 | 46226 | or MEDIUM or HIGH) |
46227 | ||
8a67bb47 | 46228 | 2001-10-30 Geert Bosch <bosch@gnat.com> |
575fa019 | 46229 | |
46230 | * decl.c: Minor whitespace fixes. | |
46231 | ||
8a67bb47 | 46232 | 2001-10-30 Richard Kenner <kenner@gnat.com> |
12399861 | 46233 | |
46234 | * utils2.c (build_allocator): Test for SIZE overflow in array case too | |
46235 | ||
8a67bb47 | 46236 | 2001-10-30 Geert Bosch <bosch@gnat.com> |
ca188295 | 46237 | |
857370b2 | 46238 | * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out. |
ca188295 | 46239 | Found due to GCC 3.0 warning of using uninitialized value. |
857370b2 | 46240 | |
ca188295 | 46241 | * layout.adb: |
46242 | (Get_Max_Size): Use variant record for tracking value/expression. | |
46243 | Makes logic clearer and prevents warnings for uninitialized variables. | |
46244 | (Layout_Array_Type): Use variant record for tracking value/expression. | |
46245 | Makes logic clearer and prevents warnings for uninitialized variables. | |
46246 | ||
8a67bb47 | 46247 | 2001-10-30 Robert Dewar <dewar@gnat.com> |
ed7f48c3 | 46248 | |
46249 | * lib.adb: Minor reformatting | |
46250 | ||
46251 | * s-taprop.ads: Minor reformatting | |
46252 | ||
2570de82 | 46253 | 2001-10-29 Laurent Guerby <guerby@acm.org> |
857370b2 | 46254 | |
2570de82 | 46255 | * init.c: |
46256 | (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg | |
46257 | const. | |
46258 | (_gnat_error_handler): Make MSG const. | |
46259 | ||
8a67bb47 | 46260 | 2001-10-29 Richard Kenner <kenner@gnat.com> |
2570de82 | 46261 | |
46262 | * sysdep.c: Fix localtime_r problem on LynxOS. | |
46263 | Also remove #elif to avoid warnings. | |
857370b2 | 46264 | |
46265 | * misc.c (yyparse): Don't set up and register jmpbuf; remove decls | |
2570de82 | 46266 | used by this. |
857370b2 | 46267 | |
2570de82 | 46268 | * decl.c (annotate_value): Make SIZE unsigned to avoid warning. |
46269 | ||
da253936 | 46270 | 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk> |
46271 | ||
46272 | * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb, | |
46273 | exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb, | |
46274 | g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads, | |
46275 | g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c, | |
46276 | layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads, | |
46277 | s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads, | |
46278 | sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb, | |
46279 | sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb, | |
46280 | sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads, | |
46281 | types.ads, urealp.adb: Fix spelling errors. | |
46282 | ||
8a67bb47 | 46283 | 2001-10-27 Laurent Guerby <guerby@acm.org> |
e49b08c2 | 46284 | |
46285 | * trans.c (gigi): Fix non determinism leading to bootstrap | |
46286 | comparison failures for debugging information. | |
46287 | ||
24443ad8 | 46288 | 2001-10-26 Florian Weimer <fw@deneb.enyo.de> |
46289 | ||
46290 | * gnat_rm.texi: Use @./@: where appropriate. | |
46291 | ||
8a67bb47 | 46292 | 2001-10-26 Robert Dewar <dewar@gnat.com> |
e1c9bc48 | 46293 | |
46294 | * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup. | |
46295 | ||
8a67bb47 | 46296 | 2001-10-26 Richard Kenner <kenner@gnat.com> |
0b1da305 | 46297 | |
46298 | * gmem.c (__gnat_gmem_read_next): Properly check for EOF | |
46299 | ||
8a67bb47 | 46300 | 2001-10-26 Richard Kenner <kenner@gnat.com> |
bc46dbcb | 46301 | |
857370b2 | 46302 | * decl.c (validate_size): Modify message for bad size to avoid |
bc46dbcb | 46303 | implication that compiler is modifying the size. |
46304 | ||
8a67bb47 | 46305 | 2001-10-26 Robert Dewar <dewar@gnat.com> |
4c339ad0 | 46306 | |
46307 | * prj-util.adb: Minor reformatting. Fix bad header format. | |
46308 | ||
8a67bb47 | 46309 | 2001-10-26 Robert Dewar <dewar@gnat.com> |
ec3898d1 | 46310 | |
46311 | * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup. | |
857370b2 | 46312 | |
ec3898d1 | 46313 | * sinfo.ads: Clarify use of Associated_Node (documentation only). |
857370b2 | 46314 | |
46315 | * sem_ch12.adb: Change Node4 to Associated_Node. Change | |
46316 | Associated_Node to Get_Associated_Node. Put use of Unchecked_Access | |
ec3898d1 | 46317 | much more narrowly in places where needed. These are cleanups. |
46318 | ||
8a67bb47 | 46319 | 2001-10-26 Joel Brobecker <brobecke@gnat.com> |
f1919bc0 | 46320 | |
46321 | * 5zosinte.ads (null_pthread): new constant. | |
857370b2 | 46322 | |
f1919bc0 | 46323 | * 5ztaprop.adb: |
46324 | (Initialize_TCB): Initialize thread ID to null, to be able to verify | |
46325 | later that this field has been set. | |
46326 | (Finalize_TCB): ditto. | |
46327 | (Suspend_Task): Verify that the thread ID is not null before using it. | |
46328 | (Resume_Task): ditto. | |
857370b2 | 46329 | |
f1919bc0 | 46330 | * s-tasdeb.adb: |
46331 | (Resume_All_Tasks): Lock the tasks list before using it. | |
46332 | (Suspend_All_Tasks): ditto. | |
46333 | ||
8a67bb47 | 46334 | 2001-10-26 Richard Kenner <kenner@gnat.com> |
ff540fb0 | 46335 | |
857370b2 | 46336 | * decl.c (gnat_to_gnu_entity, case E_General_Access_Type): |
ff540fb0 | 46337 | Make constant variant of designated type for Is_Access_Constant. |
46338 | Call update_pointer_to with main variant. | |
857370b2 | 46339 | |
46340 | * trans.c (process_freeze_entity, process_type): | |
ff540fb0 | 46341 | Call update_pointer_to on main variant. |
857370b2 | 46342 | |
ff540fb0 | 46343 | * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE. |
46344 | If main variant, update all other variants. | |
857370b2 | 46345 | |
46346 | * utils2.c (build_unary_op, case INDIRECT_REF): No longer set | |
ff540fb0 | 46347 | TREE_STATIC. |
46348 | ||
8a67bb47 | 46349 | 2001-10-26 Robert Dewar <dewar@gnat.com> |
6237e13a | 46350 | |
46351 | * prj-util.adb: Minor reformatting | |
46352 | ||
8a67bb47 | 46353 | 2001-10-26 Robert Dewar <dewar@gnat.com> |
b238a680 | 46354 | |
46355 | * prj-util.adb: Minor reformatting | |
46356 | ||
8a67bb47 | 46357 | 2001-10-26 Robert Dewar <dewar@gnat.com> |
432136f2 | 46358 | |
46359 | * prj-attr.adb: Minor reformatting throughout | |
46360 | ||
8a67bb47 | 46361 | 2001-10-26 Robert Dewar <dewar@gnat.com> |
2dec8226 | 46362 | |
46363 | * prj-attr.ads: Minor reformatting | |
46364 | Add ??? comment (this whole spec has almost no comments) | |
46365 | ||
8a67bb47 | 46366 | 2001-10-26 Vincent Celier <celier@gnat.com> |
fcb408f0 | 46367 | |
857370b2 | 46368 | * g-os_lib.adb (Normalize_Pathname): Preserve the double slash |
0aeec26c | 46369 | ("//") that precede the drive letter on Interix. |
fcb408f0 | 46370 | |
8a67bb47 | 46371 | 2001-10-26 Geert Bosch <bosch@gnat.com> |
6c130039 | 46372 | |
46373 | * gnat_rm.texi: Add GNAT Reference Manual. | |
46374 | ||
8a67bb47 | 46375 | 2001-10-25 Robert Dewar <dewar@gnat.com> |
d0204055 | 46376 | |
857370b2 | 46377 | * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name |
0aeec26c | 46378 | is Error. Similar change for other renaming cases. |
d0204055 | 46379 | |
8a67bb47 | 46380 | 2001-10-25 Robert Dewar <dewar@gnat.com> |
a19b930b | 46381 | |
46382 | * s-atacco.ads: Add pragma Inline_Always for functions. | |
46383 | Fix header format. Add copyright 2001 | |
46384 | ||
8a67bb47 | 46385 | 2001-10-25 Ed Schonberg <schonber@gnat.com> |
a955b866 | 46386 | |
857370b2 | 46387 | * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array |
0aeec26c | 46388 | return Error rather than Empty so that analysis can proceed. |
a955b866 | 46389 | |
8a67bb47 | 46390 | 2001-10-25 Ed Schonberg <schonber@gnat.com> |
9c4be4ce | 46391 | |
857370b2 | 46392 | * sem_util.adb (Enter_Name): better handling of cascaded error |
0aeec26c | 46393 | messages when a unit appears in its own context. |
9c4be4ce | 46394 | |
8a67bb47 | 46395 | 2001-10-25 Ed Schonberg <schonber@gnat.com> |
3aacc79f | 46396 | |
857370b2 | 46397 | * sem_util.adb (Defining_Entity): in case of error, attach created |
0aeec26c | 46398 | entity to specification, so that semantic analysis can proceed. |
3aacc79f | 46399 | |
8a67bb47 | 46400 | 2001-10-25 Robert Dewar <dewar@gnat.com> |
d931c41b | 46401 | |
857370b2 | 46402 | * sem_util.adb |
0aeec26c | 46403 | (Defining_Entity): Deal with Error. |
d931c41b | 46404 | (Process_End_Label): Deal with bad end label for. |
46405 | ||
8a67bb47 | 46406 | 2001-10-25 Ed Schonberg <schonber@gnat.com> |
0fdf5b8e | 46407 | |
857370b2 | 46408 | * sem_elab.adb (Check_A_Call): refine message when call is in an |
0fdf5b8e | 46409 | instance but callee is not declared in the generic unit. |
46410 | ||
8a67bb47 | 46411 | 2001-10-25 Ed Schonberg <schonber@gnat.com> |
857370b2 | 46412 | |
46413 | * sem_elab.adb (Check_A_Call): check for renaming before finding the | |
6c17421b | 46414 | enclosing unit, which may already be different from the calling unit. |
46415 | ||
8a67bb47 | 46416 | 2001-10-25 Geert Bosch <bosch@gnat.com> |
ffc3183d | 46417 | |
46418 | * 4gintnam.ads: fix header format. | |
46419 | ||
8a67bb47 | 46420 | 2001-10-25 Ed Schonberg <schonber@gnat.com> |
02c6d599 | 46421 | |
857370b2 | 46422 | * sem_res.adb (Resolve_Call): if the call is actually an indexing |
0aeec26c | 46423 | operation on the result of a parameterless call, perform elaboration |
46424 | check after the node has been properly rewritten. | |
857370b2 | 46425 | |
46426 | * sem_ch12.adb (Copy_Generic_Node): after the proper body has been | |
0aeec26c | 46427 | inlined within the generic tree, the defining identifier is not a |
46428 | compilation_unit. | |
02c6d599 | 46429 | |
8a67bb47 | 46430 | 2001-10-25 Ed Schonberg <schonber@gnat.com> |
ba8e3813 | 46431 | |
857370b2 | 46432 | * sem_res.adb (Resolve): special-case resolution of Null in an |
0aeec26c | 46433 | instance or an inlined body to avoid view conflicts. |
857370b2 | 46434 | |
46435 | * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view | |
0aeec26c | 46436 | compatibility by retrieving the access type of the generic copy. |
ba8e3813 | 46437 | |
8a67bb47 | 46438 | 2001-10-25 Robert Dewar <dewar@gnat.com> |
b99bfdb7 | 46439 | |
46440 | * sem_ch3.adb: | |
46441 | (Analyze_Number_Declaration): Handle error expression. | |
46442 | (Signed_Integer_Type_Declaration): Handle error bound. | |
46443 | (Analyze_Subtype_Indication): Handle error range. | |
857370b2 | 46444 | |
b99bfdb7 | 46445 | * sem_util.adb (Get_Index_Bounds): Check for Error. |
46446 | ||
8a67bb47 | 46447 | 2001-10-25 Robert Dewar <dewar@gnat.com> |
d64977bb | 46448 | |
857370b2 | 46449 | * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default |
d64977bb | 46450 | in no run time mode. |
46451 | ||
8a67bb47 | 46452 | 2001-10-25 Pascal Obry <obry@gnat.com> |
19a8f02c | 46453 | |
857370b2 | 46454 | * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet |
0aeec26c | 46455 | mode case for ALLOC case. |
857370b2 | 46456 | |
46457 | * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on | |
0aeec26c | 46458 | all platforms. Improvement of last change. |
19a8f02c | 46459 | |
8a67bb47 | 46460 | 2001-10-25 Robert Dewar <dewar@gnat.com> |
515cb44b | 46461 | |
46462 | * exp_ch4.adb (Expand_N_Allocator): Minor reformatting. | |
46463 | ||
78be4c12 | 46464 | 2001-10-25 Geert Bosch <bosch@gnat.com> |
46465 | ||
46466 | * osint.adb (Is_Relative): Remove duplicate. | |
46467 | ||
8a67bb47 | 46468 | 2001-10-25 Pascal Obry <obry@gnat.com> |
f449b8f5 | 46469 | |
857370b2 | 46470 | * osint.adb (Read_Default_Search_Dirs): correctly detect relative |
0aeec26c | 46471 | pathnames in UNIX and DOS style with drive letter. |
f449b8f5 | 46472 | (Is_Relative): new routine. |
857370b2 | 46473 | |
f449b8f5 | 46474 | * osint.adb: Minor reformatting |
857370b2 | 46475 | |
46476 | * osint.adb (Is_Relative): implementation using | |
0aeec26c | 46477 | GNAT.OS_Lib.Is_Absolute_Path. Better fix. |
f449b8f5 | 46478 | |
8a67bb47 | 46479 | 2001-10-25 Pascal Obry <obry@gnat.com> |
eb1a998c | 46480 | |
857370b2 | 46481 | * g-dirope.adb (Basename): correctly compute offset between the |
0aeec26c | 46482 | original Path and the translated one. |
857370b2 | 46483 | |
eb1a998c | 46484 | * g-dirope.adb: (Base_Name): add some comments. |
46485 | ||
8a67bb47 | 46486 | 2001-10-25 Robert Dewar <dewar@gnat.com> |
629ca7e2 | 46487 | |
857370b2 | 46488 | * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use |
0aeec26c | 46489 | in HIE mode, avoids compilation abandoned message |
857370b2 | 46490 | |
629ca7e2 | 46491 | * exp_imgv.adb: Correct typo in previous change |
857370b2 | 46492 | |
629ca7e2 | 46493 | * exp_imgv.adb: Correct typo in previous change (not my day!) |
46494 | ||
8a67bb47 | 46495 | 2001-10-25 Robert Dewar <dewar@gnat.com> |
fa434693 | 46496 | |
46497 | * s-tpinop.ads: Add 2001 to copyright notice. Fix header format. | |
46498 | ||
8a67bb47 | 46499 | 2001-10-25 Pascal Obry <obry@gnat.com> |
ec66e176 | 46500 | |
857370b2 | 46501 | * g-awk.ads: Move all pragma inlines next to the routine |
daeadc18 | 46502 | declarations. This is more uniform with other GNAT spec. |
ec66e176 | 46503 | |
daeadc18 | 46504 | 2001-10-22 Geert Bosch <bosch@gnat.com> |
5c33d2f2 | 46505 | |
46506 | * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem. | |
46507 | ||
daeadc18 | 46508 | 2001-10-19 Geert Bosch <bosch@gnat.com> |
8dc6b6c5 | 46509 | |
46510 | * Makefile.in (tools, gnattools): Remove gnatmem. | |
46511 | ||
8233b679 | 46512 | 2001-10-17 Richard Henderson <rth@redhat.com> |
46513 | ||
46514 | * Makefile.in (misc.o): Depend on langhooks.h. | |
46515 | * misc.c: Include it. | |
46516 | (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New. | |
46517 | (LANG_HOOKS_DECODE_OPTION): New. | |
46518 | (lang_hooks): Use LANG_HOOKS_INITIALIZER. | |
46519 | ||
a14b7a9f | 46520 | 2001-10-16 Florian Weimer <fw@deneb.enyo.de> |
46521 | ||
46522 | * trans.c (tree_transform): Adjust to recent change in | |
46523 | expand_asm_operands to implement named asm operands. | |
46524 | ||
0a4515ae | 46525 | 2001-10-11 Ed Schonberg <schonber@gnat.com> |
46526 | ||
857370b2 | 46527 | * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in |
0a4515ae | 46528 | renaming of discriminant for mutable record type. |
46529 | ||
f7e97912 | 46530 | 2001-10-11 Robert Dewar <dewar@gnat.com> |
46531 | ||
46532 | * validsw.adb: Properly save -gnatVn status. | |
46533 | ||
8a67bb47 | 46534 | 2001-10-11 Robert Dewar <dewar@gnat.com> |
857370b2 | 46535 | |
c2a5cd56 | 46536 | * usage.adb: Add lines for V switch. |
46537 | ||
857370b2 | 46538 | * gnatcmd.adb (COMPILE): Revise translations for -gnatV |
c2a5cd56 | 46539 | (/VALIDITY_CHECKING). |
46540 | ||
8a67bb47 | 46541 | 2001-10-11 Ed Schonberg <schonber@gnat.com> |
39b74c32 | 46542 | |
857370b2 | 46543 | * sem_type.adb (Add_One_Interp): an operator for a type declared in |
39b74c32 | 46544 | an extension of System is known to be visible. |
46545 | ||
8a67bb47 | 46546 | 2001-10-11 Ed Schonberg <schonber@gnat.com> |
3c53c7f3 | 46547 | |
857370b2 | 46548 | * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal |
3c53c7f3 | 46549 | properly. Fixes regression on ACATS C34005G. |
46550 | ||
8a67bb47 | 46551 | 2001-10-11 Robert Dewar <dewar@gnat.com> |
09009ce9 | 46552 | |
857370b2 | 46553 | * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null |
09009ce9 | 46554 | loop in generic instance, since this is likely not very useful. |
46555 | ||
8a67bb47 | 46556 | 2001-10-11 Robert Dewar <dewar@gnat.com> |
a7b4d077 | 46557 | |
857370b2 | 46558 | * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize |
a7b4d077 | 46559 | the error message for high integrity mode. |
857370b2 | 46560 | |
46561 | * rtsfind.adb (RTE): Give message if we try to find an entity that | |
a7b4d077 | 46562 | is not available in high integrity mode. |
857370b2 | 46563 | |
a7b4d077 | 46564 | * rtsfind.ads: |
46565 | (OK_To_Use_In_HIE_Mode): New array. | |
46566 | (RTE): May return Empty in high integrity mode. | |
857370b2 | 46567 | |
46568 | * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for | |
46569 | OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx. | |
46570 | ||
46571 | * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined | |
46572 | unit if not inlined always and in no runtime mode. Fixes problem | |
a7b4d077 | 46573 | caused by new Rtsfind changes. |
857370b2 | 46574 | |
46575 | * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if | |
a7b4d077 | 46576 | body is deleted. |
857370b2 | 46577 | |
46578 | * rtsfind.adb (RTE): Make sure we do not try to load unit after | |
a7b4d077 | 46579 | giving message for entity not available in high integrity mode. |
46580 | ||
8a67bb47 | 46581 | 2001-10-11 Pascal Obry <obry@gnat.com> |
857370b2 | 46582 | |
59c93cd9 | 46583 | * impunit.adb: Add GNAT.CRC32. |
46584 | ||
8a67bb47 | 46585 | 2001-10-11 Ed Schonberg <schonber@gnat.com> |
1a2fca85 | 46586 | |
857370b2 | 46587 | * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle |
46588 | properly the case where one universal operand in a non-static | |
1a2fca85 | 46589 | exponentiation of a real literal. |
46590 | ||
8a67bb47 | 46591 | 2001-10-11 Ed Schonberg <schonber@gnat.com> |
ad9b787e | 46592 | |
857370b2 | 46593 | * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type |
46594 | clause, return the gobal finalization list, for lack of anthing else. | |
ad9b787e | 46595 | |
8a67bb47 | 46596 | 2001-10-11 Ed Schonberg <schonber@gnat.com> |
adb1cfa4 | 46597 | |
857370b2 | 46598 | * exp_ch7.adb (Make_Transient_Block): if statement is within |
46599 | exception handler, always use new transient scope to place Clean | |
adb1cfa4 | 46600 | procedure. |
46601 | ||
8a67bb47 | 46602 | 2001-10-11 Pascal Obry <obry@gnat.com> |
699d76d2 | 46603 | |
46604 | * Makefile.in: | |
46605 | (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o | |
46606 | (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o | |
46607 | (GNATLS_RTL_OBJS): add g-crc32.o | |
46608 | (GNATMAKE_RTL_OBJS): add g-crc32.o | |
857370b2 | 46609 | |
699d76d2 | 46610 | * ali-util.adb: |
46611 | (CRC_Match): new function. | |
857370b2 | 46612 | (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit |
699d76d2 | 46613 | instead of the previous simple checksum algorithm. |
46614 | (Time_Stamp_Mismatch): use CRC_Match for comparison. | |
46615 | (Set_Source_Table): idem. | |
857370b2 | 46616 | |
699d76d2 | 46617 | * ali-util.ads: |
857370b2 | 46618 | (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC |
699d76d2 | 46619 | instead of simple checksum. |
46620 | (CRC_Match): new function. | |
46621 | (CRC_Error): new constant. | |
857370b2 | 46622 | |
46623 | * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling | |
46624 | a CRC now and not a simple checksum. A CRC uses lower-case hex | |
699d76d2 | 46625 | letters, fixes ambiguity in parsing. |
857370b2 | 46626 | |
46627 | * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this | |
699d76d2 | 46628 | is what this variable will store. |
857370b2 | 46629 | |
699d76d2 | 46630 | * bcheck.adb: Change reference to chechsum in comments by CRC. |
857370b2 | 46631 | (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC. |
46632 | rename All_Checksum_Match to All_CRC_Match. Change due to API | |
46633 | renaming since now GNAT does not use a simple checksum but a | |
699d76d2 | 46634 | CRC using GNAT.CRC32. |
857370b2 | 46635 | |
46636 | * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC | |
699d76d2 | 46637 | now and not anymore a simple checksum. |
857370b2 | 46638 | |
46639 | * lib-load.adb: Use Source_CRC instead of Source_Checksum in many | |
699d76d2 | 46640 | places. |
857370b2 | 46641 | |
699d76d2 | 46642 | * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum. |
857370b2 | 46643 | |
699d76d2 | 46644 | * scans.adb: |
46645 | (Restore_Scan_State): rename Checksum to CRC. | |
46646 | (Save_Scan_State): idem. | |
857370b2 | 46647 | |
699d76d2 | 46648 | * scans.ads: |
46649 | With GNAT.CRC32. | |
46650 | (Checksum): rename to CRC. | |
46651 | (Saved_Scan_State): Save_Checksum field renamed to Save_CRC | |
857370b2 | 46652 | |
46653 | * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from | |
699d76d2 | 46654 | GNAT.CRC32). Update copyright notice. |
857370b2 | 46655 | |
46656 | * scn-slit.adb: Rename many Accumulate_Checksum to Update (from | |
699d76d2 | 46657 | GNAT.CRC32). Update copyright notice. |
857370b2 | 46658 | |
699d76d2 | 46659 | * scn.adb: |
46660 | (Accumulate_Checksum): removed. | |
46661 | (Update): new procedure. Add a wide-character into the CRC. | |
857370b2 | 46662 | |
699d76d2 | 46663 | * sinput-l.adb: |
46664 | (Complete_Source_File_Entry): use CRC32 instead of simple checksum. | |
857370b2 | 46665 | (Load_File): fix initialization of S (change Source_Checksum to |
699d76d2 | 46666 | Source_CRC) |
857370b2 | 46667 | |
46668 | * sinput-p.adb (Load_Project_File): rename Source_Checksum to | |
699d76d2 | 46669 | Source_CRC in S initialization. |
857370b2 | 46670 | |
699d76d2 | 46671 | * sinput.adb (Source_Checksum): renamed to Source_CRC. |
857370b2 | 46672 | |
699d76d2 | 46673 | * sinput.ads (Source_Checksum): renamed to Source_CRC. |
46674 | Update comments for the CRC. | |
857370b2 | 46675 | |
699d76d2 | 46676 | * types.adb (Hex): Use lowercase for the letter part. |
857370b2 | 46677 | |
46678 | * types.ads (Get_Hex_String): Returns the hexadecimal representation | |
46679 | for a word. This is currently used only for CRC. In previous version, | |
46680 | the checksum was using a representation with all letter being | |
46681 | upper-case. With the new implementation (using CRC) we do not remove | |
46682 | the 32th bit of the CRC, so we can have an upper-case starting letter | |
46683 | in the CRC. This is not possible to parse in Scan_ALI (ali.adb). | |
46684 | It is ambigous since the CRC was optional and could be followed by | |
46685 | options like EB, EE. So now this routines uses lower-case letter for | |
46686 | the hexadecimal representation. Strange enough only lower case letters | |
699d76d2 | 46687 | where checked in Scan_ALI (even if this was not a possible case). |
857370b2 | 46688 | |
699d76d2 | 46689 | * gnatvsn.ads (Library_Version): changed to 3.15a. |
857370b2 | 46690 | |
46691 | * s-crc32.ads: Initial version from GNAT.CRC32. This is the version | |
699d76d2 | 46692 | for the compiler. |
857370b2 | 46693 | |
46694 | * s-crc32.adb: Initial version from GNAT.CRC32. This is the version | |
699d76d2 | 46695 | for the compiler. |
857370b2 | 46696 | |
699d76d2 | 46697 | * ali-util.adb: Redo previous change to avoid using word CRC everywhere |
46698 | Add 2001 to copyright notice | |
46699 | (Accumulate_Checksum): Modify to use System.CRC32. | |
857370b2 | 46700 | |
46701 | * ali-util.ads: Redo changes of previous revision to continue to use | |
699d76d2 | 46702 | the word Checksum. Add 2001 to copyright notice. |
857370b2 | 46703 | |
699d76d2 | 46704 | * ali.adb: Undo some of previous changes, not needed. |
46705 | Keep the change for lower case letters in the checksum. | |
857370b2 | 46706 | |
699d76d2 | 46707 | * ali.ads: Undo previous change not needed. |
46708 | ||
46709 | * bcheck.adb: Undo most of previous change, not needed. | |
46710 | But do use Checksums_Match for checksum comparison. | |
857370b2 | 46711 | |
699d76d2 | 46712 | * gnatls.adb: Undo most of previous change, not needed. |
46713 | But do use Checksums_Match for comparing checksums. | |
857370b2 | 46714 | |
699d76d2 | 46715 | * lib-load.adb: Undo previous change, not needed. |
857370b2 | 46716 | |
699d76d2 | 46717 | * lib-writ.adb: Undo previous change, not needed. |
857370b2 | 46718 | |
46719 | * lib-writ.ads: Document that checksums use lower case, | |
699d76d2 | 46720 | not upper case letters. |
857370b2 | 46721 | |
699d76d2 | 46722 | * scans.adb: Undo previous change, not needed |
857370b2 | 46723 | |
699d76d2 | 46724 | * scans.ads: Undo previous change, not needed. |
857370b2 | 46725 | |
699d76d2 | 46726 | * scn-nlit.adb: Undo previous changes, not needed. |
857370b2 | 46727 | |
699d76d2 | 46728 | * scn-slit.adb: Undo previous change, not needed. Fix header format. |
857370b2 | 46729 | |
699d76d2 | 46730 | * scn.adb: |
46731 | (Accumulate_Checksum): Use System.CRC32. | |
46732 | (Initialize_Checksum): New procedure. | |
46733 | Remove other changes of previous revision. | |
857370b2 | 46734 | |
699d76d2 | 46735 | * sinput-p.adb: Undo previous change, not needed. |
857370b2 | 46736 | |
699d76d2 | 46737 | * sinput.adb: Undo previous change, not needed. |
46738 | ||
46739 | * sinput-l.adb: Undo previous change, not needed. | |
857370b2 | 46740 | |
46741 | * sinput.ads: Undo previous change, not needed. Keep only comment | |
699d76d2 | 46742 | on new checksum algorithm |
857370b2 | 46743 | |
699d76d2 | 46744 | * Makefile.in: Add s-crc32 as needed, remove g-crc32. |
46745 | Also remove a-tags and a-stream from GNAT sources. | |
857370b2 | 46746 | |
699d76d2 | 46747 | * ali.adb (Scan_ALI): fix typo introduce in latest check-in. |
857370b2 | 46748 | |
699d76d2 | 46749 | * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o. |
46750 | ||
a2fd6a91 | 46751 | 2001-10-11 Geert Bosch <bosch@gnat.com> |
46752 | ||
46753 | * einfo.h: Regenerate. | |
46754 | ||
46755 | * nmake.ads: Regenerate. | |
46756 | ||
46757 | * nmake.adb: Regenerate. | |
46758 | ||
46759 | * sinfo.h: Regenerate. | |
46760 | ||
46761 | * treeprs.adb: Regenerate. | |
46762 | ||
266d0aec | 46763 | 2001-10-10 Geert Bosch <bosch@gnat.com> |
46764 | ||
46765 | * gnat-style.texi: New file describing coding guidelines for Ada. | |
857370b2 | 46766 | |
8a67bb47 | 46767 | 2001-10-10 Ed Schonberg <schonber@gnat.com> |
a87b0551 | 46768 | |
857370b2 | 46769 | * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required |
a87b0551 | 46770 | is Flag174. |
46771 | ||
ca7a8949 | 46772 | 2001-10-10 Geert Bosch <bosch@gnat.com> |
46773 | ||
46774 | * snames.ads: Add new names for project facility. | |
46775 | ||
46776 | * snames.adb: Update to reflect snames.ads changes. | |
46777 | ||
46778 | * snames.h: Update to reflect snames.ads changes. | |
46779 | ||
8a67bb47 | 46780 | 2001-10-10 Vincent Celier <celier@gnat.com> |
42f613d5 | 46781 | |
46782 | * make.adb: | |
46783 | (Add_Switches): reflect the changes for the switches attributes | |
46784 | Default_Switches indexed by the programming language, | |
46785 | Switches indexed by the file name. | |
46786 | (Collect_Arguments_And_Compile): Idem. | |
46787 | Reflect the attribute name changes. | |
857370b2 | 46788 | |
42f613d5 | 46789 | * prj-attr.adb: |
46790 | (Initialisation_Data): Change the names of some packages and | |
46791 | attributes. | |
46792 | (Initialize): process case insensitive associative arrays. | |
857370b2 | 46793 | |
42f613d5 | 46794 | * prj-attr.ads: |
46795 | (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array. | |
857370b2 | 46796 | |
42f613d5 | 46797 | * prj-dect.adb: |
46798 | (Parse_Attribute_Declaration): For case insensitive associative | |
46799 | arrays, set the index string to lower case. | |
857370b2 | 46800 | |
42f613d5 | 46801 | * prj-env.adb: |
46802 | Reflect the changes of the project attributes. | |
857370b2 | 46803 | |
42f613d5 | 46804 | * prj-nmsc.adb: |
46805 | Replace Check_Naming_Scheme by Ada_Check and | |
46806 | Language_Independent_Check. | |
857370b2 | 46807 | |
42f613d5 | 46808 | * prj-nmsc.ads: |
46809 | Replaced Check_Naming_Scheme by 2 procedures: | |
46810 | Ada_Check and Language_Independent_Check. | |
857370b2 | 46811 | |
42f613d5 | 46812 | * prj-proc.adb: |
46813 | (Process_Declarative_Items): For case-insensitive associative | |
46814 | arrays, set the index string to lower case. | |
46815 | (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of | |
46816 | Prj.Nmsc.Check_Naming_Scheme. | |
857370b2 | 46817 | |
42f613d5 | 46818 | * prj-tree.adb: |
46819 | (Case_Insensitive): New function | |
46820 | (Set_Case_Insensitive): New procedure | |
857370b2 | 46821 | |
42f613d5 | 46822 | * prj-tree.ads: |
46823 | (Case_Insensitive): New function | |
46824 | (Set_Case_Insensitive): New procedure | |
46825 | (Project_Node_Record): New flag Case_Insensitive. | |
857370b2 | 46826 | |
42f613d5 | 46827 | * prj-util.adb: |
46828 | (Value_Of): new function to get the string value of a single | |
46829 | string variable or attribute. | |
857370b2 | 46830 | |
42f613d5 | 46831 | * prj-util.ads: |
46832 | (Value_Of): new function to get the string value of a single | |
46833 | string variable or attribute. | |
857370b2 | 46834 | |
42f613d5 | 46835 | * prj.adb: |
46836 | (Ada_Default_Spec_Suffix): New function | |
46837 | (Ada_Default_Impl_Suffix): New function | |
46838 | Change definitions of several constants to reflect | |
46839 | new components of record types. | |
857370b2 | 46840 | |
42f613d5 | 46841 | * prj.ads: |
46842 | (Naming_Data): Change several components to reflect new | |
46843 | elements of naming schemes. | |
46844 | (Project_Data): New flags Sources_Present and | |
46845 | Language_Independent_Checked. | |
46846 | (Ada_Default_Spec_Suffix): New function. | |
46847 | (Ada_Default_Impl_Suffix): New function. | |
857370b2 | 46848 | |
42f613d5 | 46849 | * snames.ads: |
46850 | Modification of predefined names for project manager: added | |
46851 | Implementation, Specification_Exceptions, Implementation_Exceptions, | |
46852 | Specification_Suffix, Implementation_Suffix, Separate_Suffix, | |
46853 | Default_Switches, _Languages, Builder, Cross_Reference, | |
46854 | Finder. Removed Body_Part, Specification_Append, Body_Append, | |
46855 | Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind, | |
46856 | Gnatlink. | |
857370b2 | 46857 | |
42f613d5 | 46858 | * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix): |
46859 | Add comments. | |
857370b2 | 46860 | |
42f613d5 | 46861 | * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted, |
46862 | not that it is Nil_Variable_Value. | |
857370b2 | 46863 | |
42f613d5 | 46864 | * prj.ads: Add ??? for uncommented declarations |
46865 | ||
8a67bb47 | 46866 | 2001-10-10 Ed Schonberg <schonber@gnat.com> |
d775516a | 46867 | |
857370b2 | 46868 | * sem_prag.adb: (Analyze_Pragma, case External): If entity is a |
46869 | constant, do not indicate possible modification, so that gigi can | |
d775516a | 46870 | treat it as a bona fide constant. |
46871 | ||
8a67bb47 | 46872 | 2001-10-10 Robert Dewar <dewar@gnat.com> |
0eabc36b | 46873 | |
46874 | * sem_prag.adb: Add processing for pragma External. | |
857370b2 | 46875 | |
0eabc36b | 46876 | * snames.ads: Add entry for pragma External. |
857370b2 | 46877 | |
0eabc36b | 46878 | * par-prag.adb: Add pragma External. |
857370b2 | 46879 | |
0eabc36b | 46880 | * snames.adb: Updated to match snames.ads. |
46881 | ||
8a67bb47 | 46882 | 2001-10-10 Ed Schonberg <schonber@gnat.com> |
71b30311 | 46883 | |
46884 | * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for | |
46885 | a dynamic task if the allocator appears in an indexed assignment | |
46886 | or selected component assignment. | |
857370b2 | 46887 | |
46888 | * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image): | |
46889 | For a dynamic task in an assignment statement, use target of | |
71b30311 | 46890 | assignment to generate meaningful name. |
46891 | ||
8a67bb47 | 46892 | 2001-10-10 Ed Schonberg <schonber@gnat.com> |
5f260d20 | 46893 | |
857370b2 | 46894 | * einfo.adb (Write_Field19_Name): Body_Entity is also defined for |
5f260d20 | 46895 | a generic package. |
46896 | ||
46897 | * einfo.ads: Body_Entity is also defined for generic package. | |
46898 | Documentation change only | |
857370b2 | 46899 | |
46900 | * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an | |
46901 | others_choice for a discriminated component initialization, | |
46902 | convert discriminant references into the corresponding discriminals. | |
46903 | ||
46904 | * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate | |
46905 | only if original type is private and expression has to be wrapped | |
5f260d20 | 46906 | in a conversion. |
857370b2 | 46907 | |
46908 | * checks.adb: | |
46909 | (Apply_Constraint_Check): Do not perform length check | |
5f260d20 | 46910 | if expression is an aggregate with only an others_choice. |
857370b2 | 46911 | (Length_N_Cond): two references to the same in_parameter |
5f260d20 | 46912 | (typically the discriminal in an init_proc) denote the same value. |
46913 | Two useful optimization uncovered by bugfixes above. | |
46914 | ||
8a67bb47 | 46915 | 2001-10-10 Robert Dewar <dewar@gnat.com> |
497a4f03 | 46916 | |
857370b2 | 46917 | * xeinfo.adb: Change int to char in translation of enumeration types. |
497a4f03 | 46918 | This fixes a problem in the C representation of component alignment. |
46919 | Add 2001 to copyright notice | |
46920 | ||
8a67bb47 | 46921 | 2001-10-10 Richard Kenner <kenner@gnat.com> |
9d1b6043 | 46922 | |
857370b2 | 46923 | * decl.c: (validate_size): Do check size of object of integral type |
9d1b6043 | 46924 | if it is a packed array type. |
46925 | ||
8a67bb47 | 46926 | 2001-10-10 Richard Kenner <kenner@gnat.com> |
12f95b8a | 46927 | |
857370b2 | 46928 | * decl.c: (gnat_to_gnu_entity, case object): Also materialize |
12f95b8a | 46929 | VAR_DECL for constant if not Is_Public but -O0. |
46930 | ||
016b1b40 | 46931 | 2001-10-10 Richard Kenner <kenner@gnat.com> |
46932 | ||
46933 | * misc.c (struct lang_hooks): Add new initializer to match GCC change. | |
46934 | ||
32722d73 | 46935 | 2001-10-10 Geert Bosch <bosch@gnat.com> |
46936 | ||
857370b2 | 46937 | * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer |
32722d73 | 46938 | use '/' as switch character, allowing for absolute file names. |
46939 | ||
a2ad9b0d | 46940 | 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk> |
46941 | ||
46942 | * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update | |
46943 | FSF address. | |
46944 | ||
985fd58f | 46945 | 2001-10-08 Geert Bosch <bosch@gnat.com> |
46946 | ||
46947 | * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): | |
46948 | Automatically build utilities when files need to be regenerated. | |
46949 | ||
1cdda6fe | 46950 | 2001-10-08 Geert Bosch <bosch@gnat.com> |
46951 | ||
46952 | * xsnames.adb: New utility for updating snames.ads and snames.adb | |
46953 | ||
0af01459 | 46954 | 2001-10-08 Zack Weinberg <zack@codesourcery.com> |
46955 | ||
46956 | * Make-lang.in (ADAFLAGS): Add -W -Wall. | |
46957 | (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also. | |
46958 | (gnat1): Also depend on attribs.o. | |
46959 | (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make. | |
46960 | * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New. | |
46961 | (ADAC): Set to @ADAC@ in stage1, $(CC) later. | |
46962 | (ADAFLAGS): Add -W -Wall. | |
46963 | (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS; | |
46964 | take out CFLAGS. | |
46965 | ||
46966 | (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o, | |
46967 | s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o, | |
46968 | s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o): | |
46969 | Use $(ADAC), not $(CC), as compilation command. | |
46970 | ||
46971 | (gnattools): Depend directly on tools to build, don't use | |
46972 | recursive make. | |
46973 | (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make. | |
46974 | ||
46975 | * einfo.h, sinfo.h: New files (autogenerated). | |
46976 | ||
f4b5aa02 | 46977 | 2001-10-08 Richard Henderson <rth@redhat.com> |
46978 | ||
46979 | * comperr.adb (Abort_In_Progress): New. | |
46980 | (Compiler_Abort): Use it to prevent recursion. | |
46981 | ||
8a67bb47 | 46982 | 2001-10-08 Robert Dewar <dewar@gnat.com> |
37d8f030 | 46983 | |
46984 | * atree.adb: Set Error_Posted in Error node, helps error recovery. | |
0af01459 | 46985 | |
46986 | * par-endh.adb (Output_End_Expected): We should also not test | |
37d8f030 | 46987 | Error_Posted on the Error node, since now it is always set. |
0af01459 | 46988 | |
46989 | * cstand.adb (Create_Standard): Set Etype of Error to Any_Type | |
37d8f030 | 46990 | to help error recovery. Part of general work on 9407-004. |
0af01459 | 46991 | |
37d8f030 | 46992 | * par.adb: Add ??? for misuse of error |
0af01459 | 46993 | |
37d8f030 | 46994 | * sem_res.adb: |
46995 | (Resolve): Defend against Error, fixes 9407-003. | |
46996 | (Resolve_Discrete_Subtype_Indication): Defend against Error. | |
0af01459 | 46997 | |
46998 | * sinfo.ads (N_Error): Now has Etype field (which will be set | |
37d8f030 | 46999 | to Any_Type to help error recovery). |
47000 | ||
8a67bb47 | 47001 | 2001-10-08 Richard Kenner <kenner@gnat.com> |
33c2b4c3 | 47002 | |
47003 | * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR): | |
47004 | Consistently set MEM attributes from expression; fixes | |
47005 | bootstrap failure on x86. | |
47006 | ||
8a67bb47 | 47007 | 2001-10-08 Geert Bosch <bosch@gnat.com> |
0868c72e | 47008 | |
47009 | * 5oosinte.adb: Add 2001 to copyright notice. | |
47010 | ||
8a67bb47 | 47011 | 2001-10-08 Geert Bosch <bosch@gnat.com> |
b04b524a | 47012 | |
47013 | * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs]. | |
47014 | ||
47015 | * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs]. | |
47016 | ||
9bccb7a3 | 47017 | 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk> |
47018 | ||
47019 | * 5oosinte.adb: Fix spelling error of "separate" as "seperate". | |
47020 | ||
8a67bb47 | 47021 | 2001-10-05 Geert Bosch <bosch@gnat.com> |
e7120910 | 47022 | |
47023 | * adaint.h: Small formatting fix. | |
47024 | ||
47604f1d | 47025 | 2001-10-04 Geert Bosch <bosch@gnat.com> |
47026 | ||
47027 | * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode): | |
47028 | Arg is int, not FILE *, in dummy version of functions. | |
0af01459 | 47029 | |
47604f1d | 47030 | * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode): |
47031 | Arg is int, not FILE *. | |
47032 | ||
f9c9d5d3 | 47033 | 2001-10-04 Geert Bosch <bosch@gnat.com> |
47034 | ||
47035 | * 3lsoccon.ads: Added file, missed with initial check ins. | |
0af01459 | 47036 | |
f9c9d5d3 | 47037 | * 4lintnam.ads: Fix header format. |
47038 | Change Linux to GNU/Linux. | |
0af01459 | 47039 | |
f9c9d5d3 | 47040 | * 5iosinte.adb: Change Linux to GNU/Linux. |
47041 | ||
47042 | * 5iosinte.ads: Change Linux to GNU/Linux. | |
0af01459 | 47043 | |
f9c9d5d3 | 47044 | * 5itaprop.adb: Change Linux to GNU/Linux. |
0af01459 | 47045 | |
f9c9d5d3 | 47046 | * 5itaspri.ads: Change Linux to GNU/Linux. |
47047 | Update copyright notice. | |
0af01459 | 47048 | |
f9c9d5d3 | 47049 | * 5lintman.adb: Change Linux to GNU/Linux. |
0af01459 | 47050 | |
f9c9d5d3 | 47051 | * 5lml-tgt.adb: Change Linux to GNU/Linux. |
0af01459 | 47052 | |
f9c9d5d3 | 47053 | * 5losinte.ads: Change Linux to GNU/Linux. |
0af01459 | 47054 | |
f9c9d5d3 | 47055 | * 5lsystem.ads: Change Linux to GNU/Linux. |
0af01459 | 47056 | |
f9c9d5d3 | 47057 | * 5qosinte.adb: Change Linux to GNU/Linux. |
0af01459 | 47058 | |
f9c9d5d3 | 47059 | * 5qosinte.ads: Change Linux to GNU/Linux. |
0af01459 | 47060 | |
f9c9d5d3 | 47061 | * 5qparame.ads: Change Linux to GNU/Linux. |
0af01459 | 47062 | |
f9c9d5d3 | 47063 | * 5qtaprop.adb: Change Linux to GNU/Linux. |
0af01459 | 47064 | |
f9c9d5d3 | 47065 | * 5qtaspri.ads: Change Linux to GNU/Linux. |
47066 | Add 2001 to copyright notice. | |
0af01459 | 47067 | |
f9c9d5d3 | 47068 | * 5vintman.ads: Change Linux to GNU/Linux. |
47069 | Fix header format. Add 2001 to copyright notice. | |
0af01459 | 47070 | |
f9c9d5d3 | 47071 | * g-soccon.ads: Change Linux to GNU/Linux. |
0af01459 | 47072 | |
f9c9d5d3 | 47073 | * g-trasym.ads: Change Linux to GNU/Linux. |
47074 | Add 2001 to copyright notice. | |
0af01459 | 47075 | |
f9c9d5d3 | 47076 | * memtrack.adb: Change Linux to GNU/Linux. |
0af01459 | 47077 | |
f9c9d5d3 | 47078 | * s-intman.ads: Change Linux to GNU/Linux. |
47079 | Add 2001 to copyright notice. Fix header format. | |
0af01459 | 47080 | |
f9c9d5d3 | 47081 | * s-stache.adb: Change Linux to GNU/Linux. |
0af01459 | 47082 | |
f9c9d5d3 | 47083 | * adaint.c: Change Linux to GNU/Linux. |
0af01459 | 47084 | |
f9c9d5d3 | 47085 | * cio.c: Change Linux to GNU/Linux. |
0af01459 | 47086 | |
f9c9d5d3 | 47087 | * cstreams.c: Change Linux to GNU/Linux. |
0af01459 | 47088 | |
f9c9d5d3 | 47089 | * init.c: Change Linux to GNU/Linux. |
0af01459 | 47090 | |
f9c9d5d3 | 47091 | * gmem.c: Change Linux to GNU/Linux. |
0af01459 | 47092 | |
f9c9d5d3 | 47093 | * tracebak.c: Change Linux to GNU/Linux. |
47094 | ||
47095 | ||
a8f4c092 | 47096 | 2001-10-02 Geert Bosch <bosch@gnat.com> |
47097 | ||
47098 | * misc.c (insert_default_attributes): Add dummy version. |